Mark Faircloth wrote:
> We are in the process of migrating from 5.5 to 6 under Win32/64 and need
> to alter the locations of some of our jars files because of the changes
> to the directory structure and the class loading. 
> 
> Under 5.5 we have commons-logging.jar and log4j.jar in WEB-INF\lib and
> that works fine. For 6 we have put commons-logging and log4j.jar into
> \lib otherwise it fails on loading any context listeners. We also have a
> copy of log4j.jar still in WEB-INF\lib for webapp specific logging
> pretty much as the documentation states.
> 
> This all runs okay and we get the output we would expect but on start-up
> we get errors in the stdout log such as:
> 
> log4j:ERROR A "org.apache.log4j.DailyRollingFileAppender" object is not
> assignable to a "org.apache.log4j.Appender" variable.
... [error detail describing that classes were loaded by separate loaders]
> log4j:ERROR Could not instantiate appender named "MAIN".
> 
> Understandably considering we are class loading in two places. My
> question is, are these error messages really benign and can we get rid
> of them somehow or are we doing something wrong and need to investigate
> further?

You have a problem here; at least some parts of Log4j are in inoprative
state (and you could get more error messages of the same kind later on).

You should fix this by fixing the classloading issue (which pretty much
means throwing the jar files out of WEB-INF\lib), unless you can revert
the classloading structure back to what it was in TC 5.5 - which seems
unlikely.
-- 
..Juha

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to