Hi,
Is it possible to include several web modules (defined in the application.xml file) in a single .EAR file?. I've tried on JBoss but I couldn't although I think that it's possible on other app servers.
My application.xml file is:
<?xml version="1.0"?>
<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>
<display-name>intermediario</display-name>
<web-uri>a.war</web-uri>
<context-root>a</context-root>
<web-uri>b.war</web-uri>
<context-root>b</context-root>
and when I deploy the EAR file, I get the following exception:
18:19:02,750 ERROR [MainDeployer] Could not initialise deloyment: file:/C:/java/jboss-3.2.2/server/default/deploy/score.ear
org.jboss.deployment.DeploymentException: expected only one web tag
at org.jboss.metadata.MetaData.getOptionalChild(MetaData.java:136)
...
Is it impossible?.
Regards,
Jorge