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.
Summary: | package com.sun.jersey.spi.container does not exist - in affable bean application with HTML5 front-end | ||
---|---|---|---|
Product: | webservices | Reporter: | darya <darya> |
Component: | REST | Assignee: | Milan Kuchtiak <mkuchtiak> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | dkonecny |
Priority: | P2 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Windows 8 x64 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 227712, 227718 | ||
Bug Blocks: |
Description
darya
2014-04-27 15:28:36 UTC
Please, use the JaxRs API insted. in NewCrossOriginResourceSharingFilter : ===================================================================== package rest.filter; import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.container.ContainerResponseContext; import javax.ws.rs.container.ContainerResponseFilter; /** * * @author david */ public class NewCrossOriginResourceSharingFilter implements ContainerResponseFilter { @Override public void filter(ContainerRequestContext request, ContainerResponseContext response) { response.getHeaders().putSingle("Access-Control-Allow-Origin", "*"); response.getHeaders().putSingle("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE"); response.getHeaders().putSingle("Access-Control-Allow-Headers", "content-type, X-Requested-With"); } } ===================================================================== Notifying also the author of the tutorial to fix the example. David, could you pelase fix the example ? |