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

NoClassDefFoundError: org.apache.maven.surefire.booter.ForkedBooter

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • maven-plugin
    • None

      When trying to run a job for a maven based selenium webdriver test project. I am getting below error:

      Started by user Amol Chakradeo
      [EnvInject] - Loading node environment variables.
      Building in workspace C:\Jenkins\jobs\SeleniumSmokeTest\workspace
      Parsing POMs
      [workspace] $ "C:\Program Files\IBM\SDP\jdk/bin/java" -cp C:\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-agent-1.6.jar;C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven\boot\plexus-classworlds-2.5.2.jar;C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven/conf/logging jenkins.maven3.agent.Maven32Main C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven C:\Jenkins\war\WEB-INF\lib\remoting-2.51.jar C:\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-interceptor-1.6.jar C:\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.6.jar 63859
      <===[JENKINS REMOTING CAPACITY]===>channel started
      ERROR: JENKINS-18403 JDK 5 not supported to run Maven; retrying with slave Java and setting compile/test properties to point to C:\Program Files\IBM\SDP\jdk
      [workspace] $ "C:\Program Files (x86)\Java\jre1.8.0_45/bin/java" -cp C:\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-agent-1.6.jar;C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven\boot\plexus-classworlds-2.5.2.jar;C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven/conf/logging jenkins.maven3.agent.Maven32Main C:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven C:\Jenkins\war\WEB-INF\lib\remoting-2.51.jar C:\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-interceptor-1.6.jar C:\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.6.jar 63861
      <===[JENKINS REMOTING CAPACITY]===>channel started
      Executing Maven: -B -f C:\Jenkins\jobs\SeleniumSmokeTest\workspace\pom.xml install
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building HIXSelenium 1.0
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-resources-plugin:2.5:resources (default-resources) @ HIXSelenium —
      [debug] execute contextualize
      [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] Copying 0 resource
      [INFO]
      [INFO] — maven-compiler-plugin:2.3.2:compile (default-compile) @ HIXSelenium —
      [INFO] Nothing to compile - all classes are up to date
      [INFO]
      [INFO] — maven-resources-plugin:2.5:testResources (default-testResources) @ HIXSelenium —
      [debug] execute contextualize
      [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
      [INFO] Copying 0 resource
      [INFO]
      [INFO] — maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ HIXSelenium —
      [INFO] Nothing to compile - all classes are up to date
      [INFO]
      [INFO] — maven-surefire-plugin:2.17:test (default-test) @ HIXSelenium —
      [INFO] Surefire report directory: C:\Jenkins\jobs\SeleniumSmokeTest\workspace\target\surefire-reports

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.maven.surefire.booter.ForkedBooter
      Caused by: java.lang.ClassNotFoundException: org.apache.maven.surefire.booter.ForkedBooter
      at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
      Could not find the main class: org.apache.maven.surefire.booter.ForkedBooter. Program will exit.

      Results :

      Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

          [JENKINS-29087] NoClassDefFoundError: org.apache.maven.surefire.booter.ForkedBooter

          There are no comments yet on this issue.

            Unassigned Unassigned
            amolbc Amol Chakradeo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: