Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Library in dynamic web application
Library in dynamic web application [message #173092] Wed, 05 July 2006 14:08 Go to next message
Eclipse UserFriend
Originally posted by: tei.silbergrau.com

I am developing a web application that is based on other java projects
that hold some base classes. Additionally these base projects depend on a
Library that is installed as plugin in eclipse and provides JAR's as a
Library in the classpath of the base project.

How can I add this library to the classpath of the web application? Though
the base project exports the library and is included as a J2EE Module
Dependency the library is not loaded when I start the application.
Re: Library in dynamic web application [message #173194 is a reply to message #173092] Wed, 05 July 2006 17:38 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
In J2EE Module Dependencies, you can use the "Add External JARs..."
button to include these kind of JARs in your web application. This
would involve specifying the full path to the JARs in the plug-in. You
could also use the "Add Variable..." button and define a variable that
covers most of the path to the plug-in. Then reference the JAR from
that variable.

Cheers,
Larry

Thomas Einwaller wrote:
> I am developing a web application that is based on other java projects
> that hold some base classes. Additionally these base projects depend on
> a Library that is installed as plugin in eclipse and provides JAR's as a
> Library in the classpath of the base project.
>
> How can I add this library to the classpath of the web application?
> Though the base project exports the library and is included as a J2EE
> Module Dependency the library is not loaded when I start the application.
>
Re: Library in dynamic web application [message #173296 is a reply to message #173194] Thu, 06 July 2006 10:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tei.silbergrau.com

Thanks for your anwser. This would be a workaround to solve my problem.

Will it be possible to include libraries in the future? Is there a feature
request in the bug database?

cheers

tOM
Re: Library in dynamic web application [message #173321 is a reply to message #173194] Thu, 06 July 2006 12:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gene.rockhoppertech.com

You cannot add a library and that stinks.
If you add a variable it will barf.
It only works if you add a jar directly. That stinks too.

3.2 callisto


Larry Isaacs wrote:
> In J2EE Module Dependencies, you can use the "Add External JARs..."
> button to include these kind of JARs in your web application. This
> would involve specifying the full path to the JARs in the plug-in. You
> could also use the "Add Variable..." button and define a variable that
> covers most of the path to the plug-in. Then reference the JAR from
> that variable.
>
> Cheers,
> Larry
>
> Thomas Einwaller wrote:
>> I am developing a web application that is based on other java projects
>> that hold some base classes. Additionally these base projects depend
>> on a Library that is installed as plugin in eclipse and provides JAR's
>> as a Library in the classpath of the base project.
>>
>> How can I add this library to the classpath of the web application?
>> Though the base project exports the library and is included as a J2EE
>> Module Dependency the library is not loaded when I start the application.
>>
Re: Library in dynamic web application [message #173430 is a reply to message #173296] Thu, 06 July 2006 19:05 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
I'm not aware of a specific bug with this feature request, though I
believe there are some that imply that populating the web project's
WEB-INF/lib should be more automated.

The sticking point with this particular feature is that while in many
cases it may be appropriate to assume that an exported library in a
project should be included in a web project's WEB-INF/lib, if it depends
on that project, there are valid cases where it should not. Supporting
both cases and maintaining sync when changes are made to dependent
project's exported Libraries will likely make this a non-trivial feature
to implement. I don't know if anything is planned for WTP 2.0 in this
area, so feel free to add your request.

Cheers,
Larry

Thomas Einwaller wrote:
> Thanks for your anwser. This would be a workaround to solve my problem.
> Will it be possible to include libraries in the future? Is there a
> feature request in the bug database?
>
> cheers
> tOM
>
Re: Library in dynamic web application [message #175225 is a reply to message #173321] Fri, 21 July 2006 12:51 Go to previous message
Frits Jalvingh is currently offline Frits JalvinghFriend
Messages: 19
Registered: July 2009
Junior Member
I fully agree! WTP deployment is completely useless for any reasonably
sized project. You might want to vote for
https://bugs.eclipse.org/bugs/show_bug.cgi?id=138648
perhaps that'll get it fixed...

Frits

Gene De Lisa wrote:
> You cannot add a library and that stinks.
> If you add a variable it will barf.
> It only works if you add a jar directly. That stinks too.
>
> 3.2 callisto
Previous Topic:License Agreement with disabled "I Agree" button
Next Topic:Final testing for the WTP 1.0.3 release
Goto Forum:
  


Current Time: Thu Nov 27 05:50:45 GMT 2014

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

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