Re: [Dev] [IS] C5 Support for filtering

2016-10-19 Thread Vindula Jayawardana
Hi Chamila,

On Tue, Oct 18, 2016 at 4:18 PM, Chamila Wijayarathna <
cdwijayarat...@gmail.com> wrote:

> Hi Johann, Vindula,
>
> On Tue, Oct 18, 2016 at 3:59 PM, Johann Nallathamby 
> wrote:
>
>>
>>
>> On Tue, Oct 18, 2016 at 10:05 AM, Vindula Jayawardana 
>> wrote:
>>
>>> Hi All,
>>>
>>> With the current user core implementation we support only the equal
>>> filter (e.g. userName Eq "john"). However SCIM 2.0 specification [1]
>>> specify total of 10 such simple filters and complex filters which are
>>> combinations of simple filters using logical and grouping operators (e.g.
>>> userType ne "Employee" and not (emails co "example.com" or emails.value
>>> co "example.org")). As we are in the process of C5 implementation, have
>>> we considered the other filter type implementations as well?
>>>
>>
>> Yes we need to consider these features in the extended user-core
>> implementation.
>>
>>>
>>> Moreover if we are supporting the complex filters, are we supporting it
>>> by simple filter by filter basis or the entire complex filter as a whole?
>>> If we are looking for the simple filter by filter basis, there will be
>>> performance issues as well.
>>>
>>
>> It is better if we provide complex filters from extended user-core itself
>> for performance reasons. However if time doesn't permit to implement all
>> those APIs, we can have a scim UserManager implementation which will call
>> multiple simple filters and combine the result and return. Obviously as you
>> said performance of such implementation will be low. But it is acceptable
>> as an interim solution until extended user-core implementation supports all
>> the filters.
>>
> Can you please explain, what you refer as complex filters here? I think we
> need to implement operators listed in table 3 and 4 in the specification
> and implement a generic way to build complex queries reusing them. I don't
> think it would be practical to more complex filters, there can be large
> amount of complex filters that can be created by combining these simple
> filter. Please correct me if I'm wrong.
>

What I meant by complex filters is exactly what you have mentioned above.
Yes we can build large amount of complex filters (complex queries) by
combining the simple filters using operators listed in table 3 and 4.

>
> Also what different would it made when we are handling these filters in
> user-core level and when handling using scimUserManager level? Are you
> reffering to the fact that when we need "username sw a" , we can retrieve
> only  the users who have username start with 'a' from database/ldap, so
> that we can achieve higher performance?
>
> In addition to that, I believe it would be good to consider other SCIM
> operations such as sorting and pagination at the same time. If we can come
> up with a generic design, that would be better. Otherwise, we'll have to
> put a huge effort to embed those functionalities again.
>

Yes agree. We need a generic design which will ease our work in the long
run.

>
> Cheers
> -Chamila
>
>>
>>> Any thoughts on the matter is highly appreciated.
>>>
>>> [1] https://tools.ietf.org/html/rfc7644#section-3.4.2.2
>>>
>>> Thank you,
>>>
>>> *Vindula Jayawardana*
>>> Trainee Software Engineer
>>> Mobile : +94 713 462554
>>> vind...@wso2.com
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Technical Lead & Product Lead of WSO2 Identity Server
>> Governance Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chamila Dilshan Wijayarathna,
> PhD Research Student
> The University of New South Wales (UNSW Canberra)
> Australian Centre of Cyber Security
> Australian Defence Force Academy
> PO Box 7916, Canberra BA ACT 2610
> Australia
> Mobile:(+61)416895795
>
>


-- 
*Vindula Jayawardana*
Trainee Software Engineer
Mobile : +94 713 462554
Email : vind...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 EMM Support

2016-10-19 Thread Megala Uthayakumar
Hi Praveen,

This is a known issue in EMM as per the jira [1]. It is fixed in the latest
version. Can you try out the latest beta2 pack[2], to access the dashboard.

[1] https://wso2.org/jira/browse/EMM-1523
[2] https://github.com/wso2/product-emm/releases

Thanks.

Regards,
Megala

On Wed, Oct 19, 2016 at 5:45 PM, Praveen J <
praveen.josephmasilam...@nexttechnosolutions.co.in> wrote:

> Hi All,
>
> Thank you for your quick response and support. Now I'm working on that
> based on your suggestion. if any doubts I will let you know.
>
> And one more clarification regarding dashboard server (
> https://:/portal) When i logged in portal there is no
> EMM Analytics Dashboard and for your info I also enbled the dasboard server
> communication.
>
> But I didn't get any result, Please refer the below links which i have
> referred and followed.
>
> https://docs.wso2.com/display/EMM210/Accessing+the+WSO2+EMM+
> Device+Monitoring+Dashboard
>
> https://docs.wso2.com/display/EMM210/Monitoring+Devices+via+the+Dashboard
>
> Please give some suggestion how to setup the dashboard server.
>
>
> 19.10.2016, 16:52, "Madawa Soysa" :
>
> Hi Praveen,
>
> Regarding your last question, 5th step of the data containerization guide
> [1]
> 
>  means
> that you can uninstall the agent installed in your personal profile.
>
> [1] - https://docs.wso2.com/display/EMM210/Data+
> Containerization+for+Android+Device#DataContainerizationforAndroidDevice-
> ApplyingAndroiddeviceoperations
>
> Regards,
> Madawa
>
> On Wed, Oct 19, 2016 at 3:35 PM, Rasika Perera  wrote:
>
> Hi Praveen,
>
> It's great to hear that you started using WSO2 EMM. Please find inline
> comments below.
>
> Regarding to setup project-emm, Actually I already setup the project in
> IntelliJ IDE but i don't know how to run the product and debug so please
> guide me via steps how to setup the project and work with source code and
> finally built the product using Maven.
> We are using three repositories; CDMF and CDMF-plugins and Product EMM to
> build the product. Please refer [1] for additional details. You can debug
> the EMM server as per [3]. If you find any issue you can raise JIRAs on [2]
> and even you can fix and send us a PR to relevant repository.
>
> Then I need clarification regarding how to install and uninstall app
> silent using Application management? And we got some search result in stack
> overflow about that but they discussed about old version and i have
> mentioned the link below for your reference. So please give some suggestion
> how to achieve this.
> In order to get it work silent app install/uninstall you need to install
> WSO2 Android Agent as a System App. Please follow instructions on [4] to
> enable it.
>
> [1] https://docs.wso2.com/display/EMM220/Working+with+the+Source+Code
> [2] https://wso2.org/jira/projects/EMM/
> [3] https://dzone.com/articles/how-debug-wso2-carbon-kernel
> [4] https://docs.wso2.com/display/EMM220/Integrating+
> the+Android+System+Service+Application
>
>
> On Wed, Oct 19, 2016 at 2:42 PM, Praveen J  nexttechnosolutions.co.in> wrote:
>
> Hi Sir/Madam,
>
> Good day, I'm using WSO2 EMM 2.1.0 and I need to customise the source code
> So I need your support and i have some doubts and clarification which i
> have listed out below.
>
> Regarding to setup project-emm, Actually I already setup the project in
> IntelliJ IDE but i don't know how to run the product and debug so please
> guide me via steps how to setup the project and work with source code and
> finally built the product using Maven.
>
> Then I need clarification regarding how to install and uninstall app
> silent using Application management? And we got some search result in stack
> overflow about that but they discussed about old version and i have
> mentioned the link below for your reference. So please give some suggestion
> how to achieve this.
>
> http://stackoverflow.com/questions/26008471/application-management-in-
> wso2-emm
>
> And finally data containerisation in Android lollipop using Android for
> work. And I have followed the below link instructions.
>
> https://docs.wso2.com/display/EMM210/Data+Containerization+
> for+Android+Device#DataContainerizationforAndroidDevice-
> ApplyingAndroiddeviceoperations
>
> In device registration section I'm stuck with 5th step after uninstall the
> app what i do further? So please guide me. Awaiting for your response. And
> let me know if any comments.
>
> --
> Thanks & Regards,
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
>
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> 

Re: [Dev] File not found(claim-store.yml) exception with carbon-security when starting wso2uuf pack

2016-10-19 Thread Akalanka Pagoda Arachchi
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  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 <
> darsha...@wso2.com> 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-store-jdbc
>>
>> Thanks,
>> Akalanka.
>>
>> On Wed, Oct 19, 2016 at 5:32 PM, Irham Iqbal  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.CarbonSecurityDataHol
>>> der.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/uufapp
>>> s/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
>>> 

Re: [Dev] File not found(claim-store.yml) exception with carbon-security when starting wso2uuf pack

2016-10-19 Thread Kishanthan Thangarajah
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 <
darsha...@wso2.com> 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-store-jdbc
>
> Thanks,
> Akalanka.
>
> On Wed, Oct 19, 2016 at 5:32 PM, Irham Iqbal  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.CarbonSecurityDataHol
>> der.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/
>> product/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.httpconnec
>> tor.msf4j.UUFMicroservice.post(UUFMicroservice.java:61) at
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
>> 

Re: [Dev] File not found(claim-store.yml) exception with carbon-security when starting wso2uuf pack

2016-10-19 Thread Akalanka Pagoda Arachchi
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-store-jdbc

Thanks,
Akalanka.

On Wed, Oct 19, 2016 at 5:32 PM, Irham Iqbal  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.UsernamePasswordLoginModule.
> 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.SimpleAuthHandler.
> 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$
> login.onRequest(/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: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.
> HbsPageRenderable.execute(HbsPageRenderable.java:124) at
> org.wso2.carbon.uuf.renderablecreator.hbs.impl.HbsPageRenderable.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.servePageOrFragment(RequestDispatcher.java:93)
> at 
> org.wso2.carbon.uuf.internal.RequestDispatcher.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.
> MSF4JMessageProcessor.receive(MSF4JMessageProcessor.java:73) at
> org.wso2.carbon.transport.http.netty.listener.
> WorkerPoolDispatchingSourceHandler.lambda$publishToWorkerPool$12(
> WorkerPoolDispatchingSourceHandler.java:125) at java.util.concurrent.
> ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at
> 

Re: [Dev] WSO2 EMM Support

2016-10-19 Thread Praveen J
Hi All, Thank you for your quick response and support. Now I'm working on that based on your suggestion. if any doubts I will let you know. And one more clarification regarding dashboard server (https://:/portal) When i logged in portal there is no EMM Analytics Dashboard and for your info I also enbled the dasboard server communication. But I didn't get any result, Please refer the below links which i have referred and followed. https://docs.wso2.com/display/EMM210/Accessing+the+WSO2+EMM+Device+Monitoring+Dashboard https://docs.wso2.com/display/EMM210/Monitoring+Devices+via+the+Dashboard Please give some suggestion how to setup the dashboard server.  19.10.2016, 16:52, "Madawa Soysa" :Hi Praveen, Regarding your last question, 5th step of the data containerization guide [1] means that you can uninstall the agent installed in your personal profile. [1] - https://docs.wso2.com/display/EMM210/Data+Containerization+for+Android+Device#DataContainerizationforAndroidDevice-ApplyingAndroiddeviceoperations Regards,Madawa On Wed, Oct 19, 2016 at 3:35 PM, Rasika Perera  wrote:Hi Praveen, It's great to hear that you started using WSO2 EMM. Please find inline comments below. Regarding to setup project-emm, Actually I already setup the project in IntelliJ IDE but i don't know how to run the product and debug so please guide me via steps how to setup the project and work with source code and finally built the product using Maven.We are using three repositories; CDMF and CDMF-plugins and Product EMM to build the product. Please refer [1] for additional details. You can debug the EMM server as per [3]. If you find any issue you can raise JIRAs on [2] and even you can fix and send us a PR to relevant repository. Then I need clarification regarding how to install and uninstall app silent using Application management? And we got some search result in stack overflow about that but they discussed about old version and i have mentioned the link below for your reference. So please give some suggestion how to achieve this.In order to get it work silent app install/uninstall you need to install WSO2 Android Agent as a System App. Please follow instructions on [4] to enable it. [1] https://docs.wso2.com/display/EMM220/Working+with+the+Source+Code[2] https://wso2.org/jira/projects/EMM/[3] https://dzone.com/articles/how-debug-wso2-carbon-kernel[4] https://docs.wso2.com/display/EMM220/Integrating+the+Android+System+Service+Application  On Wed, Oct 19, 2016 at 2:42 PM, Praveen J  wrote:Hi Sir/Madam, Good day, I'm using WSO2 EMM 2.1.0 and I need to customise the source code So I need your support and i have some doubts and clarification which i have listed out below. Regarding to setup project-emm, Actually I already setup the project in IntelliJ IDE but i don't know how to run the product and debug so please guide me via steps how to setup the project and work with source code and finally built the product using Maven. Then I need clarification regarding how to install and uninstall app silent using Application management? And we got some search result in stack overflow about that but they discussed about old version and i have mentioned the link below for your reference. So please give some suggestion how to achieve this. http://stackoverflow.com/questions/26008471/application-management-in-wso2-emm And finally data containerisation in Android lollipop using Android for work. And I have followed the below link instructions. https://docs.wso2.com/display/EMM210/Data+Containerization+for+Android+Device#DataContainerizationforAndroidDevice-ApplyingAndroiddeviceoperations In device registration section I'm stuck with 5th step after uninstall the app what i do further? So please guide me. Awaiting for your response. And let me know if any comments. -- Thanks & Regards,Praveen JApplication Developer,Next Techno Enterprises India Pvt. Ltd, Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARKVilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIAMobile : +91-9940048873 praveen.josephmasilam...@nexttechnosolutions.co.in | www.nexttechnosolutions.com ___Dev mailing listDev@wso2.orghttp://wso2.org/cgi-bin/mailman/listinfo/dev   -- With Regards,Rasika PereraSoftware EngineerLinkedIn: http://lk.linkedin.com/in/rasika90 WSO2 Inc. www.wso2.comlean.enterprise.middleware ___Dev mailing listDev@wso2.orghttp://wso2.org/cgi-bin/mailman/listinfo/dev   --Madawa Soysa / Software Engineer mada...@wso2.com / +94714616050WSO2 Inc.lean.enterprise.middleware -- Thanks & Regards,Praveen JApplication Developer,Next Techno Enterprises India Pvt. Ltd, Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARKVilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIAMobile : +91-9940048873 praveen.josephmasilam...@nexttechnosolutions.co.in | www.nexttechnosolutions.com 

Re: [Dev] [EMM]Issues in calling admin services as a tenant user from a jaggery app

2016-10-19 Thread Kamidu Punchihewa
Hi Megala,

If you have found out the issue and solution. Please do the necessary
change and do a round of testing. If everything works as expected please
send a pull request to the carbon kernel.
@Kernal Team How we can get the this released for the EMM 2.2.0 release ?

Thanks and Best Regards,

Kamidu Sachith Punchihewa
*Software Engineer*
WSO2, Inc.
lean . enterprise . middleware
Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>


Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
retransmit, disseminate, or otherwise use the information contained in this
communication. Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability for any
errors or omissions.

On Wed, Oct 19, 2016 at 11:07 AM, Megala Uthayakumar 
wrote:

> Hi All,
>
> I am working on a jira [1] which is related with an exception that is
> thrown when trying to add a user/role in tenant mode using EMM console.
> This is particularly happens when we call the admin service to get the
> secondary user store configurations related to particular tenant [2].
> Following is the root cause behind this exception,
>
> *Caused by: java.lang.SecurityException: Illegal access attempt to cache ]
> owned by tenant*
> *{[test.com ],[1]} by tenant {[test.com
> ],[-1234]}*
>
> When trying to access the cache, the caller's tenant id has changed to
> super-tenant id, although tenant domain is correct. I tried to start the
> tenant flow before calling the admin service, but still I got the same
> error. While debugging I found, [3] is the point where the tenant domain is
> set to correct domain, while the tenant id still set to super-tenant id.
> Locally I changed that particular line as per below,
>
> PrivilegedCarbonContext.getThreadLocalCarbonContext().setTenantDomain(
> userTenantDomain,*true*);
>
> After that I could get the secondary user-store configurations related to
> that particular tenant. Is this a bug from carbon-level or is there any
> work-around to avoid this? Any comments or suggestions on this regard is
> highly appreciated.
>
> [1] https://wso2.org/jira/browse/EMM-1762
> [2] https://github.com/wso2/carbon-device-mgt/blob/master/
> components/device-mgt/org.wso2.carbon.device.mgt.ui/src/
> main/resources/jaggeryapps/devicemgt/app/modules/
> business-controllers/user.js#L607
> [3] https://github.com/wso2/carbon-kernel/blob/v4.4.9/
> core/org.wso2.carbon.server.admin/src/main/java/org/wso2/
> carbon/server/admin/module/handler/AuthenticationHandler.java#L93
>
> Thanks.
>
> Regards,
> Megala
> --
> Megala Uthayakumar
>
> Software Engineer
> Mobile : 0779967122
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] File not found(claim-store.yml) exception with carbon-security when starting wso2uuf pack

2016-10-19 Thread Akalanka Pagoda Arachchi
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  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.CarbonSecurityComponent.
> createDomainManagerFromConfig(CarbonSecurityComponent.java:470)
>
> at org.wso2.carbon.security.caas.internal.CarbonSecurityComponent.
> onAllRequiredCapabilitiesAvailable(CarbonSecurityComponent.java:342)
>
> at org.wso2.carbon.kernel.internal.startupresolver.
> StartupComponentManager.lambda$notifySatisfiableComponents$
> 27(StartupComponentManager.java:237)
>
> at java.util.ArrayList.forEach(ArrayList.java:1249)
>
> at org.wso2.carbon.kernel.internal.startupresolver.
> StartupComponentManager.notifySatisfiableComponents(
> StartupComponentManager.java:225)
>
> at org.wso2.carbon.kernel.internal.startupresolver.
> StartupOrderResolver$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 <
> darsha...@wso2.com> 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 
>> wrote:
>>
>>>
>>>
>>> On Wed, Oct 19, 2016 at 12:37 PM, Irham Iqbal  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/sec
 urity/claim-store.yml.

 [1] [2016-10-19 11:59:19,909]  INFO {org.wso2.carbon.transport.htt
 p.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.(FileBasedMetaClaimStore.java:46)

 at org.wso2.carbon.security.caas.internal.CarbonSecurityCompone
 nt.onAllRequiredCapabilitiesAvailable(CarbonSecurityComponent.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
 


>>>
>>
>>
>> --
>> *Darshana Akalanka Pagoda Arachchi,*
>> *Senior Software Engineer, WSO2*
>> *+94777118016 <%2B94777118016>*
>>
>
>
>
> --
> Irham Iqbal
> Software Engineer
> WSO2
> phone: +94 777888452
> 
>
>


-- 
*Darshana Akalanka Pagoda Arachchi,*
*Senior Software Engineer, WSO2*
*+94777118016*
___
Dev mailing list

Re: [Dev] File not found(claim-store.yml) exception with carbon-security when starting wso2uuf pack

2016-10-19 Thread Irham Iqbal
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.CarbonSecurityComponent.createDomainManagerFromConfig(CarbonSecurityComponent.java:470)

at
org.wso2.carbon.security.caas.internal.CarbonSecurityComponent.onAllRequiredCapabilitiesAvailable(CarbonSecurityComponent.java:342)

at
org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.lambda$notifySatisfiableComponents$27(StartupComponentManager.java:237)

at java.util.ArrayList.forEach(ArrayList.java:1249)

at
org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.notifySatisfiableComponents(StartupComponentManager.java:225)

at
org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$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 <
darsha...@wso2.com> 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 
> wrote:
>
>>
>>
>> On Wed, Oct 19, 2016 at 12:37 PM, Irham Iqbal  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/sec
>>> urity/claim-store.yml.
>>>
>>> [1] [2016-10-19 11:59:19,909]  INFO {org.wso2.carbon.transport.htt
>>> p.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.(FileBasedMetaClaimStore.java:46)
>>>
>>> at org.wso2.carbon.security.caas.internal.CarbonSecurityCompone
>>> nt.onAllRequiredCapabilitiesAvailable(CarbonSecurityComponent.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
>>> 
>>>
>>>
>>
>
>
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Senior Software Engineer, WSO2*
> *+94777118016 <%2B94777118016>*
>



-- 
Irham Iqbal
Software Engineer
WSO2
phone: +94 777888452

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 EMM Support

2016-10-19 Thread Madawa Soysa
Hi Praveen,

Regarding your last question, 5th step of the data containerization guide
[1]

means
that you can uninstall the agent installed in your personal profile.

[1] - https://docs.wso2.com/display/EMM210/Data+Containerization+
for+Android+Device#DataContainerizationforAndroidDevice-
ApplyingAndroiddeviceoperations

Regards,
Madawa

On Wed, Oct 19, 2016 at 3:35 PM, Rasika Perera  wrote:

> Hi Praveen,
>
> It's great to hear that you started using WSO2 EMM. Please find inline
> comments below.
>
> Regarding to setup project-emm, Actually I already setup the project in
>> IntelliJ IDE but i don't know how to run the product and debug so please
>> guide me via steps how to setup the project and work with source code and
>> finally built the product using Maven.
>
> We are using three repositories; CDMF and CDMF-plugins and Product EMM to
> build the product. Please refer [1] for additional details. You can debug
> the EMM server as per [3]. If you find any issue you can raise JIRAs on [2]
> and even you can fix and send us a PR to relevant repository.
>
> Then I need clarification regarding how to install and uninstall app
>> silent using Application management? And we got some search result in stack
>> overflow about that but they discussed about old version and i have
>> mentioned the link below for your reference. So please give some suggestion
>> how to achieve this.
>
> In order to get it work silent app install/uninstall you need to install
> WSO2 Android Agent as a System App. Please follow instructions on [4] to
> enable it.
>
> [1] https://docs.wso2.com/display/EMM220/Working+with+the+Source+Code
> [2] https://wso2.org/jira/projects/EMM/
> [3] https://dzone.com/articles/how-debug-wso2-carbon-kernel
> [4] https://docs.wso2.com/display/EMM220/Integrating+
> the+Android+System+Service+Application
>
>
> On Wed, Oct 19, 2016 at 2:42 PM, Praveen J  nexttechnosolutions.co.in> wrote:
>
>> Hi Sir/Madam,
>>
>> Good day, I'm using WSO2 EMM 2.1.0 and I need to customise the source
>> code So I need your support and i have some doubts and clarification which
>> i have listed out below.
>>
>> Regarding to setup project-emm, Actually I already setup the project in
>> IntelliJ IDE but i don't know how to run the product and debug so please
>> guide me via steps how to setup the project and work with source code and
>> finally built the product using Maven.
>>
>> Then I need clarification regarding how to install and uninstall app
>> silent using Application management? And we got some search result in stack
>> overflow about that but they discussed about old version and i have
>> mentioned the link below for your reference. So please give some suggestion
>> how to achieve this.
>>
>> http://stackoverflow.com/questions/26008471/application-
>> management-in-wso2-emm
>>
>> And finally data containerisation in Android lollipop using Android for
>> work. And I have followed the below link instructions.
>>
>> https://docs.wso2.com/display/EMM210/Data+Containerization+f
>> or+Android+Device#DataContainerizationforAndroidDevice-Apply
>> ingAndroiddeviceoperations
>>
>> In device registration section I'm stuck with 5th step after uninstall
>> the app what i do further? So please guide me. Awaiting for your response.
>> And let me know if any comments.
>>
>> --
>> Thanks & Regards,
>> *Praveen J*
>> *Application Developer,*
>> *Next Techno Enterprises India Pvt. Ltd,*
>>
>> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
>> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
>> Mobile : +91-9940048873
>> *praveen.josephmasilam...@nexttechnosolutions.co.in
>> * | 
>> *www.nexttechnosolutions.com
>> *
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> 
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Madawa Soysa / Software Engineer
mada...@wso2.com / +94714616050

*WSO2 Inc.*
lean.enterprise.middleware

  
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 EMM Support

2016-10-19 Thread Rasika Perera
Hi Praveen,

It's great to hear that you started using WSO2 EMM. Please find inline
comments below.

Regarding to setup project-emm, Actually I already setup the project in
> IntelliJ IDE but i don't know how to run the product and debug so please
> guide me via steps how to setup the project and work with source code and
> finally built the product using Maven.

We are using three repositories; CDMF and CDMF-plugins and Product EMM to
build the product. Please refer [1] for additional details. You can debug
the EMM server as per [3]. If you find any issue you can raise JIRAs on [2]
and even you can fix and send us a PR to relevant repository.

Then I need clarification regarding how to install and uninstall app silent
> using Application management? And we got some search result in stack
> overflow about that but they discussed about old version and i have
> mentioned the link below for your reference. So please give some suggestion
> how to achieve this.

In order to get it work silent app install/uninstall you need to install
WSO2 Android Agent as a System App. Please follow instructions on [4] to
enable it.

[1] https://docs.wso2.com/display/EMM220/Working+with+the+Source+Code
[2] https://wso2.org/jira/projects/EMM/
[3] https://dzone.com/articles/how-debug-wso2-carbon-kernel
[4]
https://docs.wso2.com/display/EMM220/Integrating+the+Android+System+Service+Application


On Wed, Oct 19, 2016 at 2:42 PM, Praveen J <
praveen.josephmasilam...@nexttechnosolutions.co.in> wrote:

> Hi Sir/Madam,
>
> Good day, I'm using WSO2 EMM 2.1.0 and I need to customise the source code
> So I need your support and i have some doubts and clarification which i
> have listed out below.
>
> Regarding to setup project-emm, Actually I already setup the project in
> IntelliJ IDE but i don't know how to run the product and debug so please
> guide me via steps how to setup the project and work with source code and
> finally built the product using Maven.
>
> Then I need clarification regarding how to install and uninstall app
> silent using Application management? And we got some search result in stack
> overflow about that but they discussed about old version and i have
> mentioned the link below for your reference. So please give some suggestion
> how to achieve this.
>
> http://stackoverflow.com/questions/26008471/application-management-in-
> wso2-emm
>
> And finally data containerisation in Android lollipop using Android for
> work. And I have followed the below link instructions.
>
> https://docs.wso2.com/display/EMM210/Data+Containerization+
> for+Android+Device#DataContainerizationforAndroidDevice-
> ApplyingAndroiddeviceoperations
>
> In device registration section I'm stuck with 5th step after uninstall the
> app what i do further? So please guide me. Awaiting for your response. And
> let me know if any comments.
>
> --
> Thanks & Regards,
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
>
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> * | 
> *www.nexttechnosolutions.com
> *
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
With Regards,

*Rasika Perera*
Software Engineer
LinkedIn: http://lk.linkedin.com/in/rasika90



WSO2 Inc. www.wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 EMM Support

2016-10-19 Thread Lakshman Udayakantha
Hi Praveen,

Go through [1] getting started, it shows where to download and get the
source and installing the product and run. There is an  REST API for app
silent installation in [2]. you can try out that.

[1] https://docs.wso2.com/display/EMM201/Getting+Started
[2]
https://docs.wso2.com/display/EMM210/Installing+an+Application+on+Android+Devices

Thanks

On Wed, Oct 19, 2016 at 2:42 PM, Praveen J <
praveen.josephmasilam...@nexttechnosolutions.co.in> wrote:

> Hi Sir/Madam,
>
> Good day, I'm using WSO2 EMM 2.1.0 and I need to customise the source code
> So I need your support and i have some doubts and clarification which i
> have listed out below.
>
> Regarding to setup project-emm, Actually I already setup the project in
> IntelliJ IDE but i don't know how to run the product and debug so please
> guide me via steps how to setup the project and work with source code and
> finally built the product using Maven.
>
> Then I need clarification regarding how to install and uninstall app
> silent using Application management? And we got some search result in stack
> overflow about that but they discussed about old version and i have
> mentioned the link below for your reference. So please give some suggestion
> how to achieve this.
>
> http://stackoverflow.com/questions/26008471/application-management-in-
> wso2-emm
>
> And finally data containerisation in Android lollipop using Android for
> work. And I have followed the below link instructions.
>
> https://docs.wso2.com/display/EMM210/Data+Containerization+
> for+Android+Device#DataContainerizationforAndroidDevice-
> ApplyingAndroiddeviceoperations
>
> In device registration section I'm stuck with 5th step after uninstall the
> app what i do further? So please guide me. Awaiting for your response. And
> let me know if any comments.
>
> --
> Thanks & Regards,
> *Praveen J*
> *Application Developer,*
> *Next Techno Enterprises India Pvt. Ltd,*
>
> Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARK
> Vilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIA
> Mobile : +91-9940048873
> *praveen.josephmasilam...@nexttechnosolutions.co.in
> * | 
> *www.nexttechnosolutions.com
> *
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0717429601*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Siddhi] [Markov Models Extension] What is the stored location of trained Markov matrices?

2016-10-19 Thread Ashen Weerathunga
Hi Bhashinee,

You can find the source code from here[1].

[1]
https://github.com/wso2/siddhi/tree/master/modules/siddhi-extensions/markov-models

Best Regards,
Ashen

On Wed, Oct 19, 2016 at 3:09 PM, Bhashinee Nirmali 
wrote:

> Hi All,
>
> Thank you for the information. I would like to study more about this. Can
> you please point me to the source code of Markov model extension?
>
> Thanks
>
> On Tue, Oct 18, 2016 at 1:47 AM, Ashen Weerathunga  wrote:
>
>> Hi Tishan,
>>
>> We don't have any non-serializable objects and we are currently using CEP
>> persistence option to persist the state of Markov extension. But currently,
>> we cannot export the Markov matrix separately as a csv. Therefore the
>> Markov matrix generated by the extension cannot be used externally IMO.
>>
>> Thanks,
>> Ashen
>>
>> On Tue, Oct 18, 2016 at 12:45 PM, Tishan Dahanayakage 
>> wrote:
>>
>>> Ashen,
>>>
>>> Can't we use CEP persistence option to persist the state of Markov
>>> extension to file system and re-use? Do we have any non-serializable
>>> objects?
>>>
>>> /Tishan
>>>
>>> On Tue, Oct 18, 2016 at 12:28 PM, Ashen Weerathunga 
>>> wrote:
>>>
 Hi Bhashinee,

 In the current implementation, we are storing the Markov matrix using a
 hashmap. Therefore if you shut down the server it won't be persisted. But
 we have provided a facility to input an already built Markov matrix as a
 CSV file. So in such case, you can use that option to input the matrix
 again and start training. Please refer docs[1] for more details.

 [1]https://docs.wso2.com/pages/viewpage.action?pageId=56993859

 Best regards,
 Ashen


 On Tue, Oct 18, 2016 at 10:08 AM, Bhashinee Nirmali <
 bhashin...@gmail.com> wrote:

> Hi All,
>
> I'm trying the Markov Models Extension of WSO2 CEP. I need to know the
> location where the newly built matrices are stored in. And do I need to
> built the matrix again after shutting down the CEP or is the created 
> matrix
> still there in the memory?
>
> Thanks
>
> Undergraduate
> Faculty of Information Technology
> University of Moratuwa
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Ashen Weerathunga*
 Software Engineer
 WSO2 Inc.: http://wso2.com
 lean.enterprise.middleware

 Email: as...@wso2.com
 Mobile: tel:94716042995 <94716042995>
 LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
 *
 

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Tishan Dahanayakage
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> Mobile:+94 716481328
>>>
>>> Disclaimer: This communication may contain privileged or other
>>> confidential information and is intended exclusively for the addressee/s.
>>> If you are not the intended recipient/s, or believe that you may have
>>> received this communication in error, please reply to the sender indicating
>>> that fact and delete the copy you received and in addition, you should not
>>> print, copy, re-transmit, disseminate, or otherwise use the information
>>> contained in this communication. Internet communications cannot be
>>> guaranteed to be timely, secure, error or virus-free. The sender does not
>>> accept liability for any errors or omissions.
>>>
>>
>>
>>
>> --
>> *Ashen Weerathunga*
>> Software Engineer
>> WSO2 Inc.: http://wso2.com
>> lean.enterprise.middleware
>>
>> Email: as...@wso2.com
>> Mobile: tel:94716042995 <94716042995>
>> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
>> *
>> 
>>
>
>
>
> --
> Undergraduate
> Faculty of Information Technology
> University of Moratuwa
>



-- 
*Ashen Weerathunga*
Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

Email: as...@wso2.com
Mobile: tel:94716042995 <94716042995>
LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
*

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Siddhi] [Markov Models Extension] What is the stored location of trained Markov matrices?

2016-10-19 Thread Bhashinee Nirmali
Hi All,

Thank you for the information. I would like to study more about this. Can
you please point me to the source code of Markov model extension?

Thanks

On Tue, Oct 18, 2016 at 1:47 AM, Ashen Weerathunga  wrote:

> Hi Tishan,
>
> We don't have any non-serializable objects and we are currently using CEP
> persistence option to persist the state of Markov extension. But currently,
> we cannot export the Markov matrix separately as a csv. Therefore the
> Markov matrix generated by the extension cannot be used externally IMO.
>
> Thanks,
> Ashen
>
> On Tue, Oct 18, 2016 at 12:45 PM, Tishan Dahanayakage 
> wrote:
>
>> Ashen,
>>
>> Can't we use CEP persistence option to persist the state of Markov
>> extension to file system and re-use? Do we have any non-serializable
>> objects?
>>
>> /Tishan
>>
>> On Tue, Oct 18, 2016 at 12:28 PM, Ashen Weerathunga 
>> wrote:
>>
>>> Hi Bhashinee,
>>>
>>> In the current implementation, we are storing the Markov matrix using a
>>> hashmap. Therefore if you shut down the server it won't be persisted. But
>>> we have provided a facility to input an already built Markov matrix as a
>>> CSV file. So in such case, you can use that option to input the matrix
>>> again and start training. Please refer docs[1] for more details.
>>>
>>> [1]https://docs.wso2.com/pages/viewpage.action?pageId=56993859
>>>
>>> Best regards,
>>> Ashen
>>>
>>>
>>> On Tue, Oct 18, 2016 at 10:08 AM, Bhashinee Nirmali <
>>> bhashin...@gmail.com> wrote:
>>>
 Hi All,

 I'm trying the Markov Models Extension of WSO2 CEP. I need to know the
 location where the newly built matrices are stored in. And do I need to
 built the matrix again after shutting down the CEP or is the created matrix
 still there in the memory?

 Thanks

 Undergraduate
 Faculty of Information Technology
 University of Moratuwa

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> *Ashen Weerathunga*
>>> Software Engineer
>>> WSO2 Inc.: http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> Email: as...@wso2.com
>>> Mobile: tel:94716042995 <94716042995>
>>> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
>>> *
>>> 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Tishan Dahanayakage
>> Senior Software Engineer
>> WSO2, Inc.
>> Mobile:+94 716481328
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, re-transmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>
>
>
> --
> *Ashen Weerathunga*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> Email: as...@wso2.com
> Mobile: tel:94716042995 <94716042995>
> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
> *
> 
>



-- 
Undergraduate
Faculty of Information Technology
University of Moratuwa
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 EMM Support

2016-10-19 Thread Praveen J
Hi Sir/Madam, Good day, I'm using WSO2 EMM 2.1.0 and I need to customise the source code So I need your support and i have some doubts and clarification which i have listed out below. Regarding to setup project-emm, Actually I already setup the project in IntelliJ IDE but i don't know how to run the product and debug so please guide me via steps how to setup the project and work with source code and finally built the product using Maven. Then I need clarification regarding how to install and uninstall app silent using Application management? And we got some search result in stack overflow about that but they discussed about old version and i have mentioned the link below for your reference. So please give some suggestion how to achieve this. http://stackoverflow.com/questions/26008471/application-management-in-wso2-emm And finally data containerisation in Android lollipop using Android for work. And I have followed the below link instructions. https://docs.wso2.com/display/EMM210/Data+Containerization+for+Android+Device#DataContainerizationforAndroidDevice-ApplyingAndroiddeviceoperations In device registration section I'm stuck with 5th step after uninstall the app what i do further? So please guide me. Awaiting for your response. And let me know if any comments. -- Thanks & Regards,Praveen JApplication Developer,Next Techno Enterprises India Pvt. Ltd, Module No: 308/1,Third Floor, ELCOT IT/ITES-SEZ, TIDEL PARKVilankurichi Village, Coimbatore-641 014, TAMIL NADU, INDIAMobile : +91-9940048873 praveen.josephmasilam...@nexttechnosolutions.co.in | www.nexttechnosolutions.com ___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] File not found(claim-store.yml) exception with carbon-security when starting wso2uuf pack

2016-10-19 Thread Akalanka Pagoda Arachchi
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 
wrote:

>
>
> On Wed, Oct 19, 2016 at 12:37 PM, Irham Iqbal  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/sec
>> urity/claim-store.yml.
>>
>> [1] [2016-10-19 11:59:19,909]  INFO {org.wso2.carbon.transport.htt
>> p.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.(FileBasedMetaClaimStore.java:46)
>>
>> at org.wso2.carbon.security.caas.internal.CarbonSecurityCompone
>> nt.onAllRequiredCapabilitiesAvailable(CarbonSecurityComponent.java:330)
>>
>> at org.wso2.carbon.kernel.internal.startupresolver.StartupCompo
>> nentManager.lambda$notifySatisfiableComponents$27(
>> StartupComponentManager.java:237)
>>
>> at java.util.ArrayList.forEach(ArrayList.java:1249)
>>
>> at org.wso2.carbon.kernel.internal.startupresolver.StartupCompo
>> nentManager.notifySatisfiableComponents(StartupComponentManager.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
>> 
>>
>>
>


-- 
*Darshana Akalanka Pagoda Arachchi,*
*Senior Software Engineer, WSO2*
*+94777118016*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] File not found(claim-store.yml) exception with carbon-security when starting wso2uuf pack

2016-10-19 Thread Farasath Ahamed
Adding Rasika, SajithAR

Farasath Ahamed
Software Engineer, WSO2 Inc.; http://wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 




On Wed, Oct 19, 2016 at 12:41 PM, Harsha Thirimanna 
wrote:

>
>
> On Wed, Oct 19, 2016 at 12:37 PM, Irham Iqbal  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/sec
>> urity/claim-store.yml.
>>
>> [1] [2016-10-19 11:59:19,909]  INFO {org.wso2.carbon.transport.htt
>> p.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.(FileBasedMetaClaimStore.java:46)
>>
>> at org.wso2.carbon.security.caas.internal.CarbonSecurityCompone
>> nt.onAllRequiredCapabilitiesAvailable(CarbonSecurityComponent.java:330)
>>
>> at org.wso2.carbon.kernel.internal.startupresolver.StartupCompo
>> nentManager.lambda$notifySatisfiableComponents$27(
>> StartupComponentManager.java:237)
>>
>> at java.util.ArrayList.forEach(ArrayList.java:1249)
>>
>> at org.wso2.carbon.kernel.internal.startupresolver.StartupCompo
>> nentManager.notifySatisfiableComponents(StartupComponentManager.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
>> 
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Nexus] Drop unwanted proxy repositories from WSO2 Nexus

2016-10-19 Thread KasunG Gajasinghe
Hi,

The WSO2 Nexus maven repository has run out of space, so we need to remove
any cruft that does not need to be there. While having a quick look, it
seems we proxy who bunch of external repositories within our nexus. This
just puts unnecessary burden on it.

Initially, following repo [1] which is proxied through [2] seems to be a
big one. If we can get rid of it, we could save some valuable space.

*If you have any objections, please holler ASAP. *Otherwise, we are
thinking to take the repo [2] down. We have to do this soon, probably in
the coming weekend. (All the artifacts you need will still be available via
[1])

[1] http://repository.apache.org/snapshots/
[2] https://maven.wso2.org/nexus/content/repositories/apache-snapshots/

Regards,
KasunG

-- 

*Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
phone: +1 650-745-4499, 77 678 0813
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] File not found(claim-store.yml) exception with carbon-security when starting wso2uuf pack

2016-10-19 Thread Harsha Thirimanna
On Wed, Oct 19, 2016 at 12:37 PM, Irham Iqbal  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.
> FileBasedMetaClaimStore.(FileBasedMetaClaimStore.java:46)
>
> at org.wso2.carbon.security.caas.internal.CarbonSecurityComponent.
> onAllRequiredCapabilitiesAvailable(CarbonSecurityComponent.java:330)
>
> at org.wso2.carbon.kernel.internal.startupresolver.
> StartupComponentManager.lambda$notifySatisfiableComponents$
> 27(StartupComponentManager.java:237)
>
> at java.util.ArrayList.forEach(ArrayList.java:1249)
>
> at org.wso2.carbon.kernel.internal.startupresolver.
> StartupComponentManager.notifySatisfiableComponents(
> StartupComponentManager.java:225)
>
> at org.wso2.carbon.kernel.internal.startupresolver.
> StartupOrderResolver$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/
> CarbonSecurityComponent.java
>
> [4] https://github.com/wso2/carbon-security
> Thanks,
> Iqbal
>
> --
> Irham Iqbal
> Software Engineer
> WSO2
> phone: +94 777888452
> 
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] File not found(claim-store.yml) exception with carbon-security when starting wso2uuf pack

2016-10-19 Thread Irham Iqbal
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.FileBasedMetaClaimStore.(FileBasedMetaClaimStore.java:46)

at
org.wso2.carbon.security.caas.internal.CarbonSecurityComponent.onAllRequiredCapabilitiesAvailable(CarbonSecurityComponent.java:330)

at
org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.lambda$notifySatisfiableComponents$27(StartupComponentManager.java:237)

at java.util.ArrayList.forEach(ArrayList.java:1249)

at
org.wso2.carbon.kernel.internal.startupresolver.StartupComponentManager.notifySatisfiableComponents(StartupComponentManager.java:225)

at
org.wso2.carbon.kernel.internal.startupresolver.StartupOrderResolver$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/CarbonSecurityComponent.java

[4] https://github.com/wso2/carbon-security
Thanks,
Iqbal

-- 
Irham Iqbal
Software Engineer
WSO2
phone: +94 777888452

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev