This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes newbie:  troubleshooting apache/tomcat win98 environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "newbie:  troubleshooting apache/tomcat win98 environment" Watch "newbie:  troubleshooting apache/tomcat win98 environment" New topic
Author

newbie: troubleshooting apache/tomcat win98 environment

Richard Agnes
Greenhorn

Joined: Feb 12, 2001
Posts: 22
I am trying to set up my environment to do the java tutorial on servlets. I have done the following:
1. downloaded, unzipped and installed tomcat 3.2 & apache
2. downloaded the mod_jk.dll and put it in apache module directory
3. changed my classpath to include the servlets.jar
4. set environment variables for TOMCAT_HOME & JAVA_HOME in autoexec:
set TOMCAT_HOME=C:\jakarta\tomcat
set JAVA_HOME=C:\jdk1.2.2
5. in httpd.conf - Include \jakarta\tomcat\conf\mod_jk.conf-auto
then I try to run by:
1. start tomcat - works.
2. start apache - says mod_jk running or similar.
3. enter http://localhost:8080/bookstore (bookstore.war in webapps dir of tomcat)
4. I get to the bookstore.html page and trouble begins.
If apache is running I get a 404 error trying to "start shopping" which I think starts the catalog servlet.
If apache is not running and tomcat is doing the work, the page comes up but after a long time, and tomcat window logs an IOException ( Socket write error ).
It might be worth noting also, that tomcat is the homepage even when apache is running, I don't know if that is right or not?
Has anyone run into similar problem? I searched java.sun but all requests like this receive 0 reply.
thanks in advance.
Kent Vanderwaal
Greenhorn

Joined: Jul 10, 2001
Posts: 3
Don't start apache. Get your servlet running under Tomcat first, using port 8080 as you already are. Once your servlet works, connect apache and tomcat and use port 80 instead of port 8080.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: newbie: troubleshooting apache/tomcat win98 environment