tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject RE: Tomcat 5.5 upgrade + logging problems
Date Fri, 12 Aug 2005 08:06:32 GMT
Really, this has been discussed to death on this mailing list. The 5.5 logging page for a start
gives you instructions for setting logging up. Also, I have a blog at www.adcworks.com/blog
that touches on 5.5 configuration and logging.

Allistair.

> -----Original Message-----
> From: Robert Abbate [mailto:director@ispconcepts.com]
> Sent: 11 August 2005 15:43
> To: tomcat-user@jakarta.apache.org
> Subject: Tomcat 5.5 upgrade + logging problems
> 
> 
> Hi. I have searched through archives and online for such 
> solutions for the
> depreciated "<Logger" element. We have a virtual host setup 
> and requires
> separate logs for each host. We have followed the 
> instructions such as this:
> 
> jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html
> 
> we've put log4j.properties file in each host's 
> WEB-INF/classes folder, and
> log4j1.2.8.jar into WEB-INF/lib in each host
> 
> still, nothing seems to work. there must be something we are missing.
> 
> 
> CONFIGURATION:
> 
> CATALINA_HOME="/var/tomcat5"
> TOMCAT_USER="apache"
> JAVA_HOME="/usr/java"
> CATALINA_OPTS="-Xmx1228M -Djava.awt.headless=true"
>  java= 1.5.0_03
> 
> server.xml
> ....CUT....
> <Host name="domain.com" unpackWARs="true" autoDeploy="true"
> appBase="/home/rondelli/html">
>   <Realm className="org.apache.catalina.realm.MemoryRealm"
> pathname="/var/tomcat5/conf/tomcat-users/rondelli-t
> omcat-users.xml"/>
>   <Context path="" docBase="/home/rondelli/html" debug="0"/>
> <Alias>www.domain.com</Alias>
> <Context path="/tomcatmanager" 
> docBase="/var/tomcat5/server/webapps/manager"
> debug="0" privileged="true"/>
>      <Logger className="org.apache.catalina.logger.FileLogger"
> prefix="domain.com_log." suffix=".txt" directo
> ry="/home/rondelli" timestamp="true"/>
> </Host>
> 
> <Host name="domain2.com" unpackWARs="true" autoDeploy="true"
> appBase="/home/revisionten/html">
>   <Realm className="org.apache.catalina.realm.MemoryRealm"
> pathname="/var/tomcat5/conf/tomcat-users/revisionte
> n-tomcat-users.xml"/>
>   <Context path="" docBase="/home/revisionten/html" debug="0"/>
> <Alias>www.domain2.com</Alias>
> <Context path="/tomcatmanager" 
> docBase="/var/tomcat5/server/webapps/manager"
> debug="0" privileged="true"/>
>      <Logger className="org.apache.catalina.logger.FileLogger"
> prefix="domain2.com_log." suffix=".txt" dire
> ctory="/home/revisionten" timestamp="true"/>
> </Host>
> ....CUT.....
> 
> 
> /usr/java/bin/java 
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLo
> gManager -Xmx1228M -Djava.awt.headless=true 
> -Djava.endorsed.dirs=/var/tomcat
> 5/common/endorsed -classpath
> :/var/tomcat5/bin/bootstrap.jar:/var/tomcat5/bin/commons-loggi
> ng-api.jar:/us
> r/java/jre/lib/mysql-connector-java-3.0.15-ga-bin.jar:/var/tom
> cat5/common/li
> b/log4j-1.2.8.jar -Dcatalina.base=/var/tomcat5 
> -Dcatalina.home=/var/tomcat5 
> -Djava.io.tmpdir=/var/tomcat5/temp 
> org.apache.catalina.startup.Bootstrap
> start
> 
> Does anyone have a setup like this and can offer any clues? 
> If you need any
> further config details, please ask. I hope I gave all necessary.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


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


Mime
View raw message