I am a new comer for the hibernate , I am running my first program using netbeans6.1 with hibernate3.0.I carefully configure the hibernate. everything is good but i do not understand why it is not run. during runtime i got the following error..
Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
Exception in thread "main" java.lang.ExceptionInInitializerError
at InitSessionFactory.<clinit>(InitSessionFactory.java:40)
at Main.main(Main.java:18)
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:110)
at InitSessionFactory.<clinit>(InitSessionFactory.java:36)
... 1 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[Message sent by forum member 'priyankaagarwal' (priyankaagarwal)]
http://forums.java.net/jive/thread.jspa?messageID=300790