Monday, June 18, 2007

Place for Tomcat Notes

Some general notes on getting tomcat working. After installing the relevant packages from yast - a few commands needed to be run - and then I had to find out how to test the installation. Its all pretty well documented - I just thought I'd save a few notes here.

Check status of your server:
/etc/init.d/apache2 status

Check if tomcat is running - and the output:
ps -def | grep tomcat
tomcat 31388 1 0 11:53 pts/0 00:00:05 /usr/lib64/jvm/java/bin/java -Djava.endorsed.dirs= -classpath /usr/lib64/jvm/java/lib/tools.jar:/usr/share/tomcat5/bin/bootstrap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/share/java/mx4j/mx4j-actions-1.1.1.jar:/usr/share/java/mx4j/mx4j-jmx-1.1.1.jar:/usr/share/java/mx4j/mx4j-tools-1.1.1.jar:/usr/share/java/mx4j/mx4j-jmx.jar -Dcatalina.base=/srv/www/tomcat5/base/ -Dcatalina.home=/usr/share/tomcat5 org.apache.catalina.startup.Bootstrap start
root 31806 29163 0 12:13 pts/0 00:00:00 grep tomcat

Add tomcat module to the apache (or something):
a2enmod jk 

More to follow here.

1 comment:

nobodycares said...

check the examples here: