Jetty with a custom JUL logger

Posted by Alan Williamson on Stack Overflow See other posts from Stack Overflow or by Alan Williamson
Published on 2011-06-29T14:31:40Z Indexed on 2011/06/29 16:22 UTC
Read the original article Hit count: 270

Filed under:
|
|

I feel this should be easier, or I am missing something obvious.

I am trying to use our custom JUL logging library with Jetty. No matter where I put the JAR file for the custom logger, it is not found. I have tried the usual suspects; /lib/, /lib/ext/, /WEB-INF/lib/ and even manually added it to the classpath.

2011-06-29 15:27:34.518::INFO:  Started [email protected]:8080
Can't load log handler "net.aw20.logshot.client.LogShotHandler"
  java.lang.ClassNotFoundException: net.aw20.logshot.client.LogShotHandler
   java.lang.ClassNotFoundException: net.aw20.logshot.client.LogShotHandler
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)

I am starting up Jetty using "-jar start.jar" technique. Searching around, I have spotted a couple of threads that talk about this problem, but with no resolution. Or if there was, they didn't answer with their solution.

Can anyone help on this front?

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about jetty