eclipse 在 Weblogic 中部署 Java EE 项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1950220/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:14:16  来源:igfitidea点击:

Deploy Java EE Project in Weblogic

javaeclipsejakarta-eeweblogiceclipse-wtp

提问by cedric

I have WebLogic installed in my computer. I already added it as a server in my Eclipse IDE. How do I configure my Web application to run or for it to be deployed on the WebLogic server. I found a sample project and found a weblogic.xmlin it. Where do I start? Do I need to add something, etc.

我的计算机上安装了 WebLogic。我已经将它添加为 Eclipse IDE 中的服务器。如何配置我的 Web 应用程序以在 WebLogic 服务器上运行或部署它。我找到了一个示例项目,并weblogic.xml在其中找到了一个。我从哪里开始?我是否需要添加一些东西,等等。

采纳答案by Pascal Thivent

If your web application is already a "Dynamic Web Application", then you should be able to deploy it just by right clicking on it, then Run As> Run on Serverand choose the WebLogic Server runtime.

如果您的 Web 应用程序已经是“动态 Web 应用程序”,那么您应该能够通过右键单击它来部署它,然后运行方式>在服务器上运行并选择 WebLogic Server 运行时。

If this doesn't work, maybe you need to add the right facet to your project. Right click on your project and go to Properties> Project Facetsand check that Dynamic Web Moduleis checked.

如果这不起作用,也许您需要将正确的方面添加到您的项目中。右键单击您的项目并转到Properties> Project Facets并检查是否选中了Dynamic Web Module

If this still doesn't work, maybe recreate a "Dynamic Web Application" from scratch and move (or copy) your sources to this newly created project.

如果这仍然不起作用,也许可以从头开始重新创建“动态 Web 应用程序”并将您的源移动(或复制)到这个新创建的项目中。

Many tutorials are actually available at the WTP Community Resourcespage. See for example Using the Eclipse Web Tools Platform with Apache Tomcat. It is not specific to WebLogic but if you already have it setup in Eclipse, it should be easy to adapt the specific parts.

WTP 社区资源页面实际上提供了许多教程。例如,请参阅将 Eclipse Web 工具平台与 Apache Tomcat 一起使用。它并非特定于 WebLogic,但如果您已经在 Eclipse 中设置了它,那么调整特定部分应该很容易。

PS: It's hard to say anything about your sample project and the weblogic.xmlas you didn't provide any detail about them. Maybe try to follow the advices above and, if you still have problems, update your question with more information.

PS:很难说您的示例项目,weblogic.xml因为您没有提供有关它们的任何详细信息。也许尝试遵循上述建议,如果仍有问题,请使用更多信息更新您的问题。

回答by Colin

There are a number of resources on using Eclipse with WebLogic, including Oracl'es Enterprise Pack for Eclipse. It's hard to tell without more information, but you need a WebLogic Domain configured with at least an Admin Server to deploy the web application to. When doing local development, it's acceptable to deploy applications to the Admin Server, but beyond this you typically want an Admin Server and a managed server where the application will get deployed to.

有许多关于将 Eclipse 与 WebLogic 结合使用的资源,包括 Oracl'es Enterprise Pack for Eclipse。如果没有更多信息,很难判断,但是您需要一个配置了至少一个管理服务器的 WebLogic 域来部署 Web 应用程序。在进行本地开发时,将应用程序部署到管理服务器是可以接受的,但除此之外,您通常需要一个管理服务器和一个托管服务器,应用程序将部署到该服务器。

Here's some info on Eclipse and WebLogic - http://www.oracle.com/technetwork/developer-tools/eclipse/learnmore/index.html

这里有一些关于 Eclipse 和 WebLogic 的信息 - http://www.oracle.com/technetwork/developer-tools/eclipse/learnmore/index.html

回答by Ravi Gupta

Question is missing much details. You can find some detailed help here

问题缺少很多细节。你可以在这里找到一些详细的帮助

http://download-llnw.oracle.com/docs/cd/E13222_01/wls/docs90/deployment/index.html

http://download-llnw.oracle.com/docs/cd/E13222_01/wls/docs90/deployment/index.html