Originally posted by kishore nerella: Everything is perfect but still it is giving same problem Is there any other solution for this.
No. You need to make sure the Hibernate jars are in your application's classpath. A java.lang.NoClassDefFoundError occurs when the class loader tries to load a class it cannot find. Where have you put the Hibernate jar files?