Integrating Apache 2.0.36 and Tomcat 4.0.4 on Win32
Hi all, My name is Aleksandr Jones. Greetings to all Apache of the open source community. I am attempting to get Apache 2.0.36 and Tomcat 4.0.4 connected, so that static content is served by the former and dynamic by the latter. I am running Windows 2000 SP2 on an Intel Machine. I mainly used the galatea.com flash guide for integrating Apache 2.0.36 and Tomcat 4.04 as a guideline for this. I have done the following steps: I downloaded the JDK 1.4 installation file --> j2sdk-1_4_0_01-windows-i586.exe My JDK 1.4 is installed in C:\j2sdk14 My environment variables are set as follows: %JAVA_HOME% = C:\j2sdk14\ %PATH% = %PATH% --> append C:\j2sdk14\; C:\j2sdk14\bin That's my Java stuff. I downloaded and ran the windows installer (MSI) installation for Tomcat 4.0. I ran the installation and put tomcat in C:\Tomcat4\ My environment variables are thusly set: %Catalina_Home% = C:\Tomcat4\ %Tomcat_Home% = C:\Tomcat4\ Tomcat is installed as a service, so I start the sucker up and check it out: http://localhost:8080/ --> and I immediately see the Tomcat page: "If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!" There's my Tomcat stuff for now. I downloaded the source code for Apache HTTP Server 2.0.36. My environment variables are thusly set: %Apache2_Home% = C:\Apache2\ %Apache_Home% = C:\Apache\ I built the INSTALLBIN configuration in my *ahem* Microsoft Visual Studio, and it produced my Apache2 configuration. I run Apache from the command line, and test http://localhost:80 For which it responds: "If you can see this, it means that the installation of the Apache web server software on this system was successful" etc. Next, I downloaded Apache Ant 1.5, and extract it to C:\JakartaAnt\bin; My environment variables are thusly set: %PATH% = %PATH% --> append C:\JakartaAnt\bin; There goes Ant. Next I downloaded jakarta-tomcat-connectors-4.0.2.01-src.zip. I extracted to the directory C:\JKConnectors\ Here is a dump of the file C:\JKConnectors\jk\build.properties # # sample build.properties for ajp connector. # edit to taste... # # $Id: build.properties.sample,v 1.2 2001/05/29 23:05:52 seguin Exp $ # tomcat40.home=c:/Tomcat4 apache2.home=c:/Apache2 apr.include=${apache2.home}/include apr.lib=${apache2.home}/lib so.debug=true so.optimize=false so.profile=false Looks good, I think. I decided to futz with Build.xml in exactly this one way: I ran ANT in the directory C:\JKConnectors\jk\. That produces this output: Buildfile: build.xml detect: [echo] jakarta-tomcat-connectors guess_catalina40: guess_catalina41: cpath: prepare: report: [echo] Tomcat33: ${tomcat33.detect} ${tomcat33.home} [echo] Tomcat40: true c:/Tomcat4 [echo] Tomcat41: ${tomcat41.detect} ${tomcat41.home} [echo] Apache13: ${apache13.detect} ${apache13.home} [echo] Apache2: true c:/Apache2 [echo] iPlanet: ${iplanet.detect} ${iplanet.home} [echo] IIS: ${iis.detect} ${iis.home} [echo] Using catalina.home: C:\Tomcat4 jkutil: jkjava: jkant: build-main: BUILD SUCCESSFUL Total time: 2 seconds I ran "ANT INSTALL" in the directory C:\JKConnectors\jk\. That produces this simliar output: Buildfile: build.xml detect: [echo] jakarta-tomcat-connectors guess_catalina40: guess_catalina41: cpath: prepare: report: [echo] Tomcat33: ${tomcat33.detect} ${tomcat33.home} [echo] Tomcat40: true c:/Tomcat4 [echo] Tomcat41: ${tomcat41.detect} ${tomcat41.home} [echo] Apache13: ${apache13.detect} ${apache13.home} [echo] Apache2: true c:/Apache2 [echo] iPlanet: ${iplanet.detect} ${iplanet.home} [echo] IIS: ${iis.detect} ${iis.home} [echo] Using catalina.home: C:\Tomcat4 jkutil: jkjava: jkant: build-main: install-t33: install-t40: install-t41: install-a20: install-a13: install: BUILD SUCCESSFUL Total time: 2 seconds Now, after repeatedly failing to use the mod_jk.dll from http://www.acg-gmbh.de/mod_jk/, I went and compiled the one in the C:\JKConnectors\JK\Native\Apache-2.0. (Notice, these failures were marked by error messages and Apache failing start; I excluded this data since I got past it with my homegrown version) So, *poof*, now I have mod_jk.dll. I copy mod_jk.dll into C:\Apache2\Modules\ directory. Now, I went to my Tomcat server.xml file and modified it thusly: 1.) The log file listener: 2.) Get the AJP Connector listening on port 8009 3.) Humor a suggestion from Galatea's guide ;-) Next, I ran Tomcat to auto-generate the mod_jk.conf file. My mod_jk.conf file is exactly this: ## Auto generated on Thu Jul 18 22:10:37 CDT 2002## LoadModule jk_module c:/Apache2/modules/mod_jk.dll JkWorkersFile "c:/Tomcat4/conf/jk/workers.properties" JkLogFile "c:/Tomcat4/logs/mod_jk.log" JkLogLevel info ServerName localhost Jk
Re: Integrating Apache 2.0.36 and Tomcat 4.0.4 on Win32
I basically did the install like you did below and everything works fine for me when I just use 'localhost' and try the stuff on the particular machine where everything resides. However no matter what I try I can not get apache2.0.39 to pick up any Tomcat applications when typing in the url from another machine. I'm tyring to set up under a different port 7000... and http://afs.outback.com:7000/ brings up apache fine http://afs.outback.com:8080/myApp/ brings up tomcat fine http://afs.outback.com:7000/myApp/ no good doesn't serve up my tomcat app However running on the machine where the server is and use localhost above and everything is fine. Very frustrating that I can't find documentation on this. If anyone has ideas let me know. Aleksandr, double check your set up with this doc http://mpcon.org/temp/how2install_apache_w_php_jsp_support.doc It worked fine for mine under localhost but still having problems above. On Wednesday, July 24, 2002, 8:40:32 AM, Aleksandr wrote: AJ> Hi all, AJ> My name is Aleksandr Jones. Greetings to all Apache of the open source AJ> community. AJ> I am attempting to get Apache 2.0.36 and Tomcat 4.0.4 connected, so that AJ> static AJ> content is served by the former and dynamic by the latter. I am running AJ> Windows AJ> 2000 SP2 on an Intel Machine. I mainly used the galatea.com flash guide for AJ> integrating Apache 2.0.36 and Tomcat 4.04 as a guideline for this. AJ> I have done the following steps: AJ> I downloaded the JDK 1.4 installation file --> AJ> j2sdk-1_4_0_01-windows-i586.exe AJ> My JDK 1.4 is installed in C:\j2sdk14 AJ> My environment variables are set as follows: AJ> %JAVA_HOME% = C:\j2sdk14\ %PATH% = %PATH% -->> append C:\j2sdk14\; C:\j2sdk14\bin AJ> That's my Java stuff. AJ> I downloaded and ran the windows installer (MSI) installation for Tomcat AJ> 4.0. I AJ> ran the installation and put tomcat in C:\Tomcat4\ AJ> My environment variables are thusly set: AJ> %Catalina_Home% = C:\Tomcat4\ AJ> %Tomcat_Home% = C:\Tomcat4\ AJ> Tomcat is installed as a service, so I start the sucker up and check it out: AJ> http://localhost:8080/ --> and I immediately see the Tomcat page: AJ> "If you're seeing this page via a web browser, AJ> it means you've setup Tomcat successfully. Congratulations!" AJ> There's my Tomcat stuff for now. AJ> I downloaded the source code for Apache HTTP Server 2.0.36. AJ> My environment variables are thusly set: AJ> %Apache2_Home% = C:\Apache2\ AJ> %Apache_Home% = C:\Apache\ AJ> I built the INSTALLBIN configuration in my *ahem* Microsoft Visual Studio, AJ> and it produced my Apache2 configuration. AJ> I run Apache from the command line, and test http://localhost:80 AJ> For which it responds: AJ> "If you can see this, it means that the installation of the Apache web AJ> server AJ> software on this system was successful" etc. AJ> Next, I downloaded Apache Ant 1.5, and extract it to C:\JakartaAnt\bin; AJ> My environment variables are thusly set: %PATH% = %PATH% -->> append C:\JakartaAnt\bin; AJ> There goes Ant. AJ> Next I downloaded jakarta-tomcat-connectors-4.0.2.01-src.zip. I extracted AJ> to the directory C:\JKConnectors\ AJ> Here is a dump of the file C:\JKConnectors\jk\build.properties AJ> # AJ> # sample build.properties for ajp connector. AJ> # edit to taste... AJ> # AJ> # $Id: build.properties.sample,v 1.2 2001/05/29 23:05:52 seguin Exp $ AJ> # AJ> tomcat40.home=c:/Tomcat4 AJ> apache2.home=c:/Apache2 AJ> apr.include=${apache2.home}/include AJ> apr.lib=${apache2.home}/lib AJ> so.debug=true AJ> so.optimize=false AJ> so.profile=false AJ> Looks good, I think. AJ> I decided to futz with Build.xml in exactly this one way: AJ> location="C:/tomcat4" /> AJ> I ran ANT in the directory C:\JKConnectors\jk\. That produces this output: AJ> Buildfile: build.xml AJ> detect: AJ> [echo] jakarta-tomcat-connectors AJ> guess_catalina40: AJ> guess_catalina41: AJ> cpath: AJ> prepare: AJ> report: AJ> [echo] Tomcat33: ${tomcat33.detect} ${tomcat33.home} AJ> [echo] Tomcat40: true c:/Tomcat4 AJ> [echo] Tomcat41: ${tomcat41.detect} ${tomcat41.home} AJ> [echo] Apache13: ${apache13.detect} ${apache13.home} AJ> [echo] Apache2: true c:/Apache2 AJ> [echo] iPlanet: ${iplanet.detect} ${iplanet.home} AJ> [echo] IIS: ${iis.detect} ${iis.home} AJ> [echo] Using catalina.home: C:\Tomcat4 AJ> jkutil: AJ> jkjava: AJ> jkant: AJ> build-main: AJ> BUILD SUCCESSFUL AJ> Total time: 2 seconds AJ> I ran "ANT INSTALL" in the directory C:\JKConnectors\jk\. AJ> That produces this simliar output: AJ> Buildfile: build.xml AJ> detect: AJ> [echo] jakarta-tomcat-connectors AJ> guess_catalina40: AJ> guess_catalina41: AJ> cpath: AJ> prepare: AJ> report: AJ> [echo] Tomcat33: ${tomcat33.detect} ${tomcat33.home} AJ> [echo] Tomcat40: true c:/Tomcat4 AJ> [echo] Tomcat41: ${tomcat41.detect} ${tomcat41.hom
Re: Integrating Apache 2.0.36 and Tomcat 4.0.4 on Win32
How are you getting apache to answer at localhost and afs.outback.com? AFAIK without using virtual servers Apache will only listen to one name or the other. Rick Reumann <[EMAIL PROTECTED]> 07/24/2002 07:11 AM Please respond to "Tomcat Users List" To: "Aleksandr Jones" <[EMAIL PROTECTED]> cc: [EMAIL PROTECTED] Subject: Re: Integrating Apache 2.0.36 and Tomcat 4.0.4 on Win32 I basically did the install like you did below and everything works fine for me when I just use 'localhost' and try the stuff on the particular machine where everything resides. However no matter what I try I can not get apache2.0.39 to pick up any Tomcat applications when typing in the url from another machine. I'm tyring to set up under a different port 7000... and http://afs.outback.com:7000/ brings up apache fine http://afs.outback.com:8080/myApp/ brings up tomcat fine http://afs.outback.com:7000/myApp/ no good doesn't serve up my tomcat app However running on the machine where the server is and use localhost above and everything is fine. Very frustrating that I can't find documentation on this. If anyone has ideas let me know. Aleksandr, double check your set up with this doc http://mpcon.org/temp/how2install_apache_w_php_jsp_support.doc It worked fine for mine under localhost but still having problems above. On Wednesday, July 24, 2002, 8:40:32 AM, Aleksandr wrote: AJ> Hi all, AJ> My name is Aleksandr Jones. Greetings to all Apache of the open source AJ> community. AJ> I am attempting to get Apache 2.0.36 and Tomcat 4.0.4 connected, so that AJ> static AJ> content is served by the former and dynamic by the latter. I am running AJ> Windows AJ> 2000 SP2 on an Intel Machine. I mainly used the galatea.com flash guide for AJ> integrating Apache 2.0.36 and Tomcat 4.04 as a guideline for this. AJ> I have done the following steps: AJ> I downloaded the JDK 1.4 installation file --> AJ> j2sdk-1_4_0_01-windows-i586.exe AJ> My JDK 1.4 is installed in C:\j2sdk14 AJ> My environment variables are set as follows: AJ> %JAVA_HOME% = C:\j2sdk14\ %PATH% = %PATH% -->> append C:\j2sdk14\; C:\j2sdk14\bin AJ> That's my Java stuff. AJ> I downloaded and ran the windows installer (MSI) installation for Tomcat AJ> 4.0. I AJ> ran the installation and put tomcat in C:\Tomcat4\ AJ> My environment variables are thusly set: AJ> %Catalina_Home% = C:\Tomcat4\ AJ> %Tomcat_Home% = C:\Tomcat4\ AJ> Tomcat is installed as a service, so I start the sucker up and check it out: AJ> http://localhost:8080/ --> and I immediately see the Tomcat page: AJ> "If you're seeing this page via a web browser, AJ> it means you've setup Tomcat successfully. Congratulations!" AJ> There's my Tomcat stuff for now. AJ> I downloaded the source code for Apache HTTP Server 2.0.36. AJ> My environment variables are thusly set: AJ> %Apache2_Home% = C:\Apache2\ AJ> %Apache_Home% = C:\Apache\ AJ> I built the INSTALLBIN configuration in my *ahem* Microsoft Visual Studio, AJ> and it produced my Apache2 configuration. AJ> I run Apache from the command line, and test http://localhost:80 AJ> For which it responds: AJ> "If you can see this, it means that the installation of the Apache web AJ> server AJ> software on this system was successful" etc. AJ> Next, I downloaded Apache Ant 1.5, and extract it to C:\JakartaAnt\bin; AJ> My environment variables are thusly set: %PATH% = %PATH% -->> append C:\JakartaAnt\bin; AJ> There goes Ant. AJ> Next I downloaded jakarta-tomcat-connectors-4.0.2.01-src.zip. I extracted AJ> to the directory C:\JKConnectors\ AJ> Here is a dump of the file C:\JKConnectors\jk\build.properties AJ> # AJ> # sample build.properties for ajp connector. AJ> # edit to taste... AJ> # AJ> # $Id: build.properties.sample,v 1.2 2001/05/29 23:05:52 seguin Exp $ AJ> # AJ> tomcat40.home=c:/Tomcat4 AJ> apache2.home=c:/Apache2 AJ> apr.include=${apache2.home}/include AJ> apr.lib=${apache2.home}/lib AJ> so.debug=true AJ> so.optimize=false AJ> so.profile=false AJ> Looks good, I think. AJ> I decided to futz with Build.xml in exactly this one way: AJ> location="C:/tomcat4" /> AJ> I ran ANT in the directory C:\JKConnectors\jk\. That produces this output: AJ> Buildfile: build.xml AJ> detect: AJ> [echo] jakarta-tomcat-connectors AJ> guess_catalina40: AJ> guess_catalina41: AJ> cpath: AJ> prepare: AJ> report: AJ> [echo] Tomcat33: ${tomcat33.detect} ${tomcat33.home} AJ> [echo] Tomcat40: true c:/Tomcat4 AJ> [echo] Tomcat41: ${tomcat41.detect} ${tomcat41.home} AJ> [echo] Apache13: ${ap