• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4j in Tomcat6

 
Daniel Martins
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Daniel Martins
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No -- don't go renaming things, or creating folders. Just copy the files as instructed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic