Acessing Classes in jar that are exported from J2EE Module Project [message #194977] |
Tue, 26 June 2007 11:04 |
Eclipse User |
|
|
|
Originally posted by: pakulat.rostock.zgdv.de
Hi,
it seems like older posts are not read anymore, so I'm reposting this as
I now do have access to Eclipse 3.3 and WTP 2.0.
The question I have is, with the above given tools, how can I use the
jar files that are exported from a J2EE Module (lets call the project
mytaglib) from a web project (call mymedia)? I selected all the jar's in
the mytaglib project (its a simple Java project, with the Module facet
selected as well) to be exported, but the web project gives me various
errors when using the classes from those jars. mytaglib is selected as
Module Dependecy in mymedia project properties.
Rob told me before that there should be warning about the exported jars
and a Quickfix which would allow eclipse/wtp to build a mytaglib.jar
which includes the exported jars. However I don't get a warning and I
don't get the export jars in mytaglib.jar in mymedia's WEB-INF/lib dir.
I already tried to not export the jars but that didn't bring up any
warnings either. Do I miss something here?
Andreas
|
|
|
Re: Acessing Classes in jar that are exported from J2EE Module Project [message #194998 is a reply to message #194977] |
Tue, 26 June 2007 13:00 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
Just to be sure, are you looking for the warnings in the Problems view?
That is the only place they appear, and thus, the only place you can
access the Quickfix.
Cheers,
Larry
Andreas Pakulat wrote:
> Hi,
>
> it seems like older posts are not read anymore, so I'm reposting this as
> I now do have access to Eclipse 3.3 and WTP 2.0.
>
> The question I have is, with the above given tools, how can I use the
> jar files that are exported from a J2EE Module (lets call the project
> mytaglib) from a web project (call mymedia)? I selected all the jar's in
> the mytaglib project (its a simple Java project, with the Module facet
> selected as well) to be exported, but the web project gives me various
> errors when using the classes from those jars. mytaglib is selected as
> Module Dependecy in mymedia project properties.
>
> Rob told me before that there should be warning about the exported jars
> and a Quickfix which would allow eclipse/wtp to build a mytaglib.jar
> which includes the exported jars. However I don't get a warning and I
> don't get the export jars in mytaglib.jar in mymedia's WEB-INF/lib dir.
>
> I already tried to not export the jars but that didn't bring up any
> warnings either. Do I miss something here?
>
> Andreas
|
|
|
|
|
|
|
Re: Acessing Classes in jar that are exported from J2EE Module Project [message #195153 is a reply to message #194998] |
Thu, 28 June 2007 21:16 |
Rob Frost Messages: 64 Registered: July 2009 |
Member |
|
|
Just replied to the old thread but looks like things have been sorted out
here - thanks, Larry
-Rob
"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:f5r2kj$s6n$1@build.eclipse.org...
> Just to be sure, are you looking for the warnings in the Problems view?
> That is the only place they appear, and thus, the only place you can
> access the Quickfix.
>
> Cheers,
> Larry
>
> Andreas Pakulat wrote:
>> Hi,
>>
>> it seems like older posts are not read anymore, so I'm reposting this as
>> I now do have access to Eclipse 3.3 and WTP 2.0.
>>
>> The question I have is, with the above given tools, how can I use the jar
>> files that are exported from a J2EE Module (lets call the project
>> mytaglib) from a web project (call mymedia)? I selected all the jar's in
>> the mytaglib project (its a simple Java project, with the Module facet
>> selected as well) to be exported, but the web project gives me various
>> errors when using the classes from those jars. mytaglib is selected as
>> Module Dependecy in mymedia project properties.
>>
>> Rob told me before that there should be warning about the exported jars
>> and a Quickfix which would allow eclipse/wtp to build a mytaglib.jar
>> which includes the exported jars. However I don't get a warning and I
>> don't get the export jars in mytaglib.jar in mymedia's WEB-INF/lib dir.
>>
>> I already tried to not export the jars but that didn't bring up any
>> warnings either. Do I miss something here?
>>
>> Andreas
|
|
|
Re: Acessing Classes in jar that are exported from J2EE Module Project [message #195543 is a reply to message #195153] |
Tue, 03 July 2007 12:16 |
Eclipse User |
|
|
|
Originally posted by: pakulat.rostock.zgdv.de
Rob Frost schrieb:
> Just replied to the old thread but looks like things have been sorted out
> here - thanks, Larry
Unfortunatly its not been sorted out. At least not with the real
projects :( I still get a .jar in the webprojects that only has the
classes and .tld file that I written in the utility project.
I did run the quickfix for all jars that should be exported and all of
them are marked for exporting. Also I see the publish/export entry under
the buildpath.
Using a freshly created web application project it works, that is I can
add my existing utility module as J2EE module dependecy and when its
published the exported jars from the utility project show up under
WEB-INF/lib. The same thing doesn't work for existing web application
projects, no matter how often I add/remove the J2EE Module dependecy,
clean the project or freshly checkout the project.
Andreas
|
|
|
Powered by
FUDForum. Page generated in 0.05877 seconds