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 problem with tomcat installing and running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem with tomcat installing and running" Watch "problem with tomcat installing and running" New topic
Author

problem with tomcat installing and running

Jeffry Cray
Greenhorn

Joined: Oct 08, 2000
Posts: 25
I have installed Tomcat 3.1 and followed the instruction as suggested by jakarta.apache.org. 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 http://www.javaranch.com/ubb/Forum7/HTML/001208.html
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.

------------------
Prasad


<B>Prasad</B>
Jeffry Cray
Greenhorn

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
set CLASSPATH=%TOMCAT_HOME%\classes
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.

------------------
Prasad
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Try the step-by-step work sheet, many people emailed me, it works.
http://www.webappcabaret.com/javachina/tomcathowto.htm
If you encounter any problems, please let me know.
Thanks!
Roseanne
Chuck Meduri
Ranch Hand

Joined: Nov 29, 2000
Posts: 48
Jeffry,
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
Chuck
[This message has been edited by Chuck Meduri (edited November 30, 2000).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with tomcat installing and running
 
Similar Threads
newbie: troubleshooting apache/tomcat win98 environment
Tomcat configuration problem
Tomcat Setup
tomcat configuration problem
william, help needed