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.
In Jave EE6 web application, the wizard doesn't allow user to complete the task. The error message in the wizard panel is confusing: ! REST is not configured. Jersey based configuration is required. At least the error message should be improved to instruct user what's needed.
> REST is not configured. Jersey based configuration is required. What the message is trying to say is "In EE6/JAX-RS 1.0 case the Cross Origin Resource Sharing requires REST support to be configured using Jersey servlet because wizard will generate Jersey specific filter code and will have to instrument Jersey servlet to load the filter."
The following entry could be generated in web.xml for existing javax.ws.core.Application: <servlet> <servlet-name>org.mypackgage.ApplicationConfig</servlet-name> <init-param> <param-name>com.sun.jersey.spi.container.ContainerResponseFilters</param-name> <param-value>org.mypackgage.CORS</param-value> </init-param> </servlet> Also I found that com.sun.jersey.spi.container.ContainerResponseFilters is missing on class-path provided by GlassFish 3.1 server. It's located in jersey-gf-server.jar.
Fixed: http://hg.netbeans.org/web-main/rev/6f6a1e09fabc
Integrated into 'main-silver', will be available in build *201308152300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/6f6a1e09fabc User: Milan Kuchtiak <mkuchtiak@netbeans.org> Log: #230908 allow CORS filter in JavaEE 6 projects with Jersey 1