Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. ClassRequest.getRunner() has thrown a NoClassDefFoundError
    JUnit
    1
    0
    0
  2. ClassLoader.loadClass() has thrown a ClassNotFoundException
    Java Runtime
    1990
    2004
    208

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
2 matching frames hidden
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

Solution

rafael1 year ago

A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
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.

Check the source of this solution for more info

External results for this pattern (10)

  1. garbage.robot.Sprite
    Show stack trace
  2. iaubainvia GitHub1 day ago
    org/apache/catalina/connector/Connector
    Show stack trace
  3. drewarteagavia GitHub2 days ago
    com/gauck/sam/Utilities/Utilities
    Show stack trace
  4. evanliferockvia GitHub2 days ago
    com.sap.automation.stepdefinitions.RunTestSuite
    Show stack trace
  5. Larsvia Google Groups2 days ago
    org/eclipse/jetty/util/component/AggregateLifeCycle
    Show stack trace
  6. Jörg Hohwillervia Google Groups2 days ago
    com/gargoylesoftware/htmlunit/BrowserVersion
    Show stack trace
  7. roates1234via GitHub2 days ago
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: ucar/nc2/util/CloseableIterator
    Show stack trace
  8. inodbvia GitHub2 days ago
    joptsimple.OptionException
    Show stack trace
  9. sagrawal31via GitHub2 days ago
    org/springframework/boot/context/embedded/FilterRegistrationBean
    Show stack trace
  10. naah69via GitHub2 days ago
    Error processing condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$PooledDataSourceConfiguration
    Show stack trace