- This topic has 4 replies, 2 voices, and was last updated 15 years, 8 months ago by Brian Fernandes.
-
AuthorPosts
-
bravikanthMemberHi,
We have recently upgraded myeclipse to 6.5 and we are now tryign to build new application with spring 2.5 and Hibernate 3.2. I first had spring up and running and the application is working fine but the moment i add Hibenate the deployment fails. We are using Tomcat server 6.0.3.I am tryign to build a prototype and i read on net that there are issues with commom class definition with (asm* jars) Spring/Hinerate with ME 6.5 IDE. Cam you let us know how will i be able to get over this issue.
With new IDE when i tried Spring2.0 and Hibernate 3.0 i still haev same issue. Any help is greatly appreciated.Error creating bean with name ‘sessionFactory’ defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
Brian FernandesModeratorbravikanth,
I’m sorry ran into this issue, caused by the fact that asm libraries are part of both the Spring and the Hibernate containers.
If you follow the instructions mentioned here – you should have no further deployment problems:
https://www.genuitec.com/forums/topic/spring-2-5-with-hibernate-3-2-can-t-start-web-app/#post-290316We are working on getting this fixed for the next version of MyEclipse. Please let us know if you need further assistance.
bravikanthMemberHi Brian,
As suggested i looked at he post you have mentioned. on goign to preferences and then to Sprin2.5 libraries , i can not see all the bundled jars in SPring 2.5 AOP jar, how will i be able to first see undelrying jars and then remove asm.jar.
Please let me knwoThanks
bravikanthMemberNever mind i was able to remove them. Thanks for your help !
Brian FernandesModeratorbravikanth,
Just to clarify, we recommend removing the asm JARs from Hibernate and not Spring because Hibernate uses an older version of asm. If you hit restore defaults on the Spring preference page, the ASM jars you removed will be re-added to the container. You can then remove the JARs from the Hibernate container.
[/img]
Attachments:
You must be logged in to view attached files. -
AuthorPosts