The java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory exception is thrown when a Java application is unable to find the LogFactory class from the Apache Commons Logging library.
java.lang.NoClassDefFoundError is an error that occurs when the Java Virtual Machine (JVM) can't find a required class definition at runtime. This can happen for a variety of reasons, including:
A NoClassDefFoundError in Java indicates that the Java Virtual Machine (JVM) or a ClassLoader was not able to find the definition of a class that was referenced in your code. This can occur for a variety of reasons, including: