java - weblogic 12c部署失败

标签 java jakarta-ee deployment weblogic descriptor

我正在从 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/

相关文章:

与 MS Access 的 java 连接

java - JAX-WS - 在 Web 方法中获取 SOAP header

java - 如何将数据从 MySQL 查询传递到结果集?

java - 如何进行Wildfly 9解压部署WAR文件?

bash - SSH 捕获远程 ssh 命令的退出代码

json - 将一个arm部署资源链接模板的输出传递到另一个

azure - 您可以在不部署整个网站的情况下替换 Azure 网站中的选定文件吗?

java - 客户端既充当客户端又充当服务器 - JAVA

java - 有人可以解释一下构造函数吗?

java - Vaadin 可视化编辑器中没有可见组件