tomcat not starting

烂漫一生 提交于 2019-11-29 07:03:44

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!

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

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.

Thisisalexis

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.

Nav

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.

Ramesha KS

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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!