Have you read: http://wiki.eclipse.org/Jetty/Tutorial/Sifting_Logs_with_Logback
? I have followed this tutorial and successfully use slf4j for logging within Jetty. Then, have a look at start.ini, especially the OPTIONS-Flag. The order in which the particular items appear is relevant. Also try java - jar start.jar --list-options. I guess in your case your custom library just has been loaded before slf4j. Regards, Andreas On Fri, Nov 23, 2012 at 11:26 AM, Oliver Wulff <[email protected]> wrote: > Hi there > > I've read that the slf4j library must be deployed thus slf4j is used as > the logging framework. I've deployed that in <jetty.home>/lib and > configured debug level. Logging works fine. > > I've deployed some libraries (custom authenticator) in > <jetty.home>/lib/ext. Also these libraries uses SLF4J but I get a > ClassNotFoundException... > > java.lang.ClassNotFoundException: org.slf4j.LoggerFactory > at java.net.URLClassLoader$1.run(URLClassLoader.java:217) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:205) > at java.lang.ClassLoader.loadClass(ClassLoader.java:321) > at java.lang.ClassLoader.loadClass(ClassLoader.java:266) > at > org.apache.cxf.fediz.core.config.FederationContext.<cli<http://?ae=Item&a=New&t=IPM.Note&cc=MTQuMS4zNTUuMixlbi1HQiw0Mjk0OTY3Mjk1LEhUTUwsMCww&pspid=_1353666036932_943420946#> > nit>(FederationContext.java:54) > > Does the libraries in lib/ext not see the classes of <jetty.home>/lib? > > Then I've deployed slf4j again in lib/ext. Now, I don't see logs anymore > even debug is still set. > > Thanks > Oli > > > _______________________________________________ > jetty-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/jetty-users > >
_______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
