This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat Under Apache in Windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Under Apache in Windows" Watch "Tomcat Under Apache in Windows" New topic
Author

Tomcat Under Apache in Windows

Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

Hei friends, I m usinf Tomcat under windows 2000 Server and want to know abt installing+configuring Apache+Tomcat under windows to run servlets/jsp...
I guess the steps should be ----
(1) Download apache and tomcat(i have already)
(2) Install apapche in a drive
(3) Install Tomcat (but where?)
(4) Configure Apache to run Tomcat
(5) Configure tomcat to work under Apache
Are my all guesses true? Then tell me how should i exercise the steps. And also any useful link....

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!


Ashik Uzzaman
Senior Member of Technical Staff, Salesforce.com, San Francisco, CA, USA.
Jim Petersen
Ranch Hand

Joined: Jul 24, 2001
Posts: 241
Hi Ashik
For a development environment why not just run Tomcat as a stand-alone web app server/servlet container? rather than both Apache and Tomcat?
heres an interesting series of articles that may help with your doubts from a good source for Win 2000
http://www.onjava.com/pub/a/onjava/2001/03/29/tomcat.html http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html
all the best - Jim


- Jim Petersen <br />SCJP2<br />SCWCD<p>- but then again, I could be wrong...
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

Thnx Jim, very good link indeed! I'll check them.
Actually I m using Tomcat under win2k in my house and that works fine.... ...i was just curious how can i install & configure Apache and Tomcat to work together under my win2k server. Just curious....
------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
Elizabeth Lester
Ranch Hand

Joined: Aug 14, 2001
Posts: 129
Jim,
Thanks for those excellent links! The "Deploying Web Applications" article is exactly what I was looking for.
I really appreciate it!
--liz
Jim Petersen
Ranch Hand

Joined: Jul 24, 2001
Posts: 241
Cheers Liz and Ashik!
Its always nice to get appreciation!

-------------------------
- Jim Petersen SCJP
-------------------------
[This message has been edited by Jim Petersen (edited November 30, 2001).]
Peter Franz
Greenhorn

Joined: Feb 07, 2002
Posts: 15
For those who are still searching!
This is a good howto:
http://bruno.vernay.free.fr/HowTo/Apache-tomcat/bWebServer/bWebServer.html

uhon
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

Good link Urs, thanks!
Peter Franz
Greenhorn

Joined: Feb 07, 2002
Posts: 15
Unfortunately it didn't work.
But here is the oficial mod_jk/mod_jk2 documentation from Apache:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
It's very dificult to find, if you don't know the name of the module you have to use.
but as it comes from apache.org, this configuration should work (i think). I'll try it out tonight
Have a nice day!
Urs
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

Do you know JK and now JK2? Why the name was JK? Jakarta or Java K??
I'll use it to integrate Apache and Tomcat instead of the backdated mod_jserv.
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

I have been trying to use mod_jk as Apache2 and Tomcat4 connector and added the following line in my apahce conf/httpd.conf file.
Include C:/Progarm/Tomcat4/conf/jk/mod_jk.conf-auto
But when I try to restart my apache web server under win2k, it gives the following error in system log file.

The Apache2 service terminated with service-specific error 1.

And according to the following tutorial http://atlassw1.phy.bnl.gov/jakarta-tomcat/mod_jk-howto.html#s8 , I don't find any AutoWebApp element in Tomcat's server.xml after which I should have used the ApacheConfig element.
I have also copied the mod_jk2.0.43.dll module in apache modules directory. Any hint about where am i missing?
[ December 28, 2002: Message edited by: Ashik uzzaman ]
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

I am successfully using JK to connect Apache and Tomcat...hurrah
I'll now try to use JK2 instead of JK and later post the steps I followed.
Till then, bye.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat Under Apache in Windows