Joined: Mon Dec 05, 2011 5:59 am Posts: 2
|
I have not specied cache in cfg file but application is throwing error java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException,for your understanding i am adding my cfg code and i have added jar files: 01.antlr-2.7.6 02.commons-collections-3.1 03.dom4j-1.6.1 04.hibernate3 05.mysqlconnector 06.javassist-3.4.GA 07.jta-1.1 08.slf4j-api-1.5.6 09.slf4j-simple-1.5.6
cfg code: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration> <session-factory> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/jdbctutorial</property> <property name="hibernate.connection.username">root</property> <property name="connection.password">root</property> <property name="connection.pool_size">1</property> <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> <property name="show_sql">true</property> <property name="hbm2ddl.auto">create</property> <mapping resource="com/vaannila/course/Course.hbm.xml"/> </session-factory> </hibernate-configuration>
|
|