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 126300 - User need explicit control to turn on/off REST support for each project
Summary: User need explicit control to turn on/off REST support for each project
Status: NEW
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Peter Liu
Depends on:
Reported: 2008-01-30 16:17 UTC by Nam Nguyen
Modified: 2008-07-17 22:23 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Nam Nguyen 2008-01-30 16:17:21 UTC
based on yesterday's discussion I found out that
the issue was really due to my impatience.
I pressed [Ctrl][Shift]-I (fix imports) too quickly,
after adding the @Path annotation, so that a wrong import
clause were added by netbeans and REST plugin was not given
a chance to update project config to include jersey libraries.
The solution in such case is to remove the wrong import 
and wait till the REST plugin catches up.

My personal opinion is that such kind of functionality
(adding libraries to a project) should be fully under user's
control. I.e. I would prefer to have a checkbox available
for REST plugin, so that people can explicitely say if they want REST 
support or not.
Comment 1 Lukas Jungmann 2008-03-24 00:57:02 UTC
It is now. If not, then it is a bug...
Comment 2 Lukas Jungmann 2008-03-24 17:31:59 UTC
Comment 3 Nam Nguyen 2008-05-08 23:15:47 UTC
I just talked with Paul this morning at J1.  The way we automatically add ServletAdaptor is no longer recommended way to
use latest Jersey release.  In addition, developer should be able to specify their own implementation.  So basically, we
need explicit UI for turning on/off Jersey REST support, possibly with ability to specify the actually class name
instead of the default ServletAdaptor.

I am reopen this as bug, and will add Paul to comment in details on the various use-cases.
Comment 4 sandoz 2008-05-09 20:51:49 UTC
I agree that implicitly modifying the web.xml can cause much confusion. It needs to be an explicit solution especially
since developers may want to modify the servlet pattern. Perhaps if NB detects such annotations and there is no
appropriate servlet configured then NB could as the user if they would like to include one.
Comment 5 Srividhya Narayanan 2008-05-21 15:50:24 UTC
From: Daniel Silva <>
Date: May 21, 2008 7:19:04 AM PDT
Subject: [nbusers] RESTful

Netbeans keeps adding RESTful support for my web applications without my conscious asking.
What setting should I put to stop this? It's really annoying.

Daniel Silva
Comment 6 Peter Liu 2008-05-27 22:49:13 UTC
With the fix to,  this issue is no longer a p1. I am downgrading
this to a p2.

Comment 7 Peter Liu 2008-07-17 22:23:36 UTC
Changing this into an enhancement.