Solved

Apache, Tomcat, W95 install and Operation

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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). #…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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…

777 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