问题描述
我试图从我的应用程序调用远程 ejb 并出现错误
I am trying to call a remote ejb from my application and getting error
org.springframework.web.util.NestedServletException:请求处理失败;嵌套异常是 java.lang.RuntimeException: javax.naming.NameNotFoundException: CNTR4009E: OutOfTheHouse 中 OutOfTheHouse-EJB.jar 模块中 InventoryServiceBean 企业 bean 的 edu.osu.cse5234.ooth.business.view.InventoryService 远程接口-无法为 java:global/OutOfTheHouse-EJBEAR/OutOfTheHouse-EJB/InventoryServiceBean!edu.osu.cse5234.ooth.business.view.InventoryService JNDI 名称获取 EJBEAR 应用程序,因为在server.xml 文件.
我发现我们需要添加
<featureManager>
<feature>ejbRemote-3.2</feature>
<feature>localConnector-1.0</feature>
</featureManager>
但是我没有在我的 server.xml
中添加 ejbRemote 的选项.可能是什么原因?
but I am not getting an option to add ejbRemote in my server.xml
.What could be the reason?
推荐答案
问题出在我使用的自由配置文件的版本上.我使用了一个不同的,我能够添加 javaee-7.0 作为功能,之后它工作正常.
The problem was with the version of liberty profile I was using. I used a different one and I was able to add javaee-7.0 as feature and after that it worked fine.
这篇关于Liberty Profile - 远程 EJB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!