首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >WebSphere 7+ WebSphere插件

WebSphere 7+ WebSphere插件
EN

Stack Overflow用户
提问于 2016-02-23 07:55:21
回答 2查看 1.1K关注 0票数 1

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

有什么想法吗?

代码语言:javascript
复制
-------------------------------------------
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

完成:失败

EN

回答 2

Stack Overflow用户

发布于 2016-05-04 13:39:12

我只是遇到了同样的问题。因为这看起来像类加载器问题,所以我在jenkins中查找类加载规范。

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

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

代码语言:javascript
复制
    $USER_HOME/.jenkins/plugins/websphere-deployer/META-INF/MANIFEST.MF

然后替换以下属性:

代码语言:javascript
复制
    PluginFirstClassLoader: true

通过

代码语言:javascript
复制
    PluginFirstClassLoader: false

我目前的设置:

  • jenkins : 2.1-1.1
  • websphere-部署人员: 1.3.4
票数 1
EN

Stack Overflow用户

发布于 2016-05-20 15:59:34

如果您从If 7中获得了插件所需的IBM,那么它们是为jvm 6编译的: Jenkins使用java 7(至少我的版本),所以我猜不兼容的java字节码会出现。我从一个WAS8安装中复制了IBM,结果一切正常。希望这能有所帮助。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35571793

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档