adding jars to project [message #144072] |
Mon, 17 October 2005 03:45  |
Eclipse User |
|
|
|
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 #144367 is a reply to message #144358] |
Wed, 19 October 2005 01:17  |
Eclipse User |
|
|
|
"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>
|
|
|
Powered by
FUDForum. Page generated in 0.03637 seconds