Greetings,

I'm new to ActiveMQ and only somewhat familiar with Java as well. I've experimented with the ActiveMQ 5.1.0 binary+jetty release and I've been able to send and receive messages via the stomp and ajax connectors.

I'd like to manually start piecing together a build of Active MQ and Jetty so that I can gain a better understanding of how they fit together, and to better understand how to customize the Java components involved.

I downloaded and installed the Jetty Debian binary packages from mortbay.org.

I've followed the 'Building' instructions found here:

http://activemq.apache.org/building.html

After completion, I'm not confident about how to complete the install.

I found three .war files within the build tree:

apt:/usr/src/build/activemq/apache-activemq-5.1.0/src# find . -name "*\.war"
./activemq-web-demo/target/activemq-web-demo-5.1.0.war
./activemq-web-console/target/activemq-web-console-5.1.0.war
./activemq-fileserver/target/activemq-fileserver-5.1.0.war

I copied these three files into the /var/lib/jetty6/webapps directory on my test server, restarted Jetty and I was able to go to:

http://<ip>:8080/activemq-web-demo-5.1.0/

and see the 'ActiveMQ Web Connector' page, however the demos don't work. If I try the 'Send a Message' demo, I get an error:

HTTP ERROR: 500

Could not create Transport. Reason: java.io.IOException: Server TransportAcceptListener is null.

RequestURI=/activemq-web-demo-5.1.0/message/FOO/BAR
Caused by:

javax.jms.JMSException: Could not create Transport. Reason: java.io.IOException: Server TransportAcceptListener is null. at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35) at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:237) at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:250) at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:222) at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:170) at org.apache.activemq.web.WebClient.getConnection(WebClient.java:221) at org.apache.activemq.web.WebClient.createSession(WebClient.java:302)
        at org.apache.activemq.web.WebClient.getSession(WebClient.java:214)
at org.apache.activemq.web.MessageServletSupport.getDestination(MessageServletSupport.java:310) at org.apache.activemq.web.MessageServletSupport.getDestination(MessageServletSupport.java:259) at org.apache.activemq.web.MessageServlet.doPost(MessageServlet.java:88)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097) at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:46) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) Caused by: java.io.IOException: Server TransportAcceptListener is null. at org.apache.activemq.transport.vm.VMTransportServer.connect(VMTransportServer.java:72) at org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:140) at org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:53) at org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:47) at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:76) at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:235)
        ... 31 more

Caused by:

java.io.IOException: Server TransportAcceptListener is null.
at org.apache.activemq.transport.vm.VMTransportServer.connect(VMTransportServer.java:72) at org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:140) at org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:53) at org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:47) at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:76) at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:235) at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:250) at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:222) at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:170) at org.apache.activemq.web.WebClient.getConnection(WebClient.java:221) at org.apache.activemq.web.WebClient.createSession(WebClient.java:302)
        at org.apache.activemq.web.WebClient.getSession(WebClient.java:214)
at org.apache.activemq.web.MessageServletSupport.getDestination(MessageServletSupport.java:310) at org.apache.activemq.web.MessageServletSupport.getDestination(MessageServletSupport.java:259) at org.apache.activemq.web.MessageServlet.doPost(MessageServlet.java:88)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097) at org.apache.activemq.web.SessionFilter.doFilter(SessionFilter.java:46) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

Powered by Jetty://




I assume that I'm missing some critical configuration, such as setting up the transport connectors. How should I proceed?

Thank You,
- Dan

Reply via email to