[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [lyo-dev] URISyntaxException Error | 
Thanks Mike, I defined it in this way. 
    @GET
    @Path("{resourceId}")
    @Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_XML, OslcMediaType.APPLICATION_JSON})
    public UMLModel getResource(@Context final HttpServletResponse httpServletResponse,
                                @PathParam("resourceId") final String resourceId)
    {
    	return super.getResource(httpServletResponse, resourceId);
    }
regards,
David
On Tue, Mar 19, 2013 at 8:14 PM, Michael Fiedler 
<fiedler.mf@xxxxxxxxx> wrote:
The problem is the {resourceId} bit.  It looks like JAX-RS/Wink is not replacing something in your path - normally you'd expect to see a resource identifier there (e.g. umlModel/25).    I'd take a look at your JAX-RS service method declaration.  
Make sure your are declaring resourceId as a @PathParam in the method like this:
@GET
    @Path("{stockQuoteId}")
    @Produces({OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_XML, OslcMediaType.TEXT_XML, OslcMediaType.APPLICATION_JSON})
    public StockQuote getStockQuote(@PathParam("stockQuoteId") final String stockQuoteId)
 
 Can you share it with us?
Regards,
Mike
_______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/lyo-dev