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 189430 - REST services not properly configured in Maven web project
Summary: REST services not properly configured in Maven web project
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-12 10:37 UTC by Petr Jiricka
Modified: 2010-08-14 03:31 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 Petr Jiricka 2010-08-12 10:37:40 UTC
1. Create a new Java EE 6 Maven Web Application.
2. Set the target server to GlassFish 3.x
3. Create new RESTful Web Services from Database
4. The REST Resources Configuration dialog appears - accept the defaults (i.e. tell the IDE to put the REST servlet to web.xml)
5. Run the project
6. Do Test RESTful Web Services (popup menu on the REST services node)

The tester UI does not work and there are no services deployed.
If you look at web.xml, you see that the REST servlet is not specified.

The workaround is to go to REST Resources Configuration (popup menu on the REST services node), change the registration approach, and then change it back.
Comment 1 Milan Kuchtiak 2010-08-13 07:09:52 UTC
The web.xml is not created and populated with REST servlet adaptor at the moment.
Comment 2 Milan Kuchtiak 2010-08-13 09:02:23 UTC
Fixed:
http://hg.netbeans.org/web-main/rev/e25715d02ad4
Comment 3 Quality Engineering 2010-08-14 03:31:25 UTC
Integrated into 'main-golden', will be available in build *201008140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e25715d02ad4
User: mkuchtiak@netbeans.org
Log: #189430: REST in Maven not configured properly