ask your seniors for help. I have configured the java environment (jdk11). After clicking startup.bat, I can also access localhost8080, but there is a problem starting tomcat in the Windows service. The following error was reported:
Baidu, Google and Bing have all tried to search, but none of them can solve the problem. I beg all seniors and bosses to help me whine
.java version:
$ java -version
java version "11.0.1" 2018-10-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
Java HotSpot(TM) 64-Bit Client VM 18.9 (build 11.0.1+13-LTS, mixed mode)
the following is the startup log
commons-daemon.log:
[2019-01-05 20:58:20] [info] [33612] Commons Daemon procrun (1.1.0.0 64-bit) started
[2019-01-05 20:58:20] [info] [33612] Running "Tomcat9" Service...
[2019-01-05 20:58:20] [info] [44764] Starting service...
[2019-01-05 20:58:20] [error] [31704] FindClass org/apache/catalina/startup/Bootstrap failed
[2019-01-05 20:58:20] [error] [31704]
[2019-01-05 20:58:20] [error] [44764] Failed to start Java
[2019-01-05 20:58:20] [error] [44764] ServiceStart returned 4
[2019-01-05 20:58:20] [info] [33612] Run service finished.
[2019-01-05 20:58:20] [info] [33612] Commons Daemon procrun finished
tomcat9-stderr.log:
2019-01-05 20:58:20 Commons Daemon procrun stderr initialized
WARNING: Unknown module: java.rmi specified to --add-opens
java.lang.NoClassDefFoundError: java/util/logging/Logger
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:61)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:181)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:116)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:139)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:194)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:52)
Caused by: java.lang.ClassNotFoundException: java.util.logging.Logger
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 6 more