[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: How to deploy an ear with multiple war in jboss?

jaikiran do-not-reply at jboss.com
Thu Feb 7 09:06:40 EST 2008


Package the war files in the ear file as follows:

myApp.ear
  |  |
  |  |--------- META-INF
  |  |            |
  |  |            |---------- application.xml
  |  |
  |  |
  |  |---------- myWar1.war
  |  |              |
  |  |              |----- WEB-INF
  |  |                      |------ web.xml
  |  |                      |
  |  |                      |------ jsp
  |  |                               |---- *.jsp
  |  |---------- myWar2.war
  |  |              |
  |  |              |----- WEB-INF
  |  |                      |------ web.xml
  |  |                      |
  |  |                      |------ jsp
  |  |                               |---- *.jsp
  |  
  |  
And in the application.xml, mention these 2 war files:

<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <application>
  |  <display-name>helloworld</display-name>
  |  
  |  
  |  <module>
  |   <web>
  |    <web-uri>myWar1.war</web-uri>
  |    <context-root>/myApp1</context-root>
  |   </web>
  |  </module>
  |  
  |  <module>
  |    <web>
  |     <web-uri>myWar2.war</web-uri>
  |     <context-root>/myApp2</context-root>
  |    </web>
  |  </module>
  |  
  | </application>

Place this ear in the deploy folder of the server and start JBoss.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127393#4127393

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127393



More information about the jboss-user mailing list