-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: JavaReflectionManager cannot be cast to MetadataProvider...
PostPosted: Sat Oct 23, 2010 8:55 am 
Newbie

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 :)


Top
 Profile  
 
 Post subject: Re: JavaReflectionManager cannot be cast to MetadataProvider...
PostPosted: Sun Oct 24, 2010 8:44 pm 
Newbie

Joined: Sun Oct 24, 2010 8:35 pm
Posts: 1
Hi ,I got the same problem when I integrate the spring 3.0.4 with hibernate3.6 Final version. and now I haven't resolve it either. I will continue to focus on the problem.


Top
 Profile  
 
 Post subject: Re: JavaReflectionManager cannot be cast to MetadataProvider...
PostPosted: Sun Nov 07, 2010 12:24 am 
Newbie

Joined: Sun Nov 07, 2010 12:20 am
Posts: 1
This may help you:

http://www.mail-archive.com/hibernate-dev@lists.jboss.org/msg04112.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.