Ejb 查找在 WAS7.0 上失败并出现 NamingException

发布于 2024-08-28 11:31:08 字数 320 浏览 3 评论 0原文

我有一个使用 WAS 6.0 在 RAD 上开发的应用程序。我将代码迁移到 WID 7.0。在 EJB 模块中进行一些更改后(必须从每个 ejb 模块中删除 bnd.xmi 文件才能在应用程序服务器上部署应用程序),应用程序运行良好,但 EJB 模块给出以下错误:

获取本地时发生 NamingException家 javax.naming.NameNotFoundException:在上下文“local:”中找不到 nullName ejb/com/igcc。

我无法弄清楚需要进行哪些更改才能在 WID 上运行应用程序。

任何帮助表示赞赏。

谢谢, 阿尤什

I have an application developed on RAD using WAS 6.0. I migrated the code to WID 7.0. After making some changes in the EJB modules(Had to remove the bnd.xmi file from each ejb module to deploy the application on Application Server)the application is running fine, but the EJB modules give the following error:

NamingException has Occured While Getting Local Home
javax.naming.NameNotFoundException:nullName ejb/com/igcc not found in context "local:".

I am not able to figure out what changes do it need to make to run the application on WID.

Any help is appreciated.

Thanks,
Ayush

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

赏烟花じ飞满天 2024-09-04 11:31:08

那么,您删除的“bnd.xmi”文件是特定于 WebSphere 的部署描述符,包含绑定信息。其中提到的内容之一是绑定每个单独的 EJB home 的名称。

如果某处没有此绑定信息,您就不可能运行 EJB 模块。

如果删除这些文件(由 RAD 生成),则必须从管理控制台内或通过基于 wsadmin 的部署脚本分配新的绑定信息。

简而言之...让我们从恢复您删除的那些文件开始。 :-)

Well, the "bnd.xmi" files you deleted are the WebSphere-specific deployment descriptors, containing binding information. One of the things that are mentioned there is the name under which to bind each individual EJB home.

You cannot possibly run an EJB module without this binding information existing somewhere.

If you delete these files (which are generated by RAD), you have to assign new binding information from within the administration console, or via your wsadmin-based deployment scripts.

In short... lets start by recovering those files that you erased. :-)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文