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 124922

Summary: Can't build created Container-Item resource
Product: webservices Reporter: Lukas Jungmann <jungi>
Component: RESTAssignee: Nam Nguyen <nnguyen>
Status: VERIFIED FIXED    
Severity: blocker Keywords: REGRESSION, TEST
Priority: P1    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Lukas Jungmann 2008-01-08 22:35:13 UTC
-create new webapp
-create new REST web service from patterns -> container item
-build project

=> fails with:
Compiling 2 source files to C:\NetBeansProjects\WebApplication6\build\web\WEB-INF\classes
C:\NetBeansProjects\WebApplication6\src\java\aaa\ItemsResource.java:57: created(java.net.URI) in
javax.ws.rs.core.Response cannot be applied to (java.lang.String,java.net.URI)
        return Response.created(content, context.getAbsolutePath()).build();
1 error
C:\NetBeansProjects\WebApplication6\nbproject\build-impl.xml:337: The following error occurred while executing this line:
C:\NetBeansProjects\WebApplication6\nbproject\build-impl.xml:168: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 6 seconds)
Comment 1 Nam Nguyen 2008-01-09 00:59:47 UTC
Fixed along with checking in latest jersey binaries 0.5

/cvs/websvc/rest/src/org/netbeans/modules/websvc/rest/codegen/GenericResourceGenerator.java,v  <-- 
GenericResourceGenerator.java
new revision: 1.11; previous revision: 1.10
Comment 2 Lukas Jungmann 2008-01-09 10:53:12 UTC
v.