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

Getting below error while trying to deploy an EAR artifact to IBM Websphere through websphere-deployer plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • None
    • Jenkins version - 2.235.1
      Java version - 1.8
      Websphere Deploy plugin Version - 1.6.1
      IBM Websphere Application Server version - 8.5.5.17

      I am trying to deploy an EAR artifact after the ANT build to the IBM Websphere Application Server through Jenkins with websphere-deployer-plugin.

      After the successful build while connecting to Websphere server I am facing the below issue. I had verified the parameters and they all are updated correctly. The corresponding versions are mentioned in the Environment field above. 

      Getting this error during the deployment. Could you please let me know if I am missing something or anything needs to be updated. Thanks in advance. 

       
      BUILD SUCCESSFULTotal time: 10 seconds
      [WL-test] $ /bin/sh -xe /tmp/jenkins7597594132451363988.sh
      + cp /tmp/jenkins7597594132451363988.sh /tmp/temp-jenkins.sh
      + pwd
      /home/jenkins/workspace/WL/WL-test
      + chmod 777 EAR/Trax3EAR.ear
      Connecting to IBM WebSphere Application Server...
      The following artifacts will be deployed in this order...
      -------------------------------------------
      /home/jenkins/workspace/WL/WL-test/Trax3/release/ear/Trax3EAR.ear Last modified on Dec 07, 2021 11:39:08
      -------------------------------------------
      Artifact is being deployed to virtual host: traxsqa2_host
      Error deploying to IBM WebSphere Application Server: org.jenkinsci.plugins.websphere.services.deployment.DeploymentServiceException: Could not determine if artifact 'Trax3EAR' is installed: General Exception: org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException: IWAE0037E Could not open /home/jenkins/workspace/WL/WL-test/Trax3/release/ear/Trax3EAR.ear
      at org.jenkinsci.plugins.websphere.services.deployment.WebSphereDeploymentService.isArtifactInstalled(WebSphereDeploymentService.java:477)
      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:1905)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:428)

      Performing rollback of 'Trax3EAR'
      WARNING: Artifact doesn't exist rollback repository
      Build step 'Deploy To IBM WebSphere Application Server' changed build result to FAILURE
      Deleted repository workspace "HJP_1638895133406".
      Finished: FAILURE

            Unassigned Unassigned
            ajan2113 Ajay N
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: