eclipse 如何在 RAD 7.5 中创建 EAR 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13971721/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to Create EAR file in RAD 7.5
提问by Imtz
I have checked out a dynamic web project from a CVS repository. But, there was no EAR file to check in. Now how can I create an EAR file for the project to deploy in WAS 6?
我已经从 CVS 存储库中签出了一个动态 Web 项目。但是,没有要签入的 EAR 文件。现在如何为要在 WAS 6 中部署的项目创建 EAR 文件?
Also can I run my project in RAD without creating an .ear file? I am a newbie to Java EE projects.
我也可以在不创建 .ear 文件的情况下在 RAD 中运行我的项目吗?我是 Java EE 项目的新手。
回答by trikelef
In order to be able to export an EAR, you can add a new Enterprise Application project( New > Enterprise Application project) and select your Web project as a Java EE module dependency.
为了能够导出 EAR,您可以添加一个新的企业应用程序项目(新建 > 企业应用程序项目)并选择您的 Web 项目作为Java EE 模块依赖项。
This way you can export an EAR file that will contain a WAR file built from your Web project.
通过这种方式,您可以导出一个 EAR 文件,该文件将包含从您的 Web 项目构建的 WAR 文件。
回答by Neil Weightman
If you run the wizard for creating a new enterprise application (File->New), one of the options is to add an existing web project in your workspace into the application as you create it. You can then export the enterprise application as an EAR file ready to deploy into WebSphere Application Server or, if you have the test environment set up, you can just drag-and-drop it onto the server in the Servers view. To test your web application, right-click it and choose Run->Run on Server.
如果您运行向导来创建新的企业应用程序 (File->New),其中一个选项是在您创建应用程序时将工作区中的现有 Web 项目添加到该应用程序中。然后,您可以将企业应用程序导出为准备部署到 WebSphere Application Server 的 EAR 文件,或者,如果您已经设置了测试环境,您只需将它拖放到服务器视图中的服务器上。要测试您的 Web 应用程序,请右键单击它并选择 Run->Run on Server。
回答by Arunkumar Srisailapathi
Try importing as project instead of EAR files
尝试导入为项目而不是 EAR 文件