cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sbery...@progress.com>
Subject Re: Re: [CXF-2.2.5][Spring2.5.5][jre1.5] No mapped method
Date Thu, 28 Jan 2010 12:16:38 GMT
HI Gabo

You may recall that this is exactly what I suggested was happening in the very first reply
in this thread.

Basically, you have various resource methods (which are not subresource locators) annotated
with text/xml. You have a POST 
application/xml request coming in and thus neither if those methods can get selected but a
subresource locator is selected, given 
that it matches the path and it will be an object returned by this locator that will be checked
next for a matching method if any. 
Given that this subresource locator invokes getMyObject internally, you see getMyObject invoked.
Subresource locators can invoke 
internally whatever methods they need to, what matters is that it is what this locator returns
that will be checked next for the 
final method be invoked.

cheers, Sergey

----- Original Message ----- 
From: "Gabo Manuel" <kmanuel@solegysystems.com>
To: <users@cxf.apache.org>
Sent: Thursday, January 28, 2010 11:56 AM
Subject: Re: [Fwd: Re: [CXF-2.2.5][Spring2.5.5][jre1.5] No mapped method]


> Hi Sergey,
> 
> Thanks for the info on how to set up the debug. The result:
> 
> In JAXRSUtils.findTargetMethod, the candidate that gets selected is the 
> subresource locator: getMyObjectProperty(). This method in turn invokes 
> the method getMyObject(). As to why, do I have to specify the Consumes 
> and Produces in the subresource as well?
> 
> Gabo
> 


Mime
View raw message