The documentation is flawed.
Although the diagram is pretty and nice, the instruction on how to setup mod_jk2 is bit off.
First, the document states, tomcat ajp13 connector configuration is located in server/instance/deploy/jbossweb-tomcat.sar/WEB-INF/jboss-service.xml Well, as of JBoss 3.2.1+Tomcat4.1.24 distribution doesn't explode Tomcat WEB-INF. Although it contains tomcat-jk2.jar, tomcat41-service.jar, tomcat-util.jar, tomcat-http11.jar, tomcat-coyote.jar and finally catalina.jar and along with others, the correct path to jboss-service.xml is in server/instance/conf/ .
Second, it states, the default instance of JBoss deploy path is "/server/default"... That's wrong also. It's actually "/server/all/". Don't ask why. I've been wrecking my brain on that one also.
To answer your question about where the jk2.properties goes, well, it goes into your apache conf dir. Typically /etc/httpd/conf. Also your workers properties files as well.
I found this link extremely helpful and "WORKING".
Read on and hope to God, JBoss team will make a documentation as automated as their JBoss product.
- 2 cents
correcting my own mistake:
the correct path to jboss-service.xml is in server/instance/conf/
It is not correct. For jbossweb-tomcat config which you want, is in server/instance/deploy/jbossweb-tomcat.sar/META-INF/jboss-service.xml
*note: NOT WEB-INF !!!
Of course, that "instance" i'm talking about is by default "all[/]".
Sorry about the confusion.
- 2 cents
Thanks a lot for your help.
Thank you for pointing out the typo in the documentation. That has been corrected now. It is always helpful when an error is pointed out.
I've also explicitly stated that default is usually the default directory. Also I note that later releases may rename the Tomcat deployment jbossweb-tomcat41.sar.