I tried to integrate WSo2 API with IDP(Postgresql as DB) . I am getting the below exception when I try to generate the production keys
WSo2 IS log
org.wso2.carbon.identity.application.common.IdentityApplicationManagementException: Error while creating application role: Application/apistore_PizzaShack_PRODUCTION with user apistore at org.wso2.carbon.identity.application.mgt.ApplicationMgtUtil.createAppRole(ApplicationMgtUtil.java:145) at org.wso2.carbon.identity.application.mgt.ApplicationManagementServiceImpl.createApplication(ApplicationManagementServiceImpl.java:129) at org.wso2.carbon.apimgt.keymgt.service.APIKeyMgtSubscriberService.createOAuthApplicationByApplicationInfo(APIKeyMgtSubscriberService.java:138) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Caused by: org.wso2.carbon.user.core.UserStoreException: Role name: Application/apistore_PizzaShack_PRODUCTION in the system. Please pick another role name. at org.wso2.carbon.user.core.common.AbstractUserStoreManager.doAddInternalRole(AbstractUserStoreManager.java:2927) at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addRole(AbstractUserStoreManager.java:2506)
WSo2 API logs
and try again. 2016-10-19 07:29:15,312 [-] [HTTPS-Listener I/O dispatcher-1] WARN AccessConfiguration Error loading properties from file: access-log.properties 2016-10-19 07:30:37,473 [-] [http-nio-9443-exec-22] ERROR AMDefaultKeyManagerImpl Can not create OAuth application : PizzaShack1_PRODUCTION org.wso2.carbon.apimgt.keymgt.stub.subscriber.APIKeyMgtSubscriberServiceAPIManagementException: APIKeyMgtSubscriberServiceAPIManagementException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at org.wso2.carbon.apimgt.keymgt.stub.subscriber.APIKeyMgtSubscriberServiceStub.createOAuthA
... 75 more
2016-10-19 07:30:37,706 [-] [http-nio-9443-exec-22] ERROR APIStoreHostObject Error while obtaining the application access token for the application:PizzaShack1 org.wso2.carbon.apimgt.api.APIManagementException: Could not execute Workflow at org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalForApplicationRegistration(APIConsumerImpl.java:2815) at org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestApprovalForApplicatio