Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to make Eclipse put jars into WEB-INF/lib?
How to make Eclipse put jars into WEB-INF/lib? [message #214251] Sat, 24 May 2008 14:45 Go to previous message
David M. Karr is currently offline David M. Karr
Messages: 143
Registered: July 2009
Senior Member
Eclipse 3.3.2.

It seems like I've battled with this before, but it escapes me now.

I have a dynamic web project that I've assembled from an existing WAR.
I'm trying to figure out how to get the required jars for the project to
actually deploy into WEB-INF/lib when the WAR is constructed. The project
has no errors in Eclipse, but when I export the WAR, the WEB-INF/lib
directory is empty.

In the Eclipse project, I have a "lib" subdirectory that contains all the
jars, and I've put all of those jars into the build path.

I've tried to use the "J2EE Module Dependencies" page, because I thought
this controlled what goes into WEB-INF/lib. In that dialog, I selected
all the jars for this project and clicked OK. When I then go back into
this dialog, all of those jars are unselected again.

When I export the project to a WAR file, it leaves the WEB-INF/lib
directory empty.

I tried to deploy the project to Tomcat 6.0.14, but the context root is
never available (gets 404). I see no deployment errors in the Tomcat
console.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Change deploy path from "projectName" to something else
Next Topic:localhost:8080 absent if server is in eclipse
Goto Forum:
  


Current Time: Sat May 25 05:21:12 EDT 2013

Powered by FUDForum. Page generated in 0.01687 seconds