-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 cpannon,
On 12/9/2010 1:55 PM, cpanon wrote: > Specifically when I deploy > TC6.0.29 > JRE 6.0.22-b04 > log4j.properties(in WEB-INF/classes/) Where is log4j.jar? > on Win2KSrv, Win2003Srv, and WinXPP I get > java.lang.ClassCastException: > org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to > org.apache.AnnotationProcessor What is the rest of the stack trace? > This is the where the differences in the platforms affects the results with > all > of the above configs. > 1. On Windows2K Server and Windows2003 Server it fails to find the properly > configured and located log4j file > 2. On WinXPP it works perfectly under production TC 6.0.29, finding the > log4j > file without error. You should probably not be using Class.getResourceAsStream, but instead ServletContext.getResourceAsStream. The latter will always load resources relative to the webapp instead of potentially randomly for whatever ClassLoader you happen to stumble across. Where is the code you originally posted running? In a ServletContextListener? Where is the class for that listener located? If you are playing games with .jar files and/or classes in the wrong place because you want to save disk space or something like that, you will end up with these weird kinds of errors, and you will probably end up with enormous memory leaks if you (hot) redeploy your webapp. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk0BN+4ACgkQ9CaO5/Lv0PDQ/QCeMlJ4/UR4drhlwuCVkrjpr3Vd e+8AoJBPGP5PciaW6x34ryk6yrhVQuQY =HaTr -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org