Error starting Tomcat 9 as service

3

I have a problem starting the Tomcat service. When I try to start the service, some problem happens and it is not initialized.

The log in C:\Program Files\Apache Software Foundation\Tomcat 9.0\logs is as follows:

[2015-12-12 17:34:58] [info]  [ 3476] Running 'FunctionsHandler' Service...
[2015-12-12 17:34:58] [info]  [ 4076] Starting service...
[2015-12-12 17:34:59] [error] [ 2236] FindClass org/apache/catalina/startup/Bootstrap failed
[2015-12-12 17:34:59] [error] [ 4076] Failed to start Java
[2015-12-12 17:34:59] [error] [ 4076] ServiceStart returned 4
[2015-12-12 17:34:59] [info]  [ 3476] Run service finished.
[2015-12-12 17:34:59] [info]  [ 3476] Commons Daemon procrun finished

The variable JAVA_HOME is already defined.

Any idea what might be happening?

    
asked by anonymous 12.12.2015 / 20:41

2 answers

2

This error is not specifically from version 9, it is not new, it is because Tomcat has not correctly detected or configured the classpath for apache-tomcat-9.0.0.M1/bin/boostrap.jar and apache-tomcat-9.0.0.M1/bin/tomcat-juli.jar .

Another possible situation is that you also have not found the (JAVA_HOME) path to the JVM, thus causing the failure to attempt to upload the web container (Tomcat) .

You can change by following the Tomcat service properties in Windows.

Ref: link

    
13.12.2015 / 14:24
1

Galera had the same problem. To solve, I opened Apache Tomcat, I went into Properties and the Startup tab changed the Mode from jvm to java . After that the service started correctly.

    
07.08.2018 / 15:48