Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Tomcat 4.1.12 goes off

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to start server with command startup. Next window opens and goes off suddenly. How can I find what is the error or how should I stop it.
Any clue. Thanks in adv..
-Viku
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Viku John
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Viku John
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look in the logs directory.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic