I was getting a class not found error.
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

The class related to logging and in Tomcat 6, it appears that logging has changed and the log4j stuff is not in the basic package

From the Tomcat docs http://tomcat.apache.org/tomcat-6.0-doc/logging.html
" By default, only java.util.logging is available for the core Tomcat, as Tomcat uses a package renamed logging implementation which is hardcoded for that logger. Usage of alternate loggers is available after building the extra components (see the extras components <http://tomcat.apache.org/tomcat-6.0-doc/extras.html> documentation), which includes a full commons-logging implementation."

Later in the page it described on about how to use log4j including the following step.

   * Download Log4J <http://logging.apache.org/log4j> (v1.2 or later)
     and place the log4j jar in $CATALINA_HOME/lib.
   * Build the commons-logging additional component using the
     extras.xml Ant build script which is part of teh Tomcat source bundle.
   * Replace |$CATALINA_HOME/bin/tomcat-juli.jar| with
     |output/extras/tomcat-juli.jar|.
   * Place |output/extras/tomcat-juli-adapters.jar| in $CATALINA_HOME/lib.
   * Start Tomcat
   *

The build could be eliminated if the binary distribution contained the extras but it does not. I assume that when everyone using log4j has the same problem, it will.

I hope that this is clearer.


Thanks
Ron

Caldarale, Charles R wrote:
From: Ron Wheeler [mailto:[EMAIL PROTECTED] Subject: Tomcat 6 will not compile under Windows with the current Java

I am bravely or foolishly trying to use Tomcat 6 for a new Spring project. It needs log4j so I gather that I have to
recompile Tomcat to get the extras.

??? Other than the optional APR connector, Tomcat is pure Java, as are
log4j and Spring - the binaries will run on any platform.  No
recompilation needed.  With the advent of Tomcat's NIO connector, the
APR one is probably superfluous, so you don't need that either.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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





---------------------------------------------------------------------
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