File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Can't start Tomcat on Windows - no error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Can Watch "Can New topic
Author

Can't start Tomcat on Windows - no error

chris crompton
Greenhorn

Joined: Feb 20, 2004
Posts: 3
Hi
I'm trying to install TomCat on Windows 2000 - should be simple enough - downloaded and installed TomCat. Then I've set the %CATALINA_HOME% (and now also %CATALINA_BASE%).
Then I open up the command window....and execute
'%CATALINA_HOME%\bin\startup'
......and that displays the following:
using CATALINA_BASE: C:\tomcat\jakarta-tomcat-4.0.3-src
using CATALINA_HOME: C:\tomcat\jakarta-tomcat-4.0.3-src\catalina\src
using CATALINA_TMPDIR: C:\tomcat\jakarta-tomcat-4.0.3-src\temp
using JAVA_HOME: C:\jdk1.3.1_09

but unfortunately that is all I get.....and tomcat is definitely not available on port 8080 so I assume it hasn't started. Bearing in mind I don't get an error message I wonder where the problem is. The values used by the environment seem to be correct?
Thanks
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
The normal startup.bat creates a new Command Prompt window where the catalina.bat file runs - if you get an early error, that window opens and vanishes in the blink of an eye.
I suggest modifying startup.bat to run catalina.bat in the existing open window by changing the line in startup.bat:

to read

that way you can at least get an error message.
Also, I recommend being "in" the bin directory when executing startup.bat
Bill


Java Resources at www.wbrogden.com
chris crompton
Greenhorn

Joined: Feb 20, 2004
Posts: 3
Thanks, the error now appears as:
Exception in thread "main" java.lang.NoClassDefFoundError: apache/catalina/startup/Bootstrap
did I miss something somewhere?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
That error does not ring a bell with me.
I notice you have SDK 1.3.1 and Tomcat 4.0.3 - these are not anywhere near the latest versions. Also, as I recall, Tomcat 4 had two downloadable versions, one that depended on SDK 1.4 and one that would work with 1.3 - are you sure you have the right ones.
Bill
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

using CATALINA_HOME: C:\tomcat\jakarta-tomcat-4.0.3-src\catalina\src


You are using a 'source' distribution of Tomcat. You need to download the latest (4.1.30) *executable* version of Tomcat.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can't start Tomcat on Windows - no error
 
Similar Threads
Out of Environment Space in win98
Win98SE & Tomcat 4 setup problem
Tomcat 4.0.1startup problem on Windows ME
server not starting
The CATALINA_HOME enviornment variable