[JIRA] (JENKINS-40089) Error while deploying ear to WAS

3 views
Skip to first unread message

vidya.jothiraman@gmail.com (JIRA)

unread,
Nov 29, 2016, 12:48:04 AM11/29/16
to jenkinsc...@googlegroups.com
Vidya Jothiraman created an issue
 
Jenkins / Bug JENKINS-40089
Error while deploying ear to WAS
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: Deploy_Error.odt
Components: websphere-deployer-plugin
Created: 2016/Nov/29 5:47 AM
Environment: Jenkins version - 2.19.1 Running on Red Hat Enterprise Linux Server release 6.8 (Santiago)
Websphere Deployer Plugin - 1.3.4
WAS server version - 8.5
From Jenkins server :
# java -version
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-b15)
OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode)
Labels: Deployment
Priority: Minor Minor
Reporter: Vidya Jothiraman

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

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

gregpeters00@gmail.com (JIRA)

unread,
Nov 30, 2016, 10:31:01 AM11/30/16
to jenkinsc...@googlegroups.com
Greg Peters commented on Bug JENKINS-40089
 
Re: Error while deploying ear to WAS

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.

prashanth.kayampady@gmail.com (JIRA)

unread,
Nov 30, 2016, 12:56:06 PM11/30/16
to jenkinsc...@googlegroups.com

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

gregpeters00@gmail.com (JIRA)

unread,
Dec 1, 2016, 1:40:01 PM12/1/16
to jenkinsc...@googlegroups.com

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

vidya.jothiraman@gmail.com (JIRA)

unread,
Dec 2, 2016, 12:49:03 AM12/2/16
to jenkinsc...@googlegroups.com

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)

gregpeters00@gmail.com (JIRA)

unread,
Dec 2, 2016, 7:11:01 AM12/2/16
to jenkinsc...@googlegroups.com

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

vidya.jothiraman@gmail.com (JIRA)

unread,
Dec 5, 2016, 2:19:01 AM12/5/16
to jenkinsc...@googlegroups.com

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

Reply all
Reply to author
Forward
0 new messages