开发者

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\jasperserve开发者_运维知识库r-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


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


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!


I ran into a similar problem. I open cmd prompt and cd to tomcat\bin\startup.bat. The issue was my JRE_HOME not defined in the environment variables. I added and it worked.


I had the same problem and I solved it this way:

First, following @ykaganovich suggestions, I tried to start the server using the catalina.bat start command; it did not solve the problem, but at least it showed a log that specified the error, which was really helpful.

In my case, the log said that the problem was because of the java versión. I had the JAVA_HOME variable pointing to the JDK7, but my tomcat version needed it to point to the JDK8.

I changed the JAVA_HOME variable to point to JDK8 (instead of JDK7) and then , when I executed the catalina.bat start command again, it worked perfectly and the server started. I hope my suggestion could be helpful to someone.


Hmm it's very strange problem because in the log you have that server started, so try this:

  • restart computer :) - the best solution for strange situations
  • change tomcat port
  • close every unnecessary applications: skype, ip phones etc (I've encountered similar problem someday and application ip phone "softly" blocked this port ("softly" - in tomcat log everything was OK but in reality webapp doesn't work)


Add tomcat in your eclipse and start it from there. Configure tomcat as 'Use Tomcat installation'. It will work


Had same problem with apache Tomcat 9 version.

Solution very simple.

Apache Tomcat 9 is supported by Java 8 and later versions. So, i had JRE_HOME with JRE7 path, I binded it to new JRE8 and everything works fine.

Different versions of Apache Tomcat are available for different versions of the Servlet and JSP specifications. The mapping between the specifications and the respective Apache Tomcat versions is:

tomcat not starting

Hope this will work for you guys, cheers!


If Tomcat was earlier working fine and Tomcat not starting happens unexpectedly, it's because some other process has started using the port you were using Tomcat on. In my case, I had shutdown Tomcat and was trying to run my servlet directly from Eclipse. So Eclipse took control of the port. After I closed Eclipse and tried restarting Tomcat (with startup.bat), everything worked fine.

ykaganovich's answer helped me track down my issue.


Non of the solutions above worked for me.

I found my way out by removing my current tomcat and replace it with a new one and setting up again my workspace.

I hope this may help someone


Open up the Tomcat users file (tomcat-users.xml)and check that you've closed all your speech marks. That is what fixed it for me.

Now double-check the role names:

<tomcat-users>
<role rolename="admin" />
<role rolename="manager" />
<user username="admin" password="secret" roles="admin,manager" />
</tomcat-users>

Finally, execute startup.bat file from bin


Try to open Tomcat7w.exe or follow the below steps.

(I have installed Tomcat under folder C:\Program Files\Apache Software Foundation\Tomcat 7.0)

  1. open command prompt as Administrator
  2. run --> "C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin\Tomcat7w.exe" //MS//
  3. now you can see icon in the system tray
  4. double click on icon and start/stop
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜