Hello,
I've been having trouble setting up Tomcat 6 in Ubuntu, and unfortunately have been unable to figure out why this is happening.
Upon initial installation, I was able to connect to tomcat without any problems and everything seemed okay. I'm not entirely sure what happened since then, however I'm quite certain I hadn't changed anything to Tomcat configuration (probably left it a day or two, came back from work and tried it and problems started.) Unfortunately it was a week or so ago that this problem started, and I'm unsure if I had everything setup to use Sun's JVM... when it was working it might've been using a different one.
In any case, using Sun's Java 1.6 should work without any problems, but here is the output I'm getting when I try to start tomcat:
me@zdesktop:/usr/local/apache-tomcat-6.0.14/bin$ sudo ./startup.sh start
Using CATALINA_BASE: ${CATALINA_HOME}
Using CATALINA_HOME: /usr/local/apache-tomcat-6.0.14
Using CATALINA_TMPDIR: ${CATALINA_HOME}/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun
touch: cannot touch `${CATALINA_HOME}/logs/catalina.out': No such file or directory
./catalina.sh: 338: cannot create ${CATALINA_HOME}/logs/catalina.out: Directory nonexistent
Note that ${CATALINA_HOME}/logs/ does exist, but catalina.out doesn't. Initially when the problem started it did exist however, and I've tried creating it manually and changing permissions on it without any luck at solving the problem... I have also deleted ${CATALINA_HOME} and re-extracted tomcat (hence no more catalina.out) without any luck... and I've tried placing it under ~/apache as a test, thinking it might be a permission issue (note that I get the same output whether 'sudo'ing or not).
Any help much appreciated!
I've been having trouble setting up Tomcat 6 in Ubuntu, and unfortunately have been unable to figure out why this is happening.
Upon initial installation, I was able to connect to tomcat without any problems and everything seemed okay. I'm not entirely sure what happened since then, however I'm quite certain I hadn't changed anything to Tomcat configuration (probably left it a day or two, came back from work and tried it and problems started.) Unfortunately it was a week or so ago that this problem started, and I'm unsure if I had everything setup to use Sun's JVM... when it was working it might've been using a different one.
In any case, using Sun's Java 1.6 should work without any problems, but here is the output I'm getting when I try to start tomcat:
me@zdesktop:/usr/local/apache-tomcat-6.0.14/bin$ sudo ./startup.sh start
Using CATALINA_BASE: ${CATALINA_HOME}
Using CATALINA_HOME: /usr/local/apache-tomcat-6.0.14
Using CATALINA_TMPDIR: ${CATALINA_HOME}/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun
touch: cannot touch `${CATALINA_HOME}/logs/catalina.out': No such file or directory
./catalina.sh: 338: cannot create ${CATALINA_HOME}/logs/catalina.out: Directory nonexistent
Note that ${CATALINA_HOME}/logs/ does exist, but catalina.out doesn't. Initially when the problem started it did exist however, and I've tried creating it manually and changing permissions on it without any luck at solving the problem... I have also deleted ${CATALINA_HOME} and re-extracted tomcat (hence no more catalina.out) without any luck... and I've tried placing it under ~/apache as a test, thinking it might be a permission issue (note that I get the same output whether 'sudo'ing or not).
Any help much appreciated!