java.lang.ClassNotFoundException: org.jvnet.hudson.maven3.launcher.Maven3Launcher

JFrog JIRA | Remi Fouilloux | 3 years ago
  1. 0

    Within a "maven 2/3 job", the build works perfectly when no option from the Jenkins Artifactory Plugin is enabled. But the build fails as soon as any single option from the "Jenkins Artifcatory Plugin" is enabled (even if not used by the said build). {noformat} Parsing POMs [workspace] $ /var/lib/jenkins/tools/hudson.model.JDK/JDK7-autoinstall/bin/java -Dm3plugin.lib=/var/lib/jenkins/cache/artifactory-plugin/2.1.8 -Dmaven3.interceptor.common=/var/lib/jenkins/cache/artifactory-plugin/2.1.8 -Djava.awt.headless=true -cp /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-agent-1.4.jar:/var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven3-autoinstall/boot/plexus-classworlds-2.4.2.jar:/var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven3-autoinstall/conf/logging jenkins.maven3.agent.Maven31Main /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven3-autoinstall /var/cache/jenkins/war/WEB-INF/lib/remoting-2.32.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-interceptor-1.4.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.4.jar 47483 <===[JENKINS REMOTING CAPACITY]===>channel started java.lang.ClassNotFoundException: org.jvnet.hudson.maven3.launcher.Maven3Launcher at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.getMainClass(Launcher.java:145) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:267) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.maven.Maven3Builder.call(Maven3Builder.java:130) at hudson.maven.Maven3Builder.call(Maven3Builder.java:67) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) {noformat} The same exception occures when building a job configured with option among : * resolve artifacts from artifactory * deploy to artifactory (as a post step) The maven build works perfectly fine if the option "Enable Artifactory release management" is enabled. I haven't tested releasing the project though.

    JFrog JIRA | 3 years ago | Remi Fouilloux
    java.lang.ClassNotFoundException: org.jvnet.hudson.maven3.launcher.Maven3Launcher
  2. 0

    Within a "maven 2/3 job", the build works perfectly when no option from the Jenkins Artifactory Plugin is enabled. But the build fails as soon as any single option from the "Jenkins Artifcatory Plugin" is enabled (even if not used by the said build). {noformat} Parsing POMs [workspace] $ /var/lib/jenkins/tools/hudson.model.JDK/JDK7-autoinstall/bin/java -Dm3plugin.lib=/var/lib/jenkins/cache/artifactory-plugin/2.1.8 -Dmaven3.interceptor.common=/var/lib/jenkins/cache/artifactory-plugin/2.1.8 -Djava.awt.headless=true -cp /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-agent-1.4.jar:/var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven3-autoinstall/boot/plexus-classworlds-2.4.2.jar:/var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven3-autoinstall/conf/logging jenkins.maven3.agent.Maven31Main /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven3-autoinstall /var/cache/jenkins/war/WEB-INF/lib/remoting-2.32.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-interceptor-1.4.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.4.jar 47483 <===[JENKINS REMOTING CAPACITY]===>channel started java.lang.ClassNotFoundException: org.jvnet.hudson.maven3.launcher.Maven3Launcher at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.getMainClass(Launcher.java:145) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:267) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.maven.Maven3Builder.call(Maven3Builder.java:130) at hudson.maven.Maven3Builder.call(Maven3Builder.java:67) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) {noformat} The same exception occures when building a job configured with option among : * resolve artifacts from artifactory * deploy to artifactory (as a post step) The maven build works perfectly fine if the option "Enable Artifactory release management" is enabled. I haven't tested releasing the project though.

    JFrog JIRA | 3 years ago | Remi Fouilloux
    java.lang.ClassNotFoundException: org.jvnet.hudson.maven3.launcher.Maven3Launcher
  3. 0

    Defect HAP-417 is marked as resolved in version 2.1.6 but it is not: whenever I add the Deploy to Artifactory post build action in Jenkins the build fails due to problems with dependencies. [workspace] $ /usr/java/default//bin/java -Dm3plugin.lib=/root/.jenkins/cache/artifactory-plugin/2.1.8 -Dmaven3.interceptor.common=/root/.jenkins/cache/artifactory-plugin/2.1.8 -cp /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-agent-1.4.jar:/opt/maven/boot/plexus-classworlds-2.4.2.jar:/opt/maven/conf/logging jenkins.maven3.agent.Maven31Main /opt/maven /opt/apache-tomcat-7.0.42/webapps/jenkins/WEB-INF/lib/remoting-2.32.jar /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-interceptor-1.4.jar /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.4.jar 42171 <===[JENKINS REMOTING CAPACITY]===>channel started Executing Maven: -B -f /root/.jenkins/jobs/template/workspace/pom.xml installjava.lang.ClassNotFoundException: org.jvnet.hudson.maven3.launcher.Maven3Launcher at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.getMainClass(Launcher.java:145) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:267) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.maven.Maven3Builder.call(Maven3Builder.java:130) at hudson.maven.Maven3Builder.call(Maven3Builder.java:67) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) channel stopped ERROR: Failed to parse POMs hudson.util.IOException2 at hudson.maven.Maven3Builder.call(Maven3Builder.java:183) at hudson.maven.Maven3Builder.call(Maven3Builder.java:67) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.maven.Maven3Builder.call(Maven3Builder.java:130) ... 9 more Caused by: java.lang.Exception: java.lang.ClassNotFoundException: org.jvnet.hudson.maven3.launcher.Maven3Launcher at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:184) ... 14 more Caused by: java.lang.ClassNotFoundException: org.jvnet.hudson.maven3.launcher.Maven3Launcher at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.getMainClass(Launcher.java:145) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:267) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181) ... 14 more Finished: FAILURE

    JFrog JIRA | 3 years ago | Roberto Lo Giacco
    hudson.util.IOException2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Defect HAP-417 is marked as resolved in version 2.1.6 but it is not: whenever I add the Deploy to Artifactory post build action in Jenkins the build fails due to problems with dependencies. [workspace] $ /usr/java/default//bin/java -Dm3plugin.lib=/root/.jenkins/cache/artifactory-plugin/2.1.8 -Dmaven3.interceptor.common=/root/.jenkins/cache/artifactory-plugin/2.1.8 -cp /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-agent-1.4.jar:/opt/maven/boot/plexus-classworlds-2.4.2.jar:/opt/maven/conf/logging jenkins.maven3.agent.Maven31Main /opt/maven /opt/apache-tomcat-7.0.42/webapps/jenkins/WEB-INF/lib/remoting-2.32.jar /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-interceptor-1.4.jar /root/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.4.jar 42171 <===[JENKINS REMOTING CAPACITY]===>channel started Executing Maven: -B -f /root/.jenkins/jobs/template/workspace/pom.xml installjava.lang.ClassNotFoundException: org.jvnet.hudson.maven3.launcher.Maven3Launcher at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.getMainClass(Launcher.java:145) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:267) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.maven.Maven3Builder.call(Maven3Builder.java:130) at hudson.maven.Maven3Builder.call(Maven3Builder.java:67) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) channel stopped ERROR: Failed to parse POMs hudson.util.IOException2 at hudson.maven.Maven3Builder.call(Maven3Builder.java:183) at hudson.maven.Maven3Builder.call(Maven3Builder.java:67) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.maven.Maven3Builder.call(Maven3Builder.java:130) ... 9 more Caused by: java.lang.Exception: java.lang.ClassNotFoundException: org.jvnet.hudson.maven3.launcher.Maven3Launcher at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:184) ... 14 more Caused by: java.lang.ClassNotFoundException: org.jvnet.hudson.maven3.launcher.Maven3Launcher at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.getMainClass(Launcher.java:145) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:267) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181) ... 14 more Finished: FAILURE

    JFrog JIRA | 3 years ago | Roberto Lo Giacco
    hudson.util.IOException2

    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

      org.jvnet.hudson.maven3.launcher.Maven3Launcher

      at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass()
    2. Plexus
      Launcher.launch
      1. org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
      2. org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
      3. org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.getMainClass(Launcher.java:145)
      5. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:267)
      6. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      6 frames
    3. jenkins.maven3.agent
      Maven31Main.launch
      1. jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    5. Hudson Maven Embedder
      Maven3Builder.call
      1. hudson.maven.Maven3Builder.call(Maven3Builder.java:130)
      2. hudson.maven.Maven3Builder.call(Maven3Builder.java:67)
      2 frames
    6. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:326)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:724)
      5 frames