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.
/resources URL is reserved for serving JSF resources. So when a RESTful resource is generated, it should be served from /restful to avoid conflicts. This will ensure that JSF resources (such as CSS) are served properly.
Thanks for entering this issue. Actually user can choose path for getting REST resources by generating first RESTful WS, but probably your "/restful" or something like "/services" could be proposed as the default value in the dialog. Reassigning to WS.
>/resources URL is reserved for serving JSF resources. NB doesn't use it as default prefix path for JSF resources. So this mentioned agreement ( if any ) is out of NB. Is it common practice or recommended approach ? Please give me a link where I can read about this. It is not a big deal to change the default prefix for RESTful WS in the wizard. But any prefix could be potentially reserved for something. So I don't see a reason to change it on each user request.
Section 2.6.1.1 of the JSF 2.0 specification states: The default implementation must support packaging resources in the web application root under the path resources/<resourceIdentifier> relative to the web app root. Resources packaged into the web app root must be accessed using the getResource*() methods on ExternalContext. The "resources" is reserved by the specification so it is relevant to change the default URL to "restful" or "services" or something non-"resources".
OK , thanks.
I'd suggest using "webresources" - that's what Jersey maven archetype uses.
web-main#813d603a0e24
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/813d603a0e24 User: Denis Anisimov <ads@netbeans.org> Log: Fix for BZ#205392 - Change the default RESTful URL to /restful