[Dev] [DEV][APIM][C5] - Caching requirement for OAuth2 protected microservices

2017-02-15 Thread Rajith Roshan
Hi all,

In C5 API Manager  back end REST APIs (micro services) are protected using
oauth2 token. Every time request comes to micro services, interceptor will
validate the access token sent in the authorization header of the request.
In order to validate the token we need to do a introspection call to the
key manager.  We can not do this introspection call to the key manager for
each and every request. We need a caching layer at the interceptor level in
order to cache the access tokens.

We are going to use local cache with small cache timeout periods for this.
What are the best caching systems we can use for this.
We can use either JCache (javax.cache), google guava cache[1] which are
specially used as local caches. "Memcached" [2] is also another option but
mostly used in distributed systems.

[1] - https://github.com/google/guava/wiki/CachesExplained
[2] - https://memcached.org/
-- 
Rajith Roshan
Software Engineer, WSO2 Inc.
Mobile: +94-72-642-8350 <%2B94-71-554-8430>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the PR

2017-02-15 Thread Sagara Gunathunga
Can you please review and apply this PR in order to proceed with other
Carbon repos ?

Thanks !

On Wed, Feb 15, 2017 at 11:58 AM, Ashen Weerathunga  wrote:

> Hi all,
>
> Can you please review and merge the PR [1]. This is regarding the kernel
> update requested in this mail thread [2].
>
> [1] https://github.com/wso2/carbon-jndi/pull/33
> [2] [IS-6.0] Updating carbon-kernel version to 5.2.0-m3
>
> Thanks,
> Ashen
> --
> *Ashen Weerathunga*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> Email: as...@wso2.com
> Mobile: +94716042995 <94716042995>
> LinkedIn: *http://lk.linkedin.com/in/ashenweerathunga
> *
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sagara Gunathunga

Associate Director / Architect; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Identity Server 5.3.0 as a Key Manager with API Manager 2.1.0

2017-02-15 Thread Darshana Gunawardana
Thanks Chamalee for the information..!!

On Wed, Feb 15, 2017 at 8:37 PM, Chamalee De Silva 
wrote:

> hi Gottfried,
>
>
> The new documentation are ready and please refer [1] or [2] according to
> your requirement.
>
> @Darshana,
> Yes, It is available at [3].
>
>
>
> [1] https://docs.wso2.com/display/AM210/Configuring+WSO2+
> Identity+Server+as+a+Key+Manager
> [2] https://docs.wso2.com/display/AM210/Configuring+the+Pre-
> Packaged+Identity+Server+with+API+Manager
> [3]  http://product-dist.wso2.com/downloads/api-manager/2.1.
> 0/identity-server/wso2is-5.3.0.zip
>
>
>
> hi Go
>
> On Wed, Feb 15, 2017 at 6:20 PM, Darshana Gunawardana 
> wrote:
>
>>
>>
>> On Tue, Feb 14, 2017 at 11:00 PM, Chamalee De Silva 
>> wrote:
>>
>>> Hi,
>>>
>>> Now it is possible to use IS as KM with API Manager 2.1.0.
>>> The P2 repo [1] is updated with the Key Manager features and by
>>> installing Key Manager version 6.1.66 in WSO2 IS 5.3.0 you will be able to
>>> use IS as Key Manager for API Manager 2.1.0.
>>> The configuration steps are almost same as in the documentation [2].
>>>
>>> We are in the process of updating the documentation for Configuring WSO2
>>> IS 5.3.0 as Key Manager for WSO2 API Manager 2.1.0 and the new
>>> documentation will be available soon.
>>>
>>
>> Thanks Chamalee for the response. Will there be a pre configured IS as
>> Key Manager for IS 5.3.0 + APIM 2.1.0 for download?
>>
>> Regards,
>>
>>>
>>> We will update this thread when the documentation is available.
>>>
>>>
>>> [1] http://product-dist.wso2.com/p2/carbon/releases/wilkes/
>>> [2] https://docs.wso2.com/display/CLUSTER44x/Configuring+the
>>> +Identity+Server+5.2.0+as+a+Key+Manager+with+API+Manager+2.0.0
>>>
>>>
>>> Thanks,
>>> Chamalee
>>>
>>> On Tue, Feb 14, 2017 at 9:18 PM, Darshana Gunawardana >> > wrote:
>>>
 Hi Chamalee,

 Do you know the timelines of this?

 Thanks,

 On Tue, Feb 14, 2017 at 7:13 PM, Gottfried Szing 
 wrote:

> Hi
>
> Is there a timeline when it is possible to use Identity Server 5.3.0
> as a Key Manager with API Manager 2.1.0?
>
> Following the documentation for IS 5.2.0/AM 2.0.0 at
> https://docs.wso2.com/x/CKJlAw for the above setup always fails, no
> matter which version (5.0.3, 6.0.4, 6.1.66) of the keymanager is chosen.
> And a newer documenation is not available.
>
> Br,
>   Gottfried
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



 --
 Regards,


 *Darshana Gunawardana*Associate Technical Lead
 WSO2 Inc.; http://wso2.com

 *E-mail: darsh...@wso2.com *
 *Mobile: +94718566859 <+94%2071%20856%206859>*Lean . Enterprise .
 Middleware

>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>>
>>> *Chamalee De Silva*
>>> Software Engineer
>>> *WS**O2* Inc. :http://wso2.com/
>>>
>>> Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
>>> mobile  :- *+94 7 <%2B94%2077%202782039>1 4315942*
>>>
>>>
>>
>>
>> --
>> Regards,
>>
>>
>> *Darshana Gunawardana*Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>>
>> *E-mail: darsh...@wso2.com *
>> *Mobile: +94718566859 <+94%2071%20856%206859>*Lean . Enterprise .
>> Middleware
>>
>
>
>
> --
> Thanks & Regards,
>
> *Chamalee De Silva*
> Software Engineer
> *WS**O2* Inc. :http://wso2.com/
>
> Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
> mobile  :- *+94 7 <%2B94%2077%202782039>1 4315942*
>
>


-- 
Regards,


*Darshana Gunawardana*Associate Technical Lead
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: [Code Review] [IAM]Username Recovery feature for IS 6.0 M3 :by - din...@wso2.com

2017-02-15 Thread Dinali Dabarera
Review Notes on username recovery feature.
-- Forwarded message --
From: Review Notes 
Date: Thu, Feb 16, 2017 at 8:47 AM
Subject: [Code Review] [IAM]Username Recovery feature for IS 6.0 M3 :by -
din...@wso2.com
To: din...@wso2.com, omi...@wso2.com, is...@wso2.com, jayan...@wso2.com,
engineer...@wso2.org, aye...@wso2.com, ruw...@wso2.com
Cc: din...@wso2.com


Project

IS 6.0.0
Type

Code Review
Code Contributor

din...@wso2.com
Review Participants

omi...@wso2.com, is...@wso2.com, jayan...@wso2.com
Component/Feature/Patch

Username Recovery feature for IS 6.0 M3
Review Notes

Implementation of NotificationBasedUsernameRecoveryManager class.
Implementation of architectural level logic of finding users that matches
given set of claims in a single domain or across domains.
Sonar/Findbugs code review status

Fix All
Reviewed Date

Tue Feb 14 2017 00:00:00 GMT+0530 (IST)
References (eg. PRs, Docs)

https://github.com/wso2/carbon-identity-mgt/pull/127



-- 
*Dinali Rosemin Dabarera*
Software Engineer
WSO2 Lanka (pvt) Ltd.
Web: http://wso2.com/
Email : gdrdabar...@gmail.com
LinkedIn 
Mobile: +94770198933





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


[Dev] [Code Review] [IAM]Username Recovery in WSO2 IS 6.0 M3 :by - dev@wso2.org, waru...@wso2.com, omi...@wso2.com, is...@wso2.com

2017-02-15 Thread Review Notes

Project

IS 6.0.0


Type

Code Review


Code Contributor

din...@wso2.com


Review Participants

omi...@wso2.com, is...@wso2.com


Component/Feature/Patch

Username Recovery in WSO2 IS 6.0 M3


Review Notes

Implementation of getting user list by multiple claims in the connector  
level.



Sonar/Findbugs code review status

Fix All


Reviewed Date

Wed Feb 15 2017 00:00:00 GMT+0530 (IST)


References (eg. PRs, Docs)

https://github.com/wso2-extensions/carbon-security-user-store-jdbc/pull/92

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


Re: [Dev] Identity Server 5.3.0 as a Key Manager with API Manager 2.1.0

2017-02-15 Thread Chamalee De Silva
hi Gottfried,


The new documentation are ready and please refer [1] or [2] according to
your requirement.

@Darshana,
Yes, It is available at [3].



[1] https://docs.wso2.com/display/AM210/Configuring+
WSO2+Identity+Server+as+a+Key+Manager
[2] https://docs.wso2.com/display/AM210/Configuring+the+
Pre-Packaged+Identity+Server+with+API+Manager
[3]  http://product-dist.wso2.com/downloads/api-manager/2.1.0/
identity-server/wso2is-5.3.0.zip



hi Go

On Wed, Feb 15, 2017 at 6:20 PM, Darshana Gunawardana 
wrote:

>
>
> On Tue, Feb 14, 2017 at 11:00 PM, Chamalee De Silva 
> wrote:
>
>> Hi,
>>
>> Now it is possible to use IS as KM with API Manager 2.1.0.
>> The P2 repo [1] is updated with the Key Manager features and by
>> installing Key Manager version 6.1.66 in WSO2 IS 5.3.0 you will be able to
>> use IS as Key Manager for API Manager 2.1.0.
>> The configuration steps are almost same as in the documentation [2].
>>
>> We are in the process of updating the documentation for Configuring WSO2
>> IS 5.3.0 as Key Manager for WSO2 API Manager 2.1.0 and the new
>> documentation will be available soon.
>>
>
> Thanks Chamalee for the response. Will there be a pre configured IS as Key
> Manager for IS 5.3.0 + APIM 2.1.0 for download?
>
> Regards,
>
>>
>> We will update this thread when the documentation is available.
>>
>>
>> [1] http://product-dist.wso2.com/p2/carbon/releases/wilkes/
>> [2] https://docs.wso2.com/display/CLUSTER44x/Configuring+the
>> +Identity+Server+5.2.0+as+a+Key+Manager+with+API+Manager+2.0.0
>>
>>
>> Thanks,
>> Chamalee
>>
>> On Tue, Feb 14, 2017 at 9:18 PM, Darshana Gunawardana 
>> wrote:
>>
>>> Hi Chamalee,
>>>
>>> Do you know the timelines of this?
>>>
>>> Thanks,
>>>
>>> On Tue, Feb 14, 2017 at 7:13 PM, Gottfried Szing 
>>> wrote:
>>>
 Hi

 Is there a timeline when it is possible to use Identity Server 5.3.0 as
 a Key Manager with API Manager 2.1.0?

 Following the documentation for IS 5.2.0/AM 2.0.0 at
 https://docs.wso2.com/x/CKJlAw for the above setup always fails, no
 matter which version (5.0.3, 6.0.4, 6.1.66) of the keymanager is chosen.
 And a newer documenation is not available.

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

>>>
>>>
>>>
>>> --
>>> Regards,
>>>
>>>
>>> *Darshana Gunawardana*Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>>
>>> *E-mail: darsh...@wso2.com *
>>> *Mobile: +94718566859 <+94%2071%20856%206859>*Lean . Enterprise .
>>> Middleware
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Chamalee De Silva*
>> Software Engineer
>> *WS**O2* Inc. :http://wso2.com/
>>
>> Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
>> mobile  :- *+94 7 <%2B94%2077%202782039>1 4315942*
>>
>>
>
>
> --
> Regards,
>
>
> *Darshana Gunawardana*Associate Technical Lead
> WSO2 Inc.; http://wso2.com
>
> *E-mail: darsh...@wso2.com *
> *Mobile: +94718566859 <+94%2071%20856%206859>*Lean . Enterprise .
> Middleware
>



-- 
Thanks & Regards,

*Chamalee De Silva*
Software Engineer
*WS**O2* Inc. :http://wso2.com/

Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
mobile  :- *+94 7 <%2B94%2077%202782039>1 4315942*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Surefire plugin failure with OSGI test

2017-02-15 Thread Lahiru Manohara
Hi,

This issue has happened because of the connection refused in pax exam.

Best Regards,

On Wed, Feb 15, 2017 at 4:48 PM, Lahiru Manohara  wrote:

> Hi Lakshman,
>
> Please find the full stack trace.
>
> [INFO] Scanning for projects...
> [INFO]
>
> [INFO] 
> 
> [INFO] Building WSO2 Carbon Datasources - OSGi Tests 1.1.1-SNAPSHOT
> [INFO] 
> 
> [INFO]
> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
> carbon-datasources-osgi-tests ---
> [INFO] Deleting /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests/target
> [INFO]
> [INFO] --- maven-checkstyle-plugin:2.17:check (validate) @
> carbon-datasources-osgi-tests ---
> [INFO] Starting audit...
> Audit done.
> [INFO]
> [INFO] --- buildnumber-maven-plugin:1.4:create (default) @
> carbon-datasources-osgi-tests ---
> [INFO] Executing: /bin/sh -c cd '/home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests' && 'git' 'rev-parse' '--verify'
> 'HEAD'
> [INFO] Working directory: /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests
> [INFO] Storing buildNumber: 0935d02732e42287fcda994da5bfe0bf1e80664f at
> timestamp: 1487157110916
> [INFO] Storing buildScmBranch: kernel-update
> [INFO]
> [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:prepare-agent
> (prepare-agent) @ carbon-datasources-osgi-tests ---
> [INFO] argLine set to -javaagent:/home/lahiru/.m2/
> repository/org/jacoco/org.jacoco.agent/0.7.5.
> 201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.
> jar=destfile=/home/wso2/repo/carbon-repos/carbon-
> datasources/tests/osgi-tests/target/jacoco.exec,includes=org.wso2.carbon*
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
> carbon-datasources-osgi-tests ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.7:copy-resources (copy-resources) @
> carbon-datasources-osgi-tests ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests/src/test/resources/carbon-home
> [INFO]
> [INFO] --- maven-paxexam-plugin:1.2.4:generate-depends-file
> (generate-config) @ carbon-datasources-osgi-tests ---
> [INFO] Created: /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests/target/classes/META-INF/
> maven/dependencies.properties
> [INFO]
> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
> carbon-datasources-osgi-tests ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests/src/main/resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
> carbon-datasources-osgi-tests ---
> [INFO] No sources to compile
> [INFO]
> [INFO] >>> findbugs-maven-plugin:3.0.3:check (analyze-compile) @
> carbon-datasources-osgi-tests >>>
> [INFO]
> [INFO] --- findbugs-maven-plugin:3.0.3:findbugs (findbugs) @
> carbon-datasources-osgi-tests ---
> [INFO]
> [INFO] <<< findbugs-maven-plugin:3.0.3:check (analyze-compile) @
> carbon-datasources-osgi-tests <<<
> [INFO]
> [INFO] --- findbugs-maven-plugin:3.0.3:check (analyze-compile) @
> carbon-datasources-osgi-tests ---
> [INFO]
> [INFO] --- maven-dependency-plugin:2.10:unpack (unpack-distribution) @
> carbon-datasources-osgi-tests ---
> [INFO] Configured Artifact: org.wso2.carbon.datasources:
> wso2carbon-datasource-test:?:zip
> [INFO] Unpacking /home/lahiru/.m2/repository/org/wso2/carbon/datasources/
> wso2carbon-datasource-test/1.1.1-SNAPSHOT/wso2carbon-
> datasource-test-1.1.1-SNAPSHOT.zip to /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests/target with includes "" and excludes
> ""
> [INFO]
> [INFO] --- maven-dependency-plugin:2.10:copy-dependencies
> (copy-jacoco-dependencies) @ carbon-datasources-osgi-tests ---
> [INFO]
> [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:instrument
> (default-instrument) @ carbon-datasources-osgi-tests ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.7:testResources
> (default-testResources) @ carbon-datasources-osgi-tests ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 6 resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile)
> @ carbon-datasources-osgi-tests ---
> [INFO] Changes detected - recompiling the module!
> [WARNING] File encoding has not been set, using platform encoding UTF-8,
> i.e. build is platform dependent!
> [INFO] Compiling 4 source files to /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests/target/test-classes
> [INFO] 

Re: [Dev] Identity Server 5.3.0 as a Key Manager with API Manager 2.1.0

2017-02-15 Thread Darshana Gunawardana
On Tue, Feb 14, 2017 at 11:00 PM, Chamalee De Silva 
wrote:

> Hi,
>
> Now it is possible to use IS as KM with API Manager 2.1.0.
> The P2 repo [1] is updated with the Key Manager features and by installing
> Key Manager version 6.1.66 in WSO2 IS 5.3.0 you will be able to use IS as
> Key Manager for API Manager 2.1.0.
> The configuration steps are almost same as in the documentation [2].
>
> We are in the process of updating the documentation for Configuring WSO2
> IS 5.3.0 as Key Manager for WSO2 API Manager 2.1.0 and the new
> documentation will be available soon.
>

Thanks Chamalee for the response. Will there be a pre configured IS as Key
Manager for IS 5.3.0 + APIM 2.1.0 for download?

Regards,

>
> We will update this thread when the documentation is available.
>
>
> [1] http://product-dist.wso2.com/p2/carbon/releases/wilkes/
> [2] https://docs.wso2.com/display/CLUSTER44x/Configuring+
> the+Identity+Server+5.2.0+as+a+Key+Manager+with+API+Manager+2.0.0
>
>
> Thanks,
> Chamalee
>
> On Tue, Feb 14, 2017 at 9:18 PM, Darshana Gunawardana 
> wrote:
>
>> Hi Chamalee,
>>
>> Do you know the timelines of this?
>>
>> Thanks,
>>
>> On Tue, Feb 14, 2017 at 7:13 PM, Gottfried Szing 
>> wrote:
>>
>>> Hi
>>>
>>> Is there a timeline when it is possible to use Identity Server 5.3.0 as
>>> a Key Manager with API Manager 2.1.0?
>>>
>>> Following the documentation for IS 5.2.0/AM 2.0.0 at
>>> https://docs.wso2.com/x/CKJlAw for the above setup always fails, no
>>> matter which version (5.0.3, 6.0.4, 6.1.66) of the keymanager is chosen.
>>> And a newer documenation is not available.
>>>
>>> Br,
>>>   Gottfried
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>>
>> --
>> Regards,
>>
>>
>> *Darshana Gunawardana*Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>>
>> *E-mail: darsh...@wso2.com *
>> *Mobile: +94718566859 <+94%2071%20856%206859>*Lean . Enterprise .
>> Middleware
>>
>
>
>
> --
> Thanks & Regards,
>
> *Chamalee De Silva*
> Software Engineer
> *WS**O2* Inc. :http://wso2.com/
>
> Office   :- *+94 11 2145345 <%2B94%2011%202145345>*
> mobile  :- *+94 7 <%2B94%2077%202782039>1 4315942*
>
>


-- 
Regards,


*Darshana Gunawardana*Associate Technical Lead
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Surefire plugin failure with OSGI test

2017-02-15 Thread Lahiru Manohara
Hi Lakshman,

Please find the full stack trace.

[INFO] Scanning for projects...
[INFO]

[INFO]

[INFO] Building WSO2 Carbon Datasources - OSGi Tests 1.1.1-SNAPSHOT
[INFO]

[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
carbon-datasources-osgi-tests ---
[INFO] Deleting
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @
carbon-datasources-osgi-tests ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @
carbon-datasources-osgi-tests ---
[INFO] Executing: /bin/sh -c cd
'/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests' && 'git'
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory:
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests
[INFO] Storing buildNumber: 0935d02732e42287fcda994da5bfe0bf1e80664f at
timestamp: 1487157110916
[INFO] Storing buildScmBranch: kernel-update
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.5.201505241946:prepare-agent
(prepare-agent) @ carbon-datasources-osgi-tests ---
[INFO] argLine set to
-javaagent:/home/lahiru/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target/jacoco.exec,includes=org.wso2.carbon*
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @
carbon-datasources-osgi-tests ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (copy-resources) @
carbon-datasources-osgi-tests ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/src/test/resources/carbon-home
[INFO]
[INFO] --- maven-paxexam-plugin:1.2.4:generate-depends-file
(generate-config) @ carbon-datasources-osgi-tests ---
[INFO] Created:
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target/classes/META-INF/maven/dependencies.properties
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
carbon-datasources-osgi-tests ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/src/main/resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
carbon-datasources-osgi-tests ---
[INFO] No sources to compile
[INFO]
[INFO] >>> findbugs-maven-plugin:3.0.3:check (analyze-compile) @
carbon-datasources-osgi-tests >>>
[INFO]
[INFO] --- findbugs-maven-plugin:3.0.3:findbugs (findbugs) @
carbon-datasources-osgi-tests ---
[INFO]
[INFO] <<< findbugs-maven-plugin:3.0.3:check (analyze-compile) @
carbon-datasources-osgi-tests <<<
[INFO]
[INFO] --- findbugs-maven-plugin:3.0.3:check (analyze-compile) @
carbon-datasources-osgi-tests ---
[INFO]
[INFO] --- maven-dependency-plugin:2.10:unpack (unpack-distribution) @
carbon-datasources-osgi-tests ---
[INFO] Configured Artifact:
org.wso2.carbon.datasources:wso2carbon-datasource-test:?:zip
[INFO] Unpacking
/home/lahiru/.m2/repository/org/wso2/carbon/datasources/wso2carbon-datasource-test/1.1.1-SNAPSHOT/wso2carbon-datasource-test-1.1.1-SNAPSHOT.zip
to /home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target
with includes "" and excludes ""
[INFO]
[INFO] --- maven-dependency-plugin:2.10:copy-dependencies
(copy-jacoco-dependencies) @ carbon-datasources-osgi-tests ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.5.201505241946:instrument
(default-instrument) @ carbon-datasources-osgi-tests ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources)
@ carbon-datasources-osgi-tests ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 6 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @
carbon-datasources-osgi-tests ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8,
i.e. build is platform dependent!
[INFO] Compiling 4 source files to
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target/test-classes
[INFO]
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/src/test/java/org/wso2/carbon/datasource/osgi/jndi/context/CustomContext.java:
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/src/test/java/org/wso2/carbon/datasource/osgi/jndi/context/CustomContext.java
uses unchecked or unsafe operations.
[INFO]

[Dev] What is the proper configurations for caching in WSO2IS 5.2.0/5.3.0 versions.

2017-02-15 Thread Asela Pathberiya
Hi Devs,

Default configurations of the WSO2IS 5.2.0/5.3.0 have been defined to
switch off the framework level caching.

Once you disable the caching;  when single user is authenticated
with WSO2IS using SSO,  there are around 12 INSERT queries in to database.

It is important to know the exact recommendation for WSO2IS 5.2.0/5.3.0 as
we can not found them in docs [1].

Can someone please update docs with proper recommendation ?

[1]
https://docs.wso2.com/display/IS530/Deployment+Guidelines+in+Production
https://docs.wso2.com/display/IS530/Performance+Tuning+Recommendations
https://docs.wso2.com/display/IS530/Enabling+Authentication+
Session+Persistence


-- 
Thanks & Regards,
Asela

ATL
Mobile : +94 777 625 933
 +358 449 228 979

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


Re: [Dev] Surefire plugin failure with OSGI test

2017-02-15 Thread Lakshman Udayakantha
Hi Lahiru,

Could you share the full stack trace? There may be a better reason in
upside of the log.

Thanks,
Lakshman

On Wed, Feb 15, 2017 at 3:49 PM, Lahiru Manohara  wrote:

> Hi,
>
> I am getting following error while trying to build the
> carbon-datasource with test after migrating to the pax exam changes [1].
>
> [ERROR] Failed to execute goal org.apache.maven.plugins:
> maven-surefire-plugin:2.19.1:test (default-test) on project
> carbon-datasources-osgi-tests: Execution default-test of goal
> org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The
> forked VM terminated without properly saying goodbye. VM crash or
> System.exit called?
> [ERROR] Command was /bin/sh -c cd /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests && /usr/lib/jvm/java-8-oracle/jre/bin/java
> '-javaagent:/home/lahiru/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.
> 201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.
> jar=destfile=/home/wso2/repo/carbon-repos/carbon-
> datasources/tests/osgi-tests/target/jacoco.exec,includes=org.wso2.carbon*'
> -jar /home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-
> tests/target/surefire/surefirebooter8086323750252961380.jar
> /home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-
> tests/target/surefire/surefire1231055676969041745tmp
> /home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-
> tests/target/surefire/surefire_03949232142509674497tmp
>
> [1]. https://github.com/wso2/carbon-kernel/tree/master/tests/osgi-tests
>
> Best Regards,
> --
> *Lahiru Manohara*
> *Software Engineer*
> Mobile: +94716561576
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>
> ___
> 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


[Dev] Surefire plugin failure with OSGI test

2017-02-15 Thread Lahiru Manohara
Hi,

I am getting following error while trying to build the
carbon-datasource with test after migrating to the pax exam changes [1].

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test)
on project carbon-datasources-osgi-tests: Execution default-test of goal
org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The
forked VM terminated without properly saying goodbye. VM crash or
System.exit called?
[ERROR] Command was /bin/sh -c cd
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests &&
/usr/lib/jvm/java-8-oracle/jre/bin/java
'-javaagent:/home/lahiru/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target/jacoco.exec,includes=org.wso2.carbon*'
-jar
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target/surefire/surefirebooter8086323750252961380.jar
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target/surefire/surefire1231055676969041745tmp
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target/surefire/surefire_03949232142509674497tmp

[1]. https://github.com/wso2/carbon-kernel/tree/master/tests/osgi-tests

Best Regards,
-- 
*Lahiru Manohara*
*Software Engineer*
Mobile: +94716561576
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev