今天遇到的一个奇葩的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启动后,一切正常.

这都什么鬼 ?

posted on 2017-10-18 20:42  饕盡天下  阅读(4049)  评论(1编辑  收藏  举报