Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » log4j, Tomcat and WTP Server configuration?
log4j, Tomcat and WTP Server configuration? [message #210317] Wed, 12 March 2008 14:06 Go to previous message
O  is currently offline O
Messages: 4
Registered: July 2009
Junior Member
I've configured log4j on tomcat 6.0.14 on Mac OSX as outlined at
http://tomcat.apache.org/tomcat-6.0-doc/logging.html.

I've created a dynamic web project (Eclipse 3.3) and integrated it with
the Maven2 plugin as outlined here:
http://www.devx.com/Java/Article/36785/0/page/1

The WTP server is configured such that "catalina.base" is created in the
"workspace" area.

My webapp builds, deploys & runs successfully on the WTP server instance.
However, I see no log files. The "catalina" output goes directly to the
Console view instead of the catalina.log file, or what I've configured in
the $catalina.home/lib/log4j.properties as configured per the first
article. And my log files as configured per my webapp's log4j.properties
file appears nowhere.

When I take the (maven plugin built) .war file and I deploy it onto the
tomcat installation, and start up tomcat via $catalina.home/bin/startup.sh
then I do see my log file. So, the configuration as far as my
log4j.properties, log4j.jar, commons-logging.jar inside of my war file is
correct. However, how do I get this to work with the WTP Server? Any idea,
what configuration piece I'm missing here?

I've tried to add the tomcat-juli-adapters.jar, tomcat-juli.jar &
log4j.properties files all located in $catalina.home to the CLASSPATH of
the WTP server via the "Run Dialog", to no avail.

Any help would be greatly appreciated.

Thanks.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Re: Graphical XML Schema Editor for 3.3.2?
Next Topic:How to place web files outside the application context?
Goto Forum:
  


Current Time: Fri May 24 22:53:25 EDT 2013

Powered by FUDForum. Page generated in 0.01735 seconds