org.apache.neethi.builders.PrimitiveAssertion cannot be cast to org.apache.cxf.ws.security.policy.model.Token

2013-12-08 Thread qatada.abbas
Hi I am getting the following exception while running a normal web service client with apache cxf. Looks as if there is some conflict with the jars IExternalNotification externalNotification =new ExternalNotification().getCustomBindingIExternalNotification(); org.apache

Re: CXF REST, is this supported?

2013-12-08 Thread Alex O'Ree
I was able to get everything to work. thanks for the help! Follow up question, is it possible with CXF REST to have a conditional return type? I was able to get this to work while running in tomcat: @GET @Path("/JSON/getDetail") @Produces("application/json") @org.apache

Re: Invalid JSON Namespace

2013-12-08 Thread Jose María Zaragoza
I don't know if is enough for you ( it wasn't in my case ) 2013/12/8 Alex O'Ree : > That did it! thanks for the help. Here's the relative parts of beans.xml > > > > > > > > > > > > > > >

Re: Invalid JSON Namespace

2013-12-08 Thread Alex O'Ree
That did it! thanks for the help. Here's the relative parts of beans.xml On Sun, Dec 8, 2013 at 4:10 AM, Jose María Zaragoza wrote: > Maybe you need to configure providers

Whats the purpose of using MAC token in Oauth2 when SSL is enabled?

2013-12-08 Thread Jason Wang
Hi all, I am looking at different token types in Oauth2. I am having trouble understanding the benefits of using MAC over the simple Bearer token. It looks to me using MAC token can prevent replay attacks as it uses a nonce. But if SSL is used, those attacks are no longer possible (assuming a pro

Re: Invalid JSON Namespace

2013-12-08 Thread Jose María Zaragoza
Maybe you need to configure providers and declare them with . Something like : 2013/12/8 Alex O'Ree : > Thanks for the reply. I've added the map, however i still get the same erro