Archiwum kategorii: Uncategorized

Tomcat on Windows is not starting

Sometimes Tomcat on Windows is not starting, because of some problems. The best starting point is of course to check logs! In my case, I checked commons-daemon.2018-08-13.log file. This log file contained entries:

[2018-08-13 18:42:54] [info] [ 2444] Commons Daemon procrun (1.0.15.0 32-bit) started
[2018-08-13 18:42:54] [info] [ 2444] Running 'tomcio' Service...
[2018-08-13 18:42:54] [info] [ 1896] Starting service...
[2018-08-13 18:42:54] [error] [ 1896] Failed creating java C:\Program Files (x86)\Java\jre1.8.0_144\bin\client\jvm.dll
[2018-08-13 18:42:54] [error] [ 1896] The system cannot find the path specified.
[2018-08-13 18:42:54] [error] [ 1896] ServiceStart returned 1
[2018-08-13 18:42:54] [error] [ 1896] The system cannot find the path specified.
[2018-08-13 18:42:54] [info] [ 2444] Run service finished.

Look like server is not able to find Java… 🙁

Yes, this can be reason, so I updated Java version. I added new „Java path” to system environmnet variable: „path„. But this was not enough, because it was not able to start again.

How to fix this? Solution is easy:

  1. Double click Apache Tomcat in system tray.
  2. Open „Java” tab.
  3. Change Java Virtual Machine path to new path.
  4. Start Tomcat service.

Now everything should works correctly 🙂