简体   繁体   中英

how to I have two .war files within one .ear file?

我使用jboss 4.0.2,我想在一个.ear文件中有两个.war文件。

I would have thought this was self-evident from the structure of the EAR's application.xml file, but here's an example of how it looks with two WARs:

<?xml version="1.0" encoding="UTF-8"?>
<application>
  <module>
    <web>
      <web-uri>/directory/of/war1</web-uri>
      <context-root>/war1</context-root>
    </web>
  </module>
  <module>
    <web>
      <web-uri>/directory/of/war2</web-uri>
      <context-root>/war2</context-root>
    </web>
  </module>
</application>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM