Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat 6.0.14 in Ubuntu

Status
Not open for further replies.

cufflinks

Programmer
Dec 15, 2007
1
CA
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!
 
Assuming your Catalina Base is the same as Home, the output should look like:

Using CATALINA_BASE: /usr/local/apache-tomcat-6.0.14
Using CATALINA_HOME: /usr/local/apache-tomcat-6.0.14
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-6.0.14/temp
Using JRE_HOME: /usr/lib/jvm/java-6-sun

, so for some reason $CATALINA_HOME is not being resolved in the startup script.

The message:

touch: cannot touch `${CATALINA_HOME}/logs/catalina.out': No such file or directory

, isn't complaining about /usr/local/apache-tomcat-6.0.14}/logs not existing, it's complaining about "${CATALINA_HOME}/logs" not existing, which is true since the variable wasn't resolved.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top