what is the best way to install tomcat on ubuntu 8.04 server, I have tried to install it on my server, but it doesn’t appear to be working?

There are a couple of apps I want to run on my virtual min servers, but they require tomcat.

Many thanks,

You’re going to have to do better than “it doesn’t appear to be working”. We can’t do anything useful with that.

Errors? Entries in the logs? Something?

it isn’t auto-deploying the .war files, I extract them manually, stop tomcat, upload them to the webapps directory, then start teh server and I can’t access the apps I just uploaded, I can’t access the tomcat admin panel or anything on the tomcat port. I will check to see if I can find any logs.

I found this error:

/usr/share/tomcat5.5/bin/ 348: /usr/lib/j2sdk1.5-sun//bin java: not found
./ 348: /usr/lib/j2sdk1.5-sun//bin java: not found
./ 348: /usr/lib/j2sdk1.5-sun//bin java: not found
./ 348: /usr/lib/j2sdk1.5-sun//bin java: not found
./ 348: /usr/lib/j2sdk1.5-sun//bin java: not found

I am re-installing java to see if that solves the issue.

Without knowing anything about tomcat, I’d still hazard a guess that catalina is looking to find java or tomcat in that bad looking path you got there:

??? That don’t seem right.

One quick trip to google seems to confirm:

Set $CATALINA_HOME var in /etc/profile or /etc/bash.bashrc

export CATALINA_HOME=/path/to/tomcat

source /etc/profile

Might have to try this myself soon so let me know how it works out.