You will need to modify the following files:
1) server.xml in the TOMCAT_HOME\conf\ directory
add the following in the connector section
2) workers.properties (use copy from TOMCAT_HOME\conf as a baseline). You will need to set the following variables to match your environment...
3) httpd.conf (or your custom apache config file) add the following lines...
#Added for mod_jk - tc
LoadModule jk_module modules/mod_jk.dll
#Added for mod_jk - TC
JkWorkersFile <full path>/workers.properties
JkLogFile <full path>/mod_jk.log
JkMount /<YOUR APP NAME>/* ajp13
(the above assumes you have downloaded a copy of the mod_jk.dll from apache and placed it in the modules directory).
Thank you for your assistance.
I have made all the changes and started the JBoss-Tomcat process by DOS shell command line and then started the Apache service. The Apache service failed again as a result of Tomcat not creating the Apache configuration file:
This is (as above) evidenced from the Event Viewer.
Do you have any suggestions for next steps? Possibly, did I not place the in the correct location in Tomcat's server.xml file?
Ahhh... I get it, you are running apache as a service. The instructions I gave are for manually running both jboss+tomcat and apache...I should have added:
4) from a command window, run_with_tomcat from the \jboss\bin
5) from a command window, apache -f "<config file>" from <full path>\apache
Sorry for the confusion.
Here is the output obtained by running Apache from the command line...
C:\Apache Group\Apache>apache -f conf\httpd.conf
fopen: No such file or directory
apache: could not open document config file c:/jboss-2.4.3_tomcat-3.2.3/tomcat/conf/jk/mod_jk.conf-auto
Note the errors or messages above, and press the key to exit. 12....
I am also sending the server.xml, httpd.conf and workers.properties files directly to you in a separate email.
Thank you again for your help.
Problems with the httpd.conf (sent via email)
1) You must provide a JkMount, or mod_jk will not handle any request.
# JkMount /<MY APP NAME>/* ajp13
You need to define the pattern that will be handled by ajp13, for instance, if you want to be able to get the example application that ships with the JBoss+Tomcat bundle, you will need to define the following line:
JkMount /jboss/* ajp13
Which tells the mod_jk interceptor that this pattern will be handled by it using ajp13.
If you deploy a Web Application Archive (.war), by placing it in the <full path to bundle>\jboss\deploy, named MyApp.war, you would then need to define the following additional mount:
JkMount /MyApp/* ajp13
2) The following line most likely will not function under the bundle as JBoss is handling the deployment of apps, not Tomcat. Comment it out and explicitly define patterns (as stated above).
ALRIGHT! It is working. 87) I tested the JBoss examples; and, they all work. Also, I copied the contents under TOMCAT_HOME\webapps to the jboss\deploy loadpoint and modified httpd.conf to get all the JSP and servlet examples to work. I think I have the hang of this now!
A quick note...
The "C:\JBoss-2.4.3_Tomcat-3.2.3\tomcat\doc\mod_jk-howto.html" documentation that comes with the JBoss+Tomcat bundle explains that one would need to keep the Include line at the bottom of httpd.conf for an "auto-configuration". What it appears we have done is a "custom configuration", per the noted docuemnt. Does the auto-configuration work?
Your help is VERY much appreciated.
Albeit it is a "custom" configuration, but the JBoss+Tomcat Bundle is custom environment. The documents that are under the tomcat directory that come with the Bundle must be taken with a grain of salt as they were written for an environment that did not include JBoss.
I am glad I was able to help.