【发布时间】:2014-07-04 16:52:38
【问题描述】:
我正在从 Weblogic 11g 迁移到 12c,在部署过程中它失败并显示以下错误:
Caused by: weblogic.application.naming.ReferenceResolutionException: [J2EE:160199]Error resolving ejb-ref "ejb/BizRuleFacade" from module "BizAgi-ejb.jar" of application "BizAgi-ear-Weblogic". 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 multiple EJBs in the application were found to implement the "BizAgi.bpm.rules.entities.BizRuleFacade" interface, including BizAgi-war.war/BizRuleFacadeBean, BizAgi-ejb.jar/BizRuleFacadeBean. Specify a qualified ejb-link for this ejb-ref to indicate which EJB is the target of this ejb-ref.
我的 web.xml 文件如下所示:
<ejb-local-ref>
<ejb-ref-name>ejb/BAScopeLogFacade</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>BizAgi.PAL.historylog.entities.BAScopeLogFacade</local>
<ejb-link>BizAgi-ejb.jar#BAScopeLogFacadeBean</ejb-link>
</ejb-local-ref>
BizAgi-ejb.jar 是耳内的一个模块 (BizAgi-ear-Weblogic.ear)。
如何正确部署我的应用程序?
【问题讨论】:
-
似乎 WebLogic 抱怨的是 EJB 模块的 EJB-jar.xml 中的 ejb-ref,而不是 web.xml 中的那个。
-
你能分享你的整个
<session>标签吗?可能还有另一个问题。这可能也有帮助coderanch.com/t/451012/EJB-JEE/java/…
标签: java jakarta-ee deployment weblogic descriptor