本文介绍了如何从Eclipse中的Dynamic Web Project构建EAR文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑将我在Eclipse中编写的Web服务部署到EAR文件中。我可以将它作为WAR导出并将它部署在Tomcat上,但是最终产品不会在Tomcat上,也不会是WAR文件。我需要使用Websphere作为服务器,我可以访问并可以部署有效的EAR文件...如果我要部署一个EAR文件。

I'm looking at deploying a web service which I've written in Eclipse to an EAR file. I'm able to export it as a WAR and deploy it on Tomcat all fine and dandy, but the final product won't be on Tomcat, and won't be a WAR file. I'll need to use Websphere as a server, which I have access to and can deploy valid EAR files... if I had an EAR file to deploy.

所以简而言之,如何从Eclipse中的Dynamic Web Project导出EAR文件?

So long story short, how do I export an EAR file from a Dynamic Web Project in Eclipse?

推荐答案

您需要创建一个企业Eclipse中的Application Project(基本上是一个EAR),将Dynamic Web Project添加到EAR项目中,然后导出整个项目。

You need to create an Enterprise Application Project (basically, an EAR) in Eclipse, add the Dynamic Web Project to the EAR project, and then export the whole thing.

这篇关于如何从Eclipse中的Dynamic Web Project构建EAR文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 00:37