Joined: Sat Oct 23, 2010 8:48 am Posts: 1
|
Hi, i got this error when i try to integrate spring with hibernate:
java.lang.ClassCastException: org.hibernate.annotations.common.reflection.java.JavaReflectionManager cannot be cast to org.hibernate.annotations.common.reflection.MetadataProviderInjector
I got the hibernate-common-annotation.jar in my libs. This is part of my myproject-spring.xml
<bean id="mydatasource" class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"> <property name="url" value="jdbc:mysql://localhost/ipd?zeroDateTimeBehavior=convertToNull" /> <property name="user" value="myuser" /> <property name="password" value="mypass" /> </bean> <bean id="defaultSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="dataSource" ref="mydatasource" /> <property name="mappingResources"> <list> <value>com/ipd/persist/Video.hbm.xml</value> </list> </property> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop> </props> </property> </bean>
Help me please :)
|
|