The most common problem is that something is already using port 8080. Most people experiencing this with Tomcat 4.x are trying to start Tomcat when the Tomcat Service is already running.
To keep that command window open, you can edit the catalina.bat file. Search the file for 'start'.
you should find something like... set _STARTJAVA=start "Catalina" "%JAVA_HOME%" remove the 'start' from here, and there should be one more line very close to this one with a similar syntax but without the "Catalina"
To be sure there's no misunderstanding.. do NOT search and replace the word start. And the start I'm talking about is the DOS command "start" (lowercase), that pops open that new window. [ November 14, 2002: Message edited by: Mike Curwen ]
posted 17 years ago
Hi Mike, It looks to me that now startup did not open tomcat window automatically wich I always want. I want whne error display in my tomcat window it should never kills itself. Hope you got...
well.. you can't have it both ways. the 'start' command is used to open a new DOS window, and the OS takes care of closing that window when the process that is running in it finishes... which it does when there is an error.
And what's the matter with using the 'window' that you have ? As it was, you had a window that opened a second window, and then the first window went away. When Tomcat stopped, the second window went away.
This way, you have a single window, which doesn't go away until Tomcat finishes. It's pretty much the same behaviour, either way. You just get the added bonus of the window not 'flashing' on and off when there's an error.
Ok, that all assumed you were using the shortcut and double clicking. If you're starting from the command line, then you'll have to just move where that new window gets popped open. Try using this:
>start "Catalina" startup
posted 17 years ago
Hi Mike, Let me explain my question again... If I did some mistake say in server.xml file. So when I start my Tomcat server it throws some exception and kills itself. So I could not figure out what is problem there. How can I find why my Tomcat is not started.....? Where can i see errors? Hope you got... -Viku