对于通过 JNDI 查找注入的远程会话 bean,Jboss 6 eclipse 远程调试失败

发布于 2024-12-21 15:46:22 字数 603 浏览 4 评论 0原文

我正在使用 JNDI 查找在我的 spring 3 控制器中注入远程 EJB3 会话 bean。由于我的 Web 模块将在 tomcat 中运行,而业务层应用程序将在远程 Jboss 6 中运行,因此决定了此配置。对于开发,我仍然只使用 jboss,我的 web 和ear 都部署在同一个 jobss 实例(jboss 6)中。一切对我来说都运行良好,但是当我尝试调试时,所有注入的 bean 都返回 null,因此在调试视图中,调用远程 ejb 会话 bean 时会引发空指针异常。在运行模式(非调试)下一切正常。

我正在使用 eclipse(Helios) 并尝试远程调试 我的 jboss/deploy 中有 jndi.properties 文件,其中包含这些设置 <代码> java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=localhost:1099 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces 关于这个问题的任何帮助...

谢谢...

I am using JNDI lookups to inject a remote EJB3 session bean inside my spring 3 controller. Since my web module will run in tomcat and the business layer app in a remote Jboss 6, this configuration was decided. For the development I still use only jboss and my web and ear both are deployed in the same jobss instance (jboss 6). Everything works well for me, but when I tried to debug, all the beans injected returns null, so when in debug view, a null pointer exception is thrown when the remote ejb session bean is invoked. Everything works fine in the run mode (non-debug).

I am using eclipse(Helios) and trying remote debugging
I have the jndi.properties file in my jboss/deploy with these settings

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

any help on this issue...

thanks...

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

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

发布评论

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

评论(1

森林迷了鹿 2024-12-28 15:46:22

由于远程调试对我不起作用,我使用 eclipse 的 jboss 插件来使调试过程正常工作。

Since remote debugging did not work for me, I used the jboss plugin for eclipse to make the debug process work.

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