2 Replies Latest reply on Apr 1, 2010 8:28 AM by PÃ¥l Evensen

    Problem sending messages with STOMP

    PÃ¥l Evensen Novice

      When I send a message to the HornetQ stomp acceptor, I get the following error:

      [main] 23:47:38,774 INFO [org.hornetq.integration.transports.netty.NettyAcceptor]  Started Netty Acceptor version 3.2.0.BETA1-r2215
      [main] 23:47:38,800 INFO [org.hornetq.integration.transports.netty.NettyAcceptor]  Started Netty Acceptor version 3.2.0.BETA1-r2215
      [main] 23:47:38,801 INFO [org.hornetq.core.server.impl.HornetQServerImpl]  HornetQ Server version 2.0.0.GA (Hornet Queen, 113) started
      Exception in thread "Thread-0 (group:HornetQ-remoting-threads4059123-5520561)" java.lang.NoClassDefFoundError: org/jboss/netty/channel/StaticChannelPipeline
      at org.hornetq.integration.transports.netty.NettyAcceptor$1.getPipeline(NettyAcceptor.java:351)
      at org.jboss.netty.channel.socket.oio.OioServerSocketPipelineSink$Boss.run(OioServerSocketPipelineSink.java:194)
      at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
      at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
      at org.jboss.netty.util.VirtualExecutorService$ChildExecutorRunnable.run(VirtualExecutorService.java:179)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.ClassNotFoundException: org.jboss.netty.channel.StaticChannelPipeline
      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      ... 8 more

       

      I have built the code from the trunk, and copied the jars over to the hornetq-2.0.0.GA distribution and added the following to the hornetq-configuration.xml:

       

      <acceptor name="stomp-acceptor">

      <factory-class>org.hornetq.integration.transports.netty.NettyAcceptorFactory</factory-class>

      <param key="protocol"  value="stomp"/>

      <param key="port"  value="61613"/>

      </acceptor>

       

      Could anyone please point me in the right direction on where to look here?