HI all, Scott,
On Tue, 12 Jun 2001 09:39:17 -0700, Scott M Stark wrote:
>Its something on my todo list. I'm thinking of adding the DTD validation
>to the bean verifier step of deployment.
Maybe need a help?
I have modified XmlFileLoader.java and in my enviroment it works fine and I found a
lot jboss.xml and and ejb-jar.xml syntax bugs in my projects :))
By the way it seems jboss.dtd from the CVS has bug on like 215 ")" is missed
<!ELEMENT resource-ref (res-ref-name , (resource-name | jndi-name | res-url)>
And i have doubts about line 331:
<!ELEMENT container-configuration (container-name, call-logging, container-invoker,
container-interceptors?, instance-pool?, instance-cache? , persistence-manager? ,
transaction-manager? , container-invoker-conf? , container-cache-conf? ,
container-pool-conf?,
commit-option? , optiond-refresh-rate?, (role-mapping-manager,
authentication-module?)?)>
I would offer to do call-logging?, container-invoker?,
My changes in the XmlFileLoader.java works just if correct <!DOCTYPE... is added in
the XML files. If DTD not added or not correct I assume EJB
developer dont want DTD checking.
Current version supports these DTDs:
registerDTD("-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN",
"ejb-jar.dtd");
registerDTD("-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN",
"application_1_2.dtd");
registerDTD("-//Sun Microsystems, Inc.//DTD Connector 1.0//EN", "connector_1_0.dtd");
registerDTD("-//JBoss//DTD JAWS//EN", "jaws.dtd");
registerDTD("-//JBoss//DTD JBOSS//EN","jboss.dtd");
What do you think about adding it to JBoss 3?
I have tested under Windows 2000 with JDK 1.4.
Regards,
Darius Davidavicius
www.jbees.com
J2EE consultations, development
XmlFileLoader.java