facebook

exclude jar file from WEB-INF/lib

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

    Will Glass-Husain
    Participant

    Hi,

    I’m implementing an app which implements CometFilter (a Apache Tomcat interface in catalina.jar). This is provided by the app server, so I don’t want to put the jar file in my WEB-INF/lib.

    When I deploy my webapp to the integrated Tomcat, it includes catalina.jar. Due to a version conflict this gives an error. The same thing is true for servletapi.jar, though this is less serious.

    How can I prevent this particular jar from being included in the deployed app?

    WILL

    #307386 Reply

    support-joy
    Member

    Will,

    You can right click on the project, choose build path > configure build path, next you can remove the .jar files that you do not wish to include in WEB-INF/lib.

    #307392 Reply

    Brian Fernandes
    Moderator

    Will,

    for serveletapi.jar we do include this as part of the JavaEE5 container that is automatically added to web projects. This container will not be deployed to web projects.

    As far as other JAR is concerned, you could put it in a user library and add that to your project instead of adding the JAR directly. Then go to Window > Preferences > MyEclipse > Java Enterprise Project > Web Project and on the deployment tab, deselect “JARs from User Libraries”.

    I realize this is not an optimal solution and I am prioritizing deployment filtering for the upcoming 8.6 release. Please let me know how it goes.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: exclude jar file from WEB-INF/lib

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