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 <[EMAIL PROTECTED]> 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/

Reply via email to