-->
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.  [ 2 posts ] 
Author Message
 Post subject: Exception getReflectionManager() method not found
PostPosted: Thu Jun 24, 2010 6:54 am 
Newbie

Joined: Wed Jun 23, 2010 7:23 am
Posts: 8
Hi All,

I am working wioth hibernate 3.2.5 and trying to integrate Envers 1.0.0 GA: Problem is that when I register event listeners in my hibernate.cfg.xml within the session-factory tag, it gives me this exception. If i remove the event-listeners it all goes fine.



Code:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'session-factory' defined in class path resource [spring-config.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: java.lang.NoSuchMethodException: org.hibernate.cfg.Configuration.getReflectionManager()
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)



i went into the hibernate3.jar and went to the path of class Configuration and There is no such method, But why is it being called then. I am not using annotations in hibernate rather i am using hb,.xml files for my pojos.

I did see this issue:
https://jira.jboss.org/browse/ENVERS-63 ... issue-tabs

I dont know if this was solved or not.

I will really appreciate if some one can give me a feedback because this would mean if we should resort ot annotations Or not use Envers or upgrade our hibernate which i dont think would be possible becuase of so many dependencies right now.

thanks


Top
 Profile  
 
 Post subject: Re: Exception getReflectionManager() method not found
PostPosted: Mon Jun 28, 2010 8:12 am 
Newbie

Joined: Wed Jun 23, 2010 7:23 am
Posts: 8
Solved:
Im working with Jboss 5.1 and as it was obvious there is a hibernate 3.3 jar already there and this method is not present in the old version.
so removed the hibernate jars that are already included in the hibernate 3.5.3 jar final dist and its fixed.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.