Search the web
Sign In
New User? Sign Up
lucknow-lug · Uttar Pradesh Linux Users Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
tomcat access log, enable manager, startup script   Message List  
Reply | Forward Message #177 of 247 |
How to enable access log in apache-tomcat:
Edit conf/server.xml
Add following line

<Valve className="org.apache.catalina.valves.AccessLogValve"/>

How to enable tomcat manager:
Edit conf/tomcat-users.xml
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="standard"/>
<role rolename="manager"/>
<user username="test" password="test123" roles="standard,manager"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>




save following script in /etc/init.d/

use your fav text editor, save following script say "tomcat"


#!/bin/sh
# chkconfig: - 85 15
# description: Tomcat is a servlet container
PROGRAM=$CATALINA_HOME/bin/catalina.sh
#if $CATALINA_HOME is not set
#PROGRAM=/usr/local/apache-tomcat-5.5.25/bin/catalina.sh
if [ -f $PROGRAM ]; then
echo "$1ing" `basename $0`
su - root -c "$PROGRAM $1"
fi


Now chmod
chmod 755 /etc/init.d/tomcat


to automatic start tomcat:
chkconfig --add tomcat
chkconfig tomcat on





Tue Jan 22, 2008 6:18 pm

anujsingh_1
Offline Offline

Forward
Message #177 of 247 |
Expand Messages Author Sort by Date

How to enable access log in apache-tomcat: Edit conf/server.xml Add following line <Valve className="org.apache.catalina.valves.AccessLogValve"/> How to enable...
anujsingh_1
Offline
Jan 22, 2008
6:18 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help