You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by osian <os...@osian.me.uk> on 2007/02/22 15:14:18 UTC

Exception when running an embedded broker under java 1.4

Hi all,

I am getting the following exception when running ActiveMQ4.1 under java
1.4.2_06

java.lang.NoClassDefFoundError: javax/management/remote/JMXServiceURL
        at
org.apache.activemq.broker.jmx.ManagementContext.createConnector(ManagementContext.java:403)
        at
org.apache.activemq.broker.jmx.ManagementContext.findMBeanServer(ManagementContext.java:301)
        at
org.apache.activemq.broker.jmx.ManagementContext.getMBeanServer(ManagementContext.java:154)
        at
org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java:1228)
        at
org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:508)
        at
org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:163)
        at
org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:153)
        at
net.proact.scm.standalonejms.Application.<init>(Application.java:88)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:308)
        at java.lang.Class.newInstance(Class.java:261)
        at
com.webobjects.appserver.WOApplication.main(WOApplication.java:323)
        at
net.proact.scm.standalonejms.Application.main(Application.java:142)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:71)

I have searched on google, and have added the latest mx4j jar to the path,
but this exception is still thrown, the broker does start up, but with these
exceptions in the log.  If anyone knows of how to get the jar that contains
this class, I would be very greatful,

Thanks,
Osian
-- 
View this message in context: http://www.nabble.com/Exception-when-running-an-embedded-broker-under-java-1.4-tf3272993s2354.html#a9100592
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: [Spam: 5.0] Exception when running an embedded broker under java 1.4

Posted by osian <os...@osian.me.uk>.
Sorry about the delay, I have been out of the office for a couple of days,
and yes, it was the remote jar that was missing,  thankyou very much,

Osian


David Borja-2 wrote:
> 
> Specifically this jar ...
> 
> mx4j-remote.jar
> 
> 
> On 2/23/07, David Borja <ad...@gmail.com> wrote:
>>
>> Hi ...
>>
>> you need to download and set classpath with the mx4j jars:
>>
>> http://sourceforge.net/project/showfiles.php?group_id=47745
>>
>> bye ...
>>
>>
>>
>> On 2/22/07, osian <os...@osian.me.uk> wrote:
>> >
>> >
>> > Hi all,
>> >
>> > I am getting the following exception when running ActiveMQ4.1 under
>> java
>> > 1.4.2_06
>> >
>> > java.lang.NoClassDefFoundError: javax/management/remote/JMXServiceURL
>> >         at
>> > org.apache.activemq.broker.jmx.ManagementContext.createConnector (
>> > ManagementContext.java:403)
>> >         at
>> > org.apache.activemq.broker.jmx.ManagementContext.findMBeanServer(
>> > ManagementContext.java:301)
>> >         at
>> > org.apache.activemq.broker.jmx.ManagementContext.getMBeanServer(
>> > ManagementContext.java :154)
>> >         at
>> >
>> org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java
>> > :1228)
>> >         at
>> > org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java
>> > :508)
>> >         at
>> > org.apache.activemq.broker.BrokerService.addConnector (
>> > BrokerService.java:163)
>> >         at
>> >
>> org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java
>> > :153)
>> >         at
>> > net.proact.scm.standalonejms.Application.<init>(Application.java:88)
>> >         at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> > Method)
>> >         at
>> > sun.reflect.NativeConstructorAccessorImpl.newInstance(
>> > NativeConstructorAccessorImpl.java:39)
>> >         at
>> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance (
>> > DelegatingConstructorAccessorImpl.java:27)
>> >         at java.lang.reflect.Constructor.newInstance(Constructor.java
>> > :274)
>> >         at java.lang.Class.newInstance0(Class.java:308)
>> >         at java.lang.Class.newInstance (Class.java:261)
>> >         at
>> > com.webobjects.appserver.WOApplication.main(WOApplication.java:323)
>> >         at
>> > net.proact.scm.standalonejms.Application.main(Application.java:142)
>> >         at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>> >         at
>> > sun.reflect.NativeMethodAccessorImpl.invoke(
>> > NativeMethodAccessorImpl.java:39)
>> >         at
>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> > DelegatingMethodAccessorImpl.java:25)
>> >         at java.lang.reflect.Method.invoke(Method.java:324)
>> >         at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java
>> > :71)
>> >
>> > I have searched on google, and have added the latest mx4j jar to the
>> > path,
>> > but this exception is still thrown, the broker does start up, but with
>> > these
>> > exceptions in the log.  If anyone knows of how to get the jar that
>> > contains
>> > this class, I would be very greatful,
>> >
>> > Thanks,
>> > Osian
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/Exception-when-running-an-embedded-broker-under-java-1.4-tf3272993s2354.html#a9100592
>> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>> >
>> >
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Exception-when-running-an-embedded-broker-under-java-1.4-tf3272993s2354.html#a9180162
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Exception when running an embedded broker under java 1.4

Posted by David Borja <ad...@gmail.com>.
Specifically this jar ...

mx4j-remote.jar


On 2/23/07, David Borja <ad...@gmail.com> wrote:
>
> Hi ...
>
> you need to download and set classpath with the mx4j jars:
>
> http://sourceforge.net/project/showfiles.php?group_id=47745
>
> bye ...
>
>
>
> On 2/22/07, osian <os...@osian.me.uk> wrote:
> >
> >
> > Hi all,
> >
> > I am getting the following exception when running ActiveMQ4.1 under java
> > 1.4.2_06
> >
> > java.lang.NoClassDefFoundError: javax/management/remote/JMXServiceURL
> >         at
> > org.apache.activemq.broker.jmx.ManagementContext.createConnector (
> > ManagementContext.java:403)
> >         at
> > org.apache.activemq.broker.jmx.ManagementContext.findMBeanServer(
> > ManagementContext.java:301)
> >         at
> > org.apache.activemq.broker.jmx.ManagementContext.getMBeanServer(
> > ManagementContext.java :154)
> >         at
> > org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java
> > :1228)
> >         at
> > org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java
> > :508)
> >         at
> > org.apache.activemq.broker.BrokerService.addConnector (
> > BrokerService.java:163)
> >         at
> > org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java
> > :153)
> >         at
> > net.proact.scm.standalonejms.Application.<init>(Application.java:88)
> >         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > Method)
> >         at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(
> > NativeConstructorAccessorImpl.java:39)
> >         at
> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance (
> > DelegatingConstructorAccessorImpl.java:27)
> >         at java.lang.reflect.Constructor.newInstance(Constructor.java
> > :274)
> >         at java.lang.Class.newInstance0(Class.java:308)
> >         at java.lang.Class.newInstance (Class.java:261)
> >         at
> > com.webobjects.appserver.WOApplication.main(WOApplication.java:323)
> >         at
> > net.proact.scm.standalonejms.Application.main(Application.java:142)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
> >         at
> > sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:324)
> >         at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java
> > :71)
> >
> > I have searched on google, and have added the latest mx4j jar to the
> > path,
> > but this exception is still thrown, the broker does start up, but with
> > these
> > exceptions in the log.  If anyone knows of how to get the jar that
> > contains
> > this class, I would be very greatful,
> >
> > Thanks,
> > Osian
> > --
> > View this message in context:
> > http://www.nabble.com/Exception-when-running-an-embedded-broker-under-java-1.4-tf3272993s2354.html#a9100592
> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >
> >
>

Re: Exception when running an embedded broker under java 1.4

Posted by David Borja <ad...@gmail.com>.
Hi ...

you need to download and set classpath with the mx4j jars:

http://sourceforge.net/project/showfiles.php?group_id=47745

bye ...



On 2/22/07, osian <os...@osian.me.uk> wrote:
>
>
> Hi all,
>
> I am getting the following exception when running ActiveMQ4.1 under java
> 1.4.2_06
>
> java.lang.NoClassDefFoundError: javax/management/remote/JMXServiceURL
>         at
> org.apache.activemq.broker.jmx.ManagementContext.createConnector(
> ManagementContext.java:403)
>         at
> org.apache.activemq.broker.jmx.ManagementContext.findMBeanServer(
> ManagementContext.java:301)
>         at
> org.apache.activemq.broker.jmx.ManagementContext.getMBeanServer(
> ManagementContext.java:154)
>         at
> org.apache.activemq.broker.BrokerService.createBroker(BrokerService.java
> :1228)
>         at
> org.apache.activemq.broker.BrokerService.getBroker(BrokerService.java:508)
>         at
> org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java
> :163)
>         at
> org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java
> :153)
>         at
> net.proact.scm.standalonejms.Application.<init>(Application.java:88)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(
> NativeConstructorAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> DelegatingConstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>         at java.lang.Class.newInstance0(Class.java:308)
>         at java.lang.Class.newInstance(Class.java:261)
>         at
> com.webobjects.appserver.WOApplication.main(WOApplication.java:323)
>         at
> net.proact.scm.standalonejms.Application.main(Application.java:142)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:71)
>
> I have searched on google, and have added the latest mx4j jar to the path,
> but this exception is still thrown, the broker does start up, but with
> these
> exceptions in the log.  If anyone knows of how to get the jar that
> contains
> this class, I would be very greatful,
>
> Thanks,
> Osian
> --
> View this message in context:
> http://www.nabble.com/Exception-when-running-an-embedded-broker-under-java-1.4-tf3272993s2354.html#a9100592
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>