-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Joe,
On 5/4/2010 6:15 PM, Joe Hansen wrote:
> There are common classes in Tomcat/lib/ but they don't attempt to do
> any logging.
Are you sure?
> However, the abc Spring Web application does initialize a
> Quartz object which runs once every hour and does some logging. I
> don't know if that has any implications.
It appears so:
> Here's the stack trace from catalina.log file...
> INFO: Initializing log4j from
> [C:\Tomcat6\webapps-abc\ROOT\WEB-INF\classes\log4j.properties]
> May 4, 2010 4:06:53 PM org.apache.catalina.core.StandardContext listenerStart
> SEVERE: Exception sending context initialized event to listener
> instance of class
> org.springframework.web.context.ContextLoaderListener
> java.lang.ExceptionInInitializerError
> at org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:53)
[...]
> java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by
> org.apache.commons.logging.LogConfigurationException: No suitable Log
> constructor [Ljava.lang.Class;@20f443 for
> org.apache.commons.logging.impl.Log4JLogger (Caused by
> java.lang.NoClassDefFoundError: org/apache/log4j/Category))
Looks like you've got a common logging framework configured to use
log4j. If you use Spring and they use commons-logging, you need to:
1. Move spring.jar into WEB-INF/lib
2. Move commons-logging.jar into WEB-INF/lib
Basically, move everything your webapp needs into WEB-INF/lib.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkvgnYYACgkQ9CaO5/Lv0PBeXwCfYQwTWJBVUg+fri9Wbz0/S/Tk
GI8An2kzGimP4qwxgLaqLPva5qYxe/hg
=mWKe
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
|