在SoapUI网站http://www.soapui.org/JMS/getting-started.html上的“入门| JMS”页面上执行了所有上述步骤之后。当我尝试添加队列时,我收到错误。
错误是: java.lang.NoClassDefFoundError:无法初始化类org.apache.activemq.util.IdGenerator at org.apache.activemq.ActiveMQConnectionFactory.getClientIdGenerator(ActiveMQConnectionFactory.java:969) at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:363) at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:331) at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303) 在org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:243) at hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:122) at hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:92) at hermes.impl.jms.ConnectionSharedManager.reconnect(ConnectionSharedManager.java:81) at hermes.impl.jms.ConnectionSharedManager.connect(ConnectionSharedManager.java:91) at hermes.impl.jms.ConnectionSharedManager.getConnection(ConnectionSharedManager.java:104) at hermes.impl.jms.ConnectionSharedManager.getObject(ConnectionSharedManager.java:142) at hermes.impl.jms.ThreadLocalSessionManager.connect(ThreadLocalSessionManager.java:190) at hermes.impl.jms.ThreadLocalSessionManager.getSession(ThreadLocalSessionManager.java:570) at hermes.impl.jms.AbstractSessionManager.getDestination(AbstractSessionManager.java:460) at hermes.impl.DefaultHermesImpl.getDestination(DefaultHermesImpl.java:367) at hermes.browser.tasks.EditDestinationPropertiesTask.invoke(EditDestinationPropertiesTask.java:80) at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175) at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170) 在java.lang.Thread.run(未知来源)
爱马仕版。 1.14& activemq ver。 5.10.0。
答案 0 :(得分:0)
显然你在类路径上缺少一些jar。
您是否阅读过official docs?
这些罐子应该包含所有类:
(activemq-client.jar可能会这样做,不确定)。