• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor

      Through Websphere Deployer Plugin, we are trying to deploy an ear file to WAS. But getting error attached.
      We tried copying this ear file and uploading manually through WAS console. It worked without any error .
      Only through Deployer plugin the error comes.
      In Websphere Deployer configuration "Test Connection" works successfully

          [JENKINS-40089] Error while deploying ear to WAS

          Greg Peters added a comment -

          You're pointing to an EAR file that is on the local filesystem. You should use a relative path and point to the EAR in the jenkins workspace when the job is run.

          Greg Peters added a comment - You're pointing to an EAR file that is on the local filesystem. You should use a relative path and point to the EAR in the jenkins workspace when the job is run.

          Even I am facing this issue.
          As per the error logs, the EAR path is /var/jenkins/workspace/Watson-SIH-Rest-Services/Edu-K12-Codebase-Clone/SIH/StudentInfoHubEar/target/StudentInfoHubEAR.ear This is very much with in the workspace. In the WAS Deployer Plugin configuration, we give relative path to workspace. The error always shows full path (not relative).

          Prashanth Kayampady added a comment - Even I am facing this issue. As per the error logs, the EAR path is /var/jenkins/workspace /Watson-SIH-Rest-Services/Edu-K12-Codebase-Clone/SIH/StudentInfoHubEar/target/StudentInfoHubEAR.ear This is very much with in the workspace. In the WAS Deployer Plugin configuration, we give relative path to workspace. The error always shows full path (not relative).

          Greg Peters added a comment -

          Seems like a file permissions issue. Try to chmod and chown the path.

          Greg Peters added a comment - Seems like a file permissions issue. Try to chmod and chown the path.

          HI Greg
          We tried changing permission of ear file, still it doesnt help. Here is the output from build

          + chmod 777 /var/jenkins/workspace/WatsonSIHRestServices/Edu-K12-Codebase-Clone/SIH/StudentInfoHubEar/target/StudentInfoHubEAR.ear
          Connecting to IBM WebSphere Application Server...
          The following artifacts will be deployed in this order...
          -------------------------------------------
          StudentInfoHubEAR.ear
          -------------------------------------------
          Error deploying to IBM WebSphere Application Server: org.jenkinsci.plugins.websphere.services.deployment.DeploymentServiceException: org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException: IWAE0037E Could not open /var/jenkins/workspace/WatsonSIHRestServices/Edu-K12-Codebase-Clone/SIH/StudentInfoHubEar/target/StudentInfoHubEAR.ear
          at org.jenkinsci.plugins.websphere.services.deployment.WebSphereDeploymentService.getAppName(WebSphereDeploymentService.java:193)

          Vidya Jothiraman added a comment - HI Greg We tried changing permission of ear file, still it doesnt help. Here is the output from build + chmod 777 /var/jenkins/workspace/WatsonSIHRestServices/Edu-K12-Codebase-Clone/SIH/StudentInfoHubEar/target/StudentInfoHubEAR.ear Connecting to IBM WebSphere Application Server... The following artifacts will be deployed in this order... ------------------------------------------- StudentInfoHubEAR.ear ------------------------------------------- Error deploying to IBM WebSphere Application Server: org.jenkinsci.plugins.websphere.services.deployment.DeploymentServiceException: org.eclipse.jst.j2ee.commonarchivecore.internal.exception.OpenFailureException: IWAE0037E Could not open /var/jenkins/workspace/WatsonSIHRestServices/Edu-K12-Codebase-Clone/SIH/StudentInfoHubEar/target/StudentInfoHubEAR.ear at org.jenkinsci.plugins.websphere.services.deployment.WebSphereDeploymentService.getAppName(WebSphereDeploymentService.java:193)

          Greg Peters added a comment -

          vidya_jothiraman

          Try changing the file block size to unlimited for the userid that jenkins is running as to see if the issue goes away.

          Reference:
          https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014283032#77777777-0000-0000-0000-000014888027

          Greg Peters added a comment - vidya_jothiraman Try changing the file block size to unlimited for the userid that jenkins is running as to see if the issue goes away. Reference: https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014283032#77777777-0000-0000-0000-000014888027

          Hi Greg
          Jenkins is running as user "jenkins" and the ulimit value is "unlimited"

          Vidya Jothiraman added a comment - Hi Greg Jenkins is running as user "jenkins" and the ulimit value is "unlimited"

            Unassigned Unassigned
            vidya_jothiraman Vidya Jothiraman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: