Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60219

deploy-websphere-plugin does throws exception in isArtifactInstalled method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker

      Additional Information on the server I'm trying to deploy to:

      WebSphere Application Server 9.0.0.11

      WebSphere Portal Express 9.0 CF16

      RedHat EL 7.6

      No firewalls between the jenkins server and the portal.

      I have a project that builds a war file from Ant build files on our current build server, and attempts to deploy it.  The Jenkins log file displays the following exception:

      com.ibm.websphere.management.application.client.AppDeploymentException: [Root exception is java.lang.IncompatibleClassChangeError: org.objectweb.asm.ClassVisitor]
       at com.ibm.websphere.management.application.AppManagementFactory.handleException(AppManagementFactory.java:680)
       at com.ibm.websphere.management.application.AppManagementFactory.readArchive(AppManagementFactory.java:143)
       at com.ibm.websphere.management.application.AppManagementFactory.readArchive(AppManagementFactory.java:93)
       at com.ibm.websphere.management.application.client.AppDeploymentController.readArchive(AppDeploymentController.java:251)
       at org.jenkinsci.plugins.websphere.services.deployment.WebSphereDeploymentService.buildDeploymentPreferences(WebSphereDeploymentService.java:273)
       at org.jenkinsci.plugins.websphere.services.deployment.WebSphereDeploymentService.isArtifactInstalled(WebSphereDeploymentService.java:468)
       at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.stopArtifact(WebSphereDeployerPlugin.java:409)
       at org.jenkinsci.plugins.websphere_deployer.WebSphereDeployerPlugin.perform(WebSphereDeployerPlugin.java:245)
       at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
       at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
       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:1840)
       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
      Caused by: java.lang.IncompatibleClassChangeError: org.objectweb.asm.ClassVisitor
       at java.lang.ClassLoader.defineClassImpl(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:346)
       at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1149)
       at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:712)
       at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1320)
       at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1373)
       at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1336)
       at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1083)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:809)
       at java.lang.ClassLoader.defineClassImpl(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:346)
       at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1149)
       at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:712)
       at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1320)
       at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1373)
       at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1336)
       at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1083)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:809)
       at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFileImpl.getWARFileAnnotationsDetector(WARFileImpl.java:2918)
       at org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFileImpl.containsEJBContent(WARFileImpl.java:1992)
       at com.ibm.ws.management.application.client.AppInstallHelper.checkForXmiFiles(AppInstallHelper.java:1372)
       at com.ibm.ws.management.application.client.AppInstallHelper.checkForXmiFiles(AppInstallHelper.java:1331)
       at com.ibm.ws.management.application.client.AppInstallHelper.checkForEE5Restrictions(AppInstallHelper.java:512)
       at com.ibm.ws.management.application.client.AppInstallHelper.checkForEE5Restrictions(AppInstallHelper.java:477)
       at com.ibm.ws.management.application.client.AppInstallHelper.getAppDeploymentInfo(AppInstallHelper.java:563)
       at com.ibm.websphere.management.application.AppManagementFactory.readArchive(AppManagementFactory.java:131)
       ... 15 more

      I see that this looks similar to issue 52355, but the version of WebSphere, Jenkins, the plugin and the class seem different. I switched Jenkins to run on the same IBM supplied JVM that our portals run, but that did not change anything other than the class file that the exception is thrown on.

      I'm quite new to Jenkins, but am a Java developer with many years of experience and will be glad to help get this issue resolved in any way I can. My company needs to move to a CI/CD process to improve our QA flow.  I've attached the config.xml for the job.

            gvilardi Greg Vilardi
            gvilardi Greg Vilardi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: