0 Replies Latest reply on Aug 23, 2008 4:49 PM by kunle68

    JBPM and JMSMQ

    kunle68

      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