You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mike Kelley <Mi...@M-V-T.COM> on 2001/12/04 23:34:01 UTC
FW: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this.
Markus,
I got this HOW TO from a user who got TC 4.0.1 to work with Apache 1.3.22 on
a W2K machine ... He also claims to have gotten it running under AIX
It was Arnaud Héritier [mailto:aheritier@sopra.com] that claims the
success story, however I used the directions provided below and got my
version of 1.3.22 + 4.0.1 + mod_jk + jdk1.3.1 working on a w2k platform ....
-----Original Message-----
From: Arnaud Héritier [mailto:aheritier@sopra.com]
Sent: Thursday, October 11, 2001 4:31 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this.
> -----Message d'origine-----
> De: Curley, Thomas [SMTP:thomas.curley@euroconex.com]
> Date: jeudi 11 octobre 2001 12:05
> À: tomcat-user@jakarta.apache.org
> Objet: RE: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this.
>
> I realise there has been alot of chat ref integration but I would
> appreciate clarification for Win2K platform
>
> Qu:
> --
> I wish to integrate Apache 1.3 and Tomcat 4.0 for on Win 2000 (ie)
> static resources from apache, JSP and Servlets from TC
>
> a) Do I need to add AJP 1.3 support ?
It seems that there's no release for windows of the other connector :
mod_webapp.
So I think that is the only connector available today except that you want
and you can compile the mod_webapp connector under a Windows Plateform.
I followed instructions from this documents and adapted them for TC 4.0.
So here is what I done .
1) Tomcat 4.0 :
- Be carefull to do not install TC4 in a path with spaces " " !!!!!
otherwise you should use the 8.3 directory names to configure TC
- In the server/lib subdirectory of TC4 add the ajp.jar and the
tomcat-util.jar
- in the conf subdirectory copy the workers.properties from a TC 3.2. Edit
it and fill the lines :
workers.tomcat_home=C:\Programs\Tomcat4.0
workers.java_home=C:\Programs\jdk1.3.1
with your own configuration.
- Edit the server.xml and add the AJP connector like this :
<!-- Connector for AJP 1.3 -->
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0" connectionTimeout="0" />
Now the tomcat server is ready
2) Apache
- firstly copy the mod_jk.dll from the TC3 distrib in the apache modules
subdirectory
- Configure Apache
Contrary to TC3, TC4 do not generate the Apache configuration. So you should
do it yourself.
At the end of your httpd.conf file you should add (and adapt)
# TC 4.0 settings
#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module modules/mod_jk.dll
JkWorkersFile "C:/Programs/Tomcat4.0/conf/workers.properties"
JkLogFile "C:/Programs/Tomcat4.0/logs/mod_jk.log"
#
# Log level to be used by mod_jk
#
JkLogLevel error
#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
Then for each Context you had created in tomcat you should had a paragraph
like this (it's the same thong as in TC3):
Here my context is /pfe
and the directory of the web-app is C:/Work/Dev/pfe/stock/gui/dist/pfe-gui
#
# The following line makes apache aware of the location of the /pfe context
# Alias /pfe "C:/Work/Dev/pfe/stock/gui/dist/pfe-gui"
<Directory "C:/Work/Dev/pfe/stock/gui/dist/pfe-gui">
Options Indexes FollowSymLinks
</Directory>
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat #
JkMount /pfe/servlet/* ajp13 JkMount /pfe/*.jsp ajp13 JkMount /pfe/*.do
ajp13
#
# The following line prohibits users from directly accessing WEB-INF #
<Location "/pfe/WEB-INF/">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches #
<Directory "C:/Work/Dev/pfe/stock/gui/dist/pfe-gui/WEB-INF/">
AllowOverride None
deny from all
</Directory>
#
# The following line prohibits users from directly accessing META-INF #
<Location "/pfe/META-INF/">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches #
<Directory "C:/Work/Dev/pfe/stock/gui/dist/pfe-gui/META-INF/">
AllowOverride None
deny from all
</Directory>
You can also do the same type of things to deploy the web-app directly as
the root of apache.
To help you, I join my configuration files.
Wishing that this explainations will help you.
arno.
> (if yes the instructions below don't work - TC wont start - I
> guess the note applies only to linux build)
>
> b) Can I just follow the TC 3.3 doc for integrating Apache and
> mod_jk as outlined
>
>
> http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.ht
> ml
>
> http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html
>
>
> many thanks for this clarification
>
>
>
> Thomas Curley
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Arnaud Héritier [mailto:aheritier@sopra.com]
> Sent: 11 October 2001 09:41
> To: 'tomcat-user@jakarta.apache.org'
> Subject: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this.
> Importance: High
>
>
> For all people who want to integrate tomcat 4.0 and Apache 1.3(.20)
> with the AJP 1.3 connector, you must refer to this page :
>
> http://jakarta.apache.org/~hgomez/ajp13-tc4.0/
>
> Arno
>
> > -----Message d'origine-----
> > De: Krasi Zlatev [SMTP:krasice@yahoo.com]
> > Date: jeudi 11 octobre 2001 10:21
> > À: tomcat-user@jakarta.apache.org
> > Objet: Tomcat4+Apache Web server question?
> >
> > How to make the connection between Tomcat4 and
> > Apache web server
> > when I uncomment the Ajp13 connector in server.xml
> > I get
> >
> > Catalina.start: java.lang.ClassNotFoundException:
> > org.apache.ajp.tomcat4.Ajp13Connector
> > java.lang.ClassNotFoundException:
> > org.apache.ajp.tomcat4.Ajp13Connector
> >
> > Indeed I do not need Tomcat as a standalone server I
> > just need it to serve the invoked jsps and serlvets
> > from Apache WEb server.
> >
> > How to configure Tomcat to do that, and what to use
> > as a connector between Apache Web server and Tomcat.
> >
> > Thank You!
> >
> > =====
> > Krasi Zlatev
> > Enjoy!
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Make a great connection at Yahoo! Personals.
> > http://personals.yahoo.com
Re: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this.
Posted by vendo <c....@laposte.net>.
Thanks a lot for this page,
I'll keep you informed on how it works for me
Vendo
----- Original Message -----
From: "Mike Kelley" <Mi...@M-V-T.COM>
To: "Markus Baertschi" <ma...@markus.org>
Cc: <to...@jakarta.apache.org>
Sent: Tuesday, December 04, 2001 11:34 PM
Subject: FW: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this.
Markus,
I got this HOW TO from a user who got TC 4.0.1 to work with Apache 1.3.22 on
a W2K machine ... He also claims to have gotten it running under AIX
It was Arnaud Héritier [mailto:aheritier@sopra.com] that claims the
success story, however I used the directions provided below and got my
version of 1.3.22 + 4.0.1 + mod_jk + jdk1.3.1 working on a w2k platform ....
-----Original Message-----
From: Arnaud Héritier [mailto:aheritier@sopra.com]
Sent: Thursday, October 11, 2001 4:31 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: RE: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this.
> -----Message d'origine-----
> De: Curley, Thomas [SMTP:thomas.curley@euroconex.com]
> Date: jeudi 11 octobre 2001 12:05
> À: tomcat-user@jakarta.apache.org
> Objet: RE: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this.
>
> I realise there has been alot of chat ref integration but I would
> appreciate clarification for Win2K platform
>
> Qu:
> --
> I wish to integrate Apache 1.3 and Tomcat 4.0 for on Win 2000 (ie)
> static resources from apache, JSP and Servlets from TC
>
> a) Do I need to add AJP 1.3 support ?
It seems that there's no release for windows of the other connector :
mod_webapp.
So I think that is the only connector available today except that you want
and you can compile the mod_webapp connector under a Windows Plateform.
I followed instructions from this documents and adapted them for TC 4.0.
So here is what I done .
1) Tomcat 4.0 :
- Be carefull to do not install TC4 in a path with spaces " " !!!!!
otherwise you should use the 8.3 directory names to configure TC
- In the server/lib subdirectory of TC4 add the ajp.jar and the
tomcat-util.jar
- in the conf subdirectory copy the workers.properties from a TC 3.2. Edit
it and fill the lines :
workers.tomcat_home=C:\Programs\Tomcat4.0
workers.java_home=C:\Programs\jdk1.3.1
with your own configuration.
- Edit the server.xml and add the AJP connector like this :
<!-- Connector for AJP 1.3 -->
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0" connectionTimeout="0" />
Now the tomcat server is ready
2) Apache
- firstly copy the mod_jk.dll from the TC3 distrib in the apache modules
subdirectory
- Configure Apache
Contrary to TC3, TC4 do not generate the Apache configuration. So you should
do it yourself.
At the end of your httpd.conf file you should add (and adapt)
# TC 4.0 settings
#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module modules/mod_jk.dll
JkWorkersFile "C:/Programs/Tomcat4.0/conf/workers.properties"
JkLogFile "C:/Programs/Tomcat4.0/logs/mod_jk.log"
#
# Log level to be used by mod_jk
#
JkLogLevel error
#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
Then for each Context you had created in tomcat you should had a paragraph
like this (it's the same thong as in TC3):
Here my context is /pfe
and the directory of the web-app is C:/Work/Dev/pfe/stock/gui/dist/pfe-gui
#
# The following line makes apache aware of the location of the /pfe context
# Alias /pfe "C:/Work/Dev/pfe/stock/gui/dist/pfe-gui"
<Directory "C:/Work/Dev/pfe/stock/gui/dist/pfe-gui">
Options Indexes FollowSymLinks
</Directory>
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat #
JkMount /pfe/servlet/* ajp13 JkMount /pfe/*.jsp ajp13 JkMount /pfe/*.do
ajp13
#
# The following line prohibits users from directly accessing WEB-INF #
<Location "/pfe/WEB-INF/">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches #
<Directory "C:/Work/Dev/pfe/stock/gui/dist/pfe-gui/WEB-INF/">
AllowOverride None
deny from all
</Directory>
#
# The following line prohibits users from directly accessing META-INF #
<Location "/pfe/META-INF/">
AllowOverride None
deny from all
</Location>
#
# Use Directory too. On Windows, Location doesn't work unless case matches #
<Directory "C:/Work/Dev/pfe/stock/gui/dist/pfe-gui/META-INF/">
AllowOverride None
deny from all
</Directory>
You can also do the same type of things to deploy the web-app directly as
the root of apache.
To help you, I join my configuration files.
Wishing that this explainations will help you.
arno.
> (if yes the instructions below don't work - TC wont start - I
> guess the note applies only to linux build)
>
> b) Can I just follow the TC 3.3 doc for integrating Apache and
> mod_jk as outlined
>
>
> http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.ht
> ml
>
> http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html
>
>
> many thanks for this clarification
>
>
>
> Thomas Curley
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Arnaud Héritier [mailto:aheritier@sopra.com]
> Sent: 11 October 2001 09:41
> To: 'tomcat-user@jakarta.apache.org'
> Subject: TOMCAT 4.0 + APACHE + AJP 1.3 : look at this.
> Importance: High
>
>
> For all people who want to integrate tomcat 4.0 and Apache 1.3(.20)
> with the AJP 1.3 connector, you must refer to this page :
>
> http://jakarta.apache.org/~hgomez/ajp13-tc4.0/
>
> Arno
>
> > -----Message d'origine-----
> > De: Krasi Zlatev [SMTP:krasice@yahoo.com]
> > Date: jeudi 11 octobre 2001 10:21
> > À: tomcat-user@jakarta.apache.org
> > Objet: Tomcat4+Apache Web server question?
> >
> > How to make the connection between Tomcat4 and
> > Apache web server
> > when I uncomment the Ajp13 connector in server.xml
> > I get
> >
> > Catalina.start: java.lang.ClassNotFoundException:
> > org.apache.ajp.tomcat4.Ajp13Connector
> > java.lang.ClassNotFoundException:
> > org.apache.ajp.tomcat4.Ajp13Connector
> >
> > Indeed I do not need Tomcat as a standalone server I
> > just need it to serve the invoked jsps and serlvets
> > from Apache WEb server.
> >
> > How to configure Tomcat to do that, and what to use
> > as a connector between Apache Web server and Tomcat.
> >
> > Thank You!
> >
> > =====
> > Krasi Zlatev
> > Enjoy!
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Make a great connection at Yahoo! Personals.
> > http://personals.yahoo.com
----------------------------------------------------------------------------
----
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>