-
1. Re: Inconsistency amog JBOSS versions.
jonlee Aug 14, 2003 6:05 PM (in response to spoox2)JBoss 3.2.x and higher have tighter compliance requirements for XML. You can turn off this behaviour by turning off the strict verifier in the main conf/jboss-service.xml. However, it is prefereable to specify the correct DTDs for your deployment descriptors, in-line with proper XML formation requirements.
For the standard ejb-jar.xml, you either specify:
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd">
or
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
This will depend on the EJB compliance you are seeking - particularly important for entity beans.
Similarly, for jboss.xml, you should specify:
<?xml version="1.0"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS//EN" "http://www.jboss.org/j2ee/dtd/jboss.dtd">
For web.xml:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
So check the DTD specs for your deployment descriptors and insert the appropriate references to the templates into your deployment descriptors.