今天遇到的一個奇葩的NoClassFound的問題


nohup的日志中報錯

java.lang.NoClassDefFoundError: org/apache/catalina/core/ApplicationContext$DispatchData

2017-10-18 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啟動后,一切正常.

這都什么鬼 ?


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM