-->
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: Hibernate annotations and CXF annotations compatibility ?
PostPosted: Tue Sep 02, 2008 4:48 am 
Newbie

Joined: Tue Sep 02, 2008 4:43 am
Posts: 2
I try to integrate Spring 2.5.5, Hibernate (3.2.6) as a JPA provider using annotations (Hibernate-annotations 3.3.1.GA + hibernate-entitymanager
3.3.2.GA) which seems to rely on asm-1.5.3. For the DAO part is works fine.
When I try to integrate the DAO part with web service part using Spring and CXF 2.1.2, I got a error at startup for the creation of the entity manager :
java.lang.NoClassDefFoundError: org/objectweb/asm/CodeVisitor. CXF uses
asm-2.2.3 where the class can't be found (actually, it is in asm-1.5.3) What does it mean ? Should I have to give up CXF or Hibernate annotations, make a choice beetween both ? Is it any tricks to work around this issue ?
Thanks for any advice.


Top
 Profile  
 
 Post subject: OK
PostPosted: Tue Sep 02, 2008 7:57 am 
Newbie

Joined: Tue Sep 02, 2008 4:43 am
Posts: 2
We found it to fix the problem. Create an hibernate.properties file in the classpath and add hibernate.bytecode.provider=javassist to use javaassist as bytecode provider and do some
cleansing in the project pom declaring hibernate-annotations.


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.