Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » adding jars to project
adding jars to project [message #144072] Mon, 17 October 2005 03:45 Go to next message
Eclipse UserFriend
Hello,
I have a dynamic web project that contains a servlet. That servlet requires
some JAXB jars, so I added a new library to the project's build path, that
contains all the required jars. Do I then need to put those jars in
WEB-INF/lib also? If so, why?

Thanks,
Zohar.
Re: adding jars to project [message #144358 is a reply to message #144072] Wed, 19 October 2005 01:02 Go to previous messageGo to next message
Eclipse UserFriend
"Zohar" <david_fire4@hotmail.com> wrote in message
news:divkpr$i7f$1@news.eclipse.org...
> Hello,
> I have a dynamic web project that contains a servlet. That servlet
> requires some JAXB jars, so I added a new library to the project's build
> path, that contains all the required jars. Do I then need to put those
> jars in WEB-INF/lib also? If so, why?
>
> Thanks,
> Zohar.
>
There was an earlier post along these lines "Flakiness of web services
tools" which also asked about classpath entries contributed from other
projects. They concluded that yes you do need manually put stuff in
WEB-INF/lib (they used an ant script to help out). But this does not seem to
be a satisfactory solution. Can someone in the know tell us if this is the
way its going to be or should we raise a bug for it?

Thanks, Matty
Re: adding jars to project [message #144367 is a reply to message #144358] Wed, 19 October 2005 01:17 Go to previous message
Eclipse UserFriend
"Matthew Cooper" <overhere@bigpond.com> wrote in message
news:dj4k1g$a6$1@news.eclipse.org...
> "Zohar" <david_fire4@hotmail.com> wrote in message
> news:divkpr$i7f$1@news.eclipse.org...
>> Hello,
>> I have a dynamic web project that contains a servlet. That servlet
>> requires some JAXB jars, so I added a new library to the project's build
>> path, that contains all the required jars. Do I then need to put those
>> jars in WEB-INF/lib also? If so, why?
>>
>> Thanks,
>> Zohar.
>>
> There was an earlier post along these lines "Flakiness of web services
> tools" which also asked about classpath entries contributed from other
> projects. They concluded that yes you do need manually put stuff in
> WEB-INF/lib (they used an ant script to help out). But this does not seem
> to be a satisfactory solution. Can someone in the know tell us if this is
> the way its going to be or should we raise a bug for it?
>
> Thanks, Matty
>
Look at a more recent post ("WTP project structure") and the bug they
mention https://bugs.eclipse.org/bugs/show_bug.cgi?id=87474.

It seems that if you hack .wtpmodules correctly then it works. I just tried
it by adding the following inside the wb-module element and when I saved hte
file it copied the jar into the .deplorables/WEB-INF/lib dir as required -
nice.

<dependent-module deploy-path="/WEB-INF/lib"

handle="module:/classpath/var/COMMONS_LANG">

<dependency-type>uses</dependency-type>

</dependent-module>
Previous Topic:OASIS - XML Catalogs
Next Topic:WTP to Maven transfer
Goto Forum:
  


Current Time: Thu Apr 24 03:40:13 EDT 2025

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

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

Back to the top