This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes problem with tomcat installing and running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "problem with tomcat installing and running" Watch "problem with tomcat installing and running" New topic

problem with tomcat installing and running

Jeffry Cray

Joined: Oct 08, 2000
Posts: 25
I have installed Tomcat 3.1 and followed the instruction as suggested by plus I also went through javaranch
I am trying to start tomcat using 'c:\tomcat\bin>tomcat start' script after setting all environment variables. But i am getting "ERROR 207: The Requested URL Could Not Be Retreived" if i type http://localhost:8080/ on browser.
How do u know whether the script ran successfully and server is running or has even started? In my case it opens a new dos window and close it immedialtely. I cannot see what is happening in new window.
I also have a doubt on classpath with I set to
set CLASSPATH = %CLASSPATH%;c:\jdk1.3\lib\tools.jar
...I hope it's correct
Could somebody help me in configuring tomcat.
Thanks in advance

Prasad Charasala
Ranch Hand

Joined: Nov 02, 2000
Posts: 67
Hi Jefry,
can you refer to this post here
Don't run as c:\tomcat\bin>tomcat start
then you never know whether all variables are set correcly.
run like this c:\tomcat\bin>startup
startup.bat will run tomcat.bat internally after doing some necessary things.


Jeffry Cray

Joined: Oct 08, 2000
Posts: 25
Thanx prasad, but what�s worrying me, is that my �classes� directory is NOT in �c:/tomcat/classes� but it�s in �c:\tomcat\webapps\ROOT\WEB-INF\classes�
So how can �classpath� in �tomcat.bat� be set to
where TOMCAT_HOME is �c:\tomcat� only ?!??!

[This message has been edited by Jeffry Cray (edited November 30, 2000).]
Prasad Charasala
Ranch Hand

Joined: Nov 02, 2000
Posts: 67
Dear Jeffry,
Don't worry about c:\tomcat\classes. They have kept that folder in classpath for some other reason like future use or to put third party packages there. If you observe not only ROOT, other folders like examples, admin, test all have classes in their web-inf folder. That is the standard file structure in tomcat. So don't worry about the classes folder. Tomcat knows about the web-inf\classes folder though it is not mentioned in the classpath.

Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Try the step-by-step work sheet, many people emailed me, it works.
If you encounter any problems, please let me know.
Chuck Meduri
Ranch Hand

Joined: Nov 29, 2000
Posts: 48
I completed this process yesterday after working with for atleast 2 days.
1. You need to set only the TOMCAT_HOME, JAVA_HOME in your path. The classpath should contain servlet.jar and jasper.jar.
2. If you put the TOMCAT_HOME and JAVA_HOME in your autoexec.bat, you should be able to type in 'startup' which is in c:\tomcat\bin directory. You should see another DOS box opening up. Similarly you can type in 'shutdown' and the server automatically shuts down.
3. If you change the port settings in your server.xml file to 80 instead of 8080, you should be able to type http://localhost/servelt/<your-servlet name> and it should work.
4. Don't worry about your classes not being in c:\tomcat\classes. They need to go in c:\tomcat\webapps\Root\web-inf\classes. Copy your classes to this location.
I did this entire thing yesterday successfully.
Good luck
[This message has been edited by Chuck Meduri (edited November 30, 2000).]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: problem with tomcat installing and running
It's not a secret anymore!