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 235189 - Not getting option "Use Jersey Specific Features"
Summary: Not getting option "Use Jersey Specific Features"
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.3.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Kenneth Ganfield
URL:
Keywords:
Depends on: 228525
Blocks:
  Show dependency tree
 
Reported: 2013-08-28 18:02 UTC by vijay2345
Modified: 2014-01-29 16:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (27.36 KB, image/png)
2013-08-28 18:02 UTC, vijay2345
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vijay2345 2013-08-28 18:02:31 UTC
Created attachment 139386 [details]
screenshot

While creating RESTful webservice from database as shown here https://netbeans.org/kb/docs/websvc/rest.html

Project created was new "java web" > Web application
Comment 1 vijay2345 2013-08-28 21:26:27 UTC
Netbeans ver 7.3.1
Windows server 2008 R2

java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
Comment 2 Roman Svitanic 2013-08-29 07:21:05 UTC
This issue has no relationship with Java ME, so I'm reassigning it for evaluation to Web Services.
Comment 3 Milan Kuchtiak 2013-08-29 07:54:38 UTC
It's working as designed. We support REST configuration by using javax.ws.rc.core.Application subclass only.

The "Use Jersey Specific features" panel(section) was removed for JavaEE 7 we applications, or in JavaEE 6 when Jersey 2.0 is detected on classpath.

Thus, the use cases are the following:

1.JavaEE 7 (JAX-RS 2.0):
- javax.ws.rc.core.Application subclass configuration

2. JavaEE 6 + Jersey 2.0 on classpath 
(e.g. GlassFish 4 or Tomcat with Jersey 2.0)
- javax.ws.rc.core.Application subclass configuration

3. JavaEE 6 + Jersey 1.x on classpath
(e.g. GlassFish 3.1)
- javax.ws.rc.core.Application subclass configuration
or
- Jersey specific configuration using web.xml

Note: this is the only case, when "Use Jersey Specific features" panel is available

4. JavaEE 5 + Jersey 2.0 on classpath
- Jersey specific configuration using web.xml

The general approach with REST is to get rid of Jersey specific stuff as most as possible, and use rather JAX-RS only.

Ken, could you please update the tutorial, and remove the "Use Jersey specific features" section (bottom wizard panel in step 5). 
Also the next panel in step 5 ("Rest Resources Configuretion" panel) was removed, and is not available anymore.
Comment 4 Kenneth Ganfield 2014-01-29 16:42:54 UTC
I am marking this as fixed.
The reference to the panel is removed but the web services tutorial needs an update.