2016-02-23 85 views
1

我只是有一个简单的问题。通过遵循设置指南,直到工件更新都是很好的。我复制了所有必需的.jar文件并导入)cacerts_。我可以测试连接Web球体(我正在使用WS 7)。一切工作正常。但是当插件到达检查安装在WS上的应用程序的步骤时,我收到以下错误:WebSphere 7 + WebSphere Deployer插件

是否有任何想法?

------------------------------------------- 
Connecting to IBM WebSphere Application Server... 
The following artifacts will be deployed in this order... 

------------------------------------------- 
XXX_123.ear 
------------------------------------------- 

Error deploying to IBM WebSphere Application Server: org.jenkinsci.plugins.websphere.services.deployment.DeploymentServiceException: Could not determine if artifact 'XXX' is installed: javax.management.ObjectName cannot be cast to javax.management.ObjectName 
at org.jenkinsci.plugins.websphere.services.deployment.WebSphereDeploymentService.isArtifactInstalled(WebSphereDeploymentService.java:357) 

at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.stopArtifact(WebSphereDeployerPlugin.java:243) 

at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.perform(WebSphereDeployerPlugin.java:198) 

at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) 

at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) 

at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:757) 

at hudson.model.Build$BuildExecution.post2(Build.java:183) 

at 
hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:706) 

at hudson.model.Run.execute(Run.java:1703) 

at hudson.matrix.MatrixRun.run(MatrixRun.java:146) 

at hudson.model.ResourceController.execute(ResourceController.java:88) 

at hudson.model.Executor.run(Executor.java:231) 

Build step 'Deploy To IBM WebSphere Application Server' changed build result to FAILURE 

成品:未能

回答

1

我有同样的问题。因为这看起来像一个类加载器问题,所以我在jenkins中为类加载规范挖了一口气。

我最终更新了插件中的PluginFirstClassLoader属性,现在我的部署已成功完成。

要做到这一点变化,编辑文件:

$USER_HOME/.jenkins/plugins/websphere-deployer/META-INF/MANIFEST.MF 

然后替换以下属性:

PluginFirstClassLoader: true 

通过

PluginFirstClassLoader: false 

我的当前设置:

  • 詹金斯:2.1-1.1
  • WebSphere的部署:1.3.4
+0

太棒了!这对我有效。我的项目使用JDK6,但Jenkins正在JRE8中运行。所以看起来这个设置强制插件也使用JDK6。 – scuro

0

如果你被插件需要IBM罐子从为7被编译为JVM 6:詹金斯使用Java 7(至少我版本),所以我认为不兼容的java字节码上升。 我从WAS 8安装中复制了IBM jar,并且一切正常。 希望这有助于。