-
Enhancement
-
Resolution: Obsolete
-
Major
-
None
-
None
-
None
Using the client which tries to connect to brokers group
discovery:(fabric://a)
without the following dependencies:
<dependency> <groupId>io.fabric8.mq</groupId> <artifactId>mq-fabric</artifactId> <version>${fabric.version}</version> </dependency> <dependency> <groupId>io.fabric8</groupId> <artifactId>fabric-groups</artifactId> <version>${fabric.version}</version> </dependency> <dependency> <groupId>io.fabric8</groupId> <artifactId>fabric-zookeeper</artifactId> <version>${fabric.version}</version> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.core</artifactId> <version>${osgi.version}</version> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.compendium</artifactId> <version>${osgi.version}</version> </dependency>
(see as in https://github.com/FuseByExample/external-mq-fabric-client)
there is an exception:
javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: DiscoveryAgent scheme NOT recognized: [fabric] at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36) at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:317) at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:330) at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303) at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:243) at org.jboss.fuse.qa.tools.jms.JMSClient.sendMessage(JMSClient.java:84) at org.jboss.fuse.qa.tools.jms.QueueClient.sendMessage(QueueClient.java:50) at org.jboss.fuse.qa.amq.ReplicatedLevelDBSampleTest.simple1MessageContainerStopTest(ReplicatedLevelDBSampleTest.java:54) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74) Caused by: java.io.IOException: DiscoveryAgent scheme NOT recognized: [fabric] at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27) at org.apache.activemq.transport.discovery.DiscoveryAgentFactory.findDiscoveryAgentFactory(DiscoveryAgentFactory.java:48) at org.apache.activemq.transport.discovery.DiscoveryAgentFactory.createDiscoveryAgent(DiscoveryAgentFactory.java:55) at org.apache.activemq.transport.discovery.DiscoveryTransportFactory.createTransport(DiscoveryTransportFactory.java:58) at org.apache.activemq.transport.discovery.DiscoveryTransportFactory.createTransport(DiscoveryTransportFactory.java:40) at org.apache.activemq.transport.failover.FailoverTransportFactory.doConnect(FailoverTransportFactory.java:38) at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:64) at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:315) ... 15 more Caused by: java.io.IOException: Could not find factory class for resource: META-INF/services/org/apache/activemq/transport/discoveryagent/fabric at org.apache.activemq.util.FactoryFinder$StandaloneObjectFactory.loadProperties(FactoryFinder.java:96) at org.apache.activemq.util.FactoryFinder$StandaloneObjectFactory.create(FactoryFinder.java:58) at org.apache.activemq.util.FactoryFinder.newInstance(FactoryFinder.java:146) at org.apache.activemq.transport.discovery.DiscoveryAgentFactory.findDiscoveryAgentFactory(DiscoveryAgentFactory.java:45) ... 21 more
Please, add information about dependencies to https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_A-MQ/6.1/html/Fault_Tolerant_Messaging/files/FMQNetworksFabricDiscovery.html