Hi Akalanka, As discussed offline with Kishanthan, there is not need to include a populated database with features. Product itself can create the database and populate the database with the scripts provided by the features ( which actually happens with C4 products as well). If there is any specific need to ship the database with the feature (or any changes needed for connector m2) we can release m3.
Thanks, Maduranga. On Tue, Oct 25, 2016 at 9:19 AM, Akalanka Pagoda Arachchi < [email protected]> wrote: > Hi Kishanthan, > > The JDBC User Store Connector [1] M3 was required since the databases are > not populated in M2. However, Maduranga mentioned that there was a decision > to populated any databases in C5 releases for user stores. > > @Maduranga, > Can you explain about that decision. > > How should we proceed. > > [1] - https://github.com/wso2-extensions/carbon-security-user-store-jdbc > > Thanks, > Akalanka. > > On Mon, Oct 24, 2016 at 10:07 AM, Kishanthan Thangarajah < > [email protected]> wrote: > >> Hi Akalaka and Maduranga, >> >> Can we get an update on the M3 status? >> >> Thanks, >> Kishanthan. >> >> >> >> On Wed, Oct 19, 2016 at 8:27 PM, Akalanka Pagoda Arachchi < >> [email protected]> wrote: >> >>> Hi Kishanthan, >>> >>> I'm creating a file based connector to be bundled with User Core so that >>> jdbc-connector dependency is not required. Let's do a M3 after this is >>> complete. >>> >>> Thanks >>> Akalanka. >>> >>> On Wed, Oct 19, 2016 at 7:54 PM, Kishanthan Thangarajah < >>> [email protected]> wrote: >>> >>>> We can use the 1.0.0-m2 release of carbon-security and jdbc-connector >>>> but with some changes needed at DB level to have the user populated. I have >>>> shared a working pack with Irham for now. >>>> >>>> But we need a stable milestone release of caas and jdbc-connector, may >>>> be an M3, to get this working on UUF side with DB changes required for the >>>> jdbc-connector. >>>> >>>> @Akalanka, Maduranga, can we get this done? We can't use the SNAPSHOT >>>> as there are major changes happening at user-core level. So better to go >>>> with the latest stable milestone release. >>>> >>>> On Wed, Oct 19, 2016 at 5:57 PM, Akalanka Pagoda Arachchi < >>>> [email protected]> wrote: >>>> >>>>> Hi Irham, >>>>> >>>>> C5 User-Core Snapshot is still under development. Therefore, >>>>> authentication will not work until the implementation is complete. The >>>>> given configurations are sample configurations. Further, you have to use >>>>> [1] which has implementations for provided interfaces of User-Core. >>>>> >>>>> @SameeraM/Kishanthan, >>>>> >>>>> Can we implement dummy authentication which authenticates any request >>>>> until the proper implementation is complete? >>>>> >>>>> [1] - https://github.com/wso2-extensions/carbon-security-user-st >>>>> ore-jdbc >>>>> >>>>> Thanks, >>>>> Akalanka. >>>>> >>>>> On Wed, Oct 19, 2016 at 5:32 PM, Irham Iqbal <[email protected]> wrote: >>>>> >>>>>> Hi Akalanka, >>>>>> >>>>>> Server is starting up but we can't login. This error[1] is printing >>>>>> on the webpage. >>>>>> >>>>>> [1] Login Error! java.lang.IllegalStateException: Carbon Realm >>>>>> Service is null. at org.wso2.carbon.security.caas. >>>>>> internal.CarbonSecurityDataHolder.getCarbonRealmService(CarbonSecurityDataHolder.java:72) >>>>>> at org.wso2.carbon.security.caas.api.module.UsernamePasswordLog >>>>>> inModule.login(UsernamePasswordLoginModule.java:119) at >>>>>> org.wso2.carbon.security.caas.boot.ProxyLoginModule.login(ProxyLoginModule.java:91) >>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) >>>>>> at >>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>>>> at java.lang.reflect.Method.invoke(Method.java:498) at >>>>>> javax.security.auth.login.LoginContext.invoke(LoginContext.java:755) >>>>>> at >>>>>> javax.security.auth.login.LoginContext.access$000(LoginContext.java:195) >>>>>> at javax.security.auth.login.LoginContext$4.run(LoginContext.java:682) >>>>>> at javax.security.auth.login.LoginContext$4.run(LoginContext.java:680) >>>>>> at java.security.AccessController.doPrivileged(Native Method) at >>>>>> javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680) >>>>>> at javax.security.auth.login.LoginContext.login(LoginContext.java:587) >>>>>> at org.wso2.carbon.uuf.sample.simpleauth.bundle.SimpleAuthHandl >>>>>> er.authenticate(SimpleAuthHandler.java:67) at >>>>>> jdk.nashorn.internal.scripts.Script$Recompilation$27$1343AA$ >>>>>> login.authenticate(/Users/irham/workspace/carbon-uuf/carbon- >>>>>> uuf/product/target/wso2uuf-1.0.0-SNAPSHOT/deployment/uufapps/ >>>>>> org.wso2.carbon.uuf.sample.pets-store/components/simple-auth/pages/login.js:41) >>>>>> at jdk.nashorn.internal.scripts.Script$Recompilation$29$672A$lo >>>>>> gin.onRequest(/Users/irham/workspace/carbon-uuf/carbon-uuf/p >>>>>> roduct/target/wso2uuf-1.0.0-SNAPSHOT/deployment/uufapps/org. >>>>>> wso2.carbon.uuf.sample.pets-store/components/simple-auth/pages/login.js:27) >>>>>> at >>>>>> jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:625) >>>>>> at >>>>>> jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494) >>>>>> at >>>>>> jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393) >>>>>> at >>>>>> jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:199) >>>>>> at >>>>>> jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:383) >>>>>> at >>>>>> jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:190) >>>>>> at >>>>>> org.wso2.carbon.uuf.renderablecreator.hbs.impl.JsExecutable.execute(JsExecutable.java:109) >>>>>> at org.wso2.carbon.uuf.renderablecreator.hbs.impl.HbsPageRender >>>>>> able.execute(HbsPageRenderable.java:124) at >>>>>> org.wso2.carbon.uuf.renderablecreator.hbs.impl.HbsPageRender >>>>>> able.render(HbsPageRenderable.java:75) at >>>>>> org.wso2.carbon.uuf.core.Page.render(Page.java:62) at >>>>>> org.wso2.carbon.uuf.core.Component.renderPage(Component.java:88) at >>>>>> org.wso2.carbon.uuf.core.App.renderPageUri(App.java:168) at >>>>>> org.wso2.carbon.uuf.core.App.renderPage(App.java:118) at >>>>>> org.wso2.carbon.uuf.internal.RequestDispatcher.servePageOrFr >>>>>> agment(RequestDispatcher.java:93) at org.wso2.carbon.uuf.internal.R >>>>>> equestDispatcher.serve(RequestDispatcher.java:67) at >>>>>> org.wso2.carbon.uuf.api.ServerConnection.serve(ServerConnection.java:93) >>>>>> at >>>>>> org.wso2.carbon.uuf.httpconnector.msf4j.UUFMicroservice.postImpl(UUFMicroservice.java:70) >>>>>> at >>>>>> org.wso2.carbon.uuf.httpconnector.msf4j.UUFMicroservice.post(UUFMicroservice.java:61) >>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) >>>>>> at >>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>>>> at java.lang.reflect.Method.invoke(Method.java:498) at >>>>>> org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(HttpMethodInfo.java:132) >>>>>> at org.wso2.msf4j.internal.MSF4JMessageProcessor.dispatchMethod >>>>>> (MSF4JMessageProcessor.java:130) at org.wso2.msf4j.internal.MSF4JM >>>>>> essageProcessor.receive(MSF4JMessageProcessor.java:73) at >>>>>> org.wso2.carbon.transport.http.netty.listener.WorkerPoolDisp >>>>>> atchingSourceHandler.lambda$publishToWorkerPool$12(WorkerPoo >>>>>> lDispatchingSourceHandler.java:125) at java.util.concurrent.ThreadPoo >>>>>> lExecutor.runWorker(ThreadPoolExecutor.java:1142) at >>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) >>>>>> at java.lang.Thread.run(Thread.java:745) >>>>>> >>>>>> Thanks, >>>>>> Iqbal >>>>>> >>>>>> On Wed, Oct 19, 2016 at 5:19 PM, Akalanka Pagoda Arachchi < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Hi Irham, >>>>>>> >>>>>>> This is an error log due to configuration values of the User-Core. >>>>>>> This shouldn't stop the server from starting up? Can you confirm? >>>>>>> >>>>>>> Thanks, >>>>>>> Akalanka. >>>>>>> >>>>>>> On Wed, Oct 19, 2016 at 5:13 PM, Irham Iqbal <[email protected]> wrote: >>>>>>> >>>>>>>> Hi Akalanka, >>>>>>>> >>>>>>>> After fixing this I am getting this exception[1] when trying to >>>>>>>> start wso2uuf. Any idea how to fix this? >>>>>>>> >>>>>>>> [1] [2016-10-19 16:59:50,186] ERROR {org.wso2.carbon.security.caas >>>>>>>> .internal.CarbonSecurityComponent} - Error occurred in building >>>>>>>> the domain configuration org.wso2.carbon.security.caas. >>>>>>>> user.core.exception.DomainConfigException: IdentityStoreConfig not >>>>>>>> found for connectorId JDBCISC1 >>>>>>>> >>>>>>>> at org.wso2.carbon.security.caas.internal.CarbonSecurityCompone >>>>>>>> nt.createDomainManagerFromConfig(CarbonSecurityComponent.java:470) >>>>>>>> >>>>>>>> at org.wso2.carbon.security.caas.internal.CarbonSecurityCompone >>>>>>>> nt.onAllRequiredCapabilitiesAvailable(CarbonSecurityComponen >>>>>>>> t.java:342) >>>>>>>> >>>>>>>> at org.wso2.carbon.kernel.internal.startupresolver.StartupCompo >>>>>>>> nentManager.lambda$notifySatisfiableComponents$27(StartupCom >>>>>>>> ponentManager.java:237) >>>>>>>> >>>>>>>> at java.util.ArrayList.forEach(ArrayList.java:1249) >>>>>>>> >>>>>>>> at org.wso2.carbon.kernel.internal.startupresolver.StartupCompo >>>>>>>> nentManager.notifySatisfiableComponents(StartupComponentMana >>>>>>>> ger.java:225) >>>>>>>> >>>>>>>> at org.wso2.carbon.kernel.internal.startupresolver.StartupOrder >>>>>>>> Resolver$1.run(StartupOrderResolver.java:186) >>>>>>>> >>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:555) >>>>>>>> >>>>>>>> at java.util.TimerThread.run(Timer.java:505) >>>>>>>> >>>>>>>> >>>>>>>> Thanks, >>>>>>>> >>>>>>>> iqbal >>>>>>>> >>>>>>>> On Wed, Oct 19, 2016 at 2:07 PM, Akalanka Pagoda Arachchi < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Hi Irham, >>>>>>>>> >>>>>>>>> Thanks for reporting. >>>>>>>>> >>>>>>>>> Fixed the issue in the master branch, please get the latest. >>>>>>>>> >>>>>>>>> Sorry for the inconvenience caused. >>>>>>>>> >>>>>>>>> Akalanka. >>>>>>>>> >>>>>>>>> On Wed, Oct 19, 2016 at 12:41 PM, Harsha Thirimanna < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Wed, Oct 19, 2016 at 12:37 PM, Irham Iqbal <[email protected]> >>>>>>>>>> wrote: >>>>>>>>>> >>>>>>>>>>> Hi, >>>>>>>>>>> >>>>>>>>>>> I am getting an exception[1] when starting wso2uuf pack, which I >>>>>>>>>>> build it from master branch of uuf repo[2]. I found the following >>>>>>>>>>> code[3] >>>>>>>>>>> in class[4] in carbon-security repo[5] which is causing the >>>>>>>>>>> exception. >>>>>>>>>>> I think we need a slash in between CarbonHomeDirectory and >>>>>>>>>>> conf/security/.That can be seen in the exception as well, I >>>>>>>>>>> have highlighted the problem in the execption as >>>>>>>>>>> /Users/irham/workspace/carbon-uuf/carbon-uuf/product/target/ >>>>>>>>>>> wso2uuf-1.0.0-SNAPSHOTconf/security/claim-store.yml. >>>>>>>>>>> >>>>>>>>>>> [1] [2016-10-19 11:59:19,909] INFO >>>>>>>>>>> {org.wso2.carbon.transport.http.netty.internal.NettyTransportServiceComponent} >>>>>>>>>>> - All CarbonNettyServerInitializers are available >>>>>>>>>>> >>>>>>>>>>> [2016-10-19 11:59:19,921] ERROR {org.wso2.carbon.security.caas >>>>>>>>>>> .internal.CarbonSecurityComponent} - Error initializing claim >>>>>>>>>>> store from file java.io.IOException: Claim Store file >>>>>>>>>>> /Users/irham/workspace/carbon-uuf/carbon-uuf/product/target/ >>>>>>>>>>> wso2uuf-1.0.0-SNAPSHOTconf/security/claim-store.yml' is not >>>>>>>>>>> available. >>>>>>>>>>> >>>>>>>>>>> at org.wso2.carbon.security.caas.user.core.claim.FileBasedMetaC >>>>>>>>>>> laimStore.<init>(FileBasedMetaClaimStore.java:46) >>>>>>>>>>> >>>>>>>>>>> at org.wso2.carbon.security.caas.internal.CarbonSecurityCompone >>>>>>>>>>> nt.onAllRequiredCapabilitiesAvailable(CarbonSecurityComponen >>>>>>>>>>> t.java:330) >>>>>>>>>>> >>>>>>>>>>> at org.wso2.carbon.kernel.internal.startupresolver.StartupCompo >>>>>>>>>>> nentManager.lambda$notifySatisfiableComponents$27(StartupCom >>>>>>>>>>> ponentManager.java:237) >>>>>>>>>>> >>>>>>>>>>> at java.util.ArrayList.forEach(ArrayList.java:1249) >>>>>>>>>>> >>>>>>>>>>> at org.wso2.carbon.kernel.internal.startupresolver.StartupCompo >>>>>>>>>>> nentManager.notifySatisfiableComponents(StartupComponentMana >>>>>>>>>>> ger.java:225) >>>>>>>>>>> >>>>>>>>>>> at org.wso2.carbon.kernel.internal.startupresolver.StartupOrder >>>>>>>>>>> Resolver$1.run(StartupOrderResolver.java:186) >>>>>>>>>>> >>>>>>>>>>> at java.util.TimerThread.mainLoop(Timer.java:555) >>>>>>>>>>> >>>>>>>>>>> at java.util.TimerThread.run(Timer.java:505) >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> [2] https://github.com/wso2/carbon-uuf >>>>>>>>>>> >>>>>>>>>>> [3] MetaClaimStore metaClaimStore = new FileBasedMetaClaimStore( >>>>>>>>>>> CarbonSecurityConstants.getCarbonHomeDirectory().toString() + >>>>>>>>>>> "conf/security/" + CarbonSecurityConstants.CLAIM_STORE_FILE); >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> [4] carbon-security/components/org.wso2.carbon.security.caas/src >>>>>>>>>>> /main/java/org/wso2/carbon/security/caas/internal/CarbonSecu >>>>>>>>>>> rityComponent.java >>>>>>>>>>> >>>>>>>>>>> [4] https://github.com/wso2/carbon-security >>>>>>>>>>> Thanks, >>>>>>>>>>> Iqbal >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Irham Iqbal >>>>>>>>>>> Software Engineer >>>>>>>>>>> WSO2 >>>>>>>>>>> phone: +94 777888452 >>>>>>>>>>> <http://wso2.com/signature> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> *Darshana Akalanka Pagoda Arachchi,* >>>>>>>>> *Senior Software Engineer, WSO2* >>>>>>>>> *+94777118016 <%2B94777118016>* >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Irham Iqbal >>>>>>>> Software Engineer >>>>>>>> WSO2 >>>>>>>> phone: +94 777888452 >>>>>>>> <http://wso2.com/signature> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> *Darshana Akalanka Pagoda Arachchi,* >>>>>>> *Senior Software Engineer, WSO2* >>>>>>> *+94777118016 <%2B94777118016>* >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Irham Iqbal >>>>>> Software Engineer >>>>>> WSO2 >>>>>> phone: +94 777888452 >>>>>> <http://wso2.com/signature> >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> *Darshana Akalanka Pagoda Arachchi,* >>>>> *Senior Software Engineer, WSO2* >>>>> *+94777118016 <%2B94777118016>* >>>>> >>>> >>>> >>>> >>>> -- >>>> *Kishanthan Thangarajah* >>>> Technical Lead, >>>> Platform Technologies Team, >>>> WSO2, Inc. >>>> lean.enterprise.middleware >>>> >>>> Mobile - +94773426635 >>>> Blog - *http://kishanthan.wordpress.com >>>> <http://kishanthan.wordpress.com>* >>>> Twitter - *http://twitter.com/kishanthan >>>> <http://twitter.com/kishanthan>* >>>> >>> >>> >>> >>> -- >>> *Darshana Akalanka Pagoda Arachchi,* >>> *Senior Software Engineer, WSO2* >>> *+94777118016 <%2B94777118016>* >>> >> >> >> >> -- >> *Kishanthan Thangarajah* >> Technical Lead, >> Platform Technologies Team, >> WSO2, Inc. >> lean.enterprise.middleware >> >> Mobile - +94773426635 >> Blog - *http://kishanthan.wordpress.com >> <http://kishanthan.wordpress.com>* >> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>* >> > > > > -- > *Darshana Akalanka Pagoda Arachchi,* > *Senior Software Engineer, WSO2* > *+94777118016 <%2B94777118016>* > -- Maduranga Siriwardena Software Engineer WSO2 Inc; http://wso2.com/ Email: [email protected] Mobile: +94718990591 Blog: http://madurangasblogs.blogspot.com/ <http://wso2.com/signature>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
