jQuery in Action, 2nd edition*
The moose likes Tomcat and the fly likes Log4j in Tomcat6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Log4j in Tomcat6" Watch "Log4j in Tomcat6" New topic
Author

Log4j in Tomcat6

Daniel Martins
Ranch Hand

Joined: Oct 22, 2009
Posts: 45
Hello

I have set up Log4j according to the instrctions provided here:

http://tomcat.apache.org/tomcat-5.5-doc/logging.html

I cannot make this work.

Strangely - or maybe not - the folder "common" did not exist in tomcat root folder. I have created the folder with 2 subfolders - lib and classes as described in the apache website.

This is my properties file.


Any ideas why it is not working?

Cheers

Daniel Martins
Ranch Hand

Joined: Oct 22, 2009
Posts: 45
Ok, the tutorial is for tomcat5.5 , and I am using 6.0.....

I will re configure it according to:

http://tomcat.apache.org/tomcat-6.0-doc/logging.html
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Daniel Martins wrote:I have created the folder with 2 subfolders - lib and classes as described in the apache website.

You removed these folders, right?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Daniel Martins
Ranch Hand

Joined: Oct 22, 2009
Posts: 45
Yes i delete the folders, just before starting to follow the tutorial for tomcat6 - because the folder common was not present in the original installation.

And I cannot really understand why do they mean with this:

"Replace $CATALINA_HOME/bin/tomcat-juli.jar with output/extras/tomcat-juli.jar.
Place output/extras/tomcat-juli-adapters.jar in $CATALINA_HOME/lib."

Am I supposed to rename the jar files? Because I cannot find any jar with that name...

Maybe this are begginers questiosn...but it's the first time I am trying to do this

Cheers
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

No -- don't go renaming things, or creating folders. Just copy the files as instructed.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Log4j in Tomcat6