Tomcat on Windows

1 Tomcat

There are two steps for a windows tomcat client
- install the stat pack and mod the batch as below
- enable logging by decommenting the bottom valve in the server xml

echo ----------------------------------------- >> Sendlogs.log
date /t >> SendLogs.log
time /t >> SendLogs.log

set HOST=boss5
set SOURCE="E:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\localhost_access_log.*.txt"
echo Y | pscp -q -2 -i %HOST%.ppk %SOURCE% %DEST% >> SendLogs.log 2>&1
ren %SOURCE% *.old

time /t >> SendLogs.log
echo ----------------------------------------- >> SendLogs.log

1 server.xml
        <Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
                 directory="logs"  prefix="localhost_access_log." suffix=".txt"
                 pattern="common" resolveHosts="false"/>