【问题标题】:Hornetq with apache naming JNDIHornetq 与 apache 命名 JNDI
【发布时间】:2012-01-22 17:39:00
【问题描述】:

我尝试根据这些博客将 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文件有那个类?

【问题讨论】:

    标签: apache queue jms hornetq


    【解决方案1】:

    根据 FindJar 中的this search result,naming-factory-5.5.23.jar 是包含该类的那个。请注意,在您提供的示例中,依赖范围是测试。您是否在非测试代码中进行查找?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-05
      • 2013-06-26
      • 1970-01-01
      • 2011-12-06
      相关资源
      最近更新 更多