Dear mailing users,
I am new learner for hibernate and I have write a simple program to persist the data in the Database Mysql. I have done all the required to run the program I have prepared a POJO and hibernate.cfg.xml . But when I am going to run the program I am facing the following error in Eclipse. Please help me to resolve the error. I have also included jar (slf4j-api-1.6.1.jar) in the classpath. Thanks in advance. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Exception in thread "main" org.hibernate.MappingException: Unable to load class [ org.praveen.dto.UserDetais] declared in Hibernate configuration <mapping/> entry at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:2369) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:2310) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2290) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2243) at org.hibernate.cfg.Configuration.configure(Configuration.java:2158) at org.hibernate.cfg.Configuration.configure(Configuration.java:2137) at org.praveen.dto.HibernateTest.main(HibernateTest.java:19) Caused by: java.lang.ClassNotFoundException: org.praveen.dto.UserDetais 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 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:192) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:2366) ... 6 more Regards, Praveen Jain _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev