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

JFrog JIRA | Roberto Lo Giacco | 3 years ago
  1. 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
    installjava.lang.ClassNotFoundException: org.jvnet.hudson.maven3.launcher.Maven3Launcher
  2. 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
    installjava.lang.ClassNotFoundException: org.jvnet.hudson.maven3.launcher.Maven3Launcher

    Root Cause Analysis

    1. installjava.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.run(FutureTask.java:262)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      4. java.lang.Thread.run(Thread.java:724)
      4 frames