File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Tomcat 3.1 in Win NT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat 3.1 in Win NT" Watch "Tomcat 3.1 in Win NT" New topic
Author

Tomcat 3.1 in Win NT

jin shin
Greenhorn

Joined: Oct 28, 2002
Posts: 7
I�m having a difficulty in executing the servlets example from tomcat 3.1.
http://localhost:8080/examples/servlets/
This line works fine in win 98, but not in Win NT. I have the ff. Environment variables: TOMCAT_HOME and JDK_HOME. I have started the server prior to executing this line. Somebody help�
jin shin
Greenhorn

Joined: Oct 28, 2002
Posts: 7
I installed Tomcat 3.1 in Win NT with the following details:
1. Classpath contains jdk classes
 .;C:\jdk\lib\classes.zip
2 Path contains jdk bin
 .;C:\jdk\bin
3 I installed tomcat in
 C:\Implementation
Which make C:\Implementation as my installation directory
4 I�ve got the following directory structure in my installation directory
 C:\Implementation\jakarta-tomcat
 The following directory exist in the C:\Implementation\jakarta-tomcat
bin ->>Contains startup/shutdown� scripts
conf ->>Contains various configuration files including server.xml (Tomcat�s main configuration file) and web.xml that sets the default values for the various web applications deployed in Tomcat.
Doc ->>Contains miscellaneous documents regarding Tomcat.
Lib ->>Contains various jar files that are used by Tomcat. On UNIX any file in this directory is appended to Tomcat�s classpath.
Src ->>The servlet APIs source files. Don�t get excited, though; these are only the empty interfaces and abstract classes that should be implemented by any servlet container.
Webapps ->>Contains sample web applications.

 I opened a dos console and go straight to the
C:\Implementation\jakarta-tomcat\bin
and executed the startup.bat
e.g. C:\Implementation\jakarta-tomcat\bin startup
It seems to work here�
5. Then I open the Internet explorer and enter
http://localhost:8080/examples/servlets/
� it didn�t work. Can someone help me with this� thank you!
jin shin
Greenhorn

Joined: Oct 28, 2002
Posts: 7
Something funny... When I call startup.bat
c:\Implementation\jakarta-tomcat\bin startup
in dos console, another window (dos) produces the following details:
Context log: path="/examples" Adding context path="/examples" docBase="webapps/
examples"
Context log: path="" Adding context path="" docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test" docBase="webapps/test"
Starting tomcat. Check logs/tomcat.log for error messages
Starting tomcat install="C:\JavaTools\tomcat\jakarta-tomcat" home="C:\JavaTools\
tomcat\jakarta-tomcat" classPath="C:\JavaTools\tomcat\jakarta-tomcat\classes;C:\
JavaTools\tomcat\jakarta-tomcat\lib\webserver.jar;C:\JavaTools\tomcat\jakarta-to
mcat\lib\jasper.jar;C:\JavaTools\tomcat\jakarta-tomcat\lib\xml.jar;C:\JavaTools\
tomcat\jakarta-tomcat\lib\servlet.jar;C:\Program Files\Sybase\Shared\Sun\jdk122\
lib\tools.jar;C:\Program Files\JavaSoft\Jaxp1.0.1\jaxp.jar;C:\Program Files\Java
Soft\Jaxp1.0.1\parser.jar;"
Context log: path="/admin" Automatic context load docBase="C:\JavaTools\tomcat\j
akarta-tomcat\webapps\admin"
Context log: path="/admin" Adding context path="/admin" docBase="C:\JavaTools\t
omcat\jakarta-tomcat\webapps\admin"
My tomcat.log contains:
Starting endpoint port="8080" handler="org.apache.tomcat.service.http.HttpConnectionHandler"
Starting endpoint port="8007" handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
Does this makes sense?
jin shin
Greenhorn

Joined: Oct 28, 2002
Posts: 7
I got it working as a localhost! I manage to start from Win NT. I'm using IE5.
What I did was...
From IE5...
1. Click Tools menu then select Internet options
2. Click on the Connection tab
3. Click on the Lan Settings
4. Click on the check box that says "Bypass Proxy server for local address" (you should check this box)
5. Start your tomcat server
6. Start IE5
7. type http://localhost/examples
That's it!

6. Then
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 3.1 in Win NT