So I struggled for hours trying to get apache to connect via the ajp13 worker to tomcat 5.5 We are using a Debian box on the production server. Could not make it happen…. until I set the worker to be ‘ajp13′.
Don’t understand what wierdness is going on but… I do know this. if my /etc/libapache-mod-jk/workers.properties file looks like this (comments removed):
workers.tomcat_home=/usr/share/tomcat5.5
workers.java_home=/usr/local/java
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
Apache 2 talks very nicely with Tomcat 5.5.20
If it looks like this:
workers.tomcat_home=/usr/share/tomcat5.5
workers.java_home=/usr/local/java
worker.list=amplafi_ajp13
worker.amplafi_ajp13.port=8009
worker.amplafi_ajp13.host=localhost
worker.amplafi_ajp13.type=ajp13
worker.amplafi_ajp13.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=amplafi_ajp13
Everything is broken!
Does anyone have a clue here on why?
Reply is almost 2 years late but still
The one thing which could be wrong is the name “ajp13″ or “amplafi_ajp13″ should be same as value of “jvmRoute” attribute of the Engine element of server.xml of the tomcat.
example,
If your workers.properties looks like
worker.amplafi_ajp13.port=8009
worker.amplafi_ajp13.host=localhost
worker.amplafi_ajp13.type=ajp13
worker.amplafi_ajp13.lbfactor=1
then your code in server.xml of tomcat should look like
server does not like plain xml so changed to & greater than ;
then your code in server.xml of tomcat should look like
<Engine name=”Standalone” defaultHost=”localhost” jvmRoute=”amplafi_ajp13″>