No problems, with CXF 3.0 one will get 404 (or other 40x) early, will be easier to spot such issues

Cheers, Sergey

On 03/10/13 18:10, Pradeep Fernando wrote:
Thanks Sergey!

Silly mistake indeed. You saved my day...

--Pradeep


On Thu, Oct 3, 2013 at 10:23 PM, Sergey Beryozkin <[email protected]
<mailto:[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/


--
Sergey Beryozkin

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

Blog: http://sberyozkin.blogspot.com

Reply via email to