Hi, sorry for the time that keeps :s
There's my new xml :
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE beans SYSTEM "http://www.springframework.org/dtd/spring-beans.dtd" PUBLIC "-//SPRING//DTD BEAN//EN">
-<beans>
<!-- ========================= Start of PERSISTENCE DEFINITIONS ========================= -->
<!-- DataSource Definition via JNDI -->
-<bean destroy-method="close" class="org.apache.commons.dbcp.BasicDataSource" id="database">
<property value="com.mysql.jdbc.Driver" name="driverClassName"/>
<property value="jdbc:mysql://localhost:3306/ludus" name="url"/>
<property value="root" name="username"/>
<property value="" name="password"/>
</bean>
<!-- Hibernate SessionFactory Definition -->
-<bean class="org.springframework.orm.hibernate3.LocalSessionFactoryBean" id="sessionFactory">
-<property name="mappingResources">
-<list>
<value>data/sql/entity/account.hbm.xml</value>
<value>data/sql/entity/player.hbm.xml</value>
</list>
</property>
-<property name="hibernateProperties">
-<props> <prop key="hibernate.hbm2ddl.auto">update</prop>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.format_sql">false</prop>
<prop key="hibernate.bytecode.use_reflection_optimizer">true</prop>
<prop key="hibernate.cache.provider_class">net.sf.ehcache.hibernate.EhCacheProvider</prop>
<prop key="hibernate.cache.region.factory_class">net.sf.ehcache.hibernate.EhCacheRegionFactory</prop>
<prop key="hibernate.cache.use_second_level_cache">true</prop>
<prop key="hibernate.cache.use_query_cache">true</prop>
</property>
<property name="dataSource" ref="database"/>
</bean>
<!-- Hibernate Transaction Manager Definition -->
-<bean class="org.springframework.orm.hibernate3.HibernateTransactionManager" id="transactionManager">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
</beans>
If I remember, the problem was the class of the sessionFactory, he was using the annotation version, and that was making a trouble with hibernate,etc. So Just change : class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean" to : class="org.springframework.orm.hibernate3.LocalSessionFactoryBean" and i think it will be ok (Remove the shemaLocation if you don't need it) And now i'm using Apache DBCP project and ehcache.
P.S: Sorry for my bad english, i'm speaking french x) (And i think that you should more understand by watching the xml xD)