在 Weblogic 中部署 Java EE 项目
我的计算机上安装了 WebLogic。我已经将它添加为我的 Eclipse IDE 中的服务器。如何配置我的 Web 应用程序以在 WebLogic 服务器上运行或部署。我找到了一个示例项目,并在其中找到了一个 weblogic.xml
。我从哪里开始?我需要添加一些东西吗?
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.xml
in it. Where do I start? Do I need to add something, etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您的 Web 应用程序已经是“动态 Web 应用程序”,那么您应该只需右键单击它即可部署它,然后运行方式 > > 在服务器上运行并选择 WebLogic Server 运行时。
如果这不起作用,也许您需要将正确的方面添加到您的项目中。右键单击您的项目并转到“属性”> > Project Facets 并检查动态 Web 模块是否已选中。
如果这仍然不起作用,也许可以从头开始重新创建一个“动态 Web 应用程序”,并将源代码移动(或复制)到这个新创建的项目中。
实际上,许多教程都可以在 WTP 社区资源 页面上找到。例如,请参阅将 Eclipse Web 工具平台与 Apache Tomcat 结合使用。它不是特定于 WebLogic 的,但如果您已经在 Eclipse 中设置了它,那么调整特定部分应该很容易。
PS:很难说有关您的示例项目和
weblogic.xml
的任何信息,因为您没有提供有关它们的任何详细信息。也许尝试遵循上面的建议,如果仍然有问题,请使用更多信息更新您的问题。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 Server and choose the WebLogic Server runtime.
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 Facets and check that Dynamic Web Module is checked.
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.
Many tutorials are actually available at the WTP Community Resources page. 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.
PS: It's hard to say anything about your sample project and the
weblogic.xml
as 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.有许多关于将 Eclipse 与 WebLogic 结合使用的资源,包括 Oracl'es Enterprise Pack for Eclipse。如果没有更多信息,很难说清楚,但您需要一个至少配置有管理服务器的 WebLogic 域来部署 Web 应用程序。在进行本地开发时,将应用程序部署到管理服务器是可以接受的,但除此之外,您通常还需要一个管理服务器和一个托管服务器,应用程序将部署到其中。
以下是有关 Eclipse 和 WebLogic 的一些信息 - http://www.oracle .com/technetwork/developer-tools/eclipse/learnmore/index.html
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.
Here's some info on Eclipse and WebLogic - http://www.oracle.com/technetwork/developer-tools/eclipse/learnmore/index.html
问题缺少很多细节。您可以在这里找到一些详细的帮助
http:// /download-llnw.oracle.com/docs/cd/E13222_01/wls/docs90/deployment/index.html
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