Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-270

WebSocket transport does not work out of box on Fuse MQ 7.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBoss A-MQ 6.0
    • 7.1.0.fuse-046
    • None
    • None

      I configured WebSocket transport by modifying "fuse-mq-7.1.0.fuse-047/etc/activemq.xml" file to add an extra transportConnector for websocket:| <transportConnectors>|

      <transportConnector name="openwire" uri="tcp://0.0.0.0:0?maximumConnections=1000"/>
      <transportConnector name="websocket" uri="ws://0.0.0.0:61614"/>
      </transportConnectors>

      And I got following error:2013-04-04 11:05:34,056 | INFO | Q Broker: fusemq | TransportConnector | tivemq.broker.TransportConnector 246 | 104 - org.apache.activemq.activemq-core - 5.7.0.fuse-71-047 | Connector openwire Started
      2013-04-04 11:05:34,058 | ERROR | Q Broker: fusemq | BrokerService | he.activemq.broker.BrokerService 581 | 104 - org.apache.activemq.activemq-core - 5.7.0.fuse-71-047 | Failed to start Apache ActiveMQ (fusemq, ID:jluoMac-49824-1365069932959-0:1). Reason: java.io.IOException: Transport Connector could not be registered in JMX: Transport scheme NOT recognized:[ws]
      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)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1977)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:2468)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2385)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.apache.activemq.broker.BrokerService.doStartBroker(BrokerService.java:684)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.apache.activemq.broker.BrokerService.startBroker(BrokerService.java:642)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.apache.activemq.broker.BrokerService.start(BrokerService.java:578)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.fusesource.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration$$anon$3.run(ActiveMQServiceFactory.scala:307)[116:org.fusesource.mq.mq-fabric:7.1.0.fuse-047]
      Caused by: java.io.IOException: Transport scheme NOT recognized:[ws]
      at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:196)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:116)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:310)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:136)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:105)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1972)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      ... 6 more
      Caused by: java.io.IOException: Service not found: 'META-INF/services/org/apache/activemq/transport/ws'
      at org.apache.activemq.util.osgi.Activator.create(Activator.java:176)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.apache.activemq.util.FactoryFinder.newInstance(FactoryFinder.java:146)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      at org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:193)[104:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
      ... 11 more
      2013-04-04 11:05:34,059 | INFO | Q Broker: fusemq | BrokerService | he.activemq.broker.BrokerService 730 | 104 - org.apache.activemq.activemq-core - 5.7.0.fuse-71-047 | Apache ActiveMQ 5.7.0.fuse-71-047 (fusemq, ID:jluoMac-49824-1365069932959-0:1) is shutting down
      2013-04-04 11:05:36,057 | INFO | Q Broker: fusemq | TransportConnector | tivemq.broker.TransportConnector 286 | 104 - org.apache.activemq.activemq-core - 5.7.0.fuse-71-047 | Connector openwire Stopped
      2013-04-04 11:05:36,058 | INFO | Q Broker: fusemq | TransportConnector | tivemq.broker.TransportConnector 286 | 104 - org.apache.activemq.activemq-core - 5.7.0.fuse-71-047 | Connector websocket Stopped

              Unassigned Unassigned
              rhn-support-qluo Joe Luo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: