Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Best strategy to have jars deploy into WEB-INF/lib?
Best strategy to have jars deploy into WEB-INF/lib? [message #207902] Sat, 02 February 2008 15:57 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 143
Registered: July 2009
Senior Member
I'm trying to figure out the best strategies and options for ensuring that
jars in my build path get deployed into WEB-INF/lib. I have jars in my
build path, but except for my JSF jars, nothing else automatically goes
into WEB-INF/lib.

I found that the only way to get this to happen is to manually (outside of
Eclipse) copy those jars into WebContext/WEB-INF/lib. I find it hard to
believe that's the correct way to do it.

I searched this newsgroup and I found conversations on this over 2 years
ago. I saw references to manually editing some obscure XML files to force
those jars to deploy.

Am I missing something?
Re: Best strategy to have jars deploy into WEB-INF/lib? [message #207911 is a reply to message #207902] Sat, 02 February 2008 16:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

David Karr wrote:
> I'm trying to figure out the best strategies and options for ensuring
> that jars in my build path get deployed into WEB-INF/lib. I have jars
> in my build path, but except for my JSF jars, nothing else automatically
> goes into WEB-INF/lib.
>
> I found that the only way to get this to happen is to manually (outside
> of Eclipse) copy those jars into WebContext/WEB-INF/lib. I find it hard
> to believe that's the correct way to do it.

One way to do this is have a a Utilities project, that has the various
jars you need, and the jars you need exported to the J2EE Dependencies
section of your Dynamic Web Project.

Any jars listed in the J2EE Dependencies will be exported to the
WebContext/WEB-INF/lib directory when you export the WAR or EAR file.

Dave
Re: Best strategy to have jars deploy into WEB-INF/lib? [message #207926 is a reply to message #207911] Sat, 02 February 2008 21:33 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 143
Registered: July 2009
Senior Member
Actually, it looks like when I add a User Library to my build path, that
also becomes one of the available choices in the J2EE Module Dependencies
table, which when checked, will deploy itself to WEB-INF/lib. I had
thought that before, but it had seemed like some user libraries didn't
make it in there, but I don't see that now.

Jars like this make more sense as User Libraries as opposed to separate
projects.
Re: Best strategy to have jars deploy into WEB-INF/lib? [message #207933 is a reply to message #207926] Sun, 03 February 2008 01:39 Go to previous message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

David Karr wrote:
> Actually, it looks like when I add a User Library to my build path, that
> also becomes one of the available choices in the J2EE Module
> Dependencies table, which when checked, will deploy itself to
> WEB-INF/lib. I had thought that before, but it had seemed like some
> user libraries didn't make it in there, but I don't see that now.
>
> Jars like this make more sense as User Libraries as opposed to separate
> projects.

Yeah, that will work as well.

Dave
Previous Topic:INodeNotifier behavior on SSE editor
Next Topic:Quick Fix on JSP java partition
Goto Forum:
  


Current Time: Mon Nov 24 03:09:26 GMT 2014

Powered by FUDForum. Page generated in 0.02966 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software