gpt4 book ai didi

javax.naming.NameNotFoundException :while trying to lookup

转载 作者:行者123 更新时间:2023-12-01 09:32:45 25 4
gpt4 key购买 nike

我遇到一个问题,出现以下错误。项目有关于此服务的 jar 和我的 web.xml 以下

请帮助我。

<ejb-local-ref>
<ejb-ref-name>ejb/KpsSessionFacade</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>tr.com.meop.db.session.KpsSessionFacadeLocal</local>
<ejb-link>KpsSessionFacade</ejb-link>
</ejb-local-ref>

日志:

javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/KpsSessionFacade in /app/ejb/meop-service-1.jar#KisiManagerService.; remaining name 'comp/env/ejb/KpsSessionFacade'

at javax.naming.InitialContext.lookup(InitialContext.java:411) at tr.com.meop.scheduler.client.MernisWsFactory.log(MernisWsFactory.java:686) at tr.com.meop.scheduler.client.MernisWsFactory.tcKimliktenAdresSorgula(MernisWsFactory.java:300) at tr.com.meop.business.kisi.service.KisiManagerServiceImpl.findKisiBilgisiByTckn(KisiManagerServiceImpl.java:344) . . .

at tr.com.meop.app.kisi.action.KisiAction.bulKisiBilgilerByTcknProcess(KisiAction.java:684) at tr.com.meop.app.kisi.action.KisiAction.bulKisiBilgilerByTckn(KisiAction.java:672) . .

最佳答案

在查找代码中添加前缀 java。它将如下所示:

"java:comp/env/ejb/KpsSessionFacade"

此链接中给出了完整的示例:javax.naming.NameNotFoundException: jdbc not bound

一些用于检查的步骤,这里给出:javax.naming.NameNotFoundException: Unable to resolve 'MyDB'. Resolved '' Weblogic 12.1.3. c

关于javax.naming.NameNotFoundException :while trying to lookup,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39272467/

25 4 0