Configure tomcat9 installation-free version, unable to start error code 4

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:

clipboard.png

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
May.07,2022

Brother dei, I specially registered to tell you that I also encountered this fairy mistake. I didn't fix it for a long time. I just changed it to version 8.5. In addition, I JDK the next 1. 8 is matched to


I also specially registered to talk about it. I have the same bug here, and finally found that the previous items under tomcat have not been deleted. In addition to the folder and .war under webapp, you also have to delete the files in workCatalinalocalhost, the files in confCatalinalocalhost, and the corresponding item of server.xml under conf (at the end of the file)


I have also encountered it. I guess it is due to the missing files in the installation-free version of tomcat. Just change the installation version of tomcat

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37642-2add3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37642-2add3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?