While trying to set up Jenkins to deploy to my WebSphere server I get an error.
This is what I've configured:
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:
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.