Error on connecting with STOMP
ss5nembokid Oct 26, 2010 12:26 PMHi!
I have download and install FUSE ESB 4.3.0.
I deploy and use bridge-camel example of FUSE ESB 3.5.0 because the version of FUSE 4.3.0 doesn't work: Maven can't find all files needed for that version.
I write a Java program that consumes messages from the queue in the example using JMS, and all works.
Then I try to use STOMP with PHP to do the same thing I did with Java.
But it doesn't work.
I tried to connect to STOMP port 61613 with Telnet but if I send STOMP commands I don't receive any answers.
So I saw in FUSE ESB console this message:
karaf@root> Exception in thread "ActiveMQ Transport Server Thread Handler: stomp
://localhost:61613" java.lang.NoClassDefFoundError: com/thoughtworks/xstream/io/
HierarchicalStreamDriver
at org.apache.activemq.transport.stomp.StompTransportFactory.compositeCo
nfigure(StompTransportFactory.java:44)
at org.apache.activemq.transport.TransportFactory.serverConfigure(Transp
ortFactory.java:270)
at org.apache.activemq.transport.tcp.TcpTransportServer.handleSocket(Tcp
TransportServer.java:420)
at org.apache.activemq.transport.tcp.TcpTransportServer$1.run(TcpTranspo
rtServer.java:353)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: com.thoughtworks.xstream.io.Hierarc
hicalStreamDriver
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:506)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 5 more
The configuration of ActiveMQ broker seems to be ok: I used JConsole and I saw the STOMP connector and so on...
I tried to download ActiveMQ alone from http://activemq.apache.org/.
I tested it with a Java program to send and to get messages with JMS using a queue.
I tested it using STOMP with Telnet and with PHP.
All works...
What I have to do to work with STOMP and FUSE ESB 4.3.0?
Does the basic configuration of FUSE ESB 4.3.0 miss some jar that I have to install?
Sorry about my english, I'm an italian student and I'm new about ESB.
I how there is someone that can help me here.
Thank you
"News":
I have installed FUSE ESB 3.5.0 and with this version is all ok.
Why with FUSE ESB version 4.3.0 STOMP has that problem?
Is it only a problem of missing jars?
Thank you
Edited by: ss5nembokid on Oct 25, 2010 1:40 PM
"News 2"
I taked from lib directory in Fuse ESB 3.5.0 the file xstream-1.3.jar and I put it to lib directory of Fuse ESB 4.3.0 and now the example works and I can take without errors the messages from the queue even with a PHP script using STOMP
( http://stomp.fusesource.org/documentation/php/index.html )
Edited by: ss5nembokid on Oct 26, 2010 4:21 PM