我试图根据这些博客{@ 3}}为Hornetq安装Apache JNDI。但我现在收到这个错误:
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文件有该类?
答案 0 :(得分:1)
根据FindJar中的this search result,naming-factory-5.5.23.jar是包含该类的那个。请注意,在您提供的示例中,依赖范围是测试。你在非测试代码中进行查找吗?