With the patch Darshana provided - the issue is fixed now.. Datasource configuration is stored with userstore manager for secondary user stores...
Thanks & regards, -Prabath On Mon, Aug 12, 2013 at 8:30 AM, Sumedha Rubasinghe <[email protected]>wrote: > Prabath, > AFAIR data sources defined in user-store configuration are not stored in a > multi tenanted manner. Since you already have the set up running, could you > check if the same data source can be accessed from another tenant? > > > On Mon, Aug 12, 2013 at 7:36 AM, Prabath Siriwardena <[email protected]>wrote: > >> Applied the patch at revision 180626. Thanks Darshana...! >> >> Regards, >> -Prabath >> >> >> On Sun, Aug 11, 2013 at 9:38 PM, Darshana Gunawardana >> <[email protected]>wrote: >> >>> Hi, >>> >>> Asela, PrabathA and myself had offline chat regarding [1] which has the >>> same root cause for this. >>> >>> The problem is that datasources created using UI which persists as >>> registry resources and we need to access them user.core startup. But >>> registry is not available in that time. With these constraints, proposed >>> solution was defining data-source configurations in line with user-store >>> configurations. >>> >>> [1] - https://wso2.org/jira/browse/IDENTITY-1526 >>> >>> Thanks, >>> >>> >>> On Sun, Aug 11, 2013 at 8:32 PM, Prabath Siriwardena >>> <[email protected]>wrote: >>> >>>> Created a datasource pointing to a mysql database - please see the >>>> configuration attached. >>>> >>>> Then created a secondary UserstoreManager from the UI - under the same >>>> tenant - pointing to the above datasource. >>>> >>>> All worked fine.. >>>> >>>> Then restarted.. and getting the following error.... >>>> >>>> Caused by: javax.naming.NameNotFoundException: Name [jdbc/mysql] 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:916) >>>> 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:91) >>>> >>>> Any thoughts ? >>>> >>>> >>>> -- >>>> Thanks & Regards, >>>> Prabath >>>> >>>> Mobile : +94 71 809 6732 >>>> >>>> http://blog.facilelogin.com >>>> http://RampartFAQ.com >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Regards, >>> >>> * >>> Darshana Gunawardana >>> *Software Engineer >>> WSO2 Inc.; http://wso2.com* >>> E-mail: [email protected] >>> **Mobile: +94718566859 >>> *Lean . Enterprise . Middleware >>> >> >> >> >> -- >> Thanks & Regards, >> Prabath >> >> Mobile : +94 71 809 6732 >> >> http://blog.facilelogin.com >> http://RampartFAQ.com >> > > > > -- > /sumedha > b : bit.ly/sumedha > -- Thanks & Regards, Prabath Mobile : +94 71 809 6732 http://blog.facilelogin.com http://RampartFAQ.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
