Postingan

Menampilkan postingan dengan label logging

How To Cook Java.Lang.Classnotfoundexception: Org.Apache.Commons.Logging.Logfactory

Gambar
java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory  or " Exception inwards thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory " exception comes when you lot don't apache commons-logging-1.1.1.jar inwards your Classpath. I convey faced this exception many times piece using open source framework similar Struts, Spring together with Displaytag which uses commons-logging framework for logging. commons-logging is non an actual coffee logging framework simply provides a wrapper then that you lot tin purpose log4j, java logging or any other Java logging framework. commons-logging is every bit good smart plenty to abide by which logging framework are you lot using e.g if you lot are using log4j it tin abide by it past times looking log4j.jar inwards your classpath. simply if you lot don't convey commons-logging.jar in your classpath you lot may instruct java.lang.ClassNotFoundException: org.apache.commons...