在尝试设置Jenkins以部署到我的WebSphere服务器时,我收到错误。
这就是我配置的内容:
我已复制了从websphere-deployer插件文档中列出的IBM\WebSphere\AppServer64\runtimes
到Jenkins/plugins/websphere-deployer/WEB-INF/lib
这两个广告坛:
当我测试与WebSphere服务器的连接时,我收到此警报: 运行构建时,我收到错误:
Connecting to IBM WebSphere Application Server...
ERROR: Step ‘Deploy To IBM WebSphere Application Server’ aborted due to exception:
java.lang.NoClassDefFoundError: com/ibm/websphere/management/AdminClientFactory
at org.jenkinsci.plugins.websphere.services.deployment.WebSphereDeploymentService.connect(WebSphereDeploymentService.java:388)
at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.connect(WebSphereDeployerPlugin.java:313)
at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.perform(WebSphereDeployerPlugin.java:195)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
at hudson.model.Run.execute(Run.java:1752)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
还有什么可能导致这个问题?被困在这么简单的事情上有点太久了,我没有想法。
感谢。
答案 0 :(得分:-1)
我能想到为什么WebSphereDeploymentService无法找到类定义的唯一原因是文件系统权限。执行测试连接的用户帐户是否可以访问Jenkins/plugins/websphere-deployer/WEB-INF/lib
?自复制以来,这些库可能具有与文件夹不同的权限。