Solved

Apache, Tomcat, W95 install and Operation

Posted on 2001-08-02
5
267 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

738 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