为什么Tomcat重启后Jenkins启动失败?

问题描述 投票:0回答:2

我能够在 Tomcat 9.0.67 中设置 Jenkins 2.361.1。它在

http://localhost:8080/jenkins
中运行得很好,但是如果我尝试使用
shutdown.bat
然后使用
startup.bat
重新启动tomcat,我会收到以下错误:

...
SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/jenkins] startup failed due to previous errors
INFO [main] hudson.lifecycle.Lifecycle.onStatusUpdate Stopping Jenkins
INFO [main] jenkins.model.Jenkins$16.onAttained Started termination
SEVERE [main] jenkins.model.Jenkins$16.onTaskFailed Failed NioChannelSelector.cleanUp
        java.lang.IllegalArgumentException: Unable to inject class jenkins.slaves.NioChannelSelector
                at hudson.init.TaskMethodFinder.lookUp(TaskMethodFinder.java:130)
                ...

http://localhost:8080
仍然可以正常工作,但
http://localhost:8080/jenkins
显示 404 页面

为什么即使我在 Tomcat 关闭后没有进行任何更改,也会收到该错误?我使用 zip 文件下载来安装 Tomcat,而不是服务安装程序。

jenkins tomcat9
2个回答
0
投票

到目前为止,对我来说唯一有效的解决方法是删除 webapps 文件夹中的 jenkins 文件夹,然后让 tomcat 再次重新部署它。这样做之后,没有发生错误,詹金斯就像以前一样工作。


0
投票

我必须替换整个 tomcat 目录才能解决此问题。

© www.soinside.com 2019 - 2024. All rights reserved.