2 Replies Latest reply on Jul 22, 2004 3:43 AM by geir

    ClassNotFoundException: org.jboss.resource.connectionmanager

    geir Newbie

      Hi,

      I am doing a upgrade from jboss 3.2.3 to jboss.3.2.5. In the process i am also changing JMS persistence from HsqlDb to mckoi.

      it seems to be working fine, but when testing high traffic I have some problems on the client side. (POJO client)

      I have the jbossall-client.jar in the classpath for the client. Am I missing a jar in the client classpath?

      My client is doing something like:

      public RelayMessageHandler implements MessageListener {
       ...
       public void init() {
       QueueConnection qConnection = jmsConnection.getQueueConnetion();
      
       qInSession = qConnection.createQueueSession(false, QueueSession.CLIENT_ACKNOWLEDGE);
       // Initialize listener
       rcvQueue = namingFactory.getQueue(sInQueue);
       rec = qInSession.createReceiver(rcvQueue, selector);
       rec.setMessageListener(this);
       }
      
       public void onMessage(Message msg) {
       if (!getShutdown()) {
       try {
       .....
      
       msg.acknowledge();
       } catch (JMSException e) {
       log.error("Rollback: Could not relay message", e);
       initJMS(); // Since connection is restarte recover is impicit
       } catch (YAPMessageFormatException e) {
       log.error("Rollback: Could not relay message", e);
       qInSession.recover();
       } catch (MessageHandlerException e) {
       log.error("Rollback: Could not relay message", e);
       qInSession.recover();
       }
       }
      }
      


      Stacktrace:

      04-07-21 12:15:54,828 [DEBUG] no.masp.cman.util.jms.JMSConnection: JMSConnection failed
      org.jboss.mq.SpyJMSException: Failed to read msgType:1; - nested throwable: (java.lang.ClassNotFoundException: org.jboss.resource.connectionmanager.JBossLocalXAException)
       at org.jboss.mq.Connection.asynchFailure(Connection.java:429)
       at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:145)
       at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:398)
       at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:327)
       at java.lang.Thread.run(Thread.java:534)
      Caused by: java.lang.ClassNotFoundException: org.jboss.resource.connectionmanager.JBossLocalXAException
       at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:219)
       at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:558)
       at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
       at org.jboss.mq.il.uil2.msgs.BaseMsg.read(BaseMsg.java:367)
       at org.jboss.mq.il.uil2.msgs.AcknowledgementRequestMsg.read(AcknowledgementRequestMsg.java:52)
       at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:305)
       ... 1 more
      2004-07-21 12:15:54,828 [ERROR] no.masp.cman.broker.external.RelayMessageHandler: Rollback: Could not relay message
      org.jboss.mq.SpyJMSException: Cannot acknowlege a message; - nested throwable: (java.lang.ClassNotFoundException: org.jboss.resource.connectionmanager.JBossLocalXAException)
       at org.jboss.mq.Connection.send(Connection.java:1186)
       at org.jboss.mq.SpySession.doAcknowledge(SpySession.java:175)
       at org.jboss.mq.SpyMessage.doAcknowledge(SpyMessage.java:322)
       at org.jboss.mq.SpyMessage.acknowledge(SpyMessage.java:234)
       at no.masp.cman.broker.external.MessageHandler.onMessage(MessageHandler.java:174)
       at org.jboss.mq.SpyMessageConsumer.run(SpyMessageConsumer.java:680)
       at java.lang.Thread.run(Thread.java:534)
      Caused by: java.lang.ClassNotFoundException: org.jboss.resource.connectionmanager.JBossLocalXAException
       at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:219)
       at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:558)
       at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
       at org.jboss.mq.il.uil2.msgs.BaseMsg.read(BaseMsg.java:367)
       at org.jboss.mq.il.uil2.msgs.AcknowledgementRequestMsg.read(AcknowledgementRequestMsg.java:52)
       at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:305)
       ... 1 more