Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Tomcat 7.0.40 disappears after 1 second

Tags:

tomcat7

I downloaded apache-tomcat-7.0.40 for Windows 8 and I followed the instructions by using the C:\apache-tomcat-7.0.40> startup.bat at my command prompt. The tomcat application appeared for 1 second and then disappeared, so I maybe the documents installation is not enough? What should I do? While my local host is internet information service.

like image 711
Agunbiade Ademola Avatar asked May 31 '13 07:05

Agunbiade Ademola


People also ask

Is Tomcat 7 still supported?

The Apache Tomcat team announces that support for Apache Tomcat 7.0. x will end on 31 March 2021.


4 Answers

In command prompt run below command, you will get the root cause.

...\apache-tomcat-7.0.42\bin> catalina.bat run
like image 107
Subha Chandra Avatar answered Nov 01 '22 02:11

Subha Chandra


In my case it was because I run catalina.bat start and this command creates new command prompt, while catalina.bat run executes in the same command prompt and doesn't close it after finishing.

like image 28
Rudziankoŭ Avatar answered Nov 01 '22 03:11

Rudziankoŭ


Try to remove the slash at the end of CATALINA_HOME variable path.

like image 4
user3608540 Avatar answered Nov 01 '22 03:11

user3608540


Catalina needs JAVA_HOME to work properly. So configure path to java jre and JAVA_HOME in environment variables.

To see the error, in command prompt execute

\path\apache-tomcat-6.0.41\bin > catalina.bat run
like image 3
Taherlal Avatar answered Nov 01 '22 03:11

Taherlal