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 - Can't build created Container-Item resource
Summary: Can't build created Container-Item resource
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords: REGRESSION, TEST
Depends on:
Blocks:
 
Reported: 2008-01-08 22:35 UTC by Lukas Jungmann
Modified: 2008-01-09 10:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.