Home » Language IDEs » ServerTools (WTP) » 2nd level dependencies not being included in .war file
2nd level dependencies not being included in .war file [message #193534] |
Tue, 29 May 2007 17:35  |
Eclipse User |
|
|
|
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com
Running eclipse 3.2.1 and WTP 1.5.2 on WinXP SP2
I have a medium-sized webapp that has a dependency on a utility jar
project in eclipse, and when I build the .war file, it is including the
utility jar, but is not including any of the next level dependencies.
Specifically, my utility jar references commons-net, which in turn
depends on jakarta-oro, and neither of these is being included in my
..war file when I export it, even though it finds them and runs fine when
I'm running through the eclipse IDE. Do I need to add these explicitly
to my webapp's dependencies, or is there a setting I'm missing to get
these included? Or do I need to update my eclipse installation to get
this working?
thanks!
--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
|
|
|
Re: 2nd level dependencies not being included in .war file [message #193612 is a reply to message #193534] |
Wed, 30 May 2007 13:11   |
Eclipse User |
|
|
|
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com
In article <MPG.20c62e55b02555699896ca@news.eclipse.org>,
ns_dkerber@ns_WarrenRogersAssociates.com says...
> Running eclipse 3.2.1 and WTP 1.5.2 on WinXP SP2
>
> I have a medium-sized webapp that has a dependency on a utility jar
> project in eclipse, and when I build the .war file, it is including the
> utility jar, but is not including any of the next level dependencies.
>
> Specifically, my utility jar references commons-net, which in turn
> depends on jakarta-oro, and neither of these is being included in my
> .war file when I export it, even though it finds them and runs fine when
> I'm running through the eclipse IDE. Do I need to add these explicitly
> to my webapp's dependencies, or is there a setting I'm missing to get
> these included? Or do I need to update my eclipse installation to get
> this working?
>
> thanks!
Any suggestions about this?
--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
|
|
|
Re: 2nd level dependencies not being included in .war file [message #193636 is a reply to message #193612] |
Wed, 30 May 2007 13:44   |
Eclipse User |
|
|
|
See the following news group thread reply:
http://dev.eclipse.org/newslists/news.eclipse.webtools/msg13 874.html
-Rob
<ns_dkerber@ns_WarrenRogersAssociates.com> wrote in message
news:MPG.20c742184d7782669896cb@news.eclipse.org...
> In article <MPG.20c62e55b02555699896ca@news.eclipse.org>,
> ns_dkerber@ns_WarrenRogersAssociates.com says...
>> Running eclipse 3.2.1 and WTP 1.5.2 on WinXP SP2
>>
>> I have a medium-sized webapp that has a dependency on a utility jar
>> project in eclipse, and when I build the .war file, it is including the
>> utility jar, but is not including any of the next level dependencies.
>>
>> Specifically, my utility jar references commons-net, which in turn
>> depends on jakarta-oro, and neither of these is being included in my
>> .war file when I export it, even though it finds them and runs fine when
>> I'm running through the eclipse IDE. Do I need to add these explicitly
>> to my webapp's dependencies, or is there a setting I'm missing to get
>> these included? Or do I need to update my eclipse installation to get
>> this working?
>>
>> thanks!
>
> Any suggestions about this?
>
> --
> Remove the ns_ from if replying by e-mail (but keep posts in the
> newsgroups if possible).
|
|
|
Re: 2nd level dependencies not being included in .war file [message #193645 is a reply to message #193612] |
Wed, 30 May 2007 14:04   |
Eclipse User |
|
|
|
In WTP 1.5.x, you will need to add any additional jars you want included
on the J2EE Module Dependencies page of the project's Properties
dialog. There is no attempt to determine what should or shouldn't be
included in WEB-INF/lib from the classpath used to build the code.
The story changes in WTP 2.0. In addition to using J2EE Module
Dependencies, it is possible to "tag" classpath entries as
"publish/export", which will cause them to be included in the Dynamic
Web Project's WEB-INF/lib. If your case, a warning would appear in the
Problems view for each referenced jar in the utility project, provided
they are exported. Invoking the Quick Fix for these warnings would give
you the opportunity to add the "public/export" tag for that jar. This
would cause them to be included when the Dynamic Web Project (which
depends on the utility project) is published or exported.
Cheers,
Larry
ns_dkerber@ns_WarrenRogersAssociates.com wrote:
> In article <MPG.20c62e55b02555699896ca@news.eclipse.org>,
> ns_dkerber@ns_WarrenRogersAssociates.com says...
>> Running eclipse 3.2.1 and WTP 1.5.2 on WinXP SP2
>>
>> I have a medium-sized webapp that has a dependency on a utility jar
>> project in eclipse, and when I build the .war file, it is including the
>> utility jar, but is not including any of the next level dependencies.
>>
>> Specifically, my utility jar references commons-net, which in turn
>> depends on jakarta-oro, and neither of these is being included in my
>> .war file when I export it, even though it finds them and runs fine when
>> I'm running through the eclipse IDE. Do I need to add these explicitly
>> to my webapp's dependencies, or is there a setting I'm missing to get
>> these included? Or do I need to update my eclipse installation to get
>> this working?
>>
>> thanks!
>
> Any suggestions about this?
>
|
|
| |
Re: 2nd level dependencies not being included in .war file [message #193661 is a reply to message #193645] |
Wed, 30 May 2007 14:19   |
Eclipse User |
|
|
|
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com
In article <f3k08u$mff$1@build.eclipse.org>, Larry.Isaacs@sas.com
says...
> In WTP 1.5.x, you will need to add any additional jars you want included
> on the J2EE Module Dependencies page of the project's Properties
> dialog. There is no attempt to determine what should or shouldn't be
> included in WEB-INF/lib from the classpath used to build the code.
>
> The story changes in WTP 2.0. In addition to using J2EE Module
> Dependencies, it is possible to "tag" classpath entries as
> "publish/export", which will cause them to be included in the Dynamic
> Web Project's WEB-INF/lib. If your case, a warning would appear in the
> Problems view for each referenced jar in the utility project, provided
> they are exported. Invoking the Quick Fix for these warnings would give
> you the opportunity to add the "public/export" tag for that jar. This
> would cause them to be included when the Dynamic Web Project (which
> depends on the utility project) is published or exported.
Thanks for the discussion, Larry!
.....
--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
|
|
| |
Goto Forum:
Current Time: Mon Feb 10 19:56:38 GMT 2025
Powered by FUDForum. Page generated in 0.02804 seconds
|