activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dejan Bosanac" <de...@nighttale.net>
Subject Re: new ActiveMQConnectionFactory Error
Date Mon, 15 Dec 2008 15:46:19 GMT
Hi,

you are missing some dependecies in your classpath. Can you try adding
activemq-all-x.x.jar to your classpath.

Cheers
Dejan


On Mon, Dec 15, 2008 at 4:07 PM, Iclo <loic.desguin@irislink.com> wrote:

>
> Hello,
>
> I'm an newbie on ActiveMQ and i have this problem when i try create a
> ActiveMQConnectionFactory in this piece of code:
>
> String user = ActiveMQConnectionFactory.DEFAULT_USER;
>                String password =
> ActiveMQConnectionFactory.DEFAULT_PASSWORD;
>                String url = ActiveMQConnectionFactory.DEFAULT_BROKER_URL;
>
>                ActiveMQConnectionFactory connectionFactory= new
> ActiveMQConnectionFactory(user, password, url);
>
> In have this exception:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/management/j2ee/statistics/Stats
>        at java.lang.ClassLoader.defineClass1(Native Method)
>        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>        ........................
>        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>        at
>
> org.apache.activemq.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:83)
>        at
>
> org.apache.activemq.ActiveMQConnectionFactory.<init>(ActiveMQConnectionFactory.java:123)
>        at receiver.ReceiverTest.makeSession(ReceiverTest.java:116)
>
> If someone have an idea ?
> Regards
>
> --
> View this message in context:
> http://www.nabble.com/new-ActiveMQConnectionFactory-Error-tp21015515p21015515.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

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