Home » Language IDEs » ServerTools (WTP) » dependant project's libs
| | | | |
Re: dependant project's libs [message #201561 is a reply to message #201506] |
Tue, 09 October 2007 12:20 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
I'm not sure if the "Quick Fix" API supports handling more than one
problem at a time. I would guess that the "Quick Fix" approach wasn't
chosen because of its desirability, but simply because it didn't require
any new API to be added. I'm not sure what is planned for the future
with respect to improved UI for this feature, but I would also guess
that will likely require support to be added outside of WTP, probably in
JDT.
Cheers,
Larry
zohar wrote:
> Thanks.
> One thing though - any reason why I cannot select multiple warnings and fix
> them all at once?
>
> BTW: if there's ever a contest for the most helpful person on this (and
> other) newsgroup - you have my vote.
>
> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
> news:fedfph$5vs$1@build.eclipse.org...
>> In WTP 2.0, you should see a warning in the Problems view like the
>> following:
>>
>> Classpath entry <your exported jar> will not be exported or published.
>> Runtime ClassNotFoundExceptions may result.
>>
>> The only UI way to have the jar included is to use the Quick Fix on this
>> problem item. If you have done this and the jar is still not being
>> included, it would be a bug.
>>
>> Cheers,
>> Larry
>>
>> zohar wrote:
>>> Hi,
>>> I've asked about this before, but I hope there's been some progress
>>> since...
>>> I have a Web project which depends on another java project. The java
>>> project uses some jar file (they are marked to be exported in that
>>> project's build path's export tab). When I export my web project to a WAR
>>> file those jar files are not included in that WAR file.
>>> Any way of making them being included?
>
>
|
|
|
Re: dependant project's libs [message #201595 is a reply to message #201561] |
Tue, 09 October 2007 14:30 |
Zohar Amir Messages: 419 Registered: July 2009 |
Senior Member |
|
|
after I did the quick fix I got something like for each jar:
Invalid classpath publish/export dependency
/Project/lib/commons-codec-1.3.jar. Dependencies for non-web projects must
be exported.
What's that?
"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:fefrln$v03$1@build.eclipse.org...
> I'm not sure if the "Quick Fix" API supports handling more than one
> problem at a time. I would guess that the "Quick Fix" approach wasn't
> chosen because of its desirability, but simply because it didn't require
> any new API to be added. I'm not sure what is planned for the future with
> respect to improved UI for this feature, but I would also guess that will
> likely require support to be added outside of WTP, probably in JDT.
>
> Cheers,
> Larry
>
> zohar wrote:
>> Thanks.
>> One thing though - any reason why I cannot select multiple warnings and
>> fix them all at once?
>>
>> BTW: if there's ever a contest for the most helpful person on this (and
>> other) newsgroup - you have my vote.
>>
>> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
>> news:fedfph$5vs$1@build.eclipse.org...
>>> In WTP 2.0, you should see a warning in the Problems view like the
>>> following:
>>>
>>> Classpath entry <your exported jar> will not be exported or published.
>>> Runtime ClassNotFoundExceptions may result.
>>>
>>> The only UI way to have the jar included is to use the Quick Fix on this
>>> problem item. If you have done this and the jar is still not being
>>> included, it would be a bug.
>>>
>>> Cheers,
>>> Larry
>>>
>>> zohar wrote:
>>>> Hi,
>>>> I've asked about this before, but I hope there's been some progress
>>>> since...
>>>> I have a Web project which depends on another java project. The java
>>>> project uses some jar file (they are marked to be exported in that
>>>> project's build path's export tab). When I export my web project to a
>>>> WAR file those jar files are not included in that WAR file.
>>>> Any way of making them being included?
>>
|
|
|
Re: dependant project's libs [message #201620 is a reply to message #201595] |
Tue, 09 October 2007 15:29 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
It means you haven't exported that jar in the utility project. You will
need to export it to fix the error.
Larry
zohar wrote:
> after I did the quick fix I got something like for each jar:
>
> Invalid classpath publish/export dependency
> /Project/lib/commons-codec-1.3.jar. Dependencies for non-web projects must
> be exported.
>
> What's that?
>
> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
> news:fefrln$v03$1@build.eclipse.org...
>> I'm not sure if the "Quick Fix" API supports handling more than one
>> problem at a time. I would guess that the "Quick Fix" approach wasn't
>> chosen because of its desirability, but simply because it didn't require
>> any new API to be added. I'm not sure what is planned for the future with
>> respect to improved UI for this feature, but I would also guess that will
>> likely require support to be added outside of WTP, probably in JDT.
>>
>> Cheers,
>> Larry
>>
>> zohar wrote:
>>> Thanks.
>>> One thing though - any reason why I cannot select multiple warnings and
>>> fix them all at once?
>>>
>>> BTW: if there's ever a contest for the most helpful person on this (and
>>> other) newsgroup - you have my vote.
>>>
>>> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
>>> news:fedfph$5vs$1@build.eclipse.org...
>>>> In WTP 2.0, you should see a warning in the Problems view like the
>>>> following:
>>>>
>>>> Classpath entry <your exported jar> will not be exported or published.
>>>> Runtime ClassNotFoundExceptions may result.
>>>>
>>>> The only UI way to have the jar included is to use the Quick Fix on this
>>>> problem item. If you have done this and the jar is still not being
>>>> included, it would be a bug.
>>>>
>>>> Cheers,
>>>> Larry
>>>>
>>>> zohar wrote:
>>>>> Hi,
>>>>> I've asked about this before, but I hope there's been some progress
>>>>> since...
>>>>> I have a Web project which depends on another java project. The java
>>>>> project uses some jar file (they are marked to be exported in that
>>>>> project's build path's export tab). When I export my web project to a
>>>>> WAR file those jar files are not included in that WAR file.
>>>>> Any way of making them being included?
>
|
|
|
Re: dependant project's libs [message #201629 is a reply to message #201620] |
Tue, 09 October 2007 15:52 |
Zohar Amir Messages: 419 Registered: July 2009 |
Senior Member |
|
|
In 'Java Build Path' -> 'Order and Export' it is checked...
Is that the right place?
"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:feg6ov$st3$1@build.eclipse.org...
> It means you haven't exported that jar in the utility project. You will
> need to export it to fix the error.
>
> Larry
>
> zohar wrote:
>> after I did the quick fix I got something like for each jar:
>>
>> Invalid classpath publish/export dependency
>> /Project/lib/commons-codec-1.3.jar. Dependencies for non-web projects
>> must be exported.
>>
>> What's that?
>>
>> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
>> news:fefrln$v03$1@build.eclipse.org...
>>> I'm not sure if the "Quick Fix" API supports handling more than one
>>> problem at a time. I would guess that the "Quick Fix" approach wasn't
>>> chosen because of its desirability, but simply because it didn't require
>>> any new API to be added. I'm not sure what is planned for the future
>>> with respect to improved UI for this feature, but I would also guess
>>> that will likely require support to be added outside of WTP, probably in
>>> JDT.
>>>
>>> Cheers,
>>> Larry
>>>
>>> zohar wrote:
>>>> Thanks.
>>>> One thing though - any reason why I cannot select multiple warnings and
>>>> fix them all at once?
>>>>
>>>> BTW: if there's ever a contest for the most helpful person on this (and
>>>> other) newsgroup - you have my vote.
>>>>
>>>> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
>>>> news:fedfph$5vs$1@build.eclipse.org...
>>>>> In WTP 2.0, you should see a warning in the Problems view like the
>>>>> following:
>>>>>
>>>>> Classpath entry <your exported jar> will not be exported or published.
>>>>> Runtime ClassNotFoundExceptions may result.
>>>>>
>>>>> The only UI way to have the jar included is to use the Quick Fix on
>>>>> this problem item. If you have done this and the jar is still not
>>>>> being included, it would be a bug.
>>>>>
>>>>> Cheers,
>>>>> Larry
>>>>>
>>>>> zohar wrote:
>>>>>> Hi,
>>>>>> I've asked about this before, but I hope there's been some progress
>>>>>> since...
>>>>>> I have a Web project which depends on another java project. The java
>>>>>> project uses some jar file (they are marked to be exported in that
>>>>>> project's build path's export tab). When I export my web project to a
>>>>>> WAR file those jar files are not included in that WAR file.
>>>>>> Any way of making them being included?
>>
|
|
|
Re: dependant project's libs [message #201637 is a reply to message #201620] |
Tue, 09 October 2007 15:53 |
Zohar Amir Messages: 419 Registered: July 2009 |
Senior Member |
|
|
I just run the 'Validate' on those projects and it got OK...
"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:feg6ov$st3$1@build.eclipse.org...
> It means you haven't exported that jar in the utility project. You will
> need to export it to fix the error.
>
> Larry
>
> zohar wrote:
>> after I did the quick fix I got something like for each jar:
>>
>> Invalid classpath publish/export dependency
>> /Project/lib/commons-codec-1.3.jar. Dependencies for non-web projects
>> must be exported.
>>
>> What's that?
>>
>> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
>> news:fefrln$v03$1@build.eclipse.org...
>>> I'm not sure if the "Quick Fix" API supports handling more than one
>>> problem at a time. I would guess that the "Quick Fix" approach wasn't
>>> chosen because of its desirability, but simply because it didn't require
>>> any new API to be added. I'm not sure what is planned for the future
>>> with respect to improved UI for this feature, but I would also guess
>>> that will likely require support to be added outside of WTP, probably in
>>> JDT.
>>>
>>> Cheers,
>>> Larry
>>>
>>> zohar wrote:
>>>> Thanks.
>>>> One thing though - any reason why I cannot select multiple warnings and
>>>> fix them all at once?
>>>>
>>>> BTW: if there's ever a contest for the most helpful person on this (and
>>>> other) newsgroup - you have my vote.
>>>>
>>>> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
>>>> news:fedfph$5vs$1@build.eclipse.org...
>>>>> In WTP 2.0, you should see a warning in the Problems view like the
>>>>> following:
>>>>>
>>>>> Classpath entry <your exported jar> will not be exported or published.
>>>>> Runtime ClassNotFoundExceptions may result.
>>>>>
>>>>> The only UI way to have the jar included is to use the Quick Fix on
>>>>> this problem item. If you have done this and the jar is still not
>>>>> being included, it would be a bug.
>>>>>
>>>>> Cheers,
>>>>> Larry
>>>>>
>>>>> zohar wrote:
>>>>>> Hi,
>>>>>> I've asked about this before, but I hope there's been some progress
>>>>>> since...
>>>>>> I have a Web project which depends on another java project. The java
>>>>>> project uses some jar file (they are marked to be exported in that
>>>>>> project's build path's export tab). When I export my web project to a
>>>>>> WAR file those jar files are not included in that WAR file.
>>>>>> Any way of making them being included?
>>
|
|
|
Re: dependant project's libs [message #201645 is a reply to message #201629] |
Tue, 09 October 2007 16:24 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
Yes. That worked for me in a simple test case. Assuming the
/lib/commons-codec-1.3.jar in the "Project" project is exported, it may
be that something didn't cause the problem item to disappear when it
should. You might try un-exporting commons-codec-1.3.jar, save,
re-export, and save to give it another kick to try to get the problem
item to disappear.
Larry
zohar wrote:
> In 'Java Build Path' -> 'Order and Export' it is checked...
> Is that the right place?
>
> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
> news:feg6ov$st3$1@build.eclipse.org...
>> It means you haven't exported that jar in the utility project. You will
>> need to export it to fix the error.
>>
>> Larry
>>
>> zohar wrote:
>>> after I did the quick fix I got something like for each jar:
>>>
>>> Invalid classpath publish/export dependency
>>> /Project/lib/commons-codec-1.3.jar. Dependencies for non-web projects
>>> must be exported.
>>>
>>> What's that?
>>>
>>> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
>>> news:fefrln$v03$1@build.eclipse.org...
>>>> I'm not sure if the "Quick Fix" API supports handling more than one
>>>> problem at a time. I would guess that the "Quick Fix" approach wasn't
>>>> chosen because of its desirability, but simply because it didn't require
>>>> any new API to be added. I'm not sure what is planned for the future
>>>> with respect to improved UI for this feature, but I would also guess
>>>> that will likely require support to be added outside of WTP, probably in
>>>> JDT.
>>>>
>>>> Cheers,
>>>> Larry
>>>>
>>>> zohar wrote:
>>>>> Thanks.
>>>>> One thing though - any reason why I cannot select multiple warnings and
>>>>> fix them all at once?
>>>>>
>>>>> BTW: if there's ever a contest for the most helpful person on this (and
>>>>> other) newsgroup - you have my vote.
>>>>>
>>>>> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
>>>>> news:fedfph$5vs$1@build.eclipse.org...
>>>>>> In WTP 2.0, you should see a warning in the Problems view like the
>>>>>> following:
>>>>>>
>>>>>> Classpath entry <your exported jar> will not be exported or published.
>>>>>> Runtime ClassNotFoundExceptions may result.
>>>>>>
>>>>>> The only UI way to have the jar included is to use the Quick Fix on
>>>>>> this problem item. If you have done this and the jar is still not
>>>>>> being included, it would be a bug.
>>>>>>
>>>>>> Cheers,
>>>>>> Larry
>>>>>>
>>>>>> zohar wrote:
>>>>>>> Hi,
>>>>>>> I've asked about this before, but I hope there's been some progress
>>>>>>> since...
>>>>>>> I have a Web project which depends on another java project. The java
>>>>>>> project uses some jar file (they are marked to be exported in that
>>>>>>> project's build path's export tab). When I export my web project to a
>>>>>>> WAR file those jar files are not included in that WAR file.
>>>>>>> Any way of making them being included?
>
>
|
|
| | | |
Re: dependant project's libs [message #208971 is a reply to message #208955] |
Fri, 22 February 2008 18:58 |
Wolfgang Röckelein Messages: 122 Registered: July 2009 |
Senior Member |
|
|
Rob Frost wrote:
> The requirement to export cp entries in dependent projects that are marked
> for publish/export was removed in 3.0 M4 and 2.0.2 (the error is replaced
> with a warning), see https://bugs.eclipse.org/bugs/show_bug.cgi?id=198338
Yes, but the jars are not included in the WEB-INF/lib directory for tun-time availability.
The post news://news.eclipse.org:119/fpmmhf$7d6$1@build.eclipse.org from Larry made this clear,
however I am not wholly convinced that it is wise to have two different meanings
- J2EE: if not exported, jar is not in the war and not available for a run on server from eclipse
- Java: if not exported, jar is available for eg application run from eclipse
for the same setting (export jar mark), esp when it comes to Utility Projects that can be used in both settings
(or rather not really used in both settings because of this issue...
BTW, Larry: When everything is controlled by the export mark, why is then the additional marker set with the quick fix necessary?
Regards,
Wolfgang
|
|
|
Re: dependant project's libs [message #208987 is a reply to message #208971] |
Fri, 22 February 2008 20:44 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
Wolfgang Röckelein wrote:
> Rob Frost wrote:
>> The requirement to export cp entries in dependent projects that are
>> marked for publish/export was removed in 3.0 M4 and 2.0.2 (the error
>> is replaced with a warning), see
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=198338
>
> Yes, but the jars are not included in the WEB-INF/lib directory for
> tun-time availability.
>
> The post news://news.eclipse.org:119/fpmmhf$7d6$1@build.eclipse.org from
> Larry made this clear,
> however I am not wholly convinced that it is wise to have two different
> meanings
> - J2EE: if not exported, jar is not in the war and not available for a
> run on server from eclipse
> - Java: if not exported, jar is available for eg application run from
> eclipse
> for the same setting (export jar mark), esp when it comes to Utility
> Projects that can be used in both settings
> (or rather not really used in both settings because of this issue...
>
> BTW, Larry: When everything is controlled by the export mark, why is
> then the additional marker set with the quick fix necessary?
>
> Regards,
> Wolfgang
Rob is saying that I am wrong for WTP 2.0.2 and WTP 3.0 M4 and later.
If you don't export, you still get the jar in WEB-INF/lib but you will
have to live with a warning in the Problems view for this use case. I
think that is what Bug 198338 was about.
Cheers,
Larry
|
|
| |
Goto Forum:
Current Time: Fri Apr 26 09:03:11 GMT 2024
Powered by FUDForum. Page generated in 0.04730 seconds
|