logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srinivas <vasu2v...@yahoo.co.in>
Subject Re: Please Help me.... How to Implement Log4j.....
Date Mon, 07 Jun 2004 14:03:05 GMT
Hi Jake ,
Thanks for replay to me , It's working  well .
But i am getting the message 2 times at the console ie Tomcat Server Console. I am using Tomcat
5x and JBuilder. And one more thing I have put the log4j.properties file at WEB-INFO\classes..
log4j.properties file is...................
# Default Logging Configuration 
log4j.rootLogger=DEBUG, stdout 
#to increase logging level 
#to decrease logging level 
log4j.appender.stdout.layout.ConversionPattern=%-5p : %m%n

What is the wrong i am doing?????
Please tell me...

Jacob Kjome <hoju@visi.com> wrote:
Where do you have commons-logging.jar? Struts uses it and it causes lots 
of problems like this because it is able to find Log4j using classloading 
tricks, but then not able to do classloading of Log4j it finds because it 
is in an inaccessible classloader. Put commons-logging in WEB-INF/lib 
along with log4j.jar and things should start working again. Make sure to 
use commons-logging.jar, not commons-logging-api.jar (which doesn't 
container the Log4j implementation).


At 07:15 AM 6/7/2004 +0100, you wrote:
>Hi Friends,
>I have Configured the Log4j in my Application and in my lib/
>log4j-1.2.8.jar put the jar file. When I run this application i am
>the Error..
>I am putting log4j.jar file to web-inf/lib and log4j.properties and 
>log4j.xml files are put into WEB-INF/classes ..
>That is ...................
>javax.servlet.ServletException: Servlet execution threw an exception
>root cause
>java.lang.NoClassDefFoundError: org/apache/log4j/Logger



> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>note The full stack trace of the root cause is available in the Tomcat
>This is the Error I am getting now...
>Please Help me to solve this problem....
>Yahoo! India Matrimony: Find your partner online.

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

Yahoo! India Matrimony: Find your partner online.
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message