facebook

Different jar’s in deployment

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    jsundin
    Member

    I’m using the Spring 2.5 AOP libraries and Hibernate 3.2 Core libraries together on a project, and for some reason there are two different versions of cglib in the libraries. AOP is using cglib-nodep-2.1_3.jar and Hibernate is using cglib-2.1.3.jar.

    Now, as you probably can imagine, this causes a bit of a problem. If I manually remove the cglib-nodep from WEB-INF/lib in the deployment and manually redeploy the application everything works fine.

    So, what should I do about this? Am I supposed perform this operation (remove the cglib-nodeps jar, redeploy the application manually) every single time I have to redeploy during development? If that’s the case I’m just as good off using Emacs.

    FWIW: Build id: 6.5.1-GA-20080715

    #289905

    Brian Fernandes
    Moderator

    jsudin,

    You can open the Window > Preferences > MyEclipse > Project Capabilities > Spring page and select the Spring 2.5 tab. Select the Spring 2.5 AOP Libraries from the combo and remove the cglib library from the list and click OK.

    Alternatively, you could go to Project Capabilities > Hibernate and select the Hibernate 3.2 tab from which you can remove the cglib JAR that container uses.

    This will ensure that there is only one cglib JAR on your project’s build path, and only this JAR will be deployed. These changes will remove the corresponding cglib library from all projects in your workspace which use that particular library container, it is not customizable at a project level yet.

    Hope this helps, do let us know if you require further assistance.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Different jar’s in deployment

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