I am trying to deploy petstore eg. of Sun J2ee in JBoss. I got the patch file from JBoss, to make changes to some build.xml files etc.
I have built the petstore example from scratch by modiying the build.xml and a lot of other tweaks. Finally I managed to build the petstore.ear file. Now when I DEPLOY the petsore.ear, I get the following error.
org.jboss.deployment.DeploymentException: ejb-jar.xml must define a valid DOCTYPE!
The error source is from:
joss-3.2.3/server/default/tmp/deploy/tmp35014petstore.ear-contents/asyncsender-ejb.jar
If I try again, the source of the jar mentioned above changes , but the error is always: define valid DOCTYPE!.
Have any of you guys come across this problem. Let me know what you did to solve.
Thanks,
SP.
Your ejb-jar.xml must have the following:
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">