Hi, The question is where the MX4J jar IS, and where is it EXPECTED to be by this com.jario library. If the two are different, that's why you're getting the error. Specifically, it looks like com.jario is looking for MX4J in the context classloader. In Tomcat, MX4J is on the bootstrap classloader. The two are different...
Yoav Shapira http://www.yoavshapira.com >-----Original Message----- >From: Ross Smith [mailto:[EMAIL PROTECTED] >Sent: Wednesday, November 17, 2004 9:32 AM >To: [EMAIL PROTECTED] >Subject: Servlet problem with Tomcat > >Hi, > >I am having an infuriating problem with a servlet in Tomcat 4.1.31: >whenever I >start tomcat, I get the error attached below. As far as I can see, the >problem >seems to lie with mx4j/tools/naming/NamingService not being found, even >though >the JAR containing this class is present. I suspect that my current >development install of tomcat is improperly configured, as the servlet >works >fine in the deployment server (Sun One Application Server 7), though I am >far >from sure. > >Could anyone suggest any possible causes for this error? Or at least point >me in >the right direction? I apologise if this is a simple Java/Servlet problem, >but >neither my colleagues or I have had any success with this matter. Any and >all >help would be greatly appreciated. > >Regards, > >Ross Smith > > > >63 [15.11.04 15:56:57,531] [main] ERROR com.jario.server.jmx.JMXManager >- >registerJMXConnector() ReflectionException ex >javax.management.ReflectionException: The MBean class could not be loaded >by the >context classloader > at >com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(MBeanInstantiat orIm >pl.java:432) > at >com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.findClass(MBeanInstantiat orIm >pl.java:72) > at >com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Defau ltMB >eanServerInterceptor.java:279) > at >com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.createMBean(Defau ltMB >eanServerInterceptor.java:227) > at >com.sun.jmx.mbeanserver.JmxMBeanServer.createMBean(JmxMBeanServer.java: 354) > at >com.jario.server.jmx.JMXManager.registerJMXConnector(JMXManager.java:88 ) > at com.jario.server.jmx.JMXManager.startJMX(JMXManager.java:67) > at >com.jario.server.connection.ServerContextListener.contextInitialized(Se rver >ContextListener.java:65) > at >org.apache.catalina.core.StandardContext.listenerStart(StandardContext. java >:3212) > at >org.apache.catalina.core.StandardContext.start(StandardContext.java:355 4) > at >org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j ava: >774) > at >org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:760) > at >org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548) > at >org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo yer. >java:260) > at >org.apache.catalina.core.StandardHost.install(StandardHost.java:741) > at >org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:445) > at >org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:353) > at >org.apache.catalina.startup.HostConfig.start(HostConfig.java:671) > at >org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3 11) > at >org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo >rt.java:119) > at >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149) > at >org.apache.catalina.core.StandardHost.start(StandardHost.java:707) > at >org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) > at >org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) > at >org.apache.catalina.core.StandardService.start(StandardService.java:450 ) > at >org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) > at org.apache.catalina.startup.Catalina.start(Catalina.java:463) > at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) > at org.apache.catalina.startup.Catalina.process(Catalina.java:129) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 >9) > at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp >l.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) >Caused by: java.lang.ClassNotFoundException: >mx4j/tools/naming/NamingService > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:164) > at >com.sun.jmx.mbeanserver.MBeanInstantiatorImpl.loadClass(MBeanInstantiat orIm >pl.java:429) > ... 33 more > >-- >Ross Smith >Software Engineer >the Kelvin Institute >http://www.kelvininstitute.com/ > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
