[logback-user] DynamicClassLoadingException - How does class loading in logback works?
Jenny
jenny_uy81 at yahoo.com
Thu Nov 13 03:05:54 CET 2008
I found a solution. I just put my customAppenderPackage.jar in the same level (same directory) where my logback.jar files are. thanks
--- On Wed, 11/12/08, Jenny <jenny_uy81 at yahoo.com> wrote:
From: Jenny <jenny_uy81 at yahoo.com>
Subject: [logback-user] DynamicClassLoadingException - How does class loading in logback works?
To: "logback users list" <logback-user at qos.ch>
Date: Wednesday, November 12, 2008, 10:59 AM
Hi,
I'm sorry for the earlier posts, my keyboard enter key was malfunctioning.
I'm using weblogic 10, and deployed my application as EAR. My custom appender is located in the WEB-INF/lib. I am getting this ClassNotFoundException.
app.ear
- web1.war
- WEB-INF/lib
customAppenderPackage.jar
So I've tried the following but still it can't find it:
- deploying customAppenderPackage.jar as a shared library
- putting in APP-INF/lib/customAppenderPackage.jar
- adding in the MANIFEST Class-Path
- adding as "library-ref" in weblogic.xml and weblogic-application.xml
The only one that worked is when I moved the customAppenderPackage.jar in my weblogic server domain library directory. But I don't want this... I want it to be inside my EAR package.
Any ideas how to solve this?
How does class loading in logback works?
Caused by: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.mycompany.CustomeAppender
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:45)
at at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:23)
at at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:50)
at ... 51 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.mycompany.CustomeAppender
at at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at at java.security.AccessController.doPrivileged(Native Method)
at at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
_______________________________________________
Logback-user mailing list
Logback-user at qos.ch
http://qos.ch/mailman/listinfo/logback-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://qos.ch/pipermail/logback-user/attachments/20081112/3939ce9a/attachment.htm
More information about the Logback-user
mailing list