I'm trying to use the VM Transport, launched in a JUnit TestSetup. Here's how
I create the broker:

String brokerUri =
"vm://localhost?brokerConfig=xbean:file:../mtx-unit-test/testing/activemq/activemq.xml";
BrokerService broker = BrokerFactory.createBroker(new URI(brokerUri));

This causes the following exception:
java.io.IOException: Could load vm factory:java.io.IOException: Could not
find factory class for resource:
META-INF/services/org/apache/activemq/broker/vm
        at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
        at
org.apache.activemq.broker.BrokerFactory.createBrokerFactoryHandler(BrokerFactory.java:43)
        at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:70)
        at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
...[truncated]
Caused by: java.io.IOException: Could not find factory class for resource:
META-INF/services/org/apache/activemq/broker/vm
        at
org.apache.activemq.util.FactoryFinder.doFindFactoryProperies(FactoryFinder.java:92)
        at
org.apache.activemq.util.FactoryFinder.newInstance(FactoryFinder.java:52)

The only info I could find on this is:
http://activemq.apache.org/ioexception-could-not-find-class-for-resource.html
...which says that I need to have the distro jar in my classpath. I have
both, activemq-core-5.0.0.jar and activemq-all-5.0.0.jar in the classpath.

What else should I check?


-- 
View this message in context: 
http://www.nabble.com/factory%3Ajava.io.IOException%3A-Could-not-find-factory-class-for-resource%3A-META-INF-services-org...-tp16167726s2354p16167726.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to