Hornetq 与 apache 命名 JNDI

发布于 2024-12-21 15:04:51 字数 563 浏览 2 评论 0原文

我尝试根据以下博客将 Apache JNDI 用于 Hornetq: http://wash-inside-out.blogspot.com/2010/08/hornetq-jms-integration-with-tomcat.html。但我现在收到此错误:

Deployment "Naming" is in error due to: javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.naming.java.javaURLContextFactory  [Root exception is java.lang.ClassNotFoundException: org.apache.naming.java.javaURLContextFactory ]

如何找出哪个 jar 文件具有该类?

I tried to put Apache JNDI for Hornetq according to these blog : http://wash-inside-out.blogspot.com/2010/08/hornetq-jms-integration-with-tomcat.html. but I'm getting this error now :

Deployment "Naming" is in error due to: javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.naming.java.javaURLContextFactory  [Root exception is java.lang.ClassNotFoundException: org.apache.naming.java.javaURLContextFactory ]

How to find out which jar file has that class?

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

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

发布评论

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

评论(1

往昔成烟 2024-12-28 15:04:51

根据FindJar中的这个搜索结果,naming-factory-5.5 .23.jar 是包含该类的文件。请注意,您提供的示例中的依赖范围是测试的。您是否在非测试代码中进行查找?

According to this search result in FindJar, naming-factory-5.5.23.jar is the one that contains that class. Beware that the dependency scope is test in the example you provided. Are you doing the lookup in non test code?

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