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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...