You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by skarthik <ka...@necam.com> on 2006/03/29 22:22:50 UTC

NamingService class not found error

Hi,

I have the debug logging enabled and i see the following exception in the
log.
I am using JNDI to lookup the JMS resources and have NOT run into any
problems. But just the same, was wondering which jar contains the class and
how i can get rid of the error.

2006-03-29 15:14:27,730 [main           ] DEBUG ManagementContext             
- Failed to create local registry
java.lang.ClassNotFoundException: mx4j.tools.naming.NamingService
	at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:141)
	at
org.apache.activemq.broker.jmx.ManagementContext.createConnector(ManagementContext.java:312)
	at
org.apache.activemq.broker.jmx.ManagementContext.createMBeanServer(ManagementContext.java:293)
	at
org.apache.activemq.broker.jmx.ManagementContext.findMBeanServer(ManagementContext.java:272)
	at
org.apache.activemq.broker.jmx.ManagementContext.getMBeanServer(ManagementContext.java:145)
	at
org.apache.activemq.broker.BrokerService.registerNetworkConnectorMBean(BrokerService.java:784)
	at
org.apache.activemq.broker.BrokerService.addNetworkConnector(BrokerService.java:236)
	at
org.apache.activemq.broker.BrokerService.setNetworkConnectors(BrokerService.java:671)
	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
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:860)
	at
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:733)
	at
org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:890)
	at
org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:917)
	at
org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:906)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1022)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:823)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
	at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:158)
	at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:48)
	at
org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:40)
	at
org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:56)
	at
org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:81)
	at
org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:62)
	at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:49)
	at
org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:64)
	at
org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:49)
	at
org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:45)
	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 org.apache.activemq.console.Main.runTaskClass(Main.java:135)
	at org.apache.activemq.console.Main.main(Main.java:67)
--
View this message in context: http://www.nabble.com/NamingService-class-not-found-error-t1364475.html#a3657902
Sent from the ActiveMQ - User forum at Nabble.com.


Re: NamingService class not found error

Posted by Hiram Chirino <hi...@hiramchirino.com>.
no reason, I've just committed a fix so that it will be included in
the next binary.

On 3/31/06, skarthik <ka...@necam.com> wrote:
>
> Hi,
>
> Is there any reason why mx4j-tools-2.1.1.jar is NOT bundled with the rest of
> activemq libraries (in RC4) while mx4j-2.1.1.jar or mx4j-remote-2.1.1.jar
> are in?
>
> karthik
> --
> View this message in context: http://www.nabble.com/NamingService-class-not-found-error-t1364475.html#a3690967
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


--
Regards,
Hiram

Re: NamingService class not found error

Posted by skarthik <ka...@necam.com>.
Hi,

Is there any reason why mx4j-tools-2.1.1.jar is NOT bundled with the rest of
activemq libraries (in RC4) while mx4j-2.1.1.jar or mx4j-remote-2.1.1.jar
are in?

karthik
--
View this message in context: http://www.nabble.com/NamingService-class-not-found-error-t1364475.html#a3690967
Sent from the ActiveMQ - User forum at Nabble.com.


Re: NamingService class not found error

Posted by James Strachan <ja...@gmail.com>.
On 3/30/06, skarthik <ka...@necam.com> wrote:
>
> Hi,
>
> I would definitely want to use JMX and right now we are using java 4. The
> thing is I can't find the jar that contains the
> mx4j.tools.naming.NamingService class file, to include in my classpath. It
> is NOT present in the mx4j-2.1.1.jar or mx4j-remote-2.1.1.jar. Is there any
> other related jar that I would have to download?

Try  mx4j-tools-2.1.1.jar

--

James
-------
http://radio.weblogs.com/0112098/

Re: NamingService class not found error

Posted by skarthik <ka...@necam.com>.
Hi,

I would definitely want to use JMX and right now we are using java 4. The
thing is I can't find the jar that contains the
mx4j.tools.naming.NamingService class file, to include in my classpath. It
is NOT present in the mx4j-2.1.1.jar or mx4j-remote-2.1.1.jar. Is there any
other related jar that I would have to download?

Thanks,
karthik
--
View this message in context: http://www.nabble.com/NamingService-class-not-found-error-t1364475.html#a3673175
Sent from the ActiveMQ - User forum at Nabble.com.


Re: NamingService class not found error

Posted by James Strachan <ja...@gmail.com>.
If you enable JMX support then the default behaviour is to create a
remote JMX connector so that you can connect with JConsole (or some
other JMX tool) to view the MBeans...

http://incubator.apache.org/activemq/JMX

However the remote JMX connector depends on the mx4j-jars unless you
run on Java 5 - where there is no such requirement.

So I'd either

* disable JMX
* use Java 5
* add all the mx4j jars to your classpath for 1.4

On 3/29/06, skarthik <ka...@necam.com> wrote:
>
> Hi,
>
> I have the debug logging enabled and i see the following exception in the
> log.
> I am using JNDI to lookup the JMS resources and have NOT run into any
> problems. But just the same, was wondering which jar contains the class and
> how i can get rid of the error.
>
> 2006-03-29 15:14:27,730 [main           ] DEBUG ManagementContext
> - Failed to create local registry
> java.lang.ClassNotFoundException: mx4j.tools.naming.NamingService
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:141)
>         at
> org.apache.activemq.broker.jmx.ManagementContext.createConnector(ManagementContext.java:312)
>         at
> org.apache.activemq.broker.jmx.ManagementContext.createMBeanServer(ManagementContext.java:293)
>         at
> org.apache.activemq.broker.jmx.ManagementContext.findMBeanServer(ManagementContext.java:272)
>         at
> org.apache.activemq.broker.jmx.ManagementContext.getMBeanServer(ManagementContext.java:145)
>         at
> org.apache.activemq.broker.BrokerService.registerNetworkConnectorMBean(BrokerService.java:784)
>         at
> org.apache.activemq.broker.BrokerService.addNetworkConnector(BrokerService.java:236)
>         at
> org.apache.activemq.broker.BrokerService.setNetworkConnectors(BrokerService.java:671)
>         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
> org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:860)
>         at
> org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:733)
>         at
> org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:890)
>         at
> org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:917)
>         at
> org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:906)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1022)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:823)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
>         at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:158)
>         at
> org.apache.xbean.spring.context.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:48)
>         at
> org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:40)
>         at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:56)
>         at
> org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:81)
>         at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:62)
>         at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:49)
>         at
> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:64)
>         at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:49)
>         at
> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:45)
>         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 org.apache.activemq.console.Main.runTaskClass(Main.java:135)
>         at org.apache.activemq.console.Main.main(Main.java:67)
> --
> View this message in context: http://www.nabble.com/NamingService-class-not-found-error-t1364475.html#a3657902
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


--

James
-------
http://radio.weblogs.com/0112098/