You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by aragoubi <ay...@gmail.com> on 2017/05/04 12:35:46 UTC

Could not find factory class for resource: META-INF/services/org/apache/activemq/transport/ws

I Integrated activeMQ in jboss in such a way that when I start a project
deployed in jboss, activeMQ broker start. 
I followed a tutorial to integrate activeMQ in jboss. 
I copied the activemq-rar-5.9.0.rar into the standalone/deployments folder,
then I generated the ironjacamar.xml file which I put into the meta-inf
folder.  
The broker serverUrl defined in the ra.xml file is "vm://localhost" and this
is my broker-config file: 

<?xml version="1.0" encoding="UTF-8"?> 
<beans 
  xmlns="http://www.springframework.org/schema/beans"
  xmlns:amq="http://activemq.apache.org/schema/core"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd">

  
  <broker xmlns="http://activemq.apache.org/schema/core" useJmx="true"
useShutdownHook="false"  brokerName="mimo.broker1">
     <managementContext>
       
       <managementContext createConnector="false"/>
     </managementContext>

    <persistenceAdapter>
       <kahaDB directory="activemq-data/kahadb"/>
     </persistenceAdapter>

    <transportConnectors>
      <transportConnector name="mimo.broker1" uri="tcp://localhost:61616" />
          
    </transportConnectors>  
  </broker>
</beans>


With this file my broker start without errors, but when I uncomment the
websocket transportConnector 
I am getting the error indicated in the title. 

Here is the stacktrace: 

15:55:40,964 ERROR [org.apache.activemq.xbean.XBeanBrokerFactory] (Starting
ActiveMQ Broker) Failed to load: class path resource [broker-config.xml],
reason: Error creating bean with name
'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path
resource [broker-config.xml]: Invocation of init method failed; nested
exception is java.io.IOException: Transport Connector could not be
registered in JMX: Transport scheme NOT recognized: [ws]:
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class
path resource [broker-config.xml]: Invocation of init method failed; nested
exception is java.io.IOException: Transport Connector could not be
registered in JMX: Transport scheme NOT recognized: [ws] 
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482)
[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] 
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] 
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] 
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] 
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] 
        at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] 
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] 
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] 
        at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE] 
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
[spring-context-3.2.4.RELEASE.jar:3.2.4.RELEASE] 
        at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
[xbean-spring-3.14.jar:3.14] 
        at
org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
[xbean-spring-3.14.jar:3.14] 
        at
org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)
[activemq-spring-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)
[activemq-spring-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)
[activemq-spring-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
[activemq-broker-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
[activemq-broker-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.ra.ActiveMQResourceAdapter$1.run(ActiveMQResourceAdapter.java:84)
[activemq-ra-5.9.0.jar:5.9.0] 
Caused by: java.io.IOException: Transport Connector could not be registered
in JMX: Transport scheme NOT recognized: [ws] 
        at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
[activemq-client-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:2036)
[activemq-broker-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:2498)
[activemq-broker-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2415)
[activemq-broker-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.broker.BrokerService.doStartBroker(BrokerService.java:666)
[activemq-broker-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.broker.BrokerService.startBroker(BrokerService.java:632)
[activemq-broker-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.broker.BrokerService.start(BrokerService.java:568)
[activemq-broker-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)
[activemq-spring-5.9.0.jar:5.9.0] 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[rt.jar:1.7.0_79] 
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[rt.jar:1.7.0_79] 
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[rt.jar:1.7.0_79] 
        at java.lang.reflect.Method.invoke(Method.java:606)
[rt.jar:1.7.0_79] 
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1608)
[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] 
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1549)
[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] 
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)
[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] 
        ... 17 more 
Caused by: java.io.IOException: Transport scheme NOT recognized: [ws] 
        at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
[activemq-client-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:178)
[activemq-client-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.transport.TransportFactorySupport.bind(TransportFactorySupport.java:32)
[activemq-broker-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:310)
[activemq-broker-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:140)
[activemq-broker-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:107)
[activemq-broker-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:2031)
[activemq-broker-5.9.0.jar:5.9.0] 
        ... 30 more 
Caused by: java.io.IOException: Could not find factory class for resource:
META-INF/services/org/apache/activemq/transport/ws 
        at
org.apache.activemq.util.FactoryFinder$StandaloneObjectFactory.loadProperties(FactoryFinder.java:96)
[activemq-client-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.util.FactoryFinder$StandaloneObjectFactory.create(FactoryFinder.java:58)
[activemq-client-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.util.FactoryFinder.newInstance(FactoryFinder.java:146)
[activemq-client-5.9.0.jar:5.9.0] 
        at
org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:175)
[activemq-client-5.9.0.jar:5.9.0] 
        ... 35 more 

Could someone help me with this ? 



--
View this message in context: http://activemq.2283324.n4.nabble.com/Could-not-find-factory-class-for-resource-META-INF-services-org-apache-activemq-transport-ws-tp4725594.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.