The moose likes Tomcat and the fly likes Failing to start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Failing to start" Watch "Failing to start" New topic

Failing to start

Will Myers
Ranch Hand

Joined: Aug 05, 2009
Posts: 367

I'm trying to start Tomcat from a cmd window but it doesn't appear to do anything and no logs are produced so I can't diagnose the problem, all I get is 4 lines telling what environment variables it is using. Any ideas?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
That looks like it started OK. The process runs in the background, and will write all further output to log files - check the C:\apache-tomcat-6.0.20\logs directory.
PrasannaKumar Sathiyanantham
Ranch Hand

Joined: Nov 12, 2009
Posts: 110
After running the startup.bat type in your browser http://localhost:8080/

if it shows the tomcat webpage then your tomcat is up and running...

If not then there is a file called bootstrap.rar in bin folder ......Just to make sure run the shudown.bat and then bootstrap.jar and startup.bat ...

It must be working fine for sure.......

To err is human,
To forgive is not company policy
Will Myers
Ranch Hand

Joined: Aug 05, 2009
Posts: 367

Well it wasn't starting because it didn't like a value in my environment variables, there was no logging and no seperate window to tell me this, I had to retrace my steps one by one to find the issue, nice
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13025
Actually there was a window, it just opened and closed real fast.

You can change the last executable line of startup.bat to use "run" instead of "start" - this will continue the next bat file in the same window.

I agree. Here's the link:
subject: Failing to start
It's not a secret anymore!