Liberty Profile - 远程 EJB [英] Liberty Profile - Remote EJB

查看:62
本文介绍了Liberty Profile - 远程 EJB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从我的应用程序调用远程 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 文件.

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.RuntimeException: javax.naming.NameNotFoundException: CNTR4009E: The edu.osu.cse5234.ooth.business.view.InventoryService remote interface for the InventoryServiceBean enterprise bean in the OutOfTheHouse-EJB.jar module in the OutOfTheHouse-EJBEAR application could not be obtained for the java:global/OutOfTheHouse-EJBEAR/OutOfTheHouse-EJB/InventoryServiceBean!edu.osu.cse5234.ooth.business.view.InventoryService JNDI name because remote interfaces are not supported by any of the features configured in the server.xml file.

我发现我们需要添加

<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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆