Jenkins自动化部署-安装jenkins异常处理
一、问题描述:
安装过程中发现容器中报错没有找到Java的某个类,具体如下:
2022-01-07 12:14:17.488+0000 [id=124] WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID 62dc8396-82dd-41bb-9e1d-1e20476493e4 java.lang.NoClassDefFoundError: javax/ws/rs/ext/MessageBodyReader at com.gitee.jenkins.gitee.api.impl.ResteasyGiteeClientBuilder.buildClient(ResteasyGiteeClientBuilder.java:115) at com.gitee.jenkins.gitee.api.impl.ResteasyGiteeClientBuilder.buildClient(ResteasyGiteeClientBuilder.java:81) at com.gitee.jenkins.connection.GiteeConnection.getClient(GiteeConnection.java:116) at com.gitee.jenkins.connection.GiteeConnectionConfig.doTestConnection(GiteeConnectionConfig.java:145) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:398) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:410) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:208) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:141) at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:558) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:59) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
截图如下:
二、解决方案:
1.将jenkins的war包解压处理
2.找到** \WEB-INF\lib **路径
3.下载 javax.ws.rs-api-2.0.jar
放到lib目录即可.
文件下载地址 :百度网盘地址
链接:https://pan.baidu.com/s/1lBkO6dN7EKVdCz4cYkskTA 提取码:6666
感谢观看!!!共同进步