您的位置:首页 > 其它

今天遇到的一个奇葩的NoClassFound的问题

2017-10-18 20:42 2276 查看
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启动后,一切正常.

这都什么鬼 ?
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: