-->
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: SessionFactory creation exception: NoSuchMethodError
PostPosted: Thu Apr 11, 2013 12:41 pm 
Newbie

Joined: Thu Apr 11, 2013 9:09 am
Posts: 2
Hello....

I am trying to use Hibernate in my Struts2 project, but when I run the application, this error occurs:

Initial SessionFactory creation failed.java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V

All web pages I have found related to this error, suggest about a version mismatch in asm libraries, but I doubt this is my case.

I use NetBeans 7.2.1 and I added Hibernate library. When I did it, a lot of Hibernate libraries were actually added, including ASM library. So I think all those libraries has the matched versions.

Any other hint on this, please?

Thanks a lot
Jaime


Top
 Profile  
 
 Post subject: Re: SessionFactory creation exception: NoSuchMethodError
PostPosted: Fri Apr 12, 2013 2:12 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Quote:
a version mismatch in asm libraries, but I doubt this is my case.


I also think it is a version mismatch issue.
Which version of Hibernate and ASM do you use?
Also to notice is, that with Java7 org.objectweb.asm.ClassWriter has become part of the SE-JRE,
so be aware that, if you use Java7, the adding of a asm.jar in your classpath gets practically ignored.


Top
 Profile  
 
 Post subject: Re: SessionFactory creation exception: NoSuchMethodError
PostPosted: Fri Apr 12, 2013 3:02 am 
Regular
Regular

Joined: Wed Apr 10, 2013 1:02 am
Posts: 50
Which hibernate /Java/Struts version you are using.

_________________
Regards
Akash Miital
http://akash.thegrassroots.co.in/hibernate/


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.