Solved

Apache, Tomcat, W95 install and Operation

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

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP: Insert Data into MySQL 5 61
Apache LDAP Authentication 20 51
How to configure virtual host in apache2 to have its own root folder 6 33
$_SERVER Variable question 31 49
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…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 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