This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 180271 - Adding REST client to RCP fails with exception
Summary: Adding REST client to RCP fails with exception
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 normal (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-04 04:54 UTC by Antonin Nebuzelsky
Modified: 2010-04-08 09:26 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception when Jersey lib should be added to RCP module (3.34 KB, text/plain)
2010-02-04 04:54 UTC, Antonin Nebuzelsky
Details
Warning dialog (13.18 KB, image/png)
2010-02-05 03:30 UTC, Milan Kuchtiak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2010-02-04 04:54:54 UTC
Created attachment 93850 [details]
Exception when Jersey lib should be added to RCP module

See the attached exception.
Comment 1 Milan Kuchtiak 2010-02-04 05:56:34 UTC
The exception is caused by fact that Jersey REST library, together with JAXB API and JAXB Lib are unavailable in NBSuite.
We need to display warning message in that case. 

Is there any programmatic way to activate those modules automatically (May be after a user approval)?
Comment 3 Jesse Glick 2010-02-04 12:58:45 UTC
(In reply to comment #1)
> Is there any programmatic way to activate those modules automatically (May be
> after a user approval)?

Not from ClassPathModifier, I think; this is a synchronous call which ought not display a dialog. Perhaps the requisite module could be included in the suite without confirmation, but that seems hazardous; and just adding the dep without including it will mean that the module will not build until the suite config is changed.

http://wiki.netbeans.org/EnhancedConfigurationOfNBRCPProjects#Jesse.27s_.28more_or_less_unrelated.29_proposal_for_dependency-based_module_includes

would obviate the issue. There is no issue for Maven-based projects that I know of.
Comment 4 Quality Engineering 2010-02-04 22:30:55 UTC
Integrated into 'main-golden', will be available in build *201002050200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/748ac4df59b6
User: mkuchtiak@netbeans.org
Log: #180271: Fixing problem with Jersey libraries registration
Comment 5 Milan Kuchtiak 2010-02-05 03:29:33 UTC
Thanks,

So right now the dialog appears (see the attachment). The user has to check in the required modules, in NBSuite, then repeat the action again.
Comment 6 Milan Kuchtiak 2010-02-05 03:30:22 UTC
Created attachment 93900 [details]
Warning dialog
Comment 7 Jaroslav Pospisil 2010-04-08 09:26:39 UTC
v.