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

Unable to deploy ear file using weblogic deployer plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      OS: OEL 6.8 64 bit
      Jenkins version: 2.73.1
      Weblogic plugin Version: 4.1
      Java Version: 1.8
    • Similar Issues:

      Description

      HI Support,

      Unable to deploy ear file on weblogic.

      Configured job following this url: https://wiki.jenkins.io/display/JENKINS/WebLogic+Deployer+Plugin#WebLogicDeployerPlugin-Authenticationmode.

      I've taken screen shots of job and other configuration related settings.

       

      Please look into this as early as possible.

      weblogic plugin job conf.docx

        Attachments

          Activity

          nagesh Nagesh Rapeti created issue -
          Hide
          nagesh Nagesh Rapeti added a comment -

          Could someone please update if there is any problem with the configurations I made for this job?

          It's been 2 days, I didn't any comment yet on this issue.

          Show
          nagesh Nagesh Rapeti added a comment - Could someone please update if there is any problem with the configurations I made for this job? It's been 2 days, I didn't any comment yet on this issue.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          It is not a Support site, it is bugtracker.

          If you submit to "_unsorted" component, it may take long to get a response. I will assign to the proper component.

          Show
          oleg_nenashev Oleg Nenashev added a comment - It is not a Support site, it is bugtracker. If you submit to "_unsorted" component, it may take long to get a response. I will assign to the proper component.
          oleg_nenashev Oleg Nenashev made changes -
          Field Original Value New Value
          Component/s weblogic-deployer-plugin [ 16542 ]
          Component/s _unsorted [ 19622 ]
          oleg_nenashev Oleg Nenashev made changes -
          Assignee Oleg Nenashev [ oleg_nenashev ] Raphael CHAUMIER [ raphc ]
          Hide
          raphc Raphael CHAUMIER added a comment -

          Hi Nagesh Rapeti

          Can you tell me more about your problem ? Waht is the version of plugin you use ? the weblogic version ? Can you post the job execution log ?

           

          Show
          raphc Raphael CHAUMIER added a comment - Hi Nagesh Rapeti Can you tell me more about your problem ? Waht is the version of plugin you use ? the weblogic version ? Can you post the job execution log ?  
          Hide
          nagesh Nagesh Rapeti added a comment -

          Hi Raphael

          I'm trying to deploy the build war/ear onto weblogic using weblogic plugin, but unable to achieve that.

          Plugin version: 4.1
          Weblogic version: 12.2.1.2.0

          Job Execution Log:
          if I use wlthint3client.jar

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

          If I use weblogic.jar:

          ------------------------------------ ARTIFACT UNDEPLOYMENT ------------------------------------------------
          Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/Debug
          at weblogic.Deployer.(Deployer.java:23)
          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
          ------------------------------------ ARTIFACT DEPLOYMENT ------------------------------------------------
          Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/Debug
          at weblogic.Deployer.(Deployer.java:23)
          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
          ========================
          Building in workspace /opt/software/jenkins/workspace/WLS-Plugin_test
          [WeblogicDeploymentPlugin] - Loading JDK 'system' ...
          [WeblogicDeploymentPlugin] - Checking if JDK 'system' exists on node () ...
          [WeblogicDeploymentPlugin] - Pay attention to JDK version

          {selected version is 1.8.0_112}

          compatibility with WebLogic Deployer API (see Oracle documentation).
          [WeblogicDeploymentPlugin] - The JDK /software/bea/java/jdk1.8.0_112/jre will be used.
          [WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on logenquiry-web-1.0-SNAPSHOT.war]...
          [WeblogicDeploymentPlugin] - 3 files found under directory /opt/software/jenkins/workspace/eServe-Deploy
          [WeblogicDeploymentPlugin] - the following resource recorded /opt/software/jenkins/workspace/eServe-Deploy/logenquiry-web-1.0-SNAPSHOT.war is eligible.
          [WeblogicDeploymentPlugin] - the following resource ['/opt/software/jenkins/workspace/eServe-Deploy/wls-plugin.xml'] doesn't match logenquiry-web-1.0-SNAPSHOT.war
          [WeblogicDeploymentPlugin] - the following resource ['/opt/software/jenkins/workspace/eServe-Deploy/eServe_EC.properties'] doesn't match logenquiry-web-1.0-SNAPSHOT.war
          [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=managed1_eservewlst01) (host=weblogic.admin.server.host) (port=weblogic.admin.server.port)
          [WeblogicDeploymentPlugin] - Undeploying artifact ...
          [WeblogicDeploymentPlugin] - Artifact undeployed successfully.
          [WeblogicDeploymentPlugin] - Deploying artifact ...
          java.lang.RuntimeException: task completed abnormally (exit code = 1). Check your Weblogic Deployment logs.
          at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy(DeploymentTaskServiceImpl.java:248)
          at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:178)
          at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:303)
          at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:736)
          at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:682)
          at hudson.model.Build$BuildExecution.post2(Build.java:186)
          at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:627)
          at hudson.model.Run.execute(Run.java:1762)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:419)
          ERROR: [WeblogicDeploymentPlugin] - Failed to deploy. Check your Weblogic deployment logs.
          [INFO] ------------------------------------------------------------------------
          [INFO] DEPLOYMENT FAILURE
          [INFO] ------------------------------------------------------------------------
          Build step 'Deploy the artifact to any WebLogic environments' changed build result to FAILURE
          Finished: FAILURE

          Show
          nagesh Nagesh Rapeti added a comment - Hi Raphael I'm trying to deploy the build war/ear onto weblogic using weblogic plugin, but unable to achieve that. Plugin version: 4.1 Weblogic version: 12.2.1.2.0 Job Execution Log: if I use wlthint3client.jar ------------------------------------ ARTIFACT UNDEPLOYMENT ------------------------------------------------ Error: Could not find or load main class weblogic.Deployer ------------------------------------ ARTIFACT DEPLOYMENT ------------------------------------------------ Error: Could not find or load main class weblogic.Deployer If I use weblogic.jar: ------------------------------------ ARTIFACT UNDEPLOYMENT ------------------------------------------------ Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/Debug at weblogic.Deployer.(Deployer.java:23) 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 ------------------------------------ ARTIFACT DEPLOYMENT ------------------------------------------------ Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/utils/Debug at weblogic.Deployer.(Deployer.java:23) 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 ======================== Building in workspace /opt/software/jenkins/workspace/WLS-Plugin_test [WeblogicDeploymentPlugin] - Loading JDK 'system' ... [WeblogicDeploymentPlugin] - Checking if JDK 'system' exists on node () ... [WeblogicDeploymentPlugin] - Pay attention to JDK version {selected version is 1.8.0_112} compatibility with WebLogic Deployer API (see Oracle documentation). [WeblogicDeploymentPlugin] - The JDK /software/bea/java/jdk1.8.0_112/jre will be used. [WeblogicDeploymentPlugin] - Retrieving artifacts recorded [filtered resources on logenquiry-web-1.0-SNAPSHOT.war] ... [WeblogicDeploymentPlugin] - 3 files found under directory /opt/software/jenkins/workspace/eServe-Deploy [WeblogicDeploymentPlugin] - the following resource recorded /opt/software/jenkins/workspace/eServe-Deploy/logenquiry-web-1.0-SNAPSHOT.war is eligible. [WeblogicDeploymentPlugin] - the following resource ['/opt/software/jenkins/workspace/eServe-Deploy/wls-plugin.xml'] doesn't match logenquiry-web-1.0-SNAPSHOT.war [WeblogicDeploymentPlugin] - the following resource ['/opt/software/jenkins/workspace/eServe-Deploy/eServe_EC.properties'] doesn't match logenquiry-web-1.0-SNAPSHOT.war [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=managed1_eservewlst01) (host= weblogic.admin.server.host ) (port= weblogic.admin.server.port ) [WeblogicDeploymentPlugin] - Undeploying artifact ... [WeblogicDeploymentPlugin] - Artifact undeployed successfully. [WeblogicDeploymentPlugin] - Deploying artifact ... java.lang.RuntimeException: task completed abnormally (exit code = 1). Check your Weblogic Deployment logs. at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.deploy(DeploymentTaskServiceImpl.java:248) at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:178) at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform(WeblogicDeploymentPlugin.java:303) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:736) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:682) at hudson.model.Build$BuildExecution.post2(Build.java:186) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:627) at hudson.model.Run.execute(Run.java:1762) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:419) ERROR: [WeblogicDeploymentPlugin] - Failed to deploy. Check your Weblogic deployment logs. [INFO] ------------------------------------------------------------------------ [INFO] DEPLOYMENT FAILURE [INFO] ------------------------------------------------------------------------ Build step 'Deploy the artifact to any WebLogic environments' changed build result to FAILURE Finished: FAILURE
          Hide
          raphc Raphael CHAUMIER added a comment - - edited

          Hi,

          Did you try to execute java command outside of jenkins (e.g /my/jdk/bin/java -cp /path/to/weblogic.jar weblogic.Deployer ....)? Is the jdk compatible wirth your weblogic.jar version ?

           

           

           

          Show
          raphc Raphael CHAUMIER added a comment - - edited Hi, Did you try to execute java command outside of jenkins (e.g /my/jdk/bin/java -cp /path/to/weblogic.jar weblogic.Deployer ....)? Is the jdk compatible wirth your weblogic.jar version ?      
          Hide
          nagesh Nagesh Rapeti added a comment -

          Hello...
          I've tried that as well but same error.
          As per documentation of weblogic I see weblogic 12.x is compatible with JDK8.
          You suspect mostly it might be due to in-compatibility of jdk with weblogic?

          Show
          nagesh Nagesh Rapeti added a comment - Hello... I've tried that as well but same error. As per documentation of weblogic I see weblogic 12.x is compatible with JDK8. You suspect mostly it might be due to in-compatibility of jdk with weblogic?
          Hide
          raphc Raphael CHAUMIER added a comment - - edited

          Hi,

          If the command '/my/jdk/bin/java -cp /path/to/weblogic.jar weblogic.Deployer ....' failed with a jdk8 I guess the issue comes from the jdk version. Did you try the same command with jdk7/6 and send me the output? 

          Tell me if you want a detailed command.

           Another thing. What is the size of your weblogic.jar ?

          Regards,

          Show
          raphc Raphael CHAUMIER added a comment - - edited Hi, If the command '/my/jdk/bin/java -cp /path/to/weblogic.jar weblogic.Deployer ....' failed with a jdk8 I guess the issue comes from the jdk version. Did you try the same command with jdk7/6 and send me the output?  Tell me if you want a detailed command.  Another thing. What is the size of your weblogic.jar ? Regards,
          Hide
          nagesh Nagesh Rapeti added a comment -

          HI..

          I've installed JAVA 8 only in support of latest Jenkins stable version as per documentation during installation. Please share detailed command or notes I'll give a try on other servers where I have Java6.

          weblogic.jar size is 8K
          wlthint3client.jar size is 7.2M

          Show
          nagesh Nagesh Rapeti added a comment - HI.. I've installed JAVA 8 only in support of latest Jenkins stable version as per documentation during installation. Please share detailed command or notes I'll give a try on other servers where I have Java6. weblogic.jar size is 8K wlthint3client.jar size is 7.2M
          Hide
          raphc Raphael CHAUMIER added a comment -

          Hi Nagesh Rapeti

          Sorry for my late response. A user of the plugin suggests :

                • WORK AROUND for WebLogic 12.2.x ****

          Just generate and use a wlfullclient-10.3.6.jarwith that I can deploy without any problem onto our WebLogic Server Version: 12.2.1.1.0.

           

          You can try this.

          Show
          raphc Raphael CHAUMIER added a comment - Hi Nagesh Rapeti Sorry for my late response. A user of the plugin suggests : WORK AROUND for WebLogic 12.2.x **** Just generate and use a  wlfullclient-10.3.6.jar ,  with that I can deploy without any problem onto our WebLogic Server Version: 12.2.1.1.0 .   You can try this.

            People

            Assignee:
            raphc Raphael CHAUMIER
            Reporter:
            nagesh Nagesh Rapeti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: