JBoss 7.1 EJB 客户端的 Maven 依赖项
我想按照本教程为 JBoss 7.1 实现 EJB 客户端 http://middlewaremagic.com/jboss/?p=1177#comments 其中基于 JBoss 教程: https://docs。 jboss.org/author/display/AS71/EJB+incalls+from+a+remote+client+using+JNDI
我已经在那里尝试了故障排除提示,但仍然遇到异常: javax.naming.NoInitialContextException:需要在环境或系统属性中指定类名,或者作为小程序参数,或者在应用程序资源文件中:java.naming.factory.initial
是否有其他人遇到过此类问题并知道哪些jar(或更好的 Maven 依赖项)是否需要在类路径上?
此致, 黑尔格
I wanted to implement an EJB client for JBoss 7.1 following this tutorial
http://middlewaremagic.com/jboss/?p=1177#comments which is based on the JBoss tutorial:
https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI
I already tried the troubleshooting tips there, but still I get an exception:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
Did anyone else encounter this type of problem and knows which jars (or better Maven dependencies) are needed on the classpath?
Best regards,
Helge
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否参考过 ejb-remote 快速入门? https://github.com/jboss-jdf/ jboss-as-quickstart/tree/master/ejb-remote
该快速入门包含 jboss.org 文档中引用的两个 Maven 项目,并且具有所有必需的依赖项。
Have you referred to the ejb-remote quick start ? https://github.com/jboss-jdf/jboss-as-quickstart/tree/master/ejb-remote
That quick start contains the two Maven projects that are referenced in the jboss.org doc and have all the required dependencies.