This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Apache/Tomcat Configuration

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the correct link.
http://www.webappcabaret.com/javachina/tomcathowto.htm
Clyde
 
Whoever got anywhere by being normal? Just ask this exceptional tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!