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 198052 - REST resources path is not synchronized with ApplicationConfig
Summary: REST resources path is not synchronized with ApplicationConfig
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.0.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-25 06:36 UTC by Denis Anisimov
Modified: 2011-04-28 05:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Anisimov 2011-04-25 06:36:03 UTC
- Create JEE6 Web project
- Invoke RESTful WS creation wizard: there will be RESTful WS 
configuration dialog in the end of the wizard.
- Keep its options as is. Note that there are several options to configure: 
    - generate ApplicationConfig class which extends javax.ws.rs.core.Application.
    - create servlet adaptor in web.xml 
    - manual REST resources registration .
The first option is selected by default ( in case of JEE6 ).
- Find generated ApplicationConfig class. It has annotation @javax.ws.rs.ApplicationPath with resources location member value .

One can change this location via "REST Resources Configuration" popup menu item called on "RESTful Web Services" root node.

- Invoke configuration dialog via mentioned popup menu action.
- Change the location value.
As result it will be changed in the ApplicationConfig class.
- Change member value in the annotation @javax.ws.rs.ApplicationPath of the ApplicationConfig class.
- Open configuration dialog.

The location value is not changed.

So synchronization works only UI dialog-> ApplicationConfig class.
This differs from servlet adaptor: UI dialog is completely synchronized with 
UI dialog ( in case of registration of RESTful resources via web.xml not ApplicationConfig class ).
Comment 1 Denis Anisimov 2011-04-26 09:45:23 UTC
changeset:   192912:40dfe535dcfc
Comment 2 Quality Engineering 2011-04-27 04:50:16 UTC
Integrated into 'main-golden', will be available in build *201104270000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/40dfe535dcfc
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#198052 - REST resources path is not synchronized with ApplicationConfig.
Comment 3 Quality Engineering 2011-04-28 05:09:35 UTC
Integrated into 'main-golden', will be available in build *201104280000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/40dfe535dcfc
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#198052 - REST resources path is not synchronized with ApplicationConfig.