Today i hit following error

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
	at org.apache.commons.httpclient.HttpClient.<clinit>(HttpClient.java:66)
	at com.mkyong.SimpleHttp.main(SimpleHttp.java:18)

This is cause by missing of commons-logging-xxx.jar, Please download here and include it into classpath.

http://commons.apache.org/downloads/download_logging.cgi

P.S Please do not confuse between log4j and common-log, this is two different log library.


Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • StumbleUpon
  • SphereIt
  • Reddit
  • Google
  • YahooMyWeb
  • Technorati
  • Spurl
  • Sphinn
  • Mixx
  • connotea
  • BlinkList