facebook

[Closed] Deployment copy problem with tomcat

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #270913 Reply

    Heikki Pakkala
    Participant

    I have a library located in TOMCAT_HOME/shared/lib/mylib.jar. This is a common library for all my applications and there should be only one copy of it (that’s why it is in shared/lib). When I run my web application using Tomcat this works fine. But when I’m running the unit tests locally, the library cannot be found unless I add it to project’s Java Build Path -> Libraries.

    The problem is that when the library is included in build path, MyEclipse’s Deployment Wizard copies it to application’s WEB-INF/lib directory. So after the deployment there are two copies of mylib.jar, one in shared/lib and one in myapp/WEB-INF/lib.

    How can I either forbit MyEclipse to copy mylib.jar or make it available without adding it to build path?

    #270946 Reply

    Riyad Kalla
    Member

    What you can do is go to your project properties, then MyEclipse > Web > Deployment, and adjust the deployment rules to exclude certain *types* of files. and then be sure to add that JAR as that type.

    For example, put it in a User Library, then add it to your build path and then turn off deployment of user libraries.

    #270958 Reply

    Heikki Pakkala
    Participant

    This solved the problem. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed] Deployment copy problem with tomcat

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