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
 

----- Original Message -----
From: Filip Hanik
Sent: Tuesday, May 01, 2001 8:21 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] from mod_jserv to mod_jk problems

this is a Tomcat question, if you get it to work on standalone tomcat, it is
guaranteed to work on the embedded one too
take a look at the tomcat documentation (RTFM :)
Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Marcel
> Schepers
> Sent: Tuesday, May 01, 2001 10:59 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] from mod_jserv to mod_jk problems
>
>
> Hi everybody,
>
> this is not directly a jboss related question, but I think it is
> relevant. I am now using apache in conjunction with mod_jserv to serve
> servlets on my webserver. These servlets are in a variety of
> directories, however none of them called .../servlet/..

> Because I want to migrate to the combination of apache and the
> integrated jboss/tomcat architecture in order to deploy EJBs, I would
> like to know if it is possible to create "custom" subdirectories from
> which to serve my old servlets, so I don't have to rewrite the
> existing sites. Maybe I should say URLs instead of subdirectories.
> For instance a login servlet with the url http://myserver/modules/Login...
> Creating http://myserver/modules/servlet/Login is very
> straightforward, but I am at a loss at how to get the old URL
> operational.
> It would also be very helpful if I could leave the filestructures of
> the old sites intact, but all help will be greatly appreciated.
>
> Thank you very much in advance,
> Jeroen & Marcel
>
>
>
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to