title: How to fix ClassNotFoundException: org.apache.commons.logging.LogFactory?
body: <p>When i run the app it getting exception  </p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
      at org.hibernate.dialect.Dialect.&lt;clinit&gt;(Dialect.java:58)
  Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      ... 1 more
  </code></pre>
  
  <p>I have put all the jar files in lib folder.
  I don't know how to solve this, where is my mistake.</p>