[JIRA] [deploy-plugin] (JENKINS-35214) Unable to deploy the ear file using weblogic-deployer-plugin

286 views
Skip to first unread message

ayush.tripathi15@gmail.com (JIRA)

unread,
May 30, 2016, 5:37:01 AM5/30/16
to jenkinsc...@googlegroups.com
Ayush T created an issue
 
Jenkins / Bug JENKINS-35214
Unable to deploy the ear file using weblogic-deployer-plugin
Issue Type: Bug Bug
Assignee: Raphael CHAUMIER
Components: deploy-plugin, weblogic-deployer-plugin
Created: 2016/May/30 9:36 AM
Environment: jenkins 2.3,weblogic 12c
Labels: jenkins2.3 weblogic-deployer-plugin-3.3
Priority: Critical Critical
Reporter: Ayush T

The file is visible in Web-logic when I try to deploy manually. The file and folder can be seen.

But it is not getting deployed through Jenkins as the build is getting failed.

Below are the Errors:

WeblogicDeploymentPlugin] - The JDK /usr/java/jdk1.8.0_60/jre will be used.
[WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on data-manager-ear(.*)\.ear]...
[WeblogicDeploymentPlugin] - 143 files found under target
[WeblogicDeploymentPlugin] - the following resource recorded /var/lib/jenkins/workspace/Build_Datamanager_BR2/datamanager-ear/target/data-manager-ear-0.0.2-SNAPSHOT.ear is eligible.
[WeblogicDeploymentPlugin] - the following resource ['application.xml'] doesn't match data-manager-ear(.*)\.ear
[WeblogicDeploymentPlugin] - the following resource ['application.xml'] doesn't match data-manager-ear(.*)\.ear
[WeblogicDeploymentPlugin] - the following resource ['weblogic-application.xml'] doesn't match data-manager-ear(.*)\.ear
[WeblogicDeploymentPlugin] - the following resource ['commons-beanutils-1.8.3.jar'] doesn't match data-manager-ear(.*)\.ear
[WeblogicDeploymentPlugin] - the following resource ['sisu-guice-3.0.3-no_aop.jar'] doesn't match data-manager-ear(.*)\.ear
[WeblogicDeploymentPlugin] - the following resource ['xalan-2.7.1.jar'] doesn't match data-manager-ear(.*)\.ear
[WeblogicDeploymentPlugin] - the following resource ['poi-3.10-FINAL.jar'] doesn't match data-manager-ear(.*)\.ear
[WeblogicDeploymentPlugin] - the following resource ['xml-resolver-1.2.jar'] doesn't match data-manager-ear(.*)\.ear
[WeblogicDeploymentPlugin] - the following resource ['jaxb-impl-2.1.12.jar'] doesn't match data-manager-ear(.*)\.ear
[WeblogicDeploymentPlugin] - the following resource ['wstx-asl-3.2.8.jar'] doesn't match data-manager-ear(.*)\.ear
[WeblogicDeploymentPlugin] - the following resource ['geronimo-jaxws_2.1_spec-1.0.jar'] doesn't match data-manager-ear(.*)\.ear
[WeblogicDeploymentPlugin] - the following resource ['ant-1.8.2.jar'] doesn't match data-manager-ear(.*)\.ear
[WeblogicDeploymentPlugin] - the following resource ['cxf-rt-ws-addr-2.2.3.jar'] doesn't match data-manager-ear(.*)\.ear
[WeblogicDeploymentPlugin] - the following resource ['spring-web-2.5.5.jar'] doesn't match data-manager-ear(.*)\.ear

ava.lang.RuntimeException: task completed abnormally (exit code = 1)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy(DeploymentTaskServiceImpl.java:244)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:173)
at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:236)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
at hudson.model.Run.execute(Run.java:1763)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
ERROR: [WeblogicDeploymentPlugin] - Failed to deploy.
[INFO] ------------------------------------------------------------------------
[INFO] DEPLOYMENT FAILURE
[INFO] ------------------------------------------------------------------------
Build step 'Deploy the artifact to any Weblogic environments' changed build result to FAILURE
Email was triggered for: Failure - Any

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

rcr@orange.fr (JIRA)

unread,
May 30, 2016, 3:27:01 PM5/30/16
to jenkinsc...@googlegroups.com
Raphael CHAUMIER commented on Bug JENKINS-35214
 
Re: Unable to deploy the ear file using weblogic-deployer-plugin

Hi,

Do you have the deployment logs (see the link on the job execution dashboard).

Regards,

rcr@orange.fr (JIRA)

unread,
Jun 3, 2016, 4:30:01 AM6/3/16
to jenkinsc...@googlegroups.com

Hi Ayush T

Can you check the deployment is correct. I guess the regression is about job status not the deployment itself. Did you check the checkbox to true ?

Regards

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 8, 2016, 12:02:01 PM6/8/16
to jenkinsc...@googlegroups.com
Brian Wu commented on Bug JENKINS-35214

Hi Raphael CHAUMIER,

I have a similar issue like this but not exactly same (see the log details below). could you advise what went wrong? Thanks in advance.
====================================================================
java.lang.RuntimeException: task completed abnormally (exit code = 1)


at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy(DeploymentTaskServiceImpl.java:244)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:173)

at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:239)


at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
at hudson.model.Run.execute(Run.java:1763)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)

====================================================================

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 8, 2016, 11:52:03 PM6/8/16
to jenkinsc...@googlegroups.com
Brian Wu edited a comment on Bug JENKINS-35214
Hi [~raphc],


I have a similar issue like this but not exactly same (see the log details below). could you advise what went wrong? Thanks in advance.
====================================================================
java.lang.RuntimeException: task completed abnormally (exit code = 1)
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl. deploy customize (DeploymentTaskServiceImpl.java: 244 344 )
at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:
173 177 )

at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:239)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
at hudson.model.Run.execute(Run.java:1763)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
====================================================================

rcr@orange.fr (JIRA)

unread,
Jun 9, 2016, 3:38:01 PM6/9/16
to jenkinsc...@googlegroups.com

Hi Brian Wu

Send to me the deployment log (available from the link on the job dashboard) not the job logs.

Regards

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 9, 2016, 10:35:02 PM6/9/16
to jenkinsc...@googlegroups.com
Brian Wu commented on Bug JENKINS-35214

Hi Raphael CHAUMIER

Please refer to below deployment logs details:

when i specified the "WebLogic Deployment Command" in advance configuration, deployment log would be like below.
------------------------------------ ARTIFACT UNDEPLOYMENT ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer
------------------------------------ ARTIFACT DEPLOYMENT ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer

when the "WebLogic Deployment Command" is not specified, deployment log goes like this:
------------------------------------ TASK EXECUTION ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer

Thanks.

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 9, 2016, 10:35:03 PM6/9/16
to jenkinsc...@googlegroups.com
Brian Wu edited a comment on Bug JENKINS-35214
Hi [~raphc]


Please refer to below deployment logs details:

* when i specified the "WebLogic Deployment Command" in advance configuration, deployment log would be like below. *
------------------------------------  ARTIFACT UNDEPLOYMENT ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer
------------------------------------  ARTIFACT DEPLOYMENT ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer

* when the "WebLogic Deployment Command" is not specified, deployment log goes like this: *
------------------------------------  TASK EXECUTION ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer

Thanks.

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 10, 2016, 3:59:01 AM6/10/16
to jenkinsc...@googlegroups.com
Brian Wu edited a comment on Bug JENKINS-35214
Hi [~raphc]

Please refer to below deployment logs details:

*when i specified the "WebLogic Deployment Command" in advance configuration, deployment log would be like below.*

------------------------------------  ARTIFACT UNDEPLOYMENT ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer
------------------------------------  ARTIFACT DEPLOYMENT ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer

*when the "WebLogic Deployment Command" is not specified, deployment log goes like this:*

------------------------------------  TASK EXECUTION ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer


BTW, it was working fine when deploy it in command line, but not via Jenkins.
Thanks.

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 10, 2016, 3:59:01 AM6/10/16
to jenkinsc...@googlegroups.com
Brian Wu edited a comment on Bug JENKINS-35214
Hi [~raphc]

Please refer to below deployment logs details:

*when i specified the "WebLogic Deployment Command" in advance configuration, deployment log would be like below.*
------------------------------------  ARTIFACT UNDEPLOYMENT ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer
------------------------------------  ARTIFACT DEPLOYMENT ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer

*when the "WebLogic Deployment Command" is not specified, deployment log goes like this:*
------------------------------------  TASK EXECUTION ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer


*BTW*, it was working fine when deploy it in command line  manually , but not via Jenkins.
Thanks.

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 10, 2016, 3:59:02 AM6/10/16
to jenkinsc...@googlegroups.com
Brian Wu edited a comment on Bug JENKINS-35214
Hi [~raphc]

Please refer to below deployment logs details:

*when i specified the "WebLogic Deployment Command" in advance configuration, deployment log would be like below.*
------------------------------------  ARTIFACT UNDEPLOYMENT ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer
------------------------------------  ARTIFACT DEPLOYMENT ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer

*when the "WebLogic Deployment Command" is not specified, deployment log goes like this:*
------------------------------------  TASK EXECUTION ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer


* BTW * , it was working fine when deploy it in command line, but not via Jenkins.
Thanks.

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 10, 2016, 4:00:01 AM6/10/16
to jenkinsc...@googlegroups.com
Brian Wu edited a comment on Bug JENKINS-35214
Hi [~raphc]

Please refer to below deployment logs details:

*when i specified the "WebLogic Deployment Command" in advance configuration, deployment log would be like below.*
------------------------------------  ARTIFACT UNDEPLOYMENT ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer
------------------------------------  ARTIFACT DEPLOYMENT ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer

*when the "WebLogic Deployment Command" is not specified, deployment log goes like this:*
------------------------------------  TASK EXECUTION ------------------------------------------------
Error: Could not find or load main class weblogic.Deployer


*BTW*, it  was  is  working fine when deploy it in command line manually, but not via Jenkins.
Thanks.

rcr@orange.fr (JIRA)

unread,
Jun 10, 2016, 2:28:02 PM6/10/16
to jenkinsc...@googlegroups.com

Thanks for the feedback,

Can you check, the global configuration (where the weblogic.jar file location is defined) is correctly set.

Do you have more info in the jenkins.log

Regards,

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 10, 2016, 2:35:01 PM6/10/16
to jenkinsc...@googlegroups.com
Brian Wu commented on Bug JENKINS-35214

Hi Raphael CHAUMIER

I set the Additional Class Path like below, i guess it should be right, please let me know if it's wrong.
Oracle/Middleware/Oracle_Home/wlserver/server/lib/weblogic.jar

For the jenkins.log, may i know where is it located?

Thanks.

rcr@orange.fr (JIRA)

unread,
Jun 10, 2016, 6:11:01 PM6/10/16
to jenkinsc...@googlegroups.com

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 11, 2016, 12:37:01 AM6/11/16
to jenkinsc...@googlegroups.com
Brian Wu updated an issue
 
Change By: Brian Wu
Attachment: screenshot-1.png

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 11, 2016, 12:38:01 AM6/11/16
to jenkinsc...@googlegroups.com
Brian Wu updated an issue
Change By: Brian Wu
Attachment: screenshot-2.png

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 11, 2016, 12:42:02 AM6/11/16
to jenkinsc...@googlegroups.com
Brian Wu commented on Bug JENKINS-35214

Hi Raphael CHAUMIER

Please refer to the 2 screenshots attached, it seems fine.

Should I add a new log recorder to get more details? what Logger and Log level should I specify?

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 13, 2016, 12:39:01 PM6/13/16
to jenkinsc...@googlegroups.com
Brian Wu commented on Bug JENKINS-35214

Hi Raphael CHAUMIER

I found that there's nothing in weblogic.jar, instead, the weblogic.Deployer.class is located in weblogic-classess.jar. I then switch from weblogic.jar to weblogic-classess.jar. However, some other class is missing again when I try to trigger the deployment (see below deployment logs). seems weblogic jars are always missing relative dependencies, do you happen to know how to solve this issue?

FYI: I'm deploying my application to Weblogic 12c.

------------------------------------ TASK EXECUTION ------------------------------------------------
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/Debug
at weblogic.Deployer.(Deployer.java:24)
Caused by: java.lang.ClassNotFoundException: weblogic.utils.Debug
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 13, 2016, 12:40:03 PM6/13/16
to jenkinsc...@googlegroups.com
Brian Wu edited a comment on Bug JENKINS-35214
Hi [~raphc]

I found that there's nothing in weblogic.jar, instead, the weblogic.Deployer.class is located in weblogic-classess.jar. I then switch from weblogic.jar to weblogic-classess.jar. However, some other
 class  classes  is missing again when I try to trigger the deployment (see below deployment logs). seems weblogic jars are always missing relative dependencies, do you happen to know how to solve this issue?

*FYI*: I'm deploying my application to Weblogic 12c.


------------------------------------  TASK EXECUTION ------------------------------------------------
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/Debug
at weblogic.Deployer.(Deployer.java:24)
Caused by: java.lang.ClassNotFoundException: weblogic.utils.Debug
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 13, 2016, 12:40:04 PM6/13/16
to jenkinsc...@googlegroups.com
Brian Wu edited a comment on Bug JENKINS-35214
Hi [~raphc]

I found that there's nothing in weblogic.jar, instead, the weblogic.Deployer.class is located in weblogic-classess.jar. I then switch from weblogic.jar to weblogic-classess.jar. However, some other classes
 is  are  missing again when I try to trigger the deployment (see below deployment logs). seems weblogic jars are always missing relative dependencies, do you happen to know how to solve this issue?


*FYI*: I'm deploying my application to Weblogic 12c.

------------------------------------  TASK EXECUTION ------------------------------------------------
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/Debug
at weblogic.Deployer.(Deployer.java:24)
Caused by: java.lang.ClassNotFoundException: weblogic.utils.Debug
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more

rcr@orange.fr (JIRA)

unread,
Jun 13, 2016, 3:32:01 PM6/13/16
to jenkinsc...@googlegroups.com

Hi Brian Wu

OK. For weblogic version later than 10 It is recommended to replace weblogic.jar by wlfullclient. If you didn't build it, here is a link that explain how to do https://docs.oracle.com/cd/E12840_01/wls/docs103/client/jarbuilder.html

Can you try to deploy with wlfullclient.jar

Regards

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 14, 2016, 10:15:02 AM6/14/16
to jenkinsc...@googlegroups.com
Brian Wu commented on Bug JENKINS-35214

Hi Raphael CHAUMIER

Went through the steps you suggested to build wlfullclient.jar and deployed with it in Jenkins, it does work. Thanks a lot for you responses.

Regards

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

brian.dk.wu@gmail.com (JIRA)

unread,
Jun 14, 2016, 10:16:01 AM6/14/16
to jenkinsc...@googlegroups.com
Brian Wu edited a comment on Bug JENKINS-35214
Hi [~raphc]

Went through the steps you suggested to build wlfullclient.jar and deployed with it in Jenkins, it does work. Thanks a lot for
you your responses.

Regards

rcr@orange.fr (JIRA)

unread,
Jun 14, 2016, 3:26:02 PM6/14/16
to jenkinsc...@googlegroups.com

Great !

Hi Ayush T do you have the same problem ? If not I consider this issue closed.

Regards

rcr@orange.fr (JIRA)

unread,
Jun 14, 2016, 3:37:02 PM6/14/16
to jenkinsc...@googlegroups.com
Raphael CHAUMIER closed an issue as Not A Defect
 
Change By: Raphael CHAUMIER
Status: Open Closed
Resolution: Not A Defect
Reply all
Reply to author
Forward
0 new messages