deepthought ~ # emerge tomcat Calculating dependencies ...done! >>> emerge (1 of 1) www-servers/tomcat-5.0.28-r4 to / [...] * BUGS: * Please file any bugs at http://bugs.gentoo.org/ or else it * may not get seen. Thank you. * >>> Regenerating /etc/ld.so.cache... >>> www-servers/tomcat-5.0.28-r4 merged. >>> Recording www-servers/tomcat in "world" favorites file... >>> clean: No packages selected for removal. >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. deepthought ~ # /etc/init.d/tomcat-5 start * Caching service dependencies ... [ ok ] * Starting Tomcat ... Using CATALINA_BASE: /var/lib/tomcat-5/default Using CATALINA_HOME: /usr/share/tomcat-5 Using CATALINA_TMPDIR: /var/tmp/tomcat-5/default Using JAVA_HOME: /opt/sun-jdk-1.4.2.09 log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. [...and so on] ^C deepthought ~ # wget 127.0.0.1:8080 --14:25:52-- http://127.0.0.1:8080/ => `index.html' Connecting to 127.0.0.1:8080... failed: Connection refused. deepthought ~ # /etc/init.d/tomcat-5 zap deepthought ~ # killall java deepthought ~ # emacs /etc/conf.d/tomcat [change line CATALINA_OPTS="" in CATALINA_OPTS="-Dlog4j.configuration=file:/etc/log4j.properties" ] deepthought bin # /etc/init.d/tomcat-5 start * Caching service dependencies ... [ ok ] * Starting Tomcat ... Using CATALINA_BASE: /var/lib/tomcat-5/default Using CATALINA_HOME: /usr/share/tomcat-5 Using CATALINA_TMPDIR: /var/tmp/tomcat-5/default Using JAVA_HOME: /opt/sun-jdk-1.4.2.09 touch: cannot touch `/var/lib/tomcat-5/default/logs/catalina.out': Permission denied /usr/share/tomcat-5/bin/catalina.sh: line 228: /var/lib/tomcat-5/default/logs/catalina.out: Permission denied [won't terminate and no connecion to 127.0.0.1:8080 possible] ^C deepthought ~ # /etc/init.d/tomcat-5 zap deepthought ~ # killall java deepthought bin # chown -R tomcat:tomcat /var/log/tomcat-5 deepthought bin # /etc/init.d/tomcat-5 start * Starting Tomcat ... Using CATALINA_BASE: /var/lib/tomcat-5/default Using CATALINA_HOME: /usr/share/tomcat-5 Using CATALINA_TMPDIR: /var/tmp/tomcat-5/default Using JAVA_HOME: /opt/sun-jdk-1.4.2.09 [won't terminate and no connecion to 127.0.0.1:8080 possible] ^C deepthought bin # cd /usr/share/tomcat-5/bin deepthought bin # ./startup.sh Using CATALINA_BASE: /var/lib/tomcat-5/default Using CATALINA_HOME: /usr/share/tomcat-5 Using CATALINA_TMPDIR: /var/tmp/tomcat-5/default Using JAVA_HOME: /opt/sun-jdk-1.4.2.09 deepthought bin # wget 127.0.0.1:8080 --14:36:40-- http://127.0.0.1:8080/ => `index.html.1' Connecting to 127.0.0.1:8080... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] [ <=> ] 9,119 --.--K/s 14:36:41 (5.87 MB/s) - `index.html.1' saved [9119] deepthought bin # diff /root/tomcat/tomcat-5.init.d.olde /etc/init.d/tomcat-5 13,15c13 < start-stop-daemon --start --quiet --chuid tomcat:tomcat \ < --exec ${CATALINA_HOME}/bin/catalina.sh \ < -- ${TOMCAT_START} --- > ${CATALINA_HOME}/bin/catalina.sh ${TOMCAT_START} 22,24c20 < start-stop-daemon --start --quiet --chuid tomcat:tomcat \ < --exec ${CATALINA_HOME}/bin/catalina.sh \ < -- ${TOMCAT_STOP} --- > ${CATALINA_HOME}/bin/catalina.sh ${TOMCAT_STOP}