with root cause java.lang.NoClassDefFoundError
-----------------來自小馬哥的故事
nohup的日志中報錯
java.lang.NoClassDefFoundError: org/apache/catalina/core/ApplicationContext$DispatchData
2018-09-01 20:21:55.017 |-ERROR [http-nio-28082-exec-9] org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet] [181] -| Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Filter execution threw an exception] with root cause
java.lang.NoClassDefFoundError: org/springframework/boot/actuate/trace/WebRequestTraceFilter$CustomStatusResponseWrapper
複制
最後居然是因為該jar是root使用者啟動的, 而Jenkins上使用的是rc使用者,Jenkins部署的時候無法通過rc将該程序殺死.但是有的接口是OK的,有的接口就會報上面的問題
将該程序殺死,用Jenkins啟動後,一切正常.
本文由 小馬哥 創作,采用 知識共享署名4.0 國際許可協定進行許可
本站文章除注明轉載/出處外,均為本站原創或翻譯,轉載前請務必署名