This is some documentation I prepared as I configured my Apache-Tomcat instances. You might find it helpful. Also, remember that you can configure servlet aliases with your web.xml file. ---------------------------------------------------------------------------------------------------------------- Setting up Apache to use Tomcat as its servlet/JSP engine. 1. Copy mod_jk.dll/mod_jk.so to the 'modules' directory under Apache. The mod files can be got from 2. Add the following block to your TOMCAT_HOME/conf/server.xml file. <Connector className="org.apache.tomcat.service.PoolTcpConnector"> <Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/> <Parameter name="port" value="8009"/> </Connector> NOTE: Do not remove the Connector setting for Ajp12 as it is required to shut down Tomcat [otherwise it would throw a truck load exception!] 3. Edit the TOMCAT_HOME\conf\workers.properties file to set the following up correctly, workers.tomcat_home=TOMCAT_HOME workers.java_home=JAVA_HOME ps=\ eg: for NT workers.tomcat_home=D:\Applications\jboss-tomcat-2.1-beta\jakarta-tomcat-3.2.1\ workers.java_home=D:\Applications\jdk1.3.0_02 ps=\ or, workers.tomcat_home=%TOMCAT_HOME% workers.java_home=%JAVA_HOME% ps=\ eg: for Linux workers.tomcat_home=$TOMCAT_HOME workers.java_home=$JAVA_HOME ps=/ 4. At the end of the APACHE_HOME\conf\httpd.conf file add NOTE:The actual values for your system can be obtained from the TOMCAT_HOME\conf\mod_jk.conf-auto file. LoadModule jk_module modules/mod_jk.dll JkWorkersFile "D:/Applications/jboss-tomcat-2.1-beta/jakarta-tomcat-3.2.1/conf/workers.properties" JkLogFile "D:/Applications/jboss-tomcat-2.1-beta/jakarta-tomcat-3.2.1/logs/mod_jk.log" JkLogLevel error JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 NOTE: This would change from system to system depending on the applications that you have configured JkMount /<webappname>/servlet/* ajp13 JkMount /<webappname>/*.jsp ajp13 eg: for partmodel JkMount /partmodel/servlet/* ajp13 JkMount /partmodel/*.jsp ajp13 5. Restart Tomcat/jBoss-Tomcat and Apache. You should be able to access your servlets and jsps at default Apache Web Server port] The complete configuration information is available at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html or at TOMCAT_HOME\doc\mod_jk-howto.html
|
- [JBoss-user] from mod_jserv to mod_jk problems Marcel Schepers
- RE: [JBoss-user] from mod_jserv to mod_jk problems Filip Hanik
- Vinay Menon
