Solved

Apache, Tomcat, W95 install and Operation

Posted on 2001-08-02
5
261 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

808 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