Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

exception in thread "main" java.lang.noclassdeffounderror: org/apache/commons/logging/logfactory

First, double check that your classpath is indeed correct. 
Second, try opening the jar and check that it actually contains the org.apache.commons.logging.LogFactory class. 
Finally, try debugging by setting a breakpoint in the class loader. !!–Kolibri!!

If you're using maven for managing dependencies, add the following line in your pom.xml:
<dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.1.1</version>
</dependency>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #exception #thread
ADD COMMENT
Topic
Name
4+7 =