如何在 SAP NWDS 中设置 JNDI 上下文

发布于 2024-12-18 00:43:05 字数 251 浏览 2 评论 0原文

我正在使用 NetWeaver Developer Studio。我尝试为 JNDI 创建上下文,但初始上下文设置不正确。我尝试使用 com.sap.engine.services.jndi.InitialReplicatingContextFactoryImpl ,但我不断收到此错误:

javax.naming.NoInitialContextException:无法实例化类

在这种情况下需要做什么?

I am using NetWeaver Developer Studio. I tried to create the context for JNDI but the initial context is not setting up properly. I tried using the com.sap.engine.services.jndi.InitialReplicatingContextFactoryImpl but I keep getting this error:

javax.naming.NoInitialContextException: Cannot instantiate class

What needs to be done in this case?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

阪姬 2024-12-25 00:43:05

我们在 netweaver 外部运行测试时使用这两个属性:

java.naming.factory.initial=com.sap.engine.services.jndi.InitialContextFactoryImpl java.naming.provider.url={our nw host}:50004

-tim

We use these two properties when running tests outside netweaver:

java.naming.factory.initial=com.sap.engine.services.jndi.InitialContextFactoryImpl java.naming.provider.url={our nw host}:50004

-tim

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文