facebook

[Closed] WEB-INF/lib deployment

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

    frantuma
    Member

    Hi,

    I am trying to deploy a web project on JBoss. Everything works fine as usual, but I have an additional need which I thought could be managed by the Library Deployment Policies settings, but actually it doesn’t work.

    I have jars in my WEB-INF/lib in the project. I don’t want these jars to be deployed to the server, that is I want to deploy everything else but not the jars (portlet deployment, I need the lib folder on the server empty)

    I tried to uncheck “Use workbench default settings” and leave unchecked all options, thinking it meant that the jars would not have been deployed.

    But actually they are deployed.

    Is there a way to achieve what I need?

    Thanks

    Francesco

    #240821 Reply

    Riyad Kalla
    Member

    Francesco,
    Everything in your WEB-INF/lib dir will always get deployed. What you can do is remove the JARs from your WEB-INF/lib dir, and move them to a top level /lib dir right off of the root of your project. Then go back to your Build Path, and add them. If they are still deploying, try and add them as External JARs and be sure to turn that deployment feature off.

    Don’t forget to erase your deployment first before redeploying.

    #240827 Reply

    frantuma
    Member

    Thanks, I moved them to top level and they don’t get deployed.

    I’ll cast my vote…

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed] WEB-INF/lib deployment

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