Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tomcat not starting

suddenly for some reason tomcat server is not runnin/starting/stopping.

below is the result I get when i run the startup command,

  C:\Program Files\jasperserver-3.5.0\apache-tomcat\bin>startup
Using CATALINA_BASE:   C:\Program Files\jasperserver-3.5.0\apache-tomcat
Using CATALINA_HOME:   C:\Program Files\jasperserver-3.5.0\apache-tomcat
Using CATALINA_TMPDIR: C:\Program Files\jasperserver-3.5.0\apache-tomcat\temp
Using JRE_HOME:        C:\PROGRA~1\JASPER~1.0\java\jre

The tomcat window pops up for a split of a second and goes away.

(I have another java instance installed under c:\program files)

Help!!!

Update:

Logs from catalina file

Mar 22, 2011 3:41:50 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 22, 2011 3:41:50 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1017 ms
Mar 22, 2011 3:41:51 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 22, 2011 3:41:51 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Mar 22, 2011 3:41:51 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 22, 2011 3:42:06 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 22, 2011 3:42:06 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 22, 2011 3:42:06 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/43  config=null
Mar 22, 2011 3:42:06 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Mar 22, 2011 3:42:06 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 15374 ms
like image 271
tecman Avatar asked Mar 22 '11 22:03

tecman


People also ask

Why can't I start the Apache Tomcat on my computer?

While trying to start the service, you might receive the following error message, which may result from a Java update: "Windows could not start the Apache Tomcat on Local Computer. For more information, review the System Event Log.

How do I know if Tomcat is running or not?

Locate the Apache Tomcat service, and then verify that Running is listed in the Status column. If it is not running, try to start the service manually by selecting it and clicking Start. You receive an error message from a Java update (error code 1)

How do I run Tomcat on Windows Server 2012?

Click Start → Run, type services.msc and then click OK. Windows Server 2012 users: On your keyboard press the Windows key + R, type services.msc and press Enter. Locate the Apache Tomcat service, and then verify that Running is listed in the Status column. If it is not running, try to start the service manually by selecting it and clicking Start.

How do I start a Tomcat service in Java?

Click the Java tab, deselect the check box next to Use default and select the path to Java virtual machine file ( C:\ [Java folder path]\bin\server\jvm.dll or C:\ [Java folder path]\bin\client\jvm.dll) and click OK. Start the Apache Tomcat service. The service should start without issue.


2 Answers

In my case that was a problem with final slash in %CATALINA_HOME% path: final slash should not be there!

C:\tomcat\8.0.30 - correct

C:\tomcat\8.0.30\ - wrong

See http://blackandwhitecomputer.blogspot.de/2015/09/tomcat-debug-cannot-startup.html

Honestly, I had not expected modern applications may be depended on final slash in environment variable path!

like image 84
radistao Avatar answered Sep 23 '22 00:09

radistao


Use catalina.bat run instead of startup.bat. Then the window won't go away and you can see what's going on

like image 21
ykaganovich Avatar answered Sep 22 '22 00:09

ykaganovich