I'm relatively new to ubuntu or any linux systems but I needed to do a test to see if I could get the program working on ubuntu. I have gone through this process of going about installing multiple instances of tomcat7 :HOW TO INSTALL MULTIPLE INSTANCES OF TOMCAT ON A SINGLE UBUNTU SERVER using the process that was written in here and after a slight bit confusion of the last section which was this piece:
NAME=timo
DESC="Tomcat Timo servlet engine"
#DEFAULT=/etc/default/$NAME
DEFAULT=/etc/default/tomcat6
JVM_TMP=/tmp/$NAME-tmp
CATALINA_HOME=/usr/share/tomcat6
#CATALINA_BASE=/var/lib/$NAME
CATALINA_BASE=/opt/tomcat6/timo
I thought I had managed to get it working as it did not give me any errors when I used the startup.sh file but when I go to firefox to view the tomcat page I get an empty page. There is no error message and when I look into the logs nothing seems to be popping up that says its broken. It is like that with both instances. The reason I am running 2 instances is because I would like to run geoserver on one and geowebcache on the other one.
Any info or help would be great.
In the mod_jk.log file I get : [30683:140717698082688] [info] init_jk::mod_jk.c(3365): mod_jk/1.2.37 initialized [30683:140717698082688] [error] extension_fix::jk_uri_worker_map.c9564): could not find worker with name 'jk-manager' in uri map post processing [30683:140717698082688] [error] extension_fix::jk_uri_worker_map.c9564): could not find worker with name 'jk-status' in uri map post processing
and an error log shows: [mpm_event:notice] [pid 299559:tid 140144594913152] AH00489: Apache/2.4.7(Ubuntu) configured -- resuming normal opertaions [core:notice] [pid 29559:tid 140144594913152] AH00094: Command line: '/usr/sbin/apache2' [mpm_event:notice] [pid 299559:tid 140144594913152] AH00491: caught SIGTERM, shutting down [mpm_event:notice] [pid 30684:tid 140717698082688] AH00489: Apache/2.4.7 (Ubuntu) mod_jk/1.2.37 configured -- resuming normal operations
worker.properties file:
#setup
worker.geoserver.port=8009 #ajp port on geoserver server
worker.geoserver.host=localhost
worker.geoserver.type=ajp13
worker.heoserver.lbfactor=2
#setup geowebcache
worker.geowebcache.port=8010 #ajp port on geoserver server
worker.geowebcache.host=localhost
worker.geowebcache.type=ajp13
worker.geowebcache.lbfactor=1
#setup the load-balancer
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers-geoserver,geowebcache
worker.loadbalancer.sticky_session=True
#worker.loadbalancer.sticky_session_force=True
#Status worker for managing load balancer
worker.jk-status.type=status #setting type of jk-status 'worker
I created my own virtualhost instead of using the default one as the tutorial suggested so it goes as follows:
#/etc/apache2/sites-available/ourgeoserver.org
<VirtualHost *:80>
ServerAdmin [email protected]
ServerAlias live.ourgeoserver.org
ServerName ourgeoserver.org
JkMount /* loadbalancer
JKMount / jk-manager /*jk-status
loglevel warn
ErrorLog /var/log/apache2/ourgeoserver_error_log
CustomLog /var/log/apache2/ourgeoserver_access_log combined
<VirtualHost>