1. 程式人生 > >springboot打包成war後部署項目出現異常 LifecycleException: Failed to start component

springboot打包成war後部署項目出現異常 LifecycleException: Failed to start component

查看 release embed cep exce local .net lifecycle ali

完整異常:org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext

原因:https://blog.csdn.net/u010014162/article/details/79024945

springboot版本:1.5.19.RELEASE

使用的jsp依賴:

技術分享圖片

進入 tomcat-embed-jasper 中查看發現是因為springboot的這個tomcat內置版本和我服務器版本上的不一致,服務器上的是 tomcat 7.0.84,所以不兼容這個高版本springboot打包出來的項目,換成和下面的tomcat一樣的版本即可,如果要往下兼容的話,那就參考上面的那篇文章,有方法兼容

技術分享圖片

springboot打包成war後部署項目出現異常 LifecycleException: Failed to start component