求各位前辈帮忙,我已经配好了java环境(jdk11),点开startup.bat之后也能访问localhost8080,但是在Windows服务中启动tomcat时出了问题……报以下错误:
百度、谷歌、必应都试着搜索过了,均不能解决问题,求求各位前辈和大佬帮帮我呜呜呜
java版本:
$ 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)
以下是启动日志
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
兄dei,特地注册和你讲一下,我也遇到这个神仙错误,搞了半天没搞定,换成8.5版本就好了。。。。另外我JDK下个了1。8的配上去