java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

Stack Overflow | RogueWolf | 9 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

    Error connecting to database with JUnit

    Stack Overflow | 9 months ago | RogueWolf
    java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
  2. 0

    JNDI configuration exception - javax.naming.NoInitialContextException

    Stack Overflow | 1 year ago | Satyadev
    java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
  3. 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add to your dependencies. To add it, the groupId is com.fasterxml and artifactId is Classmate.
  6. 0
    samebug tip
    Check if you didn't forget to instantiate your topic in the kafka broker.
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.juli.logging.LogFactory

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(Unknown Source)
    2. java.net.URLClassLoader$1.run(Unknown Source)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(Unknown Source)
    5. java.lang.ClassLoader.loadClass(Unknown Source)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    7. java.lang.ClassLoader.loadClass(Unknown Source)
    7 frames
  3. Web Container Naming Utilities
    javaURLContextFactory.getInitialContext
    1. org.apache.naming.NamingContext.<clinit>(NamingContext.java:60)
    2. org.apache.naming.java.javaURLContextFactory.getInitialContext(javaURLContextFactory.java:112)
    2 frames
  4. Java RT
    InitialContext.<init>
    1. javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    2. javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    3. javax.naming.InitialContext.init(Unknown Source)
    4. javax.naming.InitialContext.<init>(Unknown Source)
    4 frames
  5. com.prudential.connection
    DbConnection.getConnection
    1. com.prudential.connection.DbConnection.getConnection(DbConnection.java:35)
    1 frame
  6. com.prudential.tests
    DbConnectionTest.testGetConnection
    1. com.prudential.tests.DbConnectionTest.testGetConnection(DbConnectionTest.java:32)
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  8. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    5. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    8. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    9. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    10. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    11. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    12. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    13. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    14. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    15. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    15 frames
  9. JUnit4 Runner
    JUnit4TestReference.run
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    1 frame
  10. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
    5 frames