- This topic has 3 replies, 2 voices, and was last updated 15 years, 2 months ago by support-joy.
-
AuthorPosts
-
ohadp01ParticipantHi,
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.
support-joyMemberOhad,
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 >OKBut 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 OKI hope this works for you.
ohadp01ParticipantYes It helped when I changed it from MyEclipse Enterprise Workbench>Project Capabilities>Hibernate
Thanks a lot.
Ohad.
support-joyMemberOhad,
Good to hear you are all set. 🙂
-
AuthorPosts