0

以下行动来自RAD

我有两个耳朵项目,myEar .ear 和myXEar .ear

myEar.ear依赖于 ejb 客户端模块,它是 myXEar.ear 的一部分

首先我启动服务器,然后将 myXEar.ear 添加到服务器,这样就可以正常工作

其次,我添加了 myEar.ear 但是当它尝试将 ejb 与message绑定时它会中断

[10/15/12 10:46:33:915 CEST] 0000008f EJBContainerI E   WSVR0039E: Unable to start EJB jar, ManageInfoHeaderFacadeBean: The com.volvo.myEarx.facade.b.ManageInfoHeaderFacade interface of the ManageInfoHeaderFacadeBean bean in the myEarXFacadeEJB-5.2.27_M2ECLIPSE_UPGRADE-SNAPSHOT-client.jar module of the myEarEar application cannot be bound to the ejb/ManageInfoHeaderFacade name location. The com.volvo.myEarx.facade.b.ManageInfoHeaderFacade interface of the ManageInfoHeaderFacadeBean bean in the myEarXFacadeEJB-5.2.27_M2ECLIPSE_UPGRADE-SNAPSHOT.jar module of the myEarXEar application has already been bound to the ejb/ManageInfoHeaderFacade name location.

EJB 已经在 myEarX.ear 启动期间注册了......所以现在我们遇到了这个问题,当引用相同 ejb 模块的第二个 ear文件尝试“启动它”时

为什么它在 RAD 内不起作用?从webconsole一切正常但我需要在 RAD 内完成这项工作。

我看过 org.eclipse.wst.common。组件文件和什么不是..但无法弄清楚。

谢谢!

4

1 回答 1

1

您有两个 EAR 项目,它们都包含相同的 EJB 模块。EJB 模块有一个绑定到ejb/ManageInfoHeaderFacade. 由于 JNDI 命名冲突,在服务器上部署两个 EAR 模块将导致错误。

我严重怀疑它是否可以通过 Web 管理控制台完美运行。我怀疑,当您通过 Web 管理控制台进行部署时,您可以通过手动为 bean 分配 JNDI 名称为 bean的 JNDI 名称选择前缀来使其工作。这样,每个 bean 都有自己独特的 JNDI 名称。

在 RAD 中,没有办法这样做(至少在 RAD 8.0 中没有)。

于 2012-10-15T19:20:08.053 回答