Solved

Apache, Tomcat, W95 install and Operation

Posted on 2001-08-02
5
253 Views
Last Modified: 2010-03-04
Windows 95 is the operating system that was installed on the laptop where I work (no choice).  I need to program some servlets and need a server and servlet container to test them out in.  I was wondering if anyone has gotten Apache (binary) 1.3.20 and Tomcat 3.2.1 to work on Windows.  It mentions a problem with the 8.3 naming scheme on windows9x machines.  

But currently I am lost.  

Tom
0
Comment
Question by:tomboshell
  • 3
  • 2
5 Comments
 
LVL 1

Expert Comment

by:RichardA
ID: 6350073
I've setup Apache and tomcat on both 95 and NT without any problem.  we used the Apache 1.3.19 (apache_1.3.19-win32-no_src-r2.msi) and tomcat 3.2.1

Apache was setup in c:\program files\apache group\apache

and we setup tomcat in c:\tomcat

here's an excellent link on setting up apache/tomcat

http://www.devshed.com/Server_Side/Jserv/JSPDev/
0
 
LVL 7

Author Comment

by:tomboshell
ID: 6363563
The article is helpful, but I have the newer versions that what is mentioned.  TomCat is running now and I think that I don't need apache to test servlets on my own computer.  What I don't understand is setting up the files for running my servlets.  What I understand is that you have to put the directory in the webapps folder and set some entries in the xml files (like the server.xml file in the config directory).  But I tried that with no success.  

What would be the easiest, quickest way to get a servlet to run? I have it placed in its own directory because it has to access some configuration files and other classes.

Thanks for your help so far,
Tom
0
 
LVL 1

Accepted Solution

by:
RichardA earned 200 total points
ID: 6363652
When tomcat first runs it creates a webapps\examples directory.  that is the default for what is delivered.  If you want to get something tested quickly you can put the servlet class files in \webapps\examples\Web-inf\classes    directory.  Then you would point your browser to something like this http://localhost:8080/examples/servlet/HelloWorldExample  (HelloWorldExample being your servlet class file)

Note that tomcat treats the  \webapps\examples\Web-inf\classes directory as the servlet directory so if you see a servlets directory any where it's not for serving up servlets.  It's just there to confuse you.

Now if you want to have your own directory for servlets you need to modify the config files that tomcat uses and create a section for your directory.

Your directory structure would need to mirror the \examples directory with all the sub-directories.

I'm not sure which config file you need to change.  I have apache serving up my HTML which is much quicker than tomcat and tomcat just does the servlet/jsp so I have a tomcat-apache.conf file.  If you look at the .conf files in the tomcat\conf directory you should be able to figure which one too change.  The tomcat documentation should help.  there is also a mod_jk.conf-auto file that may also need changing.  

Try the default tomcat stuff then look at the config directory.  


0
 
LVL 7

Author Comment

by:tomboshell
ID: 6372195
Ok, that all worked.  I also found a nice link at http://www.onjava.com/pub/ct/33

But your tips basically covered it all.

Thank,
Tom
0
 
LVL 7

Author Comment

by:tomboshell
ID: 6372199
Thanks for the help
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Suggested Solutions

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now