• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Can't start Tomcat on Windows - no error

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
chris crompton
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic