我正在从 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)。
如何正确部署我的应用程序?
最佳答案
非常感谢大家,我终于找到了解决方案,就是简单地从.war文件中删除/删除META-INF/MANIFEST.MF文件。这样 EJB 就不会被双重引用。
关于java - weblogic 12c部署失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24578438/