Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why my tomcat disappears

 
srinivas rao
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I Installed tomcat4.1 .when i start it in few seconds it disappears
why it happens so?
 
Vijay Kumar
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
will u tell me onwhich operating you have installed tomcat
win98/win2000/linux
???
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's normal.

Check to see that it's running by opening a browser and go to:
http://localhost:8080
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take this question to the Tomcat forum - this is a frequent problem and has multiple discussions in the forum history.
Bill
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the Apache/Tomcat forum.

This forum is for Servlets questions.

Mark
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It shouldn't. You are recieving some sort of startup exception which is ending the process. You need to get the CMD window to remain to see the error

Try starting it like this
Open CMD window
cd to <TOMCAT_HOME>\bin directory
Start Tomcat with the command
catalina run

What error message occurs?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you start tomcat with the startup.bat file, the dos window will disappear.
 
Chintan Rajyaguru
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try opening a command prompt window. Change to the bin directory of Tomcat installation. Issue a dir command to make sure you see the startup batch file. Issue startup comman to run this batch file. This way the window will NOT disappear and you will be able to see the actual problem. Most likely the problem is due to one or more of the following:
1. Java home is not set right
2. You have some server running on the port Tomcat is trying to use (most likely port 8080)
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you start tomcat with the startup.bat file, the dos window will disappear.

I believe that is only true if you doubleclick on startup.bat - if you use a command window it stays open.
The default startup.bat does some checking for environment variables, then runs catalina.bat in a new window - it is this window that pops up and disappears, taking useful information about what happened with it.
In order to see the exception information, change the last executable line of startup.bat to:

with "run" instead of "start"
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic