activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From devylon <ingo.viete...@gmail.com>
Subject activemq-ra ClassCastException after restart in glassfish v3
Date Thu, 18 Mar 2010 11:03:47 GMT

I deployed the activemq-ra-5.3.rar to glassfish v3. My MDB can now consume
jms messages from my
activemq broker. everything is fine, BUT when i restart my glassfish domain,
I get the folowing stacktrace: 

after restarting the activemq resource adapter and my application ear
everything is fine again. i tried both either using tcp://127.0.0.1:61616 or
failover:(tcp://127.0.0.1) as connection url.

[#|2010-03-18T11:59:37.053+0100|INFO|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=19;_ThreadName=Thread-1;|2010-03-18
11:59:37,052 ERROR |
org.apache.activemq.ra.ActiveMQEndpointWorker$1.pause(166) | Failed to
connect to broker [failover:(tcp://127.0.0.1:61616)]: 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:92)
        at
com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:492)
        at
com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:528)
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://old.nabble.com/activemq-ra-ClassCastException-after-restart-in-glassfish-v3-tp27944076p27944076.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message