hi,
Having configured two RAs deployed on Glassfish 3.1 to point out to two
endpoints, I got this weird exception trying to connect to one of the
endpoints. Some times, the RA apparently doesn't recognize the connection
string. If I remove the failover thing of the URL, it happen the same
problem, so whatever URL you put in there, it fails. I am not sure where the
issue is, so if anyone can point out how to solve the problem i'd be
pleased.
Thanks

INFO: 2011-07-07 17:55:07,002 [read-pool; w: 3] ERROR ActiveMQEndpointWorker    
    
- Failed to connect to broker
[failover://(tcp://amq-dev:40000,tcp://amq-dev:40001)?randomize=false]:
Could not create Transport. Reason: java.io.IOException: Transport scheme
NOT recognized: [failover]
javax.jms.JMSException: Could not create Transport. Reason:
java.io.IOException: Transport scheme NOT recognized: [failover]
        at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
        at
org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:245)
        at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:258)
        at
org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:185)
        at
org.apache.activemq.ra.ActiveMQResourceAdapter.makeConnection(ActiveMQResourceAdapter.java:133)
        at
org.apache.activemq.ra.ActiveMQEndpointWorker$1.run(ActiveMQEndpointWorker.java:106)
        at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:114)
        at
com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
        at
com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
Caused by: java.io.IOException: Transport scheme NOT recognized: [failover]
        at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
        at
org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:204)
        at
org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:79)
        at
org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:243)
        ... 7 more
Caused by: java.lang.ClassCastException:
org.apache.activemq.transport.failover.FailoverTransportFactory cannot be
cast to org.apache.activemq.transport.TransportFactory
        at
org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:201)
        ... 9 more

--
View this message in context: 
http://activemq.2283324.n4.nabble.com/RA-fails-to-connect-to-endpoint-on-Glassfish-3-1-tp3652107p3652107.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to