Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (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 13:35 Go to next message
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 09:11 Go to previous messageGo to next message
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 09:44 Go to previous messageGo to next message
Rob Frost is currently offline Rob Frost
Messages: 64
Registered: July 2009
Member
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 10:04 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
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 #193653 is a reply to message #193636] Wed, 30 May 2007 10:17 Go to previous messageGo to next message
Eclipse User
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com

In article <f3jv3q$gr8$1@build.eclipse.org>, rfrost@bea.com says...
> See the following news group thread reply:
> http://dev.eclipse.org/newslists/news.eclipse.webtools/msg13 874.html

Thanks; I had followed that thread, but couldn't tell for sure if the OP
was referring to the same issue as I am. Apparently so.

.....

--
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 #193661 is a reply to message #193645] Wed, 30 May 2007 10:19 Go to previous messageGo to next message
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).
Re: 2nd level dependencies not being included in .war file [message #193670 is a reply to message #193653] Wed, 30 May 2007 10:38 Go to previous message
Rob Frost is currently offline Rob Frost
Messages: 64
Registered: July 2009
Member
FYI: the comments in the following bugzilla
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=185176) provide a more
detailed description of the functionality provided by the new classpath
entry publish/export feature.

-Rob

<ns_dkerber@ns_WarrenRogersAssociates.com> wrote in message
news:MPG.20c751a0eb0ab4979896cc@news.eclipse.org...
> In article <f3jv3q$gr8$1@build.eclipse.org>, rfrost@bea.com says...
>> See the following news group thread reply:
>> http://dev.eclipse.org/newslists/news.eclipse.webtools/msg13 874.html
>
> Thanks; I had followed that thread, but couldn't tell for sure if the OP
> was referring to the same issue as I am. Apparently so.
>
> ....
>
> --
> Remove the ns_ from if replying by e-mail (but keep posts in the
> newsgroups if possible).
Previous Topic:assigning DTD to XML doc without specifying it in XML itself
Next Topic:Problem with WTP and Apache 4.1
Goto Forum:
  


Current Time: Mon Sep 01 03:32:36 EDT 2014

Powered by FUDForum. Page generated in 0.02183 seconds