This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 319

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: 41129
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.

Ping & DNS - my free Android networking tools app
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: 319

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: 12761
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.

It is sorta covered in the JavaRanch Style Guide.
subject: Failing to start
Similar Threads
NetBeans cant find web pages folder
Tomcat 6.0.20 not starting with Eclipse
problem with class path
Problem running Struts Application
Where do i find the compiled java code(servlet) for the corresponding jsp files?