JBOSS application.xml中多个context-root共享一个war包
我现在正在对一个历史项目从weblogic移植到JBOSS4.0.3中, 在weblogic中可以支持一个ear中的application.xml中可以对一个war配置多个context-root, 配置如下, 但JBOSS就会报错, 请问大家有没有什么好的解决办法?
<module>
<web>
<web-uri>web.war</web-uri>
<context-root>context1</context-root>
</web>
</module>
<module>
<web>
<web-uri>web.war</web-uri>
<context-root>context2</context-root>
</web>
</module>
<module>
<ejb>ejb.jar</ejb>
</module>