File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes help needed on tomcat set up Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "help needed on tomcat set up" Watch "help needed on tomcat set up" New topic

help needed on tomcat set up


Joined: Jul 03, 2000
Posts: 27
I downloaded tomcat and extracted all the files to my hard disk. I clicked on the startup.bat. Tomcat seems to be up abd running since I haven't got any error messages. I am using Win NT4.0 and netscape browser.
I opened the browser and typed http://localhost:8080/. Netscape comes up with an error window saying that 'the document contained no data. Try again later or contact your sevrer's administrator". When I type, it take me to a html page that talks about microsoft nt 4.0 option pack where something about internet server samples is mentioned.
Can any one tell me how to run the samplet servlets that come with TomCat? I want to check if installation is perfect and tomcat is running.
Thank you.
[This message has been edited by sat (edited August 10, 2000).]

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
The first thing to do - run startup.bat from a MSDOS console window, don't click on it. The window will stay open and you can see if error messages result.
You should set the environment variables TOMCAT_HOME and JAVA_HOME - here is the way mine look:
(I renamed C:\jakarta-tomcat as it is written by the zip file)

Joined: Jul 03, 2000
Posts: 27
Thanks William. I already did what you said.
I haven't done any changes but it is working now. The only difference is that I was connected to my office network earlier and now I am in a stand alone mode. Does it matter ?
jin shin

Joined: Oct 28, 2002
Posts: 7
I think I agree with satya. It doesn't seem to worked if I am connected through a network (in office). I try this whole think at home, Win 98, and it working fine. Do we need additional set-up in order for servlet examples to run in Win NT? Somebody help?
Thanks in advance!
I agree. Here's the link:
subject: help needed on tomcat set up
It's not a secret anymore!