Tomcat
Kristian Rink
kristian at zimmer428.net
Sat Jun 9 08:44:40 UTC 2007
Russ;
rpowersau at gmail.com schrieb:
> Anybody have any joy getting tomcat running on a ubuntu server?
We do run a couple of tomcat machines successfully atop Ubuntu Dapper,
no real problems to be reported. ;)
> I used apt to install the package with no joy. It's there but not
> responding
> on the port from another machine on my network. Maybe I should install X on
> the server so I can try it locally? What's the smallest X instal, xfwm?
I wouldn't really bother installing X just because of _that_. :) There
are some other ways testing this:
- Install lynx and try "lynx http://localhost:8080/" from some console
on your server.
- More simple: Use "telnet localhost 8080" and, as soon as connected (if
so...) try a "GET /" (+ENTER) to see whether you get the tomcat default
page.
- Make use of netstat to see whether tomcat actually is running -
'netstat -an | grep 8080' should return something like this:
kr at kassiopeia:~ > netstat -an|grep 8080
tcp6 0 0 :::8080 :::* LISTEN
- Search your filesystem for "catalina.out" which is the tomcat default
log file filling with runtime information while the server is up and
running...
> I've seen comments about downloading the binary and installing that way but
> thought I'd rather stay with the package shipped with ubuntu.
Some thoughts on that:
- If you install tomcat from the Ubuntu repositories, I recommend
enabling multiverse in your sources.list and get the sun-java5-jdk or
sun-java6-jdk, possibly updating your configuration using
sudo update-alternatives --config java
to be sure to use Sun's Java in favour to the installed GNU java
packages. Note: I am a GNU enthusiast and love the idea of having GPL'ed
java available, but it seems that recent tomcat versions don't behave
well running on them.
- In our production environment, I do use both tomcat and java installed
to /opt as packages not managed by the distribution package management.
I just want to manually keep control of things here, and it works well
this way. Only thing to be done for that is to get your configuration
right, something like this:
export JAVA_HOME=/opt/java
export CATALINA_HOME=/opt/tomcat
export PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$PATH
The $PATH setup is important in this situation to make sure the JDK
installed to /opt is found before the default Java installed to
/usr/bin. Works well this way. :)
Cheers & good luck,
Kristian
--
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu at jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)
More information about the ubuntu-users
mailing list