org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-p lugin:3.3:compile (default-compile) on project struts2-bootstrap-plugin: Fatal error compiling

GitHub | sdutry | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    GitHub comment 14#251882715

    GitHub | 7 months ago | sdutry
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-p lugin:3.3:compile (default-compile) on project struts2-bootstrap-plugin: Fatal error compiling
  2. 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.
  3. 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>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Check if you didn't forget to instantiate your topic in the kafka broker.
  6. 0
    samebug tip
    NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.
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.apache.log4j.Priority

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:372)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    6 frames
  3. FreeMarker
    Configuration.<clinit>
    1. freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65)
    2. freemarker.log.Logger.getLogger(Logger.java:255)
    3. freemarker.template.utility.SecurityUtilities.<clinit>(SecurityUtilities.java:67)
    4. freemarker.ext.beans.BeansWrapper.<clinit>(BeansWrapper.java:146)
    5. freemarker.template.ObjectWrapper.<clinit>(ObjectWrapper.java:69)
    6. freemarker.core.Configurable.<init>(Configurable.java:132)
    7. freemarker.template.Configuration.<init>(Configuration.java:109)
    8. freemarker.template.Configuration.<clinit>(Configuration.java:96)
    8 frames
  4. Struts Annotations
    TagAnnotationProcessor.process
    1. org.apache.struts.annotations.taglib.apt.TagAnnotationProcessor.saveTemplates(TagAnnotationProcessor.java:247)
    2. org.apache.struts.annotations.taglib.apt.TagAnnotationProcessor.process(TagAnnotationProcessor.java:160)
    2 frames
  5. Java Tools
    JavacTaskImpl.call
    1. com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
    2. com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)
    3. com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
    4. com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
    5. com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
    6. com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
    7. com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
    8. com.sun.tools.javac.main.Main.compile(Main.java:523)
    9. com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
    10. com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
    10 frames
  6. Plexus Javac Component
    JavacCompiler.performCompile
    1. org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:125)
    2. org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:169)
    2 frames
  7. Apache Maven Compiler Plugin
    CompilerMojo.execute
    1. org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:825)
    2. org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
    2 frames
  8. Maven Plugin
    DefaultBuildPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
    1 frame
  9. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    6. org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
    8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
    9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
    9 frames
  10. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
    2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
    3. org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
    3 frames
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:483)
    4 frames
  12. Plexus
    Launcher.main
    1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    4 frames