Community
Participate
Working Groups
Build Identifier: 7.2.0.v20101020 org.eclipse.jetty.jmx bundle tries to load various non-existing classes like: org.eclipse.jetty.server.handler.jmx.ScopedHandlerMBean org.eclipse.jetty.server.session.jmx.SessionHandlerMBean org.eclipse.jetty.servlet.jmx.ServletContextHandlerMBean org.eclipse.jetty.util.component.jmx.AbstractLifeCycleMBean ... When running on latest Apache Felix, it prints stacktraces to the console. See also: http://www.mail-archive.com/users@felix.apache.org/msg08593.html Reproducible: Always Steps to Reproduce: Use OSGi and this code with latest Apache Felix: Server server = new Server(); ... Thread.currentThread().setContextClassLoader(MBeanContainer.class.getClassLoader()); // for JMX server.getContainer().addEventListener(mBeanContainer); mBeanContainer.start(); server.start(); Then watch logs/console.
How is the progress?
Created attachment 190177 [details] patch with the fix attached patch against jetty 7.3.0 The problem is that Apache Felix adds more details to ClassNotFoundException message. Example: org.eclispe.jetty.jmx.JettyConnectorMBean not found by org.eclipse.jetty.jmx [41]
Martin, Thank you very much for your patch. I've modified it a little bit, and need to test it to make sure everything is working correctly. It will be applied to the codebase shortly. Thanks, Michael
Created attachment 191172 [details] Modified patch
Created attachment 191173 [details] Updated patch
I've committed the latest patch that I've posted. Please re-open this issue if this fix doesn't work for you. Committed r3416.