How to add a WAR file into an existent EAR file?

邮差的信 提交于 2019-12-02 13:59:35

问题


Could someone explain to me how to add a WAR file into an EAR? I have one EAR file that already contains one WAR file, i have another WAR file that i would like to add to this EAR so it can contain both WARs and works properly.

I don't know how to this but i think is possible to do it manually changing the application.xml file which is included into the EAR.

Thanks!


回答1:


Assuming that the EAR file doesn't already contain the WAR file, you can use common zip utilities to add the WAR file within the EAR file.

Note that this won't update any of the EAR file descriptors. To update the descriptor, you'll need to add a new web module directive.



来源:https://stackoverflow.com/questions/12355974/how-to-add-a-war-file-into-an-existent-ear-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!