This is the correct fix.
On Wed, Dec 11, 2013 at 10:05 AM, Dinusha Senanayaka <[email protected]>wrote: > Hi Johan, > > We encountered ClassNotFoundException when generating the user tokens with > the latest API-Manager nightly build pack. Seems like > TokenPersistencePreprocessor class has been re-factored as > 'DefaultPersistenceProcessor'. Issue got resolved once we changed the > <TokenPersistenceProcessor> defined in identity.xml as ' > org.wso2.carbon.identity.oauth.tokenprocessor.DefaultPersistenceProcessor'. > Could you confirm is this the correct fix ? > > [2013-12-11 09:38:02,974] ERROR - OAuthServerConfiguration Error when > instantiating the TokenPersistencePreprocessor : > org.wso2.carbon.identity.oauth.tokenprocessor.PlainTextProcessor. > Defaulting to PlainTextProcessor > java.lang.ClassNotFoundException: > org.wso2.carbon.identity.oauth.tokenprocessor.PlainTextProcessor > at > org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501) > at > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421) > at > org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412) > at > org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > at > org.wso2.carbon.identity.oauth.config.OAuthServerConfiguration.getPersistenceProcessor(OAuthServerConfiguration.java:474) > at > org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.<init>(TokenMgtDAO.java:54) > at > org.wso2.carbon.identity.oauth2.token.handlers.grant.AbstractAuthorizationGrantHandler.init(AbstractAuthorizationGrantHandler.java:59) > at > org.wso2.carbon.identity.oauth.config.OAuthServerConfiguration.getSupportedGrantTypes(OAuthServerConfiguration.java:327) > at > org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.<init>(AccessTokenIssuer.java:75) > at > org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.getInstance(AccessTokenIssuer.java:66) > at > org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:171) > at > org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:238) > at > org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:119) > > > Regards, > Dinusha. > > -- > Dinusha Dilrukshi > Senior Software Engineer > WSO2 Inc.: http://wso2.com/ > Mobile: +94725255071 > Blog: http://dinushasblog.blogspot.com/ > -- Thanks & Regards, *Johann Dilantha Nallathamby* Senior Software Engineer Integration Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+94777776950* Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
