We are in the processing of upgrading to JBoss AS 4.0.5 from one of the older versions. I dropped in an existing jboss-app.xml file from the older version into the /deploy directory of 4.0.5 and it crashes on startup.
The error i am getting is
org.jboss.deployment.DeploymentException: Invalid XML: file=META-INF/jboss-app.xml; - nested throwable: (org.xml.sax.SAXParseException: The content of element type "module" must match "((ejb|java|web),alt-dd?)".)
Here is a sample code from my jboss-app.xml.
<jboss-app>
<.module>
<.ejb>Core.jar</.ejb>
<external-path> C:/ormStream31/Server/EJB/Core.jar
</external-path>
</.module>
<.module>
<.web>
<web-uri>EDS.war</web-uri>
<context-root>EDS</context-root>
</.web>
<external-path> C:/FormStream31/Server/webapps/EDS.war
</external-path>
</.module>
</jboss-app>
(The periods are only to make sure the tags show up and they are not the problem)
Obviously the dtd for jBoss-app has changed since the older version we were using and looks like the new dtd doesn't like the <external-path>.
Now, how does one go about configuring the jar and war files in 4.05 ?
Where do you specify the external-path ?
Can some one point me to a sample jboss-app that uses jar and war files in 4.0.5
Thanks
Narsi
Guys,
Sorry about that post. On further digging we have realised that the <external-path> tag never did exist in the dtd. One of the developers here had to actually change JBoss code to process that tag.