Re: MX4J and J2SE 5.0
Simone Bordet <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, > I tried running Jonas under JDK 1.5 with MX4J on the bootclasspath a > month or two ago and ran into an error. I didn't care to investigate > any further at that time. > > I tried it again today with today's checkout of Jonas CVS HEAD. > > Here's what I get: > > | $ cd $JONAS_ROOT > | $ mv lib/commons/jonas/mx4j /var/tmp > | $ export JAVA_OPTS=-Xbootclasspath/p:/var/tmp/mx4j/mx4j.jar:/var/tmp/mx4j/mx4j-remote.jar:/var/tmp/mx4j/mx4j-tools.jar > | $ jonas start -fg > | JONAS_BASE set to /var/vadim/scratch/jonas.root > | 2005-11-03 13:15:11,024 : Server.<init> : JVM used is 1.5.0_04 version > | of Sun Microsystems Inc. vendor on Linux 2.6.13-1.1526_FC4/i386 OS. > | 2005-11-03 13:15:11,031 : PolicyProvider.init : Using JOnAS > | PolicyConfigurationFactory provider and JOnAS Policy provider > | Created MBeanServer with ID: > | -74ed15e5:1075756e3f5:-8000:busy-beaver.boston.redhat.com:1 > | 2005-11-03 13:15:11,211 : NameServiceManager.startNonStartedNS : Name > | service for jrmp is started on port 1099 > | 2005-11-03 13:15:11,240 : ServiceManager.startRegistry : registry > | service started > | Error during execution of org.objectweb.jonas.server.Server : > | org/apache/commons/logging/LogFactory > | java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory > | at mx4j.log.CommonsLogger.setCategory(CommonsLogger.java:27) > | at mx4j.log.Log.createLogger(Log.java:211) > | at mx4j.log.Log.getLogger(Log.java:180) > | at javax.management.MBeanServerFactory.getLogger(MBeanServerFactory.java:34) > | at javax.management.MBeanServerFactory.findMBeanServer(MBeanServerFactory.java:105) > | at org.objectweb.jonas.jmx.AbsJmxServiceImpl.doInit(AbsJmxServiceImpl.java:89) > | at org.objectweb.jonas.jmx.JmxServiceImpl.doInit(JmxServiceImpl.java:175) > | at org.objectweb.jonas.service.AbsServiceImpl.init(AbsServiceImpl.java:72) > | at org.objectweb.jonas.service.ServiceManager.startJmx(ServiceManager.java:311) > | at org.objectweb.jonas.server.Server.start(Server.java:430) > | at org.objectweb.jonas.server.Server.main(Server.java:181) > | 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:585) > | at org.objectweb.jonas.server.Bootstrap.main(Bootstrap.java:97) > > That's what made me think that MX4J needed commons-logging. Strange. I'm wondering if in some script someone sets the -Dmx4j.log.prototype=mx4j.log.CommonsLogger system property. It's the only way to make MX4J use jcl. Simon -- http://bordet.blogspot.com ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php