The error is coming before the redirection to JSP is actually starting.
Looks like you have a mix of various CXF versions on your classpath

Sergey
On 12/08/16 12:11, ishu wrote:
thanks, the example code is working well. the problem in my code is that
after
http://localhost:8080/cxfjaxrsws/services/social/authorize?client_id=12345&response_type=code&redirect_uri=someURI....

the code will create a instance of OAuthAuthorizationData and redirect to
oauthAuthorization.jsp but it is throwing error.

Caused by: java.lang.NoSuchMethodError:
org.apache.cxf.common.util.StringUtils.toHexString([B)Ljava/lang/String;
        at
org.apache.cxf.rs.security.oauth2.utils.OAuthUtils.generateRandomTokenKey(OAuthUtils.java:182)
        at
org.apache.cxf.rs.security.oauth2.utils.OAuthUtils.generateRandomTokenKey(OAuthUtils.java:176)
        at
org.apache.cxf.rs.security.oauth2.utils.OAuthUtils.setSessionToken(OAuthUtils.java:71)
        at
org.apache.cxf.rs.security.oauth2.services.RedirectionBasedGrantService.addAuthenticityTokenToSession(RedirectionBasedGrantService.java:460)
        at
org.apache.cxf.rs.security.oauth2.services.RedirectionBasedGrantService.createAuthorizationData(RedirectionBasedGrantService.java:273)
        at
org.apache.cxf.rs.security.oauth2.services.AuthorizationCodeGrantService.createAuthorizationData(AuthorizationCodeGrantService.java:74)
        at
org.apache.cxf.rs.security.oauth2.services.RedirectionBasedGrantService.startAuthorization(RedirectionBasedGrantService.java:199)
        at
org.apache.cxf.rs.security.oauth2.services.RedirectionBasedGrantService.startAuthorization(RedirectionBasedGrantService.java:127)
        at
org.apache.cxf.rs.security.oauth2.services.RedirectionBasedGrantService.authorize(RedirectionBasedGrantService.java:93)

please tell me what is this error, is my oauthAuthorization.jsp not able to
handle request..



--
View this message in context: 
http://cxf.547215.n5.nabble.com/OAuth2-filter-using-CXF-tp5770940p5771446.html
Sent from the cxf-user mailing list archive at Nabble.com.



--
Sergey Beryozkin

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

Reply via email to