部署到WebSphere的Jenkins无法检测所需的库

时间:2018-03-22 15:36:14

标签: jenkins websphere jenkins-plugins continuous-deployment websphere-7

在尝试设置Jenkins以部署到我的WebSphere服务器时,我收到错误。

这就是我配置的内容:

  1. 我正在使用WebSphere Application Server 7.0
  2. 我已复制了从websphere-deployer插件文档中列出的IBM\WebSphere\AppServer64\runtimesJenkins/plugins/websphere-deployer/WEB-INF/lib这两个广告坛:

    • com.ibm.ws.admin.client_7.0.0
    • com.ibm.ws.orb_7.0.0
  3. 我已将Jenkins项目JDK设置为位于我的WebSphere文件夹中的JDK(我还使用JDK 6 x64,x86,JDK 7 x64,x86运行了构建版本)
  4. 当我测试与WebSphere服务器的连接时,我收到此警报: enter image description here 运行构建时,我收到错误:

    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
    

    还有什么可能导致这个问题?被困在这么简单的事情上有点太久了,我没有想法。

    感谢。

1 个答案:

答案 0 :(得分:-1)

我能想到为什么WebSphereDeploymentService无法找到类定义的唯一原因是文件系统权限。执行测试连接的用户帐户是否可以访问Jenkins/plugins/websphere-deployer/WEB-INF/lib?自复制以来,这些库可能具有与文件夹不同的权限。