Thanks Sergey!

Silly mistake indeed. You saved my day...

--Pradeep


On Thu, Oct 3, 2013 at 10:23 PM, Sergey Beryozkin <[email protected]>wrote:

> 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,
>>
>> AbstractAuthorizingInIntercept**or#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
>



-- 
Pradeep Fernando.
http://pradeepfernando.blogspot.com/

Reply via email to