facebook

How to upgrade Spring 2.5 core jar

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

    ohadp01
    Participant

    Hi,
    I use MyEclipse7.5 with Spring 2.5 capabilities.
    I also integrated a external code that uses newer version of jars like
    commons-collections-3.2 where as MyEclipse uses commons-collections-2.1.1 and spring-core-2.5.6.jar.
    I added the newer jars to the project WEB-INF/lib, but on deployment I get duplicate jars and the older comes first, so they are used, what cause errors each time I redeploy the project.
    How is it possible to upgrade MyEclipse Spring jars?
    Thanks
    Ohad.

    #303176 Reply

    support-joy
    Member

    Ohad,

    commons-collections-2.1.1.jar file is part of Hibernate 3.2 Core libraries,not part of Spring2.5 libraries.

    There are two ways to achieve your requirement.

    1) Open Preferences page. You can get it from – MyEclipse > Preferences
    2) Go to Hibernate capabilities page. You can get it from MyEclipse Enterprise Workbench>Project Capabilities>Hibernate.
    3) Select Hibernate3. 2 tab
    4) Select Hibernate 3.2 Core Libraries from Library Module.
    5) Select commons-collections-2.1.1.jar file and click remove button.
    6) Click Add Jar/Zip button to add commons-collections-3.2.jar file
    7) Click Apply >OK

    But let me clarify that these settings will reflect to all the projects which have same project capabilities.

    If you need to apply for current project only, then follow the below steps.

    1) Right click on your project.
    2) Go to Build Path> Configure Build Path
    3) In the Libraries tab, Add commons-collections-3.2.jar file using Add External Jars option.
    4) Select commons-collections-3.2.jar file in Order and Export tab.
    5) Use Up/Down buttons to place commons-collections-3.2.jar file at top in the list.
    6) Click OK

    I hope this works for you.

    #303180 Reply

    ohadp01
    Participant

    Yes It helped when I changed it from MyEclipse Enterprise Workbench>Project Capabilities>Hibernate
    Thanks a lot.
    Ohad.

    #303182 Reply

    support-joy
    Member

    Ohad,

    Good to hear you are all set. 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How to upgrade Spring 2.5 core jar

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

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