[jboss-user] [JBoss jBPM] - JBPM and JMSMQ

curatiotech do-not-reply at jboss.com
Sat Aug 23 16:49:25 EDT 2008


I am trying to hook up my spring application with JBPM and JMS for asynchronous communications, I am getting a JNDI classcast exception when I deploy JmsMessageFactoryImpl as the message factory.

I was wondering if any one else has come across this problem,my understanding is that JBoss is providing a JMSConnectionFactoryImpl instead of the ConnectionFactory specified in web.xml resource-ref and expected by the JmsMessageFactoryImpl.

Please see stack below, I would appreciate any help.

       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
       at org.jboss.Main.boot(Main.java:200)
       at org.jboss.Main$1.run(Main.java:508)
       at java.lang.Thread.run(Thread.java:619)
aused by: java.lang.ClassCastException: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl cannot be cast to javax.jms.ConnectionFactory
tionFactory
       at org.jbpm.msg.jms.JmsMessageServiceFactoryImpl.(JmsMessageServiceFactoryImpl.java:74)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
       at java.lang.Class.newInstance0(Class.java:355)
       at java.lang.Class.newInstance(Class.java:308)
       at org.jbpm.configuration.BeanInfo.createObject(BeanInfo.java:86)
       ... 153 more



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172154#4172154

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172154



More information about the jboss-user mailing list