facebook

Unabel to build app in ME 6.5 with Spring 2.5 and Hibernate3

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #296116 Reply

    bravikanth
    Member

    Hi,
    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

    #296173 Reply

    Brian Fernandes
    Moderator

    bravikanth,

    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-290316

    We are working on getting this fixed for the next version of MyEclipse. Please let us know if you need further assistance.

    #296207 Reply

    bravikanth
    Member

    Hi 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 knwo

    Thanks

    #296212 Reply

    bravikanth
    Member

    Never mind i was able to remove them. Thanks for your help !

    #296217 Reply

    Brian Fernandes
    Moderator

    bravikanth,

    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.
Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Unabel to build app in ME 6.5 with Spring 2.5 and Hibernate3

You must be logged in to post in the forum log in