Hi,
I'm trying to deploy a simple Hello SessionBean on JBoss 3.2.1, but I get the following exception:
org.jboss.deployment.DeploymentException:
ejb-jar.xml must define a valid DOCTYPE!
My ejb-jar.xml file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar>
Hello Application
<display-name>Hello EJB</display-name>
<enterprise-beans>
<ejb-name>Hello</ejb-name>
HelloHome
Hello
<ejb-class>HelloBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</enterprise-beans>
</ejb-jar>
Any idea what's wrong? The ejb-jar.xml file seems valid to me...
Solved the problem by adding:
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">