• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts 2 / Spring problem  RSS feed

 
Luke Gee
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Im playing around with Struts 2 to get used to the framework trying to create a simple log in page , and ive encountered a problem.

Im using Spring/Hibernate to access my Db. When running this code in a man class it works fine


however as soon as i add this to a struts 2 action I get errors

this is inside my struts action:



the error is - org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'frameworksessionFactory' defined in class path resource [spring-config.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V



for reference




I was wondering if ive missed anything obvious. Ive had a quick google and theres nothing obvious that would cause this error with struts.

any help would be much appreciated.

Thanks,

Luke
 
Luke Gee
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the solution by following this. just if anyones interested.

http://www.hildeberto.com/2008/05/hibernate-and-jersey-conflict-on.html
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!