Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 and hibernate 3.2.5 conflict asm.jar

 
andrew ronchi
Ranch Hand
Posts: 50
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I developed a sample project to check the demo of struts 2.2.3 with hibernate 3.2.5 . The project runs fine when no databse operations are performed but when i use hibernate it return an error

"Java.Lang.ReflectInvocationTarget". I want to know why its happening. Whether hibernate 3.2.5 is not compatible with struts 2.2.3 or some "JARS" are conflicting.
i think ther is conflict in asm.jar.how should i remove it.
 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andrew,

asm.jar comes with the struts download version, you should use the asm.jar from the struts download it self.

Regards
Jatn
 
andrew ronchi
Ranch Hand
Posts: 50
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi jatan
ok i will use asm.jar of struts but what about hibernate...it has its own asm.jar
how should i remove it....
 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andrew,

Here project dependency is mention Project Dependency for struts2 . You can refer this. also manifest file contains the version for jar file.

and your question about hibernate's asm.jar i think you have to change the jar and see what type of error you are getting. I am not sure but i used to resolve this error by version and finding the compatibility.

Regards
Jatan
 
andrew ronchi
Ranch Hand
Posts: 50
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okwy i will try..thank you..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic