Hi
On 03/10/13 17:36, Pradeep Fernando wrote:
Hi All,

I'm trying to use the SimpleAuthorizingFilter with my JAXRS application
that uses CXF libs. I'm using the SecuredObject mechanism
to retrieve allowed roles.

However during the runtime, the method,

AbstractAuthorizingInInterceptor#getTargetMethod(Message m)

unable to resolve to target method.

during the execution, both 'bop' and 'method' variables resolves to null ...

*BindingOperationInfo bop = m.getExchange().get(BindingOperationInfo.class);
*
*        if (bop != null) {*
*            MethodDispatcher md = (MethodDispatcher) *
*
m.getExchange().get(Service.class).get(MethodDispatcher.class.getName());*
*            return md.getMethod(bop);*
*        } *
*        Method method = (Method)m.get("org.apache.cxf.resource.method");*



I believe in the above code we are trying to find the target method that is
going to get invoked in-order to do authorization.


Why my application does not resolve the target method ? Am i missing some
trivial step ?


Who is setting the '*"org.apache.cxf.resource.method"*' property in the
message ?


JAXRSInInterceptor will set this property and it will be 'null' if no resource method has been matched, can you confirm the invocation works without the filter ?

Cheers, Sergey

Appreciate your suggestions/answers..


thanks,
--Pradeep



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to