java.lang.NoClassDefFoundError: weblogic/deploy/api/spi/DeploymentOptions

Jenkins JIRA | Guillermo Figueroa | 7 months ago
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd , Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    Hi, I want to install a war file generated from Jenkins to WebLogic, both on different machines, but when the installation runs an error is generated: java.lang.RuntimeException: task completed abnormally (exit code = 1) Your help please! *+Jenkins Console Output:+* [WeblogicDeploymentPlugin] - EXECUTING TASK ... $ /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Xms256M -Xmx256M -cp /var/jenkins_home/wls-deploy/weblogic.jar:/var/jenkins_home/wls-deploy/wlfullclient.jar:/var/jenkins_home/wls-deploy/wlthint3client.jar weblogic.Deployer -adminurl t3:// -user system -password system -deploy /var/jenkins_home/workspace/job-test-compile-build-deploy/dist/testcicd.war -remote -upload java.lang.RuntimeException: task completed abnormally (exit code = 1) at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.customize( at org.jenkinsci.plugins.deploy.weblogic.task.DeploymentTaskServiceImpl.perform( at org.jenkinsci.plugins.deploy.weblogic.WeblogicDeploymentPlugin.perform( at hudson.tasks.BuildStepMonitor$1.perform( at hudson.model.AbstractBuild$AbstractBuildExecution.perform( at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps( at hudson.model.Build$BuildExecution.post2( at hudson.model.AbstractBuild$ at hudson.model.Run.execute( at at hudson.model.ResourceController.execute( at ERROR: [WeblogicDeploymentPlugin] - Failed to deploy. *+WebLogic Deployment Log:+* ------------------------------------ TASK EXECUTION ------------------------------------------------ weblogic.Deployer invoked with options: -adminurl t3:// -user system -deploy /var/jenkins_home/workspace/job-test-compile-build-deploy/dist/testcicd.war -remote -upload java.lang.NoClassDefFoundError: weblogic/deploy/api/spi/DeploymentOptions at at at at at at at at at at at at weblogic.Deployer.main( Caused by: java.lang.ClassNotFoundException: weblogic.deploy.api.spi.DeploymentOptions at at java.lang.ClassLoader.loadClass( at sun.misc.Launcher$AppClassLoader.loadClass( at java.lang.ClassLoader.loadClass( ... 12 more weblogic/deploy/api/spi/DeploymentOptions *+Deployment Task Configuration (Job):+* The configuration can be seen in the attached images conf-1.png and conf-2.png. Command Line Options: -adminurl t3:// -user system -password system -deploy /var/jenkins_home/workspace/job-test-compile-build-deploy/dist/testcicd.war -remote -upload *+WebLogic Deployment Plugin Configuration:+* I tried several options, some of these options can be seen in the attached images weblogic-deployment-plugin-conf-1.png and weblogic-deployment-plugin-conf-2.png. *+plugin-configuration.xml:+* <?xml version="1.0" encoding="UTF-8"?> <config xmlns="http://org.jenkinsci.plugins/WeblogicDeploymentPlugin" xmlns:xsi="" xsi:schemaLocation="http://localhost:32777/plugin/weblogic-deployer-plugin/config/plugin-configuration.xsd"> <weblogic-targets> <weblogic-target> <name>wls-alpha</name> <host></host> <port>12001</port> <login>system</login> <password>system</password> <authMode>BY_LOGIN</authMode> </weblogic-target> </weblogic-targets> </config> *+Deploy from WebLogic Machine:+* The deploy from the weblogic machine is performed without errors, this can be seen in the attached image deploy-from-weblogic-machine.png

    Jenkins JIRA | 7 months ago | Guillermo Figueroa
    java.lang.NoClassDefFoundError: weblogic/deploy/api/spi/DeploymentOptions
  2. 0

    [JIRA] (JENKINS-38205) Failed to deploy war on Weblogic: task completed abnormally (exit code = 1)

    Google Groups | 7 months ago | (JIRA)
    java.lang.NoClassDefFoundError: weblogic/deploy/api/spi/DeploymentOptions
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  5. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException


  2. Java RT
    2. java.lang.ClassLoader.loadClass(
    3. sun.misc.Launcher$AppClassLoader.loadClass(
    4. java.lang.ClassLoader.loadClass(
    4 frames
  3. weblogic.deploy.api
    8 frames
  4. weblogic.utils.compiler
    2 frames
  5. weblogic
    2. weblogic.Deployer.main(
    2 frames