Is there an @GET annotation on the method being called? The @Path is at the class level, so the way the URL looks to me anyway , there is some method that would be marked with the @GET and its return type would be int, no? Like Benson states, would need to know more detail about the class and method annotations being used.
On Sunday, March 31, 2013, Benson Margulies wrote: > On Sun, Mar 31, 2013 at 11:54 AM, Sergey Beryozkin > <[email protected]<javascript:;>> > wrote: > > Hi Benson - we probably need to know how the method level @Path and > > parameter annotations look like, there could be some hints there why > > "/get/45" causes the problem > > I was guessing that it's trying to parse "/get/45" as in integer. > However, you are right: we don't know what's annotated on the method, > only what's on the class. > > > > I also recall reading about this error before, @fachhoch - can you try > the > > latest released CXF ? > > > > Sergey > > On 31/03/13 18:48, Benson Margulies wrote: > >> > >> get rid of the '/get', or change the @Path to ("/itemService/get") > >> > >> On Sun, Mar 31, 2013 at 6:50 AM, fachhoch<[email protected]<javascript:;>> > wrote: > >>> > >>> I am new to rest services. > >>> one of my method I annotated with JAX-RS > >>> > >>> > >>> > >>> my cxf servlet is configures to /* (all requests) and my service is / > >>> and > >>> class with @Path("itemService") > >>> > >>> I open the url localhost:8080/myapp/itemService/get/45 nothing > happens > >>> in > >>> browser but in console I get > >>> > >>> error , Its number format exception, Please advice me what is the right > >>> url > >>> for method. > >>> > >>> > >>> > >>> > >>> > >>> -- > >>> View this message in context: > >>> http://cxf.547215.n5.nabble.com/rest-service-url-tp5725622.html > >>> Sent from the cxf-user mailing list archive at Nabble.com. > > > > > > > -- Sent from Gmail Mobile on iPhone
