【问题标题】:WebSphere 7 + WebSphere Deployer PluginWebSphere 7 + WebSphere 部署插件
【发布时间】:2016-02-23 07:55:21
【问题描述】:

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

有什么想法吗?

-------------------------------------------
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

已完成:失败

【问题讨论】:

    标签: jenkins websphere-7


    【解决方案1】:

    我也遇到了同样的问题。由于这看起来像是一个类加载器问题,所以我在 jenkins 中寻找类加载规范。

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

    要进行此更改,请编辑文件 :

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

    然后替换以下属性:

        PluginFirstClassLoader: true
    

        PluginFirstClassLoader: false
    

    我目前的设置:

    • 詹金斯:2.1-1.1
    • websphere-deployer : 1.3.4

    【讨论】:

    • 太棒了!这对我有用。我的项目使用 JDK6,但 Jenkins 在 JRE8 中运行。所以看来这个设置是强制插件也使用JDK6。
    【解决方案2】:

    如果您从 WAS 7 获得插件所需的 IBM jar,它们将针对 jvm 6 进行编译:Jenkins 使用 java 7(至少是我的版本),所以我猜不兼容的 java 字节码会增加。 我从 WAS 8 安装中复制了 IBM jar,一切正常。 希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多