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

Unable to deploy the ear file using weblogic-deployer-plugin

      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

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

          Ayush T created issue -
          Ayush T made changes -
          Epic Link New: JENKINS-35019 [ 170693 ]

          Hi,

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

          Regards,

          Raphael CHAUMIER added a comment - Hi, Do you have the deployment logs (see the link on the job execution dashboard). Regards,
          Oleg Nenashev made changes -
          Link New: This issue is duplicated by JENKINS-35215 [ JENKINS-35215 ]
          Oleg Nenashev made changes -
          Epic Link Original: JENKINS-35019 [ 170693 ]

          Hi ayush15

          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

          Raphael CHAUMIER added a comment - Hi ayush15 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 Wu added a comment - - edited

          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.customize(DeploymentTaskServiceImpl.java:344)
          at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java: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)
          ====================================================================

          Brian Wu added a comment - - edited 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.customize(DeploymentTaskServiceImpl.java:344) at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java: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) ====================================================================

          Hi brianwu

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

          Regards

          Raphael CHAUMIER added a comment - Hi brianwu Send to me the deployment log (available from the link on the job dashboard) not the job logs. Regards

          Brian Wu added a comment - - edited

          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 is working fine when deploy it in command line manually, but not via Jenkins.
          Thanks.

          Brian Wu added a comment - - edited 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 is working fine when deploy it in command line manually, but not via Jenkins. Thanks.

          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,

          Raphael CHAUMIER added a comment - 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,

            raphc Raphael CHAUMIER
            ayush15 Ayush T
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: