deploy interest.ear 时的问题

leon3867 03-07-31

我把build好的interest.ear拷贝到jboss deploy目录时出现:
org.jboss.deployment.DeploymentException: ejb-jar.xml must define a valid DOCTYPE!
如何解决?
3xs

banq
2003-07-31 18:05

ejb-jar.xml头部有问题,去找一个正规的对照一下!

leon3867
2003-08-01 09:25

我找了一下,有这么几个ejb-jar.xml:
./server/all/deploy/jbossha-httpsession.sar/ClusteredHttpSessionEB.jar/META-INF/ejb-jar.xml
./examples/org/jboss/docs/cmp/cd/resources/ejb-jar.xml
./examples/org/jboss/docs/cmp/jaws/resources/ejb-jar.xml
./examples/org/jboss/docs/jaas/howto/ejb-jar.xml
./examples/org/jboss/docs/javamail/ejb-jar.xml
./examples/org/jboss/docs/appletclient/ejb/ejb-jar.xml
./examples/org/jboss/docs/interest/ejb-jar.xml
./examples/build-examples/cmp-cd/classes/META-INF/ejb-jar.xml
./examples/build-examples/interest/META-INF/ejb-jar.xml
我改了其中两个关于interest的。加了一行:
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">

错误和以前一样。请问应该如何修改呢?