qq_40525997
println("我欲乘风")
采纳率0%
2020-03-28 12:31

求助大佬们,springMVC运行启动Tomcat失败报错“子容器启动失败”怎么解决?

相应的版本是Tomcat9.0,jdk10.0,spring5.0。
jar包检查过应该都下载完毕了,
截取部分异常如下

严重: 子容器启动失败
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 初始化组件[org.apache.catalina.webresources.JarResourceSet@35beb15e]失败。
Caused by: org.apache.catalina.LifecycleException: 初始化组件[org.apache.catalina.webresources.JarResourceSet@35beb15e]失败。
Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: ZipFile invalid LOC header (bad signature)
Caused by: java.util.zip.ZipException: ZipFile invalid LOC header (bad signature)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase (file:/D:/apache-tomcat-9.0.27/lib/catalina.jar) to field java.io.ObjectStreamClass$Caches.localDescs
WARNING: Please consider reporting this to the maintainers of org.apache.catalina.loader.WebappClassLoaderBase
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

web.xml文件中

<url-pattern>/</url-pattern>

求助大神们帮忙,非常感谢!!!

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • weixin_38405770 the Rune Mage 1年前

    file:/D:/apache-tomcat-9.0.27/lib/catalina.jar
    你这个jar有问题
    删了重新启动

    点赞 评论 复制链接分享

相关推荐