简体   繁体   English

如何从耳边发动战争

[英]How to create war from ear

I have developed a web-service client and tested it as ear on local jboss always. 我已经开发了一个Web服务客户端,并一直在本地jboss上进行测试。 this ear work fine. 这只耳朵工作正常。 Now I want to create war for this application. 现在,我想为此应用创建战争。 whenever I tries: 每当我尝试:

project:export:war file

in eclipse, it creates war without any third party dependency jars files added to it. 在eclipse中,它会在没有添加任何第三方依赖项jar文件的情况下引发战争。 This war does not gets deployed on jboss successfully. 这场战争不会成功部署在jboss上。 Can anybody guide me hw to create war from ear. 任何人都可以引导我从耳朵制造战争。

you cannot create war from ear. 你不能从耳朵里制造战争。 ear is enterprise archive, and war is web archive. 耳朵是企业档案,战争是网络档案。
ear may contain many war files. 耳朵可能包含许多战争档案。 So when you are creating war using eclipse, it creates a web archive. 因此,当您使用Eclipse创建战争时,它将创建一个Web存档。
To add your third party jars, put them into the lib folder of your web application, that way it will be included into your war. 要添加第三方jar,请将其放入Web应用程序的lib文件夹中,这样它将包含在您的战争中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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