You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Hendry <he...@elasitas.com> on 2006/12/26 07:48:53 UTC

ActiveMQ integration with Jetty

Hi all,

I am new to Active MQ, right now I'm trying to integrate ActiveMQ with 
Jetty, I followed the instructions on

http://docs.codehaus.org/display/JETTY/Integrating%20with%20ActiveMQ

but when I run it, I got errors (sorry if it's too long):

Dec 26, 2006 1:41:07 PM org.apache.activemq.jndi.JNDIReferenceFactory 
createReference
SEVERE: null
java.lang.NullPointerException
         at java.util.Hashtable.put(Hashtable.java:396)
         at java.util.Properties.setProperty(Properties.java:128)
         at 
org.apache.activemq.ActiveMQConnectionFactory.populateProperties(ActiveMQConnectionFactory.java:416)
...

2006-12-26 13:41:07.082::WARN:  Config error at <New id="cf" 
class="org.mortbay.jetty.plus.naming.Resource"><Arg>jms/connectionFactory</Arg><Arg>
     <New 
class="org.apache.activemq.ActiveMQConnectionFactory"><Arg>broker:(tcp://localhost:61616,network:static:tcp://remotehost:61616)?persistent=false</Arg></New>
   </Arg></New>
2006-12-26 13:41:07.092::WARN:  EXCEPTION
java.lang.reflect.InvocationTargetException
         at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         ...

Caused by: javax.naming.NamingException
         at 
org.apache.activemq.jndi.JNDIReferenceFactory.createReference(JNDIReferenceFactory.java:109)
         at 
org.apache.activemq.jndi.JNDIBaseStorable.getReference(JNDIBaseStorable.java:80)
         ... 15 more

2006-12-26 13:41:07.289::WARN:  Nested in 
java.lang.reflect.InvocationTargetException:
javax.naming.NamingException
         at 
org.apache.activemq.jndi.JNDIReferenceFactory.createReference(JNDIReferenceFactory.java:109)
...


Could anyone help me where's the error? Thanx.

-- 
Regards,
Hendry

Re: ActiveMQ integration with Jetty

Posted by r-a-v-i <RV...@idc.com>.
Steps are pretty easy :

a) Download active mq src.

b) set up maven in the path.

c) cd ..\incubator-activemq-4.0.2-src\activemq-web-console

d) mvn jetty:run

That's it - you are done.
-- 
View this message in context: http://www.nabble.com/ActiveMQ-integration-with-Jetty-tf2881521.html#a8065312
Sent from the ActiveMQ - User mailing list archive at Nabble.com.