简体   繁体   中英

Jenkins deploying to WebSphere can't detect required libraries

While trying to set up Jenkins to deploy to my WebSphere server I get an error.

This is what I've configured:

  1. I'm using WebSphere Application Server 7.0
  2. I've copied over the two jars from IBM\\WebSphere\\AppServer64\\runtimes to Jenkins/plugins/websphere-deployer/WEB-INF/lib listed in the websphere-deployer plugin documentation:

    • com.ibm.ws.admin.client_7.0.0
    • com.ibm.ws.orb_7.0.0
  3. I've set the Jenkins project JDK to the JDK located in my WebSphere folder (I've also ran a build with JDK 6 x64, x86, JDK 7 x64, x86)

When I test the connection to my WebSphere server I get this alert: 在此处输入图片说明 And when running a build I get the error:

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

What else could cause this issue? Been stuck on something so simple as this for a bit too long and I'm out of ideas.

Thanks.

The only reason I can think of why WebSphereDeploymentService can't find the class definition is because of file system permissions. Does the user account executing test connection have access to Jenkins/plugins/websphere-deployer/WEB-INF/lib ? The libraries may have different permissions than the folder since they were copied.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM