Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes why my tomcat disappears Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "why my tomcat disappears" Watch "why my tomcat disappears" New topic
Author

why my tomcat disappears

srinivas rao
Greenhorn

Joined: Feb 01, 2005
Posts: 10
I Installed tomcat4.1 .when i start it in few seconds it disappears
why it happens so?
Vijay Kumar
Ranch Hand

Joined: Jul 24, 2003
Posts: 260
will u tell me onwhich operating you have installed tomcat
win98/win2000/linux
???
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

That's normal.

Check to see that it's running by opening a browser and go to:
http://localhost:8080


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
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

Joined: Feb 05, 2001
Posts: 17257
    
    6

Moving this to the Apache/Tomcat forum.

This forum is for Servlets questions.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
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?


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

When you start tomcat with the startup.bat file, the dos window will disappear.
Chintan Rajyaguru
Ranch Hand

Joined: Aug 19, 2001
Posts: 341
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)


ChintanRajyaguru.com
SOADevelopment.com - Coming soon!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why my tomcat disappears