activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: ActiveMQ HTTP
Date Thu, 28 Jan 2010 08:32:13 GMT
HI,

you need also commons-httpclient (http://hc.apache.org/httpclient-3.x/) in
your classpath as well.

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Wed, Jan 27, 2010 at 6:23 PM, sandeep1 <
sandeep.poreddy@pedigreetechnologies.com> wrote:

>
> Have a problem communicating with the ActiveMQ server using HTTP.
> The url is http://serveraddress:8161
>
> SEVERE: Cannot create a ActiveMQ connection
> javax.jms.JMSException: Could not create Transport. Reason:
> java.io.IOException: Transport scheme NOT recognized: [http]
>        at
>
> org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
>        at
>
> org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:239)
>        at
>
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:252)
>        at
>
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:224)
>        at
>
> org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:172)
>        at
>
> com.pedigree.service.telemetry.gateway.esper.config.ActiveMQConfiguration.createConnection(ActiveMQConfiguration.java:80)
>        at
>
> com.pedigree.service.telemetry.gateway.esper.jms.GatewayJMS.sendGatewayDataToJMSQueue(GatewayJMS.java:57)
>        at
>
> com.pedigree.service.telemetry.gateway.esper.jms.GatewayJMS.main(GatewayJMS.java:48)
> Caused by: java.io.IOException: Transport scheme NOT recognized: [http]
>        at
>
> org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
>        at
>
> org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:204)
>        at
>
> org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:79)
>        at
>
> org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:237)
>        ... 6 more
> Caused by: java.io.IOException: Could not find factory class for resource:
> META-INF/services/org/apache/activemq/transport/http
>        at
>
> org.apache.activemq.util.FactoryFinder.doFindFactoryProperies(FactoryFinder.java:92)
>        at
> org.apache.activemq.util.FactoryFinder.newInstance(FactoryFinder.java:52)
>        at
> org.apache.activemq.util.FactoryFinder.newInstance(FactoryFinder.java:42)
>        at
>
> org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:201)
>        ... 8 more
>
>
>
> On including the activmq-optional.jar in the classpath, the following
> exception is thrown:
>
>
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/httpclient/HttpMethod
>        at
>
> org.apache.activemq.transport.http.HttpTransportFactory.createTransport(HttpTransportFactory.java:59)
>        at
>
> org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:141)
>        at
>
> org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:51)
>        at
>
> org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:80)
>        at
>
> org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:237)
>        at
>
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:252)
>        at
>
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:224)
>        at
>
> org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:172)
>        at
>
> com.pedigree.service.telemetry.gateway.esper.config.ActiveMQConfiguration.createConnection(ActiveMQConfiguration.java:80)
>        at
>
> com.pedigree.service.telemetry.gateway.esper.jms.GatewayJMS.sendGatewayDataToJMSQueue(GatewayJMS.java:57)
>        at
>
> com.pedigree.service.telemetry.gateway.esper.jms.GatewayJMS.main(GatewayJMS.java:48)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.httpclient.HttpMethod
>        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)
>        ... 11 more
>
>
> Sandeep
> --
> View this message in context:
> http://old.nabble.com/ActiveMQ-HTTP-tp27343524p27343524.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message