HI IS team; Can you fix these? It is a blocker for APIM team. Datasource is defined for Supertenant and UserStore concept is designed for per tenant case. Both are conflicting and datasource is not visible to tenant's scope..
Thanks -Ratha On 16 May 2013 12:54, Anjana Fernando <[email protected]> wrote: > Hi, > > Basically here, the data sources defined in *-datasources.xml file belongs > to the super-tenant. So because the JNDI lookup is tenant aware, you will > have to be in the super-tenant's tenant flow to lookup the data source, > this is the reason you will not find the requested JNDI resource if you're > in some other tenant flow. > > Cheers, > Anjana. > > > On Tue, May 14, 2013 at 3:43 PM, Vijayaratha Vijayasingam <[email protected] > > wrote: > >> Hi all; >> we are getting above issue in APIManager 1.4.0, with multiple userstore >> configuration. >> What we did is, after publishing/subscribing the API, we allowed the >> store app to session timeout then re login the system. We couldnt see the >> APIs at that time; >> The error we got is. >> >> ... 32 more >> [2013-05-14 15:35:29,756] ERROR - DefaultRealm Cannot create >> org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager >> java.lang.reflect.InvocationTargetException >> at >> sun.reflect.GeneratedConstructorAccessor126.newInstance(Unknown Source) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> at java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> at >> org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:225) >> at >> org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:147) >> at >> org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:113) >> at >> org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:223) >> at >> org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:169) >> at >> org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:267) >> at >> org.wso2.carbon.registry.core.session.UserRegistry.<init>(UserRegistry.java:227) >> at >> org.wso2.carbon.registry.core.session.UserRegistry.<init>(UserRegistry.java:206) >> at >> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:427) >> at >> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:292) >> at >> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getLocalRepository(EmbeddedRegistryService.java:481) >> at >> org.wso2.carbon.deployment.synchronizer.internal.repository.CarbonRepositoryUtils.getLocalRepository(CarbonRepositoryUtils.java:351) >> at >> org.wso2.carbon.deployment.synchronizer.internal.repository.CarbonRepositoryUtils.getDeploymentSyncConfigurationFromRegistry(CarbonReposito >> ryUtils.java:257) >> >> >> at java.lang.Thread.run(Thread.java:662) >> Caused by: java.lang.reflect.InvocationTargetException >> at >> sun.reflect.GeneratedConstructorAccessor126.newInstance(Unknown Source) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> at java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> at >> org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:225) >> ... 25 more >> Caused by: java.lang.RuntimeException: Error in looking up data source: >> Name [jdbc/WSO2UM1] is not bound in this Context. Unable to find [jdbc]. >> at >> org.wso2.carbon.user.core.util.DatabaseUtil.lookupDataSource(DatabaseUtil.java:92) >> at >> org.wso2.carbon.user.core.util.DatabaseUtil.createUserStoreDataSource(DatabaseUtil.java:99) >> at >> org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.loadUserStoreSpacificDataSoruce(JDBCUserStoreManager.java:1885) >> at >> org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.<init>(JDBCUserStoreManager.java:165) >> ... 29 more >> Caused by: javax.naming.NameNotFoundException: Name [jdbc/WSO2UM1] is not >> bound in this Context. Unable to find [jdbc]. >> at org.apache.naming.NamingContext.lookup(NamingContext.java:820) >> at org.apache.naming.NamingContext.lookup(NamingContext.java:168) >> at >> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:1030) >> at javax.naming.InitialContext.lookup(InitialContext.java:392) >> at javax.naming.InitialContext.doLookup(InitialContext.java:265) >> at >> org.wso2.carbon.user.core.util.DatabaseUtil.lookupDataSource(DatabaseUtil.java:90) >> ... 32 more >> [2013-05-14 15:36:15,181] ERROR - DefaultRealmService Cannot initialize >> the realm. >> org.wso2.carbon.user.core.UserStoreException: Cannot initialize the realm. >> at >> org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:227) >> at >> org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:169) >> at >> org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:267) >> at >> org.wso2.carbon.registry.core.session.UserRegistry.<init>(UserRegistry.java:227) >> at >> org.wso2.carbon.registry.core.session.UserRegistry.<init>(UserRegistry.java:206) >> at >> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:427) >> at >> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:292) >> at >> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getLocalRepository(EmbeddedRegistryService.java:481) >> at >> org.wso2.carbon.deployment.synchronizer.internal.repository.CarbonRepositoryUtils.getLocalRepository(CarbonRepositoryUtils.java:351) >> at >> org.wso2.carbon.deployment.synchronizer.internal.repository.CarbonRepositoryUtils.getDeploymentSyncConfigurationFromRegistry(CarbonReposito >> ryUtils.java:257) >> at >> org.wso2.carbon.deployment.synchronizer.internal.repository.CarbonRepositoryUtils.getActiveSynchronizerConfiguration(CarbonRepositoryUtils. >> java:108) >> at >> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerServiceImpl.commit(DeploymentSynchronizerServiceImpl.java:96) >> at >> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.deploymentSyncCommit(CarbonDeploymentSchedulerTask.java:175) >> at >> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:116) >> at >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) >> at >> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) >> at >> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) >> at java.lang.Thread.run(Thread.java:662) >> Caused by: org.wso2.carbon.user.core.UserStoreException: nullType class >> java.lang.reflect.InvocationTargetException >> at >> org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:266) >> at >> org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:147) >> at >> org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:113) >> at >> org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:223) >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Anjana Fernando* > Associate Technical Lead > WSO2 Inc. | http://wso2.com > lean . enterprise . middleware > -- mobile: (+94)755906608
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
