aspose file tools*
The moose likes Struts and the fly likes Struts 2 and hibernate 3.2.5 conflict asm.jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 and hibernate 3.2.5 conflict asm.jar" Watch "Struts 2 and hibernate 3.2.5 conflict asm.jar" New topic
Author

Struts 2 and hibernate 3.2.5 conflict asm.jar

andrew ronchi
Ranch Hand

Joined: Nov 03, 2011
Posts: 48


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

Joined: Jul 23, 2008
Posts: 296

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

Joined: Nov 03, 2011
Posts: 48

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

Joined: Jul 23, 2008
Posts: 296

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

Joined: Nov 03, 2011
Posts: 48

okwy i will try..thank you..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 and hibernate 3.2.5 conflict asm.jar