Ejb 查找在 WAS7.0 上失败并出现 NamingException
我有一个使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
那么,您删除的“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. :-)