Liberty Profile

编程入门 行业动态 更新时间:2024-10-23 22:35:36
本文介绍了Liberty Profile - 远程 EJB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我试图从我的应用程序调用远程 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-26 04:55:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1129013.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Liberty   Profile

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!