File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Apache/Tomcat Configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Apache/Tomcat Configuration" Watch "Apache/Tomcat Configuration" New topic
Author

Apache/Tomcat Configuration

clyde jones
Ranch Hand

Joined: Dec 02, 2000
Posts: 46
Hi All,
I am running win98 and jdk1.3. I have successfully installed Apache 1.3.19 and Tomcat 3.2.1 (I can use them independently). Now I need to configure Apache and Tomcat so that Apache will handle the static content and Tomcat will handle the jsps/servlets. From the Tomcat-Apache howto, it appears I need to modify (1)Apache's httpd.conf file, (2)Install a webserver adapter(I guess its talking about mod_jk) and (3)modify Tomcat's server.xml file. I must admit after reading the instructions, I'm not sure what to do (To me, the Howto Says a lot but then again doesn't say anything). I hate asking these types of questions. Can anyone help me or direct me to a more straight forward (easier to follow) howto? I really would like to get to some programming.
Thanks In Advance,
Clyde
Pankaj Bhagat
Greenhorn

Joined: May 01, 2001
Posts: 3
Hi,
I have successfully configured it.
I just needed the apache-tomcat howto to do it.
U just follow what is said in the how to.
If foe instance the howto says to edit a file.Edit it as it says.
Further if you are not able to loacte the file, simly use "find".
It took me some time to do this but the how to was sufficient.
If you need specific help, then come out with a specific question.
I am afraid if someone can give a better help than the one howto gives.
Pankaj
clyde jones
Ranch Hand

Joined: Dec 02, 2000
Posts: 46
Pankaj,
Thanks for your reply. Yeah, I can be specific. Here goes:
I will start with the server.xml file today. The "setting up the contexts" on page 4 (I printed the Howto). I guess the links under the Running Examples on page 3 are not suppose to show a page (unless you have a SlifkaWorld class in the appropriate directories). I've searched for SlifkaWorld starting at the Tomcat directory and could not find anything. I copied the context path tags pages 4-5 and pasted it at the bottom of the server.xml file before the </Server> tag. I wonder why aren't there ending context tags (</context> ). While in the server.xml file, I notice there were already two context tags:
<Context path="/examples"
docBase="webapps/examples"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
and
<Context path="/admin"
docBase="webapps/admin"
crossContext="true"
debug="0"
reloadable="true"
trusted="false" >
</Context>
Do I need another one? I'm a little confused. I know I can deliver servlets by placing the class in the path tomcat/root/web-inf/classes directory. I have not tested for html pages yet. I would appreciated if you would let me know if my server.xml is configured. Tomorrow the web server adapter.
Forgive me for the long explanation.
Thanks,
Clyde
clyde jones
Ranch Hand

Joined: Dec 02, 2000
Posts: 46
Hi All,
For those who are struggling with this as I am, this site may help http://www.webappcabaret.com/javachina/tomcathowto.htm. In spite of it All, Have a Good Time.

Clyde
clyde jones
Ranch Hand

Joined: Dec 02, 2000
Posts: 46
This is the correct link.
http://www.webappcabaret.com/javachina/tomcathowto.htm
Clyde
 
 
subject: Apache/Tomcat Configuration
 
Similar Threads
HowTo: Optional mod files in Apache
HowTo do this ?
howto generate dynamic field in jsp
howto
howto connect remote repository with winCVS?