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

WebLogic deployment - java.lang.NoClassDefFoundError

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Jenkins 2.90
      WebLogic Deployer Plugin 4.1
      WebLogic 12.2.1.2.latestpatch
    • Similar Issues:

      Description

      The deployment of a .war using the latest version of the plugin, fails on WebLogic 12c (latest CPU). The job returns the following error message:

       

      [WeblogicDeploymentPlugin] - Deploying the artifact on the following target : (name=HIDDEN) (host=HIDDEN) (port=7001)
      [WeblogicDeploymentPlugin] - Executing task ...
      java.lang.RuntimeException: task completed abnormally (exit code = 1). Check your Weblogic Deployment logs.
      at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.customize(DeploymentTaskServiceImpl.java:344)
      at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform(DeploymentTaskServiceImpl.java:182)
      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:770)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      at hudson.model.Build$BuildExecution.post2(Build.java:183)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
      at hudson.model.Run.execute(Run.java:1784)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)
      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

      Under WebLogic deployment, the following error is returned for task execution:

      weblogic.Deployer invoked with options: -adminurl t3://HIDDEN:7001 -username {wl.login} -start -name HIDDEN
      java.lang.NoClassDefFoundError: weblogic/deploy/api/spi/DeploymentOptions
      at weblogic.deploy.api.tools.deployer.Jsr88Operation.init(Jsr88Operation.java:70)
      at weblogic.deploy.api.tools.deployer.Operation.(Operation.java:52)
      at weblogic.deploy.api.tools.deployer.Operation.(Operation.java:47)
      at weblogic.deploy.api.tools.deployer.Operation.(Operation.java:42)
      at weblogic.deploy.api.tools.deployer.Jsr88Operation.(Jsr88Operation.java:55)
      at weblogic.deploy.api.tools.deployer.StartOperation.(StartOperation.java:15)
      at weblogic.deploy.api.tools.deployer.Deployer.newOperation(Deployer.java:217)
      at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:86)
      at weblogic.utils.compiler.Tool.run(Tool.java:159)
      at weblogic.utils.compiler.Tool.run(Tool.java:116)
      at weblogic.Deployer.run(Deployer.java:74)
      at weblogic.Deployer.main(Deployer.java:55)
      Caused by: java.lang.ClassNotFoundException: weblogic.deploy.api.spi.DeploymentOptions
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 12 more
      weblogic/deploy/api/spi/DeploymentOptions

       

      On additional classpath, I tried loading all 3 .jar's (one by one, or all 3), without any luck: 

      • weblogic.jar
      • wlthint3client.jar
      • wlfullclient.jar

      Replicated the problem against Java8 (144) , Java8 (131) and Java7 (75).

        Attachments

          Activity

          Hide
          raphc Raphael CHAUMIER added a comment -

          Hi Dragos Fedorovici

           

           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 Dragos Fedorovici    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:
              d3ag0s Dragos Fedorovici
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: