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
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.
Joined: Oct 08, 2000
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).]
Joined: Nov 02, 2000
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.
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).]
subject: problem with tomcat installing and running