Hello, I have a plug-in which configures log4j on per context basis from external property file. As result each of my contexts log to its own file and is configured from property file stored outside of its WAR file. The system allows log4j.jar and commons-logging.jar in server/lib or commons/lib as long as both jars are present in WEB-INF/lib as well. It was made to allow classes loaded by server loader (Realms, Valves ...) to logg to context logger as well. It is done as axtention of WebAppLoader class
It all worked well till version 5.5.9 where I am getting a nasty error log4j:ERROR Could not instantiate appender named "applog". log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not assignable to a "org.apache.log4j.Appender" variable. log4j:ERROR The class "org.apache.log4j.Appender" was loaded by log4j:ERROR [WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: [EMAIL PROTECTED] ] whereas object of type log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by [EMAIL PROTECTED] ]. I can not figure out why RollingFileAppender of all the classes is not loaded by WebappClassLoader but by StandardClassLoader instead I am very careful to not to reference any log4j classes in my WebAppLoader extention class - all configuration is done via reflection and all classes are loaded from WebappClassLoader but when log4j configurator applies property file it fails with this error Everything works of course with no log4j files in server/lib common/lib but I would like to use log4j for server logging as well I would greatly appreciate your help Thank you Alex --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]