You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ian McNish <ia...@ians.net> on 2001/08/27 21:21:18 UTC

tomcat config question

using tomcat 3.2.3 i'm having a configuration problem. i'm working with
the default server.xml file. according to server.xml setting 'home' in
'ContextManager' should force the value of 'home' to be prepended to
"webapps/, work/ and logs/". i have jakarta installed in
/usr/jakarta/jakarta-tomcat. i wish to have my webapps, work, and logs
stored under /var/jakarta/jakarta-tomcat, so i set home to
/var/jakarta/jakarta-tomcat:

<ContextManager home="/var/jakarta/jakarta-tomcat" debug="0"
workDir="work" showDebugInfo=" true">


but when i do this i get the following on startup:

Guessing TOMCAT_HOME from tomcat.sh to
/usr/jakarta/jakarta-tomcat/bin/..
Setting TOMCAT_HOME to /usr/jakarta/jakarta-tomcat/bin/..
...
Unable to open log file: /usr/jakarta/jakarta-tomcat/logs/tomcat.log! 
Using stderr as the default.
Unable to open log file: /usr/jakarta/jakarta-tomcat/logs/servlet.log! 
Using stderr as th e default.
Unable to open log file: /usr/jakarta/jakarta-tomcat/logs/jasper.log! 
Using stderr as the default.
...
Error generating automatic apache configuration
java.io.FileNotFoundException:
/var/jakarta/jakarta-tomcat/conf/tomcat-apache.conf (Permission denied)
java.io.FileNotFoundException:
/var/jakarta/jakarta-tomcat/conf/tomcat-apache.conf (Permission denied)
...


this raises two questions:

(1) why is tomcat looking for conf in /var/jakarta/jakarta-tomcat?
according to server.xml only "webapps/, work/ and logs/" will be
affected by setting 'home'. even though it's a hack i made a sym link
from /var/jakarta/jakarta-tomcat/conf to
/usr/jakarta/jakarta-tomcat/conf. and why is tomcat ignoring the prefix
i supplied for logs? should server.xml really say "webapps/, work/,
conf/"?

(2) why am i getting permission denied on reading the conf files? the
conf files are owned by root, but the user i'm running tomcat as has no
problems reading the  conf files from a shell.