You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by rabidgremlin <ra...@gmail.com> on 2006/08/30 06:13:32 UTC

Broker URI not working under jdk1.4.2

Hi all,

I have a very simple app with an embedded broker:

...
BrokerService broker = BrokerFactory.createBroker(new URI(args[0]));
broker.start();
..

When I run this under JDK 1.5.0_05 with the following line:

broker
"broker:(tcp://127.0.0.1:61617,network:static:tcp://127.0.0.1:61616)?persistent=false&useJmx=false"

Everything works as expected.

When I run it under JDK 1.4.2_08 the URI appears to be ignored and a broker
with a default configuration starts up (and crashes with a
java.lang.NoClassDefFoundError:
javax/management/MalformedObjectNameException)

Anyone have any ideas ?

Jonathan

Re: Broker URI not working under jdk1.4.2

Posted by rabidgremlin <ra...@gmail.com>.
Cool. That was it.

Strange that it failed to parse the URI (I can understand why the exception
gets thrown but would be unrelated to parsing the URI I woudl have thought).

Jonathan

On 8/30/06, Adrian Co <ac...@exist.com> wrote:
>
> Hi,
>
> Can you check if mx4j is in the classpath?
>
> rabidgremlin wrote:
> > Hi all,
> >
> > I have a very simple app with an embedded broker:
> >
> > ...
> > BrokerService broker = BrokerFactory.createBroker(new URI(args[0]));
> > broker.start();
> > ..
> >
> > When I run this under JDK 1.5.0_05 with the following line:
> >
> > broker
> >
> "broker:(tcp://127.0.0.1:61617,network:static:tcp://127.0.0.1:61616)?persistent=false&useJmx=false"
> >
> >
> > Everything works as expected.
> >
> > When I run it under JDK 1.4.2_08 the URI appears to be ignored and a
> > broker
> > with a default configuration starts up (and crashes with a
> > java.lang.NoClassDefFoundError:
> > javax/management/MalformedObjectNameException)
> >
> > Anyone have any ideas ?
> >
> > Jonathan
> >
>
>

Re: Broker URI not working under jdk1.4.2

Posted by Adrian Co <ac...@exist.com>.
Hi,

Can you check if mx4j is in the classpath?

rabidgremlin wrote:
> Hi all,
>
> I have a very simple app with an embedded broker:
>
> ...
> BrokerService broker = BrokerFactory.createBroker(new URI(args[0]));
> broker.start();
> ..
>
> When I run this under JDK 1.5.0_05 with the following line:
>
> broker
> "broker:(tcp://127.0.0.1:61617,network:static:tcp://127.0.0.1:61616)?persistent=false&useJmx=false" 
>
>
> Everything works as expected.
>
> When I run it under JDK 1.4.2_08 the URI appears to be ignored and a 
> broker
> with a default configuration starts up (and crashes with a
> java.lang.NoClassDefFoundError:
> javax/management/MalformedObjectNameException)
>
> Anyone have any ideas ?
>
> Jonathan
>