Weblogic 上的 Java EE 应用程序部署

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

Java EE application deployment on Weblogic

javadeploymentjmsejb-3.0weblogic

提问by javaDumb

I am looking to deploy & configure a Java EE application on weblogic with the following configuration Machine -1 ,Mananged server -1 webbapplication i..e War deployment on managed server-1 2 issues Machine -2 ,Mananged server -2 EAR deployment, JDBC, JMS server(modules, resources, queue and queue connection factory targetted to only managed server -2) Configuration on managed server-2 no issues with managed server -2 deployment and configuration

我希望使用以下配置在 weblogic 上部署和配置 Java EE 应用程序 Machine -1 ,Mananged server -1 webbapplication i..e War deployment on managed server-1 2 issues Machine -2 ,Mananged server -2 EAR deployment, JDBC、JMS 服务器(模块、资源、队列和队列连接工厂仅针对托管服务器 -2) 托管服务器 2 上的配置托管服务器 -2 部署和配置没有问题

the 2 issues with the managed-server-1 are This setup isn't working and having he following issues when I deploy the war 1. <11-Apr-2011 15:26:03 o'clock BST> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1302531963725>

托管服务器 1 的 2 个问题是此设置不起作用,并且在我部署War 1 时遇到以下问题。<11-Apr-2011 15:26:03 o'clock BST> <[ACTIVE] ExecuteThread :队列的“1”:“weblogic.kernel.Default(自调整)”> <> <> <> <1302531963725>

  1. weblogic.deployment.EnvironmentException: [J2EE:160200]Error resolving ejb-ref 'gov.rpa.rita.rlr.soplot.request.jsf.MapPackRequestController/dataServiceFacade' from module 'MapPackProduction-war.war' of application 'MapPackProduction-war'. The ejb-ref does not have an ejb-link and the JNDI name of the target bean has not been specified. Attempts to automatically link the ejb-ref to its target bean failed because no EJBs in the application were found to implement the 'gov.rpa.rita.rlr.mappack.ejb.facade.DataServiceRemote' interface. Please link or map this ejb-ref to its target EJB and ensure the interfaces declared in the ejb-ref are correct.
  1. weblogic.deployment.EnvironmentException:[J2EE:160200]从应用程序“MapPackProduction-war”的模块“MapPackProduction-war.war”解析ejb-ref“gov.rpa.rita.rlr.soplot.request.jsf.MapPackRequestController/dataServiceFacade”时出错'。ejb-ref 没有 ejb-link 并且没有指定目标 bean 的 JNDI 名称。尝试自动将 ejb-ref 链接到其目标 bean 失败,因为在应用程序中没有找到实现“gov.rpa.rita.rlr.mappack.ejb.facade.DataServiceRemote”接口的 EJB。请将此 ejb-ref 链接或映射到其目标 EJB,并确保 ejb-ref 中声明的接口是正确的。

Machine -2 ,Mananged server -2 EAR deployment, JDBC, JMS server(modules, resources, queue and queue connection factory targetted to only managed server -2) Configuration on managed server-2 no issues with managed server -2 deployment and configuration

机器 -2,托管服务器 -2 EAR 部署,JDBC,JMS 服务器(模块、资源、队列和队列连接工厂仅针对托管服务器 -2)托管服务器上的配置 -2 托管服务器没有问题 -2 部署和配置

if it is useful to answer more information on my approach is that I am not using weblogic clustering as this application is going to be deployed without clustering as we dont have oracle licence for cluster.

如果回答有关我的方法的更多信息有用,我没有使用 weblogic 集群,因为该应用程序将在没有集群的情况下部署,因为我们没有集群的 oracle 许可证。

Am I correct in my approach ? if yes please suggest resolution for 2 issues on managed server-1

我的方法正确吗?如果是,请建议解决托管服务器 1 上的 2 个问题

thanks a lot in advance

非常感谢提前

回答by Jeff West

It's not entirely clear what you are trying to do, but the ejb-link error seems to indicate that you are trying to use an EJB from code in your WAR file. My first guess is that you are trying to package an EJB in a WAR file. This will not work with Java EE5. You need to package the WAR containing your webapp and your EJB JAR file in an EAR.

不完全清楚您要做什么,但 ejb-link 错误似乎表明您正在尝试从 WAR 文件中的代码使用 EJB。我的第一个猜测是您正在尝试将 EJB 打包到 WAR 文件中。这不适用于 Java EE5。您需要将包含 Web 应用程序和 EJB JAR 文件的 WAR 打包到 EAR 中。

If the EJB is deployed separately, and you are trying to use ejb-link to do EJB injection, take a look at the ejb-jar.xml configuration reference to make sure you have it set up correctly. Also, look at the weblogic-ejb-jar.xml reference and see what you can do there.

如果 EJB 是单独部署的,并且您尝试使用 ejb-link 进行 EJB 注入,请查看 ejb-jar.xml 配置参考以确保正确设置。另外,查看 weblogic-ejb-jar.xml 参考,看看您可以在那里做什么。