Re: [Dev] [AM 2.0] Hostname verification issue when calling key validation service

2016-09-06 Thread Supun Malinga
Also, in gateway axis2.xml transport Sender, hostname verifier is
configured..

AllowAll


On Tue, Sep 6, 2016 at 11:57 AM, Supun Malinga <sup...@wso2.com> wrote:

> Hi,
>
> When gateway is validating token with keymanager, getting the following
> error at gateway worker log,
>
> [2016-09-06 06:09:22,013]  INFO - HTTPSender Unable to sendViaPost to url[
> https://keymanager:9443/services/APIKeyValidationService]
> javax.net.ssl.SSLException: hostname in certificate didn't match:
>  != 
> 
>
> Looks like keymanager is rejecting the requests.
> How do I allow all hostnames here?.
>
> In keymanager wso2server.sh I see following enabled already,
>
> -Dorg.opensaml.httpclient.https.disableHostnameVerification=true \
> -Dorg.wso2.ignoreHostnameVerification=true \
>
> thanks,
> --
> Supun Malinga
>



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


[Dev] [AM 2.0] Hostname verification issue when calling key validation service

2016-09-06 Thread Supun Malinga
Hi,

When gateway is validating token with keymanager, getting the following
error at gateway worker log,

[2016-09-06 06:09:22,013]  INFO - HTTPSender Unable to sendViaPost to url[
https://keymanager:9443/services/APIKeyValidationService]
javax.net.ssl.SSLException: hostname in certificate didn't match:
 != 


Looks like keymanager is rejecting the requests.
How do I allow all hostnames here?.

In keymanager wso2server.sh I see following enabled already,

-Dorg.opensaml.httpclient.https.disableHostnameVerification=true \
-Dorg.wso2.ignoreHostnameVerification=true \

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


Re: [Dev] Error in AM 2.0 gateway

2016-08-25 Thread Supun Malinga
On Thu, Aug 25, 2016 at 4:34 PM, Harsha Kumara <hars...@wso2.com> wrote:

> Hi Supun,
>
> Did you setup the cluster with old throttling implementation? If it's with
> new throttling implementation, please check your key manager
> configuration.  Basically gateway try to fetch initial block conditions
> details from the key manager.
>

I know. Found by debugging :). Replied in the SO as well..

>
> Thanks,
> Harsha
>
> On Thu, Aug 25, 2016 at 3:58 PM, Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>> Hi Supun,
>>
>> Same issue was reported here [1] as well, Can you try what Bhathiya has
>> responded or separate Key Manager from Store?
>>
>> [1] : http://stackoverflow.com/questions/39101064/error-on-api-
>> manager-2-0-0-gateway-worker-on-start-up
>>
>> On Mon, Aug 22, 2016 at 12:50 PM, Supun Malinga <sup...@wso2.com> wrote:
>>
>>> Diagram :
>>> ​
>>>  am-2.0-pattern-4.png
>>> <https://drive.google.com/a/wso2.com/file/d/0BysLicHQcgnsOXVBWHg3aEtzckE/view?usp=drive_web>
>>> ​
>>>
>>> On Mon, Aug 22, 2016 at 12:47 PM, Supun Malinga <sup...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Getting the following exception in gateway worker. Any idea what could
>>>> be causing this ?.
>>>> This is in a distributed cluster with store and KM in same node.
>>>> I can provide any configurations required..
>>>>
>>>> ​
>>>>  am-2.0-pattern-4
>>>> <https://docs.google.com/a/wso2.com/drawings/d/1PuKrNzKd9LMy6CPOGm1ZSxpRZ85peulBMi1CkIraMTM/edit?usp=drive_web>
>>>> ​
>>>>
>>>>
>>>> gateway-worker | [2016-08-16 09:35:09,422]  INFO - API Destroying
>>>> API: _WSO2AMTokenAPI_
>>>> gateway-worker | [2016-08-16 09:35:09,426]  INFO - API Initializing
>>>> API: _WSO2AMUserInfoAPI_
>>>> gateway-worker | [2016-08-16 09:35:09,426]  INFO -
>>>> DependencyTracker API : _WSO2AMUserInfoAPI_ was updated from the Synapse
>>>> configuration successfully
>>>> gateway-worker | [2016-08-16 09:35:09,426]  INFO - APIDeployer API:
>>>> _WSO2AMUserInfoAPI_ has been updated from the file:
>>>> /mnt/wso2am-2.0.0/repository/deployment/server/synapse-confi
>>>> gs/default/api/_UserInfoAPI_.xml
>>>> gateway-worker | [2016-08-16 09:35:11,427]  INFO - API Destroying
>>>> API: _WSO2AMUserInfoAPI_
>>>> gateway-worker | [2016-08-16 09:35:25,783] ERROR -
>>>> KeyTemplateRetriever Exception when retrieving throttling data from remote
>>>> endpoint
>>>> gateway-worker | Unexpected character (<) at position 0.
>>>> gateway-worker | at org.json.simple.parser.Yylex.yylex(Unknown
>>>> Source)
>>>> gateway-worker | at org.json.simple.parser.JSONParser.nextToken(Unknown
>>>> Source)
>>>> gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
>>>> Source)
>>>> gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
>>>> Source)
>>>> gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
>>>> Source)
>>>> gateway-worker | at org.wso2.carbon.apimgt.gateway
>>>> .throttling.util.KeyTemplateRetriever.retrieveKeyTemplateDat
>>>> a(KeyTemplateRetriever.java:100)
>>>> gateway-worker | at org.wso2.carbon.apimgt.gateway
>>>> .throttling.util.KeyTemplateRetriever.loadKeyTemplatesFromWe
>>>> bService(KeyTemplateRetriever.java:111)
>>>> gateway-worker | at org.wso2.carbon.apimgt.gateway
>>>> .throttling.util.KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
>>>> gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
>>>> gateway-worker | at java.util.TimerThread.run(Timer.java:505)
>>>> gateway-worker | Exception in thread "Timer-6"
>>>> java.lang.NullPointerException
>>>> gateway-worker | at java.util.Arrays$ArrayList.>>> it>(Arrays.java:2842)
>>>> gateway-worker | at java.util.Arrays.asList(Arrays.java:2828)
>>>> gateway-worker | at org.wso2.carbon.apimgt.gateway
>>>> .throttling.util.KeyTemplateRetriever.loadKeyTemplatesFromWe
>>>> bService(KeyTemplateRetriever.java:111)
>>>> gateway-worker | at org.wso2.carbon.apimgt.gateway
>>>> .throttling.util.KeyTemplateRetriever.run(KeyTemplateRetriever.ja

Re: [Dev] Error in AM 2.0 gateway

2016-08-25 Thread Supun Malinga
Hi,

Actually I resolved the issue. It was due to throttle data war not been
deployed at the time server try to retrieve data. Fix was done by delaying
server starting time + depsync improvements (deleting apps from workers to
reduce startup time and avoid redeployment when depsync kick in).

On Thu, Aug 25, 2016 at 4:34 PM, Harsha Kumara <hars...@wso2.com> wrote:

> Hi Supun,
>
> Did you setup the cluster with old throttling implementation? If it's with
> new throttling implementation, please check your key manager
> configuration.  Basically gateway try to fetch initial block conditions
> details from the key manager.
>
> Thanks,
> Harsha
>
> On Thu, Aug 25, 2016 at 3:58 PM, Abimaran Kugathasan <abima...@wso2.com>
> wrote:
>
>> Hi Supun,
>>
>> Same issue was reported here [1] as well, Can you try what Bhathiya has
>> responded or separate Key Manager from Store?
>>
>> [1] : http://stackoverflow.com/questions/39101064/error-on-api-
>> manager-2-0-0-gateway-worker-on-start-up
>>
>> On Mon, Aug 22, 2016 at 12:50 PM, Supun Malinga <sup...@wso2.com> wrote:
>>
>>> Diagram :
>>> ​
>>>  am-2.0-pattern-4.png
>>> <https://drive.google.com/a/wso2.com/file/d/0BysLicHQcgnsOXVBWHg3aEtzckE/view?usp=drive_web>
>>> ​
>>>
>>> On Mon, Aug 22, 2016 at 12:47 PM, Supun Malinga <sup...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Getting the following exception in gateway worker. Any idea what could
>>>> be causing this ?.
>>>> This is in a distributed cluster with store and KM in same node.
>>>> I can provide any configurations required..
>>>>
>>>> ​
>>>>  am-2.0-pattern-4
>>>> <https://docs.google.com/a/wso2.com/drawings/d/1PuKrNzKd9LMy6CPOGm1ZSxpRZ85peulBMi1CkIraMTM/edit?usp=drive_web>
>>>> ​
>>>>
>>>>
>>>> gateway-worker | [2016-08-16 09:35:09,422]  INFO - API Destroying
>>>> API: _WSO2AMTokenAPI_
>>>> gateway-worker | [2016-08-16 09:35:09,426]  INFO - API Initializing
>>>> API: _WSO2AMUserInfoAPI_
>>>> gateway-worker | [2016-08-16 09:35:09,426]  INFO -
>>>> DependencyTracker API : _WSO2AMUserInfoAPI_ was updated from the Synapse
>>>> configuration successfully
>>>> gateway-worker | [2016-08-16 09:35:09,426]  INFO - APIDeployer API:
>>>> _WSO2AMUserInfoAPI_ has been updated from the file:
>>>> /mnt/wso2am-2.0.0/repository/deployment/server/synapse-confi
>>>> gs/default/api/_UserInfoAPI_.xml
>>>> gateway-worker | [2016-08-16 09:35:11,427]  INFO - API Destroying
>>>> API: _WSO2AMUserInfoAPI_
>>>> gateway-worker | [2016-08-16 09:35:25,783] ERROR -
>>>> KeyTemplateRetriever Exception when retrieving throttling data from remote
>>>> endpoint
>>>> gateway-worker | Unexpected character (<) at position 0.
>>>> gateway-worker | at org.json.simple.parser.Yylex.yylex(Unknown
>>>> Source)
>>>> gateway-worker | at org.json.simple.parser.JSONParser.nextToken(Unknown
>>>> Source)
>>>> gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
>>>> Source)
>>>> gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
>>>> Source)
>>>> gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
>>>> Source)
>>>> gateway-worker | at org.wso2.carbon.apimgt.gateway
>>>> .throttling.util.KeyTemplateRetriever.retrieveKeyTemplateDat
>>>> a(KeyTemplateRetriever.java:100)
>>>> gateway-worker | at org.wso2.carbon.apimgt.gateway
>>>> .throttling.util.KeyTemplateRetriever.loadKeyTemplatesFromWe
>>>> bService(KeyTemplateRetriever.java:111)
>>>> gateway-worker | at org.wso2.carbon.apimgt.gateway
>>>> .throttling.util.KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
>>>> gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
>>>> gateway-worker | at java.util.TimerThread.run(Timer.java:505)
>>>> gateway-worker | Exception in thread "Timer-6"
>>>> java.lang.NullPointerException
>>>> gateway-worker | at java.util.Arrays$ArrayList.>>> it>(Arrays.java:2842)
>>>> gateway-worker | at java.util.Arrays.asList(Arrays.java:2828)
>>>> gateway-worker | at org.wso2.carbon.apimgt.gateway
>>>> .throttling.util.KeyTemplateRetriever.loadKeyTemplatesFro

Re: [Dev] [ESB] Error connecting to esb-analutics

2016-08-23 Thread Supun Malinga
Hi All,

Thanks for the help, got it fixed! Issue was that I only changed the config
in worker nodes and depsync had reset the changes... It's working fine now.


On Tue, Aug 23, 2016 at 7:45 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

>
>
> On Tue, Aug 23, 2016 at 7:32 PM, Supun Malinga <sup...@wso2.com> wrote:
>
>> Hi,
>>
>> I already configured MessageFlowConfigurationPublisher.xml and
>> MessageFlowStatisticsPublisher.xml files.
>> tcp://esb-analytics:7612
>>
>> This is the http port I believe. But the error saying it cannot connect
>> to the ssl port 7712 which is not in the configuration..
>>
>> analytics server runs on a different docker container.
>> http : tcp://esb-analytics:7612
>> https: tcp://esb-analytics:7712
>>
>
> @Supun, this is a Thrift communication which uses TCP underneath..
>
> By default thrift port is 7611 and corresponding ssl thrift port is 7711
> (7611+100), check the data-bridge-config.xml file which is in analytics
> server config directory . Since we are shipping analytics products in
> offset 1 then thrift port is 7612 and ssl port is 7712.. Here, ssl port
> (7712) is used for initial authentication purposes of data publisher
> afterwards it uses the thrift port (7612) for event publishing..
>
> Thanks,
> Mohan
>
>
>>
>>
>>
>> On Tue, Aug 23, 2016 at 7:28 PM, Chanaka Fernando <chana...@wso2.com>
>> wrote:
>>
>>> Hi Supun,
>>>
>>> Where did you configure the hostname for the analytics server node?
>>> Publisher configurations files are in the 
>>> ESB_HOME/repository/deployment/server/eventpublishers/
>>> directory. According to the error log, ESB is trying to connect to
>>> localhost:7712 port. Are you starting the analytics server on the same node?
>>>
>>> On Tue, Aug 23, 2016 at 7:11 PM, Supun Malinga <sup...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I configured a ESB cluster with analytics in docker. Followed the guide
>>>> [1] and updated the hostname/port in event publisher artifacts. But still
>>>> ESB gives and error when I try to anable statistics in a proxy service.
>>>>
>>>> Looks like some configuration is missing. However I searched in configs
>>>> and find any place to change the hostname to the analytics server
>>>> connection. Can someone point me to the correct config pls ?.
>>>>
>>>> esb_worker1  | [2016-08-23 11:58:51,041]  WARN - DataEndpointGroup
>>>> No receiver is reachable at reconnection, will try to reconnect every 30 
>>>> sec
>>>> esb_worker1  | [2016-08-23 11:58:51,044] ERROR -
>>>> DataEndpointConnectionWorker Error while trying to connect to
>>>> ssl://localhost:7712
>>>> esb_worker1  | org.wso2.carbon.databridge.age
>>>> nt.exception.DataEndpointSecurityException: Error while trying to
>>>> connect to ssl://localhost:7712
>>>> esb_worker1  | at org.wso2.carbon.databridge.age
>>>> nt.endpoint.thrift.ThriftSecureClientPoolFactory.createClien
>>>> t(ThriftSecureClientPoolFactory.java:61)
>>>> esb_worker1  | at org.wso2.carbon.databridge.age
>>>> nt.client.AbstractClientPoolFactory.makeObject(AbstractClien
>>>> tPoolFactory.java:39)
>>>> esb_worker1  | at org.apache.commons.pool.impl.G
>>>> enericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212)
>>>> esb_worker1  | at org.wso2.carbon.databridge.age
>>>> nt.endpoint.DataEndpointConnectionWorker.connect(DataEndpoin
>>>> tConnectionWorker.java:91)
>>>> esb_worker1  | at org.wso2.carbon.databridge.age
>>>> nt.endpoint.DataEndpointConnectionWorker.run(DataEndpointCon
>>>> nectionWorker.java:42)
>>>> esb_worker1  | at java.util.concurrent.Executors
>>>> $RunnableAdapter.call(Executors.java:471)
>>>> esb_worker1  | at java.util.concurrent.FutureTas
>>>> k.run(FutureTask.java:262)
>>>> esb_worker1  | at java.util.concurrent.ThreadPoo
>>>> lExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>> esb_worker1  | at java.util.concurrent.ThreadPoo
>>>> lExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>> esb_worker1  | at java.lang.Thread.run(Thread.java:745)
>>>> esb_worker1  | Caused by: 
>>>> org.apache.thrift.transport.TTransportException:
>>>> Could not connect to localhost on port 7712
&g

Re: [Dev] [ESB] Error connecting to esb-analutics

2016-08-23 Thread Supun Malinga
Hi,

I already configured MessageFlowConfigurationPublisher.xml and
MessageFlowStatisticsPublisher.xml files.
tcp://esb-analytics:7612

This is the http port I believe. But the error saying it cannot connect to
the ssl port 7712 which is not in the configuration..

analytics server runs on a different docker container.
http : tcp://esb-analytics:7612
https: tcp://esb-analytics:7712



On Tue, Aug 23, 2016 at 7:28 PM, Chanaka Fernando <chana...@wso2.com> wrote:

> Hi Supun,
>
> Where did you configure the hostname for the analytics server node?
> Publisher configurations files are in the ESB_HOME/repository/
> deployment/server/eventpublishers/ directory. According to the error log,
> ESB is trying to connect to localhost:7712 port. Are you starting the
> analytics server on the same node?
>
> On Tue, Aug 23, 2016 at 7:11 PM, Supun Malinga <sup...@wso2.com> wrote:
>
>> Hi,
>>
>> I configured a ESB cluster with analytics in docker. Followed the guide
>> [1] and updated the hostname/port in event publisher artifacts. But still
>> ESB gives and error when I try to anable statistics in a proxy service.
>>
>> Looks like some configuration is missing. However I searched in configs
>> and find any place to change the hostname to the analytics server
>> connection. Can someone point me to the correct config pls ?.
>>
>> esb_worker1  | [2016-08-23 11:58:51,041]  WARN - DataEndpointGroup No
>> receiver is reachable at reconnection, will try to reconnect every 30 sec
>> esb_worker1  | [2016-08-23 11:58:51,044] ERROR -
>> DataEndpointConnectionWorker Error while trying to connect to
>> ssl://localhost:7712
>> esb_worker1  | org.wso2.carbon.databridge.age
>> nt.exception.DataEndpointSecurityException: Error while trying to
>> connect to ssl://localhost:7712
>> esb_worker1  | at org.wso2.carbon.databridge.age
>> nt.endpoint.thrift.ThriftSecureClientPoolFactory.createClien
>> t(ThriftSecureClientPoolFactory.java:61)
>> esb_worker1  | at org.wso2.carbon.databridge.age
>> nt.client.AbstractClientPoolFactory.makeObject(AbstractClien
>> tPoolFactory.java:39)
>> esb_worker1  | at org.apache.commons.pool.impl.G
>> enericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212)
>> esb_worker1  | at org.wso2.carbon.databridge.age
>> nt.endpoint.DataEndpointConnectionWorker.connect(DataEndpoin
>> tConnectionWorker.java:91)
>> esb_worker1  | at org.wso2.carbon.databridge.age
>> nt.endpoint.DataEndpointConnectionWorker.run(DataEndpointCon
>> nectionWorker.java:42)
>> esb_worker1  | at java.util.concurrent.Executors
>> $RunnableAdapter.call(Executors.java:471)
>> esb_worker1  | at java.util.concurrent.FutureTas
>> k.run(FutureTask.java:262)
>> esb_worker1  | at java.util.concurrent.ThreadPoo
>> lExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> esb_worker1  | at java.util.concurrent.ThreadPoo
>> lExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> esb_worker1  | at java.lang.Thread.run(Thread.java:745)
>> esb_worker1  | Caused by: 
>> org.apache.thrift.transport.TTransportException:
>> Could not connect to localhost on port 7712
>> esb_worker1  | at org.apache.thrift.transport.TS
>> SLTransportFactory.createClient(TSSLTransportFactory.java:237)
>> esb_worker1  | at org.apache.thrift.transport.TS
>> SLTransportFactory.getClientSocket(TSSLTransportFactory.java:169)
>> esb_worker1  | at org.wso2.carbon.databridge.age
>> nt.endpoint.thrift.ThriftSecureClientPoolFactory.createClien
>> t(ThriftSecureClientPoolFactory.java:56)
>> esb_worker1  | ... 9 more
>> esb_worker1  | Caused by: java.net.ConnectException: Connection
>> refused
>> esb_worker1  | at java.net.PlainSocketImpl.socketConnect(Native
>> Method)
>> esb_worker1  | at java.net.AbstractPlainSocketIm
>> pl.doConnect(AbstractPlainSocketImpl.java:339)
>> esb_worker1  | at java.net.AbstractPlainSocketIm
>> pl.connectToAddress(AbstractPlainSocketImpl.java:200)
>> esb_worker1  | at java.net.AbstractPlainSocketIm
>> pl.connect(AbstractPlainSocketImpl.java:182)
>> esb_worker1  | at java.net.SocksSocketImpl.conne
>> ct(SocksSocketImpl.java:392)
>> esb_worker1  | at java.net.Socket.connect(Socket.java:579)
>> esb_worker1  | at sun.security.ssl.SSLSocketImpl
>> .connect(SSLSocketImpl.java:625)
>> esb_worker1  | at sun.security.ssl.SSLSocketImpl
>> .(SSLSocketImpl.java:413)
>> esb_worker1  | at sun.security.ssl.SSLSocketFact
>> oryImpl.createSocket(SSLSocketFactoryImpl.java:88)
>> esb_worker1  

[Dev] [ESB] Error connecting to esb-analutics

2016-08-23 Thread Supun Malinga
)
esb_worker1  | at
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212)
esb_worker1  | at
org.wso2.carbon.databridge.agent.endpoint.DataEndpointConnectionWorker.connect(DataEndpointConnectionWorker.java:91)
esb_worker1  | ... 6 more
esb_worker1  | Caused by:
org.apache.thrift.transport.TTransportException: Could not connect to
localhost on port 7712
esb_worker1  | at
org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:237)
esb_worker1  | at
org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:169)
esb_worker1  | at
org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftSecureClientPoolFactory.createClient(ThriftSecureClientPoolFactory.java:56)
esb_worker1  | ... 9 more
esb_worker1  | Caused by: java.net.ConnectException: Connection refused
esb_worker1  | at java.net.PlainSocketImpl.socketConnect(Native Method)
esb_worker1  | at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
esb_worker1  | at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
esb_worker1  | at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
esb_worker1  | at
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
esb_worker1  | at java.net.Socket.connect(Socket.java:579)
esb_worker1  | at
sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)
esb_worker1  | at
sun.security.ssl.SSLSocketImpl.(SSLSocketImpl.java:413)
esb_worker1  | at
sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88)
esb_worker1  | at
org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:233)
esb_worker1  | ... 11 more


[1] https://docs.wso2.com/display/ESB500/Prerequisites+to+Publish+Statistics

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


Re: [Dev] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Supun Malinga
Just to be clear I'm starting the server with -DworkerNode=true

On Mon, Aug 22, 2016 at 5:00 PM, Supun Malinga <sup...@wso2.com> wrote:

> So we cannot start as a worker node in default profile.. ?
>
> On Mon, Aug 22, 2016 at 4:56 PM, Isuru Haththotuwa <isu...@wso2.com>
> wrote:
>
>> HI Supun,
>>
>> These are the supported profiles for APIM 2.0.0 [1].
>>
>> [1]. https://docs.wso2.com/display/AM200/Product+Profiles
>>
>> On Mon, Aug 22, 2016 at 4:52 PM, Supun Malinga <sup...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> $subject.
>>> $ ./bin/wso2server.sh
>>> JAVA_HOME environment variable is set to /opt/java
>>> CARBON_HOME environment variable is set to /home/supun/Builds/git-wso2-su
>>> pport/deployment-patterns/wso2am/temp/pattern6/wso2am-2.0.0
>>> Using Java memory options: -Xms256m -Xmx1024m
>>> [2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
>>> runtime worker profile not found
>>> java.lang.reflect.InvocationTargetException
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>> ssorImpl.java:62)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
>>> at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
>>> Caused by: java.lang.RuntimeException: worker profile not found
>>> at org.wso2.carbon.server.Main.main(Main.java:84)
>>> ... 6 more
>>>
>>> thanks,
>>> --
>>> Supun Malinga
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* <http://wso2.com/>*
>>
>>
>>
>
>
> --
> Supun Malinga
>



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


Re: [Dev] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Supun Malinga
So we cannot start as a worker node in default profile.. ?

On Mon, Aug 22, 2016 at 4:56 PM, Isuru Haththotuwa <isu...@wso2.com> wrote:

> HI Supun,
>
> These are the supported profiles for APIM 2.0.0 [1].
>
> [1]. https://docs.wso2.com/display/AM200/Product+Profiles
>
> On Mon, Aug 22, 2016 at 4:52 PM, Supun Malinga <sup...@wso2.com> wrote:
>
>> Hi,
>>
>> $subject.
>> $ ./bin/wso2server.sh
>> JAVA_HOME environment variable is set to /opt/java
>> CARBON_HOME environment variable is set to /home/supun/Builds/git-wso2-su
>> pport/deployment-patterns/wso2am/temp/pattern6/wso2am-2.0.0
>> Using Java memory options: -Xms256m -Xmx1024m
>> [2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
>> runtime worker profile not found
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
>> at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
>> Caused by: java.lang.RuntimeException: worker profile not found
>> at org.wso2.carbon.server.Main.main(Main.java:84)
>> ... 6 more
>>
>> thanks,
>> --
>> Supun Malinga
>>
>> _______
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* <http://wso2.com/>*
>
>
>


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


[Dev] APIM 2.0 as a worker node in default profile doesn't not start

2016-08-22 Thread Supun Malinga
Hi,

$subject.
$ ./bin/wso2server.sh
JAVA_HOME environment variable is set to /opt/java
CARBON_HOME environment variable is set to
/home/supun/Builds/git-wso2-support/deployment-patterns/wso2am/temp/pattern6/wso2am-2.0.0
Using Java memory options: -Xms256m -Xmx1024m
[2016-08-22 16:44:31,725] FATAL {org.wso2.carbon.server.Main} -  OSGi
runtime worker profile not found
java.lang.reflect.InvocationTargetException
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.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
Caused by: java.lang.RuntimeException: worker profile not found
at org.wso2.carbon.server.Main.main(Main.java:84)
... 6 more

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


Re: [Dev] Error in AM 2.0 gateway

2016-08-22 Thread Supun Malinga
Diagram :
​
 am-2.0-pattern-4.png
<https://drive.google.com/a/wso2.com/file/d/0BysLicHQcgnsOXVBWHg3aEtzckE/view?usp=drive_web>
​

On Mon, Aug 22, 2016 at 12:47 PM, Supun Malinga <sup...@wso2.com> wrote:

> Hi,
>
> Getting the following exception in gateway worker. Any idea what could be
> causing this ?.
> This is in a distributed cluster with store and KM in same node.
> I can provide any configurations required..
>
> ​
>  am-2.0-pattern-4
> <https://docs.google.com/a/wso2.com/drawings/d/1PuKrNzKd9LMy6CPOGm1ZSxpRZ85peulBMi1CkIraMTM/edit?usp=drive_web>
> ​
>
>
> gateway-worker | [2016-08-16 09:35:09,422]  INFO - API Destroying API:
> _WSO2AMTokenAPI_
> gateway-worker | [2016-08-16 09:35:09,426]  INFO - API Initializing
> API: _WSO2AMUserInfoAPI_
> gateway-worker | [2016-08-16 09:35:09,426]  INFO - DependencyTracker
> API : _WSO2AMUserInfoAPI_ was updated from the Synapse configuration
> successfully
> gateway-worker | [2016-08-16 09:35:09,426]  INFO - APIDeployer API:
> _WSO2AMUserInfoAPI_ has been updated from the file:
> /mnt/wso2am-2.0.0/repository/deployment/server/synapse-confi
> gs/default/api/_UserInfoAPI_.xml
> gateway-worker | [2016-08-16 09:35:11,427]  INFO - API Destroying API:
> _WSO2AMUserInfoAPI_
> gateway-worker | [2016-08-16 09:35:25,783] ERROR -
> KeyTemplateRetriever Exception when retrieving throttling data from remote
> endpoint
> gateway-worker | Unexpected character (<) at position 0.
> gateway-worker | at org.json.simple.parser.Yylex.yylex(Unknown Source)
> gateway-worker | at org.json.simple.parser.JSONParser.nextToken(Unknown
> Source)
> gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
> Source)
> gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
> Source)
> gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
> Source)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.retrieveKeyTemplateDat
> a(KeyTemplateRetriever.java:100)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.loadKeyTemplatesFromWe
> bService(KeyTemplateRetriever.java:111)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
> gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
> gateway-worker | at java.util.TimerThread.run(Timer.java:505)
> gateway-worker | Exception in thread "Timer-6"
> java.lang.NullPointerException
> gateway-worker | at java.util.Arrays$ArrayList. it>(Arrays.java:2842)
> gateway-worker | at java.util.Arrays.asList(Arrays.java:2828)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.loadKeyTemplatesFromWe
> bService(KeyTemplateRetriever.java:111)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
> gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
> gateway-worker | at java.util.TimerThread.run(Timer.java:505)
> gateway-worker | Exception in thread "Timer-5"
> com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
> Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
> gateway-worker | at com.google.gson.internal.bind.
> ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdap
> terFactory.java:221)
> gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:861)
> gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:826)
> gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:775)
> gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:747)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.BlockingConditionRetriever.retrieveBlockCon
> ditionsData(BlockingConditionRetriever.java:96)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.BlockingConditionRetriever.loadBlockingCond
> itionsFromWebService(BlockingConditionRetriever.java:105)
> gateway-worker | at org.wso2.carbon.apimgt.gateway
> .throttling.util.BlockingConditionRetriever.run(BlockingCond
> itionRetriever.java:51)
> gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
> gateway-worker | at java.util.TimerThread.run(Timer.java:505)
> gateway-worker | Caused by: java.lang.IllegalStateException: Expected
> BEGIN_OBJECT but was STRING at line 1 column 1 path $
> gateway-worker     | at com.google.gson.stream.JsonRea
> der.beginObject(JsonReader.java:388)
> gateway-worker | at com.google.gson.internal.bind.
> ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdap
> terFactory.java:210)
> gateway-worker | ... 9 more
>
> thanks,
> --
> Supun Malinga
>



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


[Dev] Error in AM 2.0 gateway

2016-08-22 Thread Supun Malinga
Hi,

Getting the following exception in gateway worker. Any idea what could be
causing this ?.
This is in a distributed cluster with store and KM in same node.
I can provide any configurations required..

​
 am-2.0-pattern-4
<https://docs.google.com/a/wso2.com/drawings/d/1PuKrNzKd9LMy6CPOGm1ZSxpRZ85peulBMi1CkIraMTM/edit?usp=drive_web>
​


gateway-worker | [2016-08-16 09:35:09,422]  INFO - API Destroying API:
_WSO2AMTokenAPI_
gateway-worker | [2016-08-16 09:35:09,426]  INFO - API Initializing
API: _WSO2AMUserInfoAPI_
gateway-worker | [2016-08-16 09:35:09,426]  INFO - DependencyTracker
API : _WSO2AMUserInfoAPI_ was updated from the Synapse configuration
successfully
gateway-worker | [2016-08-16 09:35:09,426]  INFO - APIDeployer API:
_WSO2AMUserInfoAPI_ has been updated from the file:
/mnt/wso2am-2.0.0/repository/deployment/server/synapse-configs/default/api/_
UserInfoAPI_.xml
gateway-worker | [2016-08-16 09:35:11,427]  INFO - API Destroying API:
_WSO2AMUserInfoAPI_
gateway-worker | [2016-08-16 09:35:25,783] ERROR - KeyTemplateRetriever
Exception when retrieving throttling data from remote endpoint
gateway-worker | Unexpected character (<) at position 0.
gateway-worker | at org.json.simple.parser.Yylex.yylex(Unknown Source)
gateway-worker | at org.json.simple.parser.JSONParser.nextToken(Unknown
Source)
gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
Source)
gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
Source)
gateway-worker | at org.json.simple.parser.JSONParser.parse(Unknown
Source)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
KeyTemplateRetriever.retrieveKeyTemplateData(KeyTemplateRetriever.java:100)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
KeyTemplateRetriever.loadKeyTemplatesFromWebService
(KeyTemplateRetriever.java:111)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
gateway-worker | at java.util.TimerThread.run(Timer.java:505)
gateway-worker | Exception in thread "Timer-6"
java.lang.NullPointerException
gateway-worker | at java.util.Arrays$ArrayList.(Arrays.java:2842)
gateway-worker | at java.util.Arrays.asList(Arrays.java:2828)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
KeyTemplateRetriever.loadKeyTemplatesFromWebService
(KeyTemplateRetriever.java:111)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
KeyTemplateRetriever.run(KeyTemplateRetriever.java:54)
gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
gateway-worker | at java.util.TimerThread.run(Timer.java:505)
gateway-worker | Exception in thread "Timer-5"
com.google.gson.JsonSyntaxException:
java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at
line 1 column 1 path $
gateway-worker | at com.google.gson.internal.bind.
ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.
java:221)
gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:861)
gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:826)
gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:775)
gateway-worker | at com.google.gson.Gson.fromJson(Gson.java:747)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
BlockingConditionRetriever.retrieveBlockConditionsData(
BlockingConditionRetriever.java:96)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
BlockingConditionRetriever.loadBlockingConditionsFromWebService(
BlockingConditionRetriever.java:105)
gateway-worker | at org.wso2.carbon.apimgt.gateway.throttling.util.
BlockingConditionRetriever.run(BlockingConditionRetriever.java:51)
gateway-worker | at java.util.TimerThread.mainLoop(Timer.java:555)
gateway-worker | at java.util.TimerThread.run(Timer.java:505)
gateway-worker | Caused by: java.lang.IllegalStateException: Expected
BEGIN_OBJECT but was STRING at line 1 column 1 path $
gateway-worker | at com.google.gson.stream.JsonReader.beginObject(
JsonReader.java:388)
gateway-worker | at com.google.gson.internal.bind.
ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.
java:210)
gateway-worker     | ... 9 more

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


Re: [Dev] SAML 2.0 Single Logout Profile Response handling for AS 6.0.0

2016-05-25 Thread Supun Malinga
On Thu, May 19, 2016 at 9:03 AM, Chiranga Alwis <chira...@wso2.com> wrote:

> Hi,
>
> I have been working on porting the past AS SAML 2.0 based single-sign-on
> valve to the new AS version.
>
> When refactoring and testing the already ported code, I came across the
> following issue within the invoke() method of the SAML 2.0 SSO Tomcat Valve
> [1].
>
> In the group of if-then and if-then-else statements which handle the SAML
> 2.0 Web Browser SSO and Single-Logout Profiles, I find the following code
> block which the program flow does not seem to enter within simple sign-in
> and logout processes.
>
> if (resolver.isSLORequest()) {
>
> if (log.isDebugEnabled()) {
> log.debug("Processing Single Log Out Request");
> }
> samlSSOManager = new SAML2SSOManager(ssoAgentConfig);
> samlSSOManager.doSLO(request);
>
> } else if (resolver.isSAML2SSOResponse()) {
>
>
> During debugging of the past AS 5.3.0 implementation and my current
> implementation, I have experienced that this block is never executed.
>


As per the offline chat, looks like we don't need this block. So +1 to
remove..
Pls double check if we are covered on the back channel requests.

thanks,

>
> In addition, the implementation of the resolver.isSLORequest() method in
> [2] has changed in latest versions and the carbon-identity version 4.5.6
> (used in AS 5.3.0) possesses an older implementation [3]. I tried adopting
> the new implementation which leads to an error during handling of
> Single-Logout responses from the side of Identity Server.
>
> Are there any scenarios which led to the introduction of the above
> mentioned logic when performing SSO? Any suggestions or ideas are highly
> appreciated.
>
> [1] - SAMLSSOValve.java
> <https://github.com/wso2/carbon-deployment/blob/4.6.x/components/webapp-mgt/org.wso2.carbon.webapp.mgt/src/main/java/org/wso2/carbon/webapp/mgt/sso/SAMLSSOValve.java>
> [2] - SSOAgentRequestResolver.java
> <https://github.com/wso2-extensions/identity-agent-sso/blob/master/components/org.wso2.carbon.identity.sso.agent/src/main/java/org/wso2/carbon/identity/sso/agent/SSOAgentRequestResolver.java>
> [3] - SSOAgentRequestResolver.java
> <https://github.com/wso2/carbon-identity/blob/v4.5.6/components/agents/org.wso2.carbon.identity.sso.agent/src/main/java/org/wso2/carbon/identity/sso/agent/SSOAgentRequestResolver.java>
>
> --
> Chiranga Alwis,
> Software Engineering Intern,
> +94 77 5930497
> +94 77 6368208
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing Carbon Commons 4.5.x Patch Version

2015-10-21 Thread Supun Malinga
And DAS Alpha / Beta went with commons 4.5.0 (Alpha/ Beta) AFAIR.

On Wed, Oct 21, 2015 at 12:13 PM, Supun Malinga <sup...@wso2.com> wrote:

>
>
> On Wed, Oct 21, 2015 at 2:38 AM, Rajith Vitharana <raji...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I guess we have to go with commons 4.4.x rather than 4.5.1, because I
>> have tried to build with commons 4.5.0 and it wasn't successful, throw
>> below error
>>
>>
> Why do we see the build errors now ?. We released commons 4.5.0 for you
> guys, and you have verified at the staging level !
>
>
>> Cannot complete the install because one or more required items could not
>> be found.
>>  Software being installed: WSO2 Tenant Common Composite Feature 4.4.3
>> (org.wso2.carbon.tenant.common.feature.group 4.4.3)
>>  Missing requirement: WSO2 Tenant Common Composite Feature 4.4.3
>> (org.wso2.carbon.tenant.common.feature.group 4.4.3) requires
>> 'org.wso2.carbon.tenant.mgt.common.feature.group [4.4.4,4.5.0)' but it
>> could not be found
>> Application failed, log file location:
>> /home/rajith/Wso2/mavenRepo/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1445409020170.log
>>
>> seems carbon tenant common composite feature 4.4.3 (latest released
>> version ) required a commons version below 4.5.0, So if we are going to go
>> with commons 4.5.1, we may have to get a release of carbon-multitenancy as
>> well, So shall we go ahead with commons 4.4.x?
>>
>> Below are the new fixes that needs to be in 4.4.x
>>
>> [1] -
>> https://github.com/wso2/carbon-commons/commit/3290aa0a9b41c6fc1804b6e383a1540e9e888a2a
>> This is a bug fix
>> [2] -
>> https://github.com/wso2/carbon-commons/commit/0b9f08299b13348d11cf0bc5d92da9c492c782f5
>> This is just indentation
>> [3] - https://github.com/wso2/carbon-commons/pull/172
>> This is a UI improvement done for jira [4]. It has only client side (UI)
>> fixes and only DSS uses them
>> [4] - https://wso2.org/jira/browse/DS-1034
>>
>> Will we be able to get a commons 4.4.x out with those fixes?
>>
>> Thanks,
>>
>>
>> On Wed, Oct 21, 2015 at 2:09 AM, Anjana Fernando <anj...@wso2.com> wrote:
>>
>>> Hi Sameera / KasunG,
>>>
>>> We are doing RC releases for DAS and DSS today (21'st), and we have
>>> several fixes done for Carbon Commons, among them, a blocker [1] being
>>> fixed for DAS. Can we please get a patch release done for Carbon Commons
>>> today, since we have critical deadlines for these products, and their RCs
>>> must go out today, thus we need these fixes as well.
>>>
>>> [1] https://wso2.org/jira/browse/CCOMMONS-2
>>>
>>> Cheers,
>>> Anjana.
>>> --
>>> *Anjana Fernando*
>>> Senior Technical Lead
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>>
>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com <sup...@wso2.com>
> mobile: +94 (0)71 56 91 321
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing Carbon Commons 4.5.x Patch Version

2015-10-21 Thread Supun Malinga
On Wed, Oct 21, 2015 at 2:38 AM, Rajith Vitharana <raji...@wso2.com> wrote:

> Hi,
>
> I guess we have to go with commons 4.4.x rather than 4.5.1, because I have
> tried to build with commons 4.5.0 and it wasn't successful, throw below
> error
>
>
Why do we see the build errors now ?. We released commons 4.5.0 for you
guys, and you have verified at the staging level !


> Cannot complete the install because one or more required items could not
> be found.
>  Software being installed: WSO2 Tenant Common Composite Feature 4.4.3
> (org.wso2.carbon.tenant.common.feature.group 4.4.3)
>  Missing requirement: WSO2 Tenant Common Composite Feature 4.4.3
> (org.wso2.carbon.tenant.common.feature.group 4.4.3) requires
> 'org.wso2.carbon.tenant.mgt.common.feature.group [4.4.4,4.5.0)' but it
> could not be found
> Application failed, log file location:
> /home/rajith/Wso2/mavenRepo/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1445409020170.log
>
> seems carbon tenant common composite feature 4.4.3 (latest released
> version ) required a commons version below 4.5.0, So if we are going to go
> with commons 4.5.1, we may have to get a release of carbon-multitenancy as
> well, So shall we go ahead with commons 4.4.x?
>
> Below are the new fixes that needs to be in 4.4.x
>
> [1] -
> https://github.com/wso2/carbon-commons/commit/3290aa0a9b41c6fc1804b6e383a1540e9e888a2a
> This is a bug fix
> [2] -
> https://github.com/wso2/carbon-commons/commit/0b9f08299b13348d11cf0bc5d92da9c492c782f5
> This is just indentation
> [3] - https://github.com/wso2/carbon-commons/pull/172
> This is a UI improvement done for jira [4]. It has only client side (UI)
> fixes and only DSS uses them
> [4] - https://wso2.org/jira/browse/DS-1034
>
> Will we be able to get a commons 4.4.x out with those fixes?
>
> Thanks,
>
>
> On Wed, Oct 21, 2015 at 2:09 AM, Anjana Fernando <anj...@wso2.com> wrote:
>
>> Hi Sameera / KasunG,
>>
>> We are doing RC releases for DAS and DSS today (21'st), and we have
>> several fixes done for Carbon Commons, among them, a blocker [1] being
>> fixed for DAS. Can we please get a patch release done for Carbon Commons
>> today, since we have critical deadlines for these products, and their RCs
>> must go out today, thus we need these fixes as well.
>>
>> [1] https://wso2.org/jira/browse/CCOMMONS-2
>>
>> Cheers,
>> Anjana.
>> --
>> *Anjana Fernando*
>> Senior Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>
>
>
> --
> Rajith Vitharana
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Developer Studio 3.8.0 RC 3

2015-10-12 Thread Supun Malinga
Hi Kavith,

Can you pls mention what are the new features in 3.8.0 ?.

thanks,

On Mon, Oct 12, 2015 at 3:05 AM, Kavith Lokuhewage <kav...@wso2.com> wrote:

> Hi Devs,
>
> Please vote for the third release candidate of WSO2 Developer Studio 3.8.0.
>
> This release fixes following issues.
> https://wso2.org/jira/issues/?filter=12450
>
> Please download, test and vote. Vote will be open for 72 hours or as
> needed.
>
> Sources, binary distribution and pre-installed eclipse distributions:
> http://builder1.us1.wso2.org/~developerstudio/developer-studio/3.8.0/RC3/
>
> The tag to be voted upon:
> https://github.com/wso2/developer-studio/tree/v3.8.0-RC3
>
>
> [+] Stable - go ahead and release
> [-]  Broken - do not release (explain why)
>
> Thanks and Regards,
> DevStudio Team
>
> --
> *Kavith Lokuhewage*
> Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +9477-9-145-123 | +9471-455-6-401
> Linkedin <http://www.linkedin.com/pub/kavith-lokuhewage/49/473/419>
> Twitter <https://twitter.com/KavithThiranga>
>
> _______
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failed in Jenkins: carbon-deployment #717

2015-09-24 Thread Supun Malinga
Hi,

Let's put  -Xmx2048M -XX:MaxPermSize=512M

On Fri, Sep 25, 2015 at 11:13 AM, Maheshika Goonetilleke <mahesh...@wso2.com
> wrote:

> Hi Supun,
>
> This was added last evening. carbon-data and carbon-dashboards jobs build
> successfully with the same configuration.
>
> We are adding this incrementally to the Jobs.
>
>
> On Fri, Sep 25, 2015 at 10:47 AM, Supun Malinga <sup...@wso2.com> wrote:
>
>>
>>
>> On Fri, Sep 25, 2015 at 10:36 AM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi SupunM
>>>
>>> The build is failing during sonar analysis.
>>>
>>> I have configured Jenkins with the following : -Xmx1024M
>>> -XX:MaxPermSize=2048M
>>>
>>
>> This is enough for carbon-deployment. Was the sonar analysis there
>> previously or was this added recently?.
>>
>>>
>>> Please advice what is the best combination to be given.
>>>
>>> On Fri, Sep 25, 2015 at 8:34 AM, Supun Malinga <sup...@wso2.com> wrote:
>>>
>>>> This is due to an OOM error.
>>>>
>>>> Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
>>>>
>>>>
>>>> @Maheshika, How much memory have we allocated for this project?
>>>>
>>>> On Fri, Sep 25, 2015 at 2:12 AM, <cbuil...@wso2.org> wrote:
>>>>
>>>>> See <https://wso2.org/jenkins/job/carbon-deployment/717/>
>>>>>
>>>>> --
>>>>> [...truncated 13251 lines...]
>>>>> [INFO] [02:07:00.967] Execute Findbugs 2.0.3...
>>>>> [INFO] [02:07:01.000] Findbugs output report: <
>>>>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/sonar/findbugs-result.xml
>>>>> >
>>>>> [INFO] [02:07:31.084] Execute Findbugs 2.0.3 done: 30117 ms
>>>>> [INFO] [02:07:31.085] Sensor FindbugsSensor done: 30119 ms
>>>>> [INFO] [02:07:31.086] Sensor InitialOpenIssuesSensor...
>>>>> [INFO] [02:07:31.962] Sensor InitialOpenIssuesSensor done: 876 ms
>>>>> [INFO] [02:07:31.962] Sensor ProjectLinksSensor...
>>>>> [INFO] [02:07:31.982] Sensor ProjectLinksSensor done: 20 ms
>>>>> [INFO] [02:07:31.982] Sensor VersionEventsSensor...
>>>>> [INFO] [02:07:31.990] Sensor VersionEventsSensor done: 8 ms
>>>>> [INFO] [02:07:31.990] Sensor FileHashSensor...
>>>>> [INFO] [02:07:31.991] Sensor FileHashSensor done: 1 ms
>>>>> [INFO] [02:07:31.991] Sensor SurefireSensor...
>>>>> [INFO] [02:07:31.991] parsing <
>>>>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/surefire-reports
>>>>> >
>>>>> [WARN] [02:07:31.991] Reports path not found: <
>>>>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/surefire-reports
>>>>> >
>>>>> [INFO] [02:07:31.991] Sensor SurefireSensor done: 0 ms
>>>>> [INFO] [02:07:31.991] Sensor Maven dependencies...
>>>>> [INFO] [02:07:33.685] Sensor Maven dependencies done: 1694 ms
>>>>> [INFO] [02:07:33.689] Sensor CPD Sensor (wrapped)...
>>>>> [INFO] [02:07:33.689] JavaCpdEngine is used for java
>>>>> [INFO] [02:07:33.689] Cross-project analysis disabled
>>>>> [INFO] [02:07:33.695] Sensor CPD Sensor (wrapped) done: 6 ms
>>>>> [INFO] [02:07:41.025] Execute decorators...
>>>>> [INFO] [02:07:41.107] -  Scan WSO2 Carbon - Spring
>>>>> Services Aggregator Module carbon-deployment
>>>>> [INFO] [02:07:41.109] Load module settings
>>>>> [INFO] [02:07:50.943] Configure Maven plugins
>>>>> [INFO] [02:07:50.947] Compare to previous analysis (2015-06-11)
>>>>> [INFO] [02:07:50.949] Compare over 30 days (2015-08-26, analysis of
>>>>> 2015-06-11 12:54:20.0)
>>>>> [INFO] [02:07:50.950] Compare to previous version (2015-06-11)
>>>>> [INFO] [02:07:50.951] No quality gate is configured.
>>>>> [INFO] [02:07:52.438] Initializer FindbugsMavenInitializer...
>>>>> [INFO] [02:07:52.438] Initializer FindbugsMavenInitializer done: 0 ms
>>>>> [INFO] [02:07:52.438] Base dir: <
>>>>> https://wso2.org/jenkins/job/carbon-deployme

Re: [Dev] Build failed in Jenkins: carbon-deployment #717

2015-09-24 Thread Supun Malinga
i.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoExecutionException: GC overhead
> limit exceeded
> at
> org.codehaus.mojo.sonar.bootstrap.ExceptionHandling.handle(ExceptionHandling.java:41)
> at
> org.codehaus.mojo.sonar.bootstrap.RunnerBootstraper.execute(RunnerBootstraper.java:139)
> at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:132)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> ... 19 more
> Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
> at java.util.Arrays.copyOf(Arrays.java:2219)
> at java.util.ArrayList.grow(ArrayList.java:242)
> at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:216)
> at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:208)
> at java.util.ArrayList.add(ArrayList.java:440)
> at
> org.apache.commons.configuration.PropertyConverter.split(PropertyConverter.java:544)
> at
> org.apache.commons.configuration.PropertyConverter.split(PropertyConverter.java:587)
> at
> org.apache.commons.configuration.PropertyConverter.toIterator(PropertyConverter.java:913)
> at
> org.apache.commons.configuration.AbstractConfiguration.addPropertyValues(AbstractConfiguration.java:417)
> at
> org.apache.commons.configuration.AbstractConfiguration.addProperty(AbstractConfiguration.java:390)
> at
> org.apache.commons.configuration.AbstractFileConfiguration.addProperty(AbstractFileConfiguration.java:768)
> at
> org.apache.commons.configuration.AbstractConfiguration.setProperty(AbstractConfiguration.java:482)
> at
> org.apache.commons.configuration.AbstractFileConfiguration.setProperty(AbstractFileConfiguration.java:782)
> at
> org.sonar.batch.scan.ModuleSettings.doOnSetProperty(ModuleSettings.java:91)
> at org.sonar.api.config.Settings.setProperty(Settings.java:291)
> at org.sonar.api.config.Settings.addProperties(Settings.java:322)
> at
> org.sonar.batch.scan.ModuleSettings.addProjectProperties(ModuleSettings.java:65)
> at org.sonar.batch.scan.ModuleSettings.init(ModuleSettings.java:59)
> at
> org.sonar.batch.scan.ModuleSettings.(ModuleSettings.java:55)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at
> org.picocontainer.injectors.AbstractInjector.newInstance(AbstractInjector.java:145)
> at
> org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:342)
> at
> org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
> at
> org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
> at
> org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
> at
> org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
> at
> org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
> at
> org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:698)
> at
> org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:646)
> [ERROR]
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> Sonar analysis completed: FAILURE
> Build step 'Sonar' changed build result to FAILURE
> Build step 'Sonar' marked build as failure
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failed in Jenkins: carbon-deployment #717

2015-09-24 Thread Supun Malinga
On Fri, Sep 25, 2015 at 10:36 AM, Maheshika Goonetilleke <mahesh...@wso2.com
> wrote:

> Hi SupunM
>
> The build is failing during sonar analysis.
>
> I have configured Jenkins with the following : -Xmx1024M
> -XX:MaxPermSize=2048M
>

This is enough for carbon-deployment. Was the sonar analysis there
previously or was this added recently?.

>
> Please advice what is the best combination to be given.
>
> On Fri, Sep 25, 2015 at 8:34 AM, Supun Malinga <sup...@wso2.com> wrote:
>
>> This is due to an OOM error.
>>
>> Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
>>
>>
>> @Maheshika, How much memory have we allocated for this project?
>>
>> On Fri, Sep 25, 2015 at 2:12 AM, <cbuil...@wso2.org> wrote:
>>
>>> See <https://wso2.org/jenkins/job/carbon-deployment/717/>
>>>
>>> --
>>> [...truncated 13251 lines...]
>>> [INFO] [02:07:00.967] Execute Findbugs 2.0.3...
>>> [INFO] [02:07:01.000] Findbugs output report: <
>>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/sonar/findbugs-result.xml
>>> >
>>> [INFO] [02:07:31.084] Execute Findbugs 2.0.3 done: 30117 ms
>>> [INFO] [02:07:31.085] Sensor FindbugsSensor done: 30119 ms
>>> [INFO] [02:07:31.086] Sensor InitialOpenIssuesSensor...
>>> [INFO] [02:07:31.962] Sensor InitialOpenIssuesSensor done: 876 ms
>>> [INFO] [02:07:31.962] Sensor ProjectLinksSensor...
>>> [INFO] [02:07:31.982] Sensor ProjectLinksSensor done: 20 ms
>>> [INFO] [02:07:31.982] Sensor VersionEventsSensor...
>>> [INFO] [02:07:31.990] Sensor VersionEventsSensor done: 8 ms
>>> [INFO] [02:07:31.990] Sensor FileHashSensor...
>>> [INFO] [02:07:31.991] Sensor FileHashSensor done: 1 ms
>>> [INFO] [02:07:31.991] Sensor SurefireSensor...
>>> [INFO] [02:07:31.991] parsing <
>>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/surefire-reports
>>> >
>>> [WARN] [02:07:31.991] Reports path not found: <
>>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/org.wso2.carbon.spring-services/target/surefire-reports
>>> >
>>> [INFO] [02:07:31.991] Sensor SurefireSensor done: 0 ms
>>> [INFO] [02:07:31.991] Sensor Maven dependencies...
>>> [INFO] [02:07:33.685] Sensor Maven dependencies done: 1694 ms
>>> [INFO] [02:07:33.689] Sensor CPD Sensor (wrapped)...
>>> [INFO] [02:07:33.689] JavaCpdEngine is used for java
>>> [INFO] [02:07:33.689] Cross-project analysis disabled
>>> [INFO] [02:07:33.695] Sensor CPD Sensor (wrapped) done: 6 ms
>>> [INFO] [02:07:41.025] Execute decorators...
>>> [INFO] [02:07:41.107] -  Scan WSO2 Carbon - Spring Services
>>> Aggregator Module carbon-deployment
>>> [INFO] [02:07:41.109] Load module settings
>>> [INFO] [02:07:50.943] Configure Maven plugins
>>> [INFO] [02:07:50.947] Compare to previous analysis (2015-06-11)
>>> [INFO] [02:07:50.949] Compare over 30 days (2015-08-26, analysis of
>>> 2015-06-11 12:54:20.0)
>>> [INFO] [02:07:50.950] Compare to previous version (2015-06-11)
>>> [INFO] [02:07:50.951] No quality gate is configured.
>>> [INFO] [02:07:52.438] Initializer FindbugsMavenInitializer...
>>> [INFO] [02:07:52.438] Initializer FindbugsMavenInitializer done: 0 ms
>>> [INFO] [02:07:52.438] Base dir: <
>>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services
>>> >
>>> [INFO] [02:07:52.438] Working dir: <
>>> https://wso2.org/jenkins/job/carbon-deployment/ws/components/service-mgt/spring-services/target/sonar
>>> >
>>> [INFO] [02:07:52.438] Source encoding: UTF-8, default locale: en_US
>>> [INFO] [02:07:52.442] Sensor InitialOpenIssuesSensor...
>>> [INFO] [02:07:52.451] Sensor InitialOpenIssuesSensor done: 9 ms
>>> [INFO] [02:07:52.451] Sensor ProjectLinksSensor...
>>> [INFO] [02:07:52.471] Sensor ProjectLinksSensor done: 20 ms
>>> [INFO] [02:07:52.471] Sensor VersionEventsSensor...
>>> [INFO] [02:07:52.480] Sensor VersionEventsSensor done: 9 ms
>>> [INFO] [02:07:52.480] Sensor FileHashSensor...
>>> [INFO] [02:07:52.480] Sensor FileHashSensor done: 0 ms
>>> [INFO] [02:07:52.480] Sensor Maven dependencies...
>>> [INFO] [02:08:15.721] Sensor Maven dependencies done: 23241 ms
>>> [INFO] [02:08:15.725

Re: [Dev] [carbon-kernel-5.0.0] Carbon stop command not working in sh script

2015-09-22 Thread Supun Malinga
On Wed, Sep 23, 2015 at 9:06 AM, Aruna Karunarathna <ar...@wso2.com> wrote:

>
>
> On Tue, Sep 22, 2015 at 11:23 AM, Kasun Indrasiri <ka...@wso2.com> wrote:
>
>> Hi Aruna,
>>
>> Will you be able to provide some insight.. We need this capability to
>> automate perf-testing of the C5 based servers. So, would be great if we can
>> have a solution soon.
>>
>
> Hi Kasun,
>
> Seems like the wso2carbon.pid file (which contains the process id of the
> server) is not generated by the server. Haven't gone through the code level.
>

AFAIR this is generated from the wso2server.sh



> Until finding a proper solution what you can do is, after starting the
> server create a wso2carbon.pid file in the root folder and add the carbon
> process id.
> You can get the carbon process id by jps command. Not sure this is a
> feasible workaround for your perf-testing scenario,
>
> Regards,
> Aruna
>
>>
>> Thanks,
>> Kasun.
>>
>> On Tue, Sep 22, 2015 at 10:37 AM, Aruna Karunarathna <ar...@wso2.com>
>> wrote:
>>
>>> Hi Bhanuka,
>>>
>>> Yes I was able to reproduce the same. Can you create a jira for this?..
>>>
>>> Regards,
>>> Aruna
>>>
>>> On Tue, Sep 22, 2015 at 10:32 AM, Bhanuka Dissanayake <bhan...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am using the "wso2carbon-kernel-5.0.0-SNAPSHOT" pack , and have
>>>> tried to start and stop the server demonically. The start command is
>>>> working but the stop command gives the following error.
>>>>
>>>> cat:
>>>> /home/boauser/wso2gw/perf/wso2carbon-kernel-5.0.0-SNAPSHOT/wso2carbon.pid:
>>>> No such file or directory
>>>> ./wso2server.sh: 188: kill: Usage: kill [-s sigspec | -signum |
>>>> -sigspec] [pid | job]... or
>>>> kill -l [exitstatus]
>>>>
>>>> --
>>>> *Bhanuka Dissanayake*
>>>> *Software Engineer* *Intern; WSO2, Inc.; http://www.wso2.com
>>>> <http://wso2.com/>*
>>>> Mobile : +94 777 669508
>>>> Tel  : +94 112 793214
>>>> lean.enterprise.middleware
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Aruna Sujith Karunarathna *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>
>>>
>>> _______
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>
>
>
> --
>
> *Aruna Sujith Karunarathna *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 AS 5.3.0 RC2

2015-09-15 Thread Supun Malinga
Hi,

I tested following functionalities

* Java Security
* Caching
* SSO Valve

So here is my vote.
[x] -Stable - go ahead and release

thanks,

On Mon, Sep 14, 2015 at 10:27 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi,
>
> I've tested functionalities relate to
>
>- Virtual hosts
>- Websocket
>- Capps deployment
>
> [x] -Stable - go ahead and release
>
> Thanks
> /Thusitha
>
> On Fri, Sep 11, 2015 at 12:37 PM, Kalpa Welivitigoda <kal...@wso2.com>
> wrote:
>
>> Hi Devs,
>>
>> This is the second release candidate of WSO2 AS 5.3.0.
>>
>> This release fixes the following issues:
>>
>> https://wso2.org/jira/issues/?filter=12251
>>
>> Please download, test and vote. Vote will be open for 72 hours or as
>> needed.
>>
>> *Binary distribution files:*
>> http://svn.wso2.org/repos/wso2/people/kalpaw/as-5.3.0-rc2/
>> <http://svn.wso2.org/repos/wso2/people/kasung/as5.3.0-rc1/>
>>
>> *Maven staging repo:*
>> http://maven.wso2.org/nexus/content/repositories/orgwso2appserver-073/
>> <http://maven.wso2.org/nexus/content/repositories/orgwso2appserver-060/>
>>
>> *The tag to be voted upon:*
>> https://github.com/wso2/product-as/tree/v5.3.0-rc2
>> <https://github.com/wso2/product-as/tree/v5.3.0-rc1>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>> Thanks and Regards,
>> ~ WSO2 Application Server Team ~
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jenkins build became unstable: product-as #722

2015-09-14 Thread Supun Malinga
Adding dev@

Issue is "Port already in use".
Seems there is another server is running. I think some other test case is
also using the same port. You might need to use different ports.

thanks,

On Tue, Sep 15, 2015 at 6:35 AM, Manuri Amaya Perera <manu...@wso2.com>
wrote:

> I'll look into this.
>
> On Tue, Sep 15, 2015 at 5:53 AM, <cbuil...@wso2.org> wrote:
>
>> See <https://wso2.org/jenkins/job/product-as/722/changes>
>>
>>
>
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> <http://manuriamayaperera.blogspot.com>*
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jenkins build is still unstable: product-as » WSO2 AppServer - Integration Test Module #716

2015-09-10 Thread Supun Malinga
Hi,

Kalpa is looking into this..

thanks,

On Thu, Sep 10, 2015 at 12:44 PM, <cbuil...@wso2.org> wrote:

> See <
> https://wso2.org/jenkins/job/product-as/org.wso2.appserver$org.wso2.appserver.integration.tests/changes
> >
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jenkins build is still unstable: product-as » WSO2 AppServer - Integration Test Module #716

2015-09-10 Thread Supun Malinga
thanks Kalpa..

On Thu, Sep 10, 2015 at 2:32 PM, Kalpa Welivitigoda <kal...@wso2.com> wrote:

> Hi all,
>
> The fix related to the failing test case 
> (CARBON15383VoidServiceMethodTestCase)
> is in master branch of wso2-axis2 (1.6.1-wso2v15-SNAPSHOT), product-as
> refers 1.6.1-wso2v14. So the PR should have merged only after axis2
> 1.6.1-wso2v15 is released and referred from product-as master.
>
> I have reverted the PR, updated the JIRA. I will keep track and merge it
> when the requirements are satisfied.
>
> On Thu, Sep 10, 2015 at 1:06 PM, Supun Malinga <sup...@wso2.com> wrote:
>
>> Hi,
>>
>> Kalpa is looking into this..
>>
>> thanks,
>>
>> On Thu, Sep 10, 2015 at 12:44 PM, <cbuil...@wso2.org> wrote:
>>
>>> See <
>>> https://wso2.org/jenkins/job/product-as/org.wso2.appserver$org.wso2.appserver.integration.tests/changes
>>> >
>>>
>>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com <sup...@wso2.com>
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] HA cluster exception

2015-09-10 Thread Supun Malinga
TED_TIME,
> REG_DESCRIPTION, REG_TENANT_ID, REG_UUID) VALUES (?, ?, ?, ?, ?, ?, ?, ?,
> ?, ?) [23002-140]
> at
> org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
> at org.h2.message.DbException.get(DbException.java:167)
> at org.h2.message.DbException.get(DbException.java:144)
> at
> org.h2.constraint.ConstraintReferential.checkRowOwnTable(ConstraintReferential.java:329)
> at
> org.h2.constraint.ConstraintReferential.checkRow(ConstraintReferential.java:271)
> at org.h2.table.Table.fireConstraints(Table.java:801)
> at org.h2.table.Table.fireAfterRow(Table.java:818)
> at org.h2.command.dml.Insert.insertRows(Insert.java:122)
> at org.h2.command.dml.Insert.update(Insert.java:82)
> at org.h2.command.CommandContainer.update(CommandContainer.java:70)
> at org.h2.command.Command.executeUpdate(Command.java:199)
> at
> org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:141)
> at
> org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:127)
> at
> org.wso2.carbon.registry.core.jdbc.dao.JDBCResourceDAO.addResourceWithoutContentId(JDBCResourceDAO.java:1385)
> ... 73 more
>
>
> Thanks.
>
> *Maninda Edirisooriya*
> Senior Software Engineer
>
> *WSO2, Inc.*lean.enterprise.middleware.
>
> *Blog* : http://maninda.blogspot.com/
> *E-mail* : mani...@wso2.com
> *Skype* : @manindae
> *Twitter* : @maninda
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jenkins build became unstable: carbon4-kernel_4.4.x #48

2015-09-10 Thread Supun Malinga
org.wso2.carbon.integration.tests.integration.ServerShutdownTestCase.testGracefulServerShutdown
test method fails saying below,

Aruna/ Niranjan can one of you have a look ? This is 4.4.x branch.
fyi, I built 4.4.x last night with all tests and build passed for me. May
be this is intermittent.

INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- [2015-09-11 02:04:44,020] FATAL
{org.wso2.carbon.utils.dbcreator.DatabaseCreator} -  Failed to create
database tables for registry resource store. Database may be already
in use: "Locked by another process". Possible solutions: close all
other connection(s); use the server mode; SQL
statement:_null/14fba259c68182ad8201c93136703b5cf1b9e6fb09b
[90020-140] (Sanitized)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- org.h2.jdbc.JdbcSQLException: Database may be already in use:
"Locked by another process". Possible solutions: close all other
connection(s); use the server mode; SQL statement:



https://wso2.org/jenkins/job/carbon4-kernel_4.4.x/org.wso2.carbon$org.wso2.carbon.kernel.integration.test/48/testReport/




On Fri, Sep 11, 2015 at 7:47 AM, <cbuil...@wso2.org> wrote:

> See <https://wso2.org/jenkins/job/carbon4-kernel_4.4.x/48/changes>
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Engage org.apache.catalina.filters.HttpHeaderSecurityFilter to all the web apps - including the Management Console

2015-09-10 Thread Supun Malinga
Hi Prabath,

I'm going to add this into kernel. There are several parameters for the
filter we can enable. Do you have anything needs to be enabled
specifically? or just have the filter in place ?.
https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#HTTP_Header_Security_Filter

thanks,

On Thu, Aug 6, 2015 at 7:16 PM, Supun Malinga <sup...@wso2.com> wrote:

> Hi Kishanthan,
>
> On Thu, Aug 6, 2015 at 5:47 PM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> Ok. Targeting for next kernel release. For already released products,
>> they can enable this by editing the global web.xml.
>>
>> @SupunM, can we include this for next AS release?
>>
>
> Since this is in kernel we cannot include this fix unless we do another
> kernel release (i.e: 4.4.2) before AS 5.3.0. Other option would be to
> duplicate the web.xml from carbon-deployment and add the changes there. If
> this is important we can easily do this from second approach.
>
>
>>
>> On Thu, Aug 6, 2015 at 5:35 PM, Prabath Siriwardena <prab...@wso2.com>
>> wrote:
>>
>>> Yes.. please engage it by default..
>>>
>>> Thanks & regards,
>>> -Prabath
>>>
>>> On Thu, Aug 6, 2015 at 5:28 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
>>>> Created a jira for this : https://wso2.org/jira/browse/CARBON-15354
>>>>
>>>> On Thu, Aug 6, 2015 at 5:22 PM, Kishanthan Thangarajah <
>>>> kishant...@wso2.com> wrote:
>>>>
>>>>> We can do this via the global web.xml at 
>>>>> $CARBON_HOME/repository/conf/tomcat/web.xml.
>>>>> Then it will be available for all the webapps (including mgt console).
>>>>> Should this be added as a default filter?
>>>>>
>>>>> Refer :
>>>>> https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#HTTP_Header_Security_Filter
>>>>>
>>>>> On Thu, Aug 6, 2015 at 3:48 PM, Prabath Siriwardena <prab...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Can we please do the $subject ?
>>>>>>
>>>>>>
>>>>>> Thanks & Regards,
>>>>>> Prabath
>>>>>>
>>>>>> Twitter : @prabath
>>>>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>>>>
>>>>>> Mobile : +1 650 625 7950
>>>>>>
>>>>>> http://blog.facilelogin.com
>>>>>> http://blog.api-security.org
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Kishanthan Thangarajah*
>>>>> Associate Technical Lead,
>>>>> Platform Technologies Team,
>>>>> WSO2, Inc.
>>>>> lean.enterprise.middleware
>>>>>
>>>>> Mobile - +94773426635
>>>>> Blog - *http://kishanthan.wordpress.com
>>>>> <http://kishanthan.wordpress.com>*
>>>>> Twitter - *http://twitter.com/kishanthan
>>>>> <http://twitter.com/kishanthan>*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Kishanthan Thangarajah*
>>>> Associate Technical Lead,
>>>> Platform Technologies Team,
>>>> WSO2, Inc.
>>>> lean.enterprise.middleware
>>>>
>>>> Mobile - +94773426635
>>>> Blog - *http://kishanthan.wordpress.com
>>>> <http://kishanthan.wordpress.com>*
>>>> Twitter - *http://twitter.com/kishanthan
>>>> <http://twitter.com/kishanthan>*
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> Twitter : @prabath
>>> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>>>
>>> Mobile : +1 650 625 7950
>>>
>>> http://blog.facilelogin.com
>>> http://blog.api-security.org
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Associate Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com <sup...@wso2.com>
> mobile: +94 (0)71 56 91 321
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jenkins build became unstable: wso2-axis2 #847

2015-09-09 Thread Supun Malinga
Did a fix in https://github.com/wso2/wso2-axis2/pull/59. Let's see how it
goes in jenkins.

On Wed, Sep 9, 2015 at 6:11 AM, Supun Malinga <sup...@wso2.com> wrote:

> Intermittent issue came up again. I'll look into this.
>
> On Wed, Sep 9, 2015 at 12:33 AM, <cbuil...@wso2.org> wrote:
>
>> See <https://wso2.org/jenkins/job/wso2-axis2/847/>
>>
>>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com <sup...@wso2.com>
> mobile: +94 (0)71 56 91 321
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Securing cookies in wso2 servers

2015-09-09 Thread Supun Malinga
Hi,

In order to prevent attacks we should do $subject. For this there are
couple of things specified in the security checklist.

1. cookies are exposed only over HTTP
  in repository/conf/tomcat/context.xml set,
  *useHttpOnly="true"*

2. cookies are exposed only over HTTPS
   in all web.xml configs set,


*true*



Shall we enable these by default from kernel level where applicable?.

[1] https://www.owasp.org/index.php/HttpOnly

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jenkins build became unstable: wso2-axis2__java8 » Apache Axis2 - Integration #152

2015-09-09 Thread Supun Malinga
I built this locally in java8 and build passed for me. Can someone take
this up and have a look ?.

thanks,

On Wed, Sep 9, 2015 at 6:40 PM, <cbuil...@wso2.org> wrote:

> See <
> https://wso2.org/jenkins/job/wso2-axis2__java8/org.apache.axis2$axis2-integration/152/
> >
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while deploying a webapp

2015-09-08 Thread Supun Malinga
>>
>>> at java.net.URL.(URL.java:617)
>>>
>>> at java.net.URL.(URL.java:480)
>>>
>>> at java.net.URL.(URL.java:429)
>>>
>>> at
>>> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:334)
>>>
>>> ... 26 more
>>>
>>> Caused by: java.lang.NullPointerException: no !/ in spec
>>>
>>> at sun.net.www.protocol.jar.Handler.parseAbsoluteSpec(Handler.java:170)
>>>
>>> at sun.net.www.protocol.jar.Handler.parseURL(Handler.java:150)
>>>
>>> at java.net.URL.(URL.java:612)
>>>
>>> ... 29 more
>>>
>>> Thanks.
>>>
>>> --
>>> Best Regards,
>>>
>>> *Thilini Cooray*
>>> Software Engineer
>>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
>>> E-mail : thili...@wso2.com
>>>
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Team Lead - WSO2 Machine Learner
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while deploying a webapp

2015-09-08 Thread Supun Malinga
And does it work if you remove the # from the war name ?.

On Tue, Sep 8, 2015 at 2:58 PM, Supun Malinga <sup...@wso2.com> wrote:

> Do you have any third party libraries within the webapp ?. For example
> which try to read/ scan the webapp context for resources.
>
> thanks,
>
> On Tue, Sep 8, 2015 at 2:54 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Thilini,
>>
>> Is this a JaxRS webapp that you try to deploy?
>>
>>
>>
>> On Tue, Sep 8, 2015 at 2:46 PM, Nirmal Fernando <nir...@wso2.com> wrote:
>>
>>> What's the root context?
>>>
>>> On Tue, Sep 8, 2015 at 2:39 PM, Thilini Cooray <thili...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am getting following error while trying to deploy a webapp in both
>>>> API Manager and Application Server.
>>>>
>>>> Any help is appreciated.
>>>>
>>>> org.wso2.carbon.CarbonException: Error while deploying webapp:
>>>> StandardContext[api#v1.war].File[/Users/thilinicooray/gitrepo/APIManager-snapshots/wso2am-1.10.0-SNAPSHOT/wso2am-1.10.0-SNAPSHOT/repository/deployment/server/webapps/api#v1.war]
>>>>
>>>> at
>>>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeployer.java:354)
>>>>
>>>> at
>>>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWarWebappDeployment(TomcatGenericWebappsDeployer.java:207)
>>>>
>>>> at
>>>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:174)
>>>>
>>>> at
>>>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.deploy(TomcatGenericWebappsDeployer.java:139)
>>>>
>>>> at
>>>> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:207)
>>>>
>>>> at
>>>> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:114)
>>>>
>>>> at
>>>> org.wso2.carbon.webapp.deployer.WebappDeployer.deploy(WebappDeployer.java:42)
>>>>
>>>> at
>>>> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
>>>>
>>>> at
>>>> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
>>>>
>>>> at
>>>> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
>>>>
>>>> at
>>>> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
>>>>
>>>> at
>>>> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
>>>>
>>>> at
>>>> org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
>>>>
>>>> at
>>>> org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
>>>>
>>>> at
>>>> org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
>>>>
>>>> at
>>>> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:93)
>>>>
>>>> at
>>>> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:138)
>>>>
>>>> at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>
>>>> at
>>>> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
>>>>
>>>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
>>>>
>>>> at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>>>>
>>>> at
>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>>>>
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>>>>
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>>>>
>>>> at java.lang.Thread.run(Thread.java:722)
>>>>
>>>> Caused by: org.wso2.carbon.tomcat.CarbonTomca

Re: [Dev] Jenkins build became unstable: wso2-axis2 #847

2015-09-08 Thread Supun Malinga
Intermittent issue came up again. I'll look into this.

On Wed, Sep 9, 2015 at 12:33 AM, <cbuil...@wso2.org> wrote:

> See <https://wso2.org/jenkins/job/wso2-axis2/847/>
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jenkins build became unstable: kernel_patch0013 #9

2015-09-08 Thread Supun Malinga
Removing folks since the mail bounces from dev@

On Tue, Sep 8, 2015 at 11:08 PM, Supun Malinga <sup...@wso2.com> wrote:

> Hi Johann/ Malithi,
>
> Can you have a look ?.
>
> https://wso2.org/jenkins/job/kernel_patch0013/org.wso2.carbon$org.wso2.carbon.user.core/9/changes
>
> thanks,
>
> On Tue, Sep 8, 2015 at 9:49 PM, <cbuil...@wso2.org> wrote:
>
>> See <https://wso2.org/jenkins/job/kernel_patch0013/9/changes>
>>
>>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com <sup...@wso2.com>
> mobile: +94 (0)71 56 91 321
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jenkins build became unstable: kernel_patch0013 #9

2015-09-08 Thread Supun Malinga
On Wed, Sep 9, 2015 at 10:27 AM, Sameera Jayasoma <same...@wso2.com> wrote:

> We are still getting the failures in all branches.
>
> Johann/Malithi, please revert your changes and fix it properly.
>

Diff given by Malithi fixed the issue in the patch0013 and I committed
that. But it didn't fix the issue (getting the same error) in kernel 4.4.x.



>
> On Wed, Sep 9, 2015 at 10:08 AM, Sameera Jayasoma <same...@wso2.com>
> wrote:
>
>> Did you guys build with test? I am wondering how we didn't encounter this
>> before the commit?
>>
>> On Wed, Sep 9, 2015 at 7:46 AM, Malithi Edirisinghe <malit...@wso2.com>
>> wrote:
>>
>>> This was caused due to the outdated xercesImpl dependency coming from
>>> the dependency tree, which is referred by unit tests.
>>> Thus, updated with proper dependency version.
>>>
>>> Thanks,
>>> Malithi.
>>>
>>> On Wed, Sep 9, 2015 at 12:40 AM, Sameera Jayasoma <same...@wso2.com>
>>> wrote:
>>>
>>>> What is the error here and whose commit caused this issue?
>>>>
>>>> On Wed, Sep 9, 2015 at 12:31 AM, Malithi Edirisinghe <malit...@wso2.com
>>>> > wrote:
>>>>
>>>>> Fixed with diff attached. Please review and commit.
>>>>>
>>>>> Thanks,
>>>>> Malithi.
>>>>>
>>>>> On Tue, Sep 8, 2015 at 11:10 PM, Supun Malinga <sup...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Removing folks since the mail bounces from dev@
>>>>>>
>>>>>> On Tue, Sep 8, 2015 at 11:08 PM, Supun Malinga <sup...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Johann/ Malithi,
>>>>>>>
>>>>>>> Can you have a look ?.
>>>>>>>
>>>>>>> https://wso2.org/jenkins/job/kernel_patch0013/org.wso2.carbon$org.wso2.carbon.user.core/9/changes
>>>>>>>
>>>>>>> thanks,
>>>>>>>
>>>>>>> On Tue, Sep 8, 2015 at 9:49 PM, <cbuil...@wso2.org> wrote:
>>>>>>>
>>>>>>>> See <https://wso2.org/jenkins/job/kernel_patch0013/9/changes>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Supun Malinga,
>>>>>>>
>>>>>>> Senior Software Engineer,
>>>>>>> WSO2 Inc.
>>>>>>> http://wso2.com
>>>>>>> email: sup...@wso2.com <sup...@wso2.com>
>>>>>>> mobile: +94 (0)71 56 91 321
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Supun Malinga,
>>>>>>
>>>>>> Senior Software Engineer,
>>>>>> WSO2 Inc.
>>>>>> http://wso2.com
>>>>>> email: sup...@wso2.com <sup...@wso2.com>
>>>>>> mobile: +94 (0)71 56 91 321
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *Malithi Edirisinghe*
>>>>> Senior Software Engineer
>>>>> WSO2 Inc.
>>>>>
>>>>> Mobile : +94 (0) 718176807
>>>>> malit...@wso2.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Sameera Jayasoma,
>>>> Software Architect,
>>>>
>>>> WSO2, Inc. (http://wso2.com)
>>>> email: same...@wso2.com
>>>> blog: http://blog.sameera.org
>>>> twitter: https://twitter.com/sameerajayasoma
>>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>>> Mobile: 0094776364456
>>>>
>>>> Lean . Enterprise . Middleware
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Malithi Edirisinghe*
>>> Senior Software Engineer
>>> WSO2 Inc.
>>>
>>> Mobile : +94 (0) 718176807
>>> malit...@wso2.com
>>>
>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://blog.sameera.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://blog.sameera.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jenkins build became unstable: wso2-axis2 #840

2015-09-04 Thread Supun Malinga
So the next build passed successfully. We will keep an eye on the builds if
this happens again.
https://wso2.org/jenkins/job/wso2-axis2/842/

thanks,

On Fri, Sep 4, 2015 at 2:17 PM, Supun Malinga <sup...@wso2.com> wrote:

> Resending to dev@ (previous mail rejected cos of too many recipients )
>
>
> On Fri, Sep 4, 2015 at 2:14 PM, Supun Malinga <sup...@wso2.com> wrote:
>
>> Hi,
>>
>> Here it is not possible to keep the server running for all test cases,
>> cos it starts the server with different configs for each test scenario. So
>> I added an improvement to the server start logic to wait until the server
>> is stopped is its already running. Also I added a log to print any errors
>> at server starting. So if in case the issue come again we have more info..
>> PR:
>> https://github.com/wso2/wso2-axis2/pull/57
>>
>> Let me know if there are any issues/ further suggestions before merging
>> the PR..
>>
>> thanks,
>>
>>
>> On Thu, Sep 3, 2015 at 6:57 PM, Supun Malinga <sup...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> This is a connection refused error.
>>> I looked into the code of the failed test case. Here it uses a random
>>> tcp port to start a http server for testing.
>>> There is a couple of test cases that use the same simple http server
>>> with the derived port, but only one is failing. While digging into it I
>>> found that simple http server is stopped and started back for the separate
>>> test cases. So there can be several causes for this to fail.
>>>
>>> I had a chat with Azeez and best option seems to be keep the server
>>> running for the both test cases. Will look into fixing this.
>>>
>>> thanks,
>>>
>>>
>>> On Thu, Sep 3, 2015 at 12:26 AM, <cbuil...@wso2.org> wrote:
>>>
>>>> See <https://wso2.org/jenkins/job/wso2-axis2/840/>
>>>>
>>>>
>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> email: sup...@wso2.com <sup...@wso2.com>
>>> mobile: +94 (0)71 56 91 321
>>>
>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com <sup...@wso2.com>
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com <sup...@wso2.com>
> mobile: +94 (0)71 56 91 321
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] [Tests] Port offset change in test cases where offset values are hardcoded

2015-09-03 Thread Supun Malinga
On Thu, Sep 3, 2015 at 12:24 PM, Nuwan Wimalasekara <nuw...@wso2.com> wrote:

> Hi Manuri,
> There are some test classes which start a new server with a port offset
> and those port configuration are kept in automation.xml and referred by a
> name.
>

This is true Nuwan. But the concern is that in the test cases where we use
a offset. We have the offset hardcoded. Instead we need to read it from the
config file (automation.xml).
So what we thought is to put it as a property in the config of the
instances.
eg:


localhost


9764
9444

**
**
**


thanks,


>

> Ex: if the portOffset is 1, then the config is as bellow. Then the test
> class refer the post and hot config by referring the name
> "appServerInstance0002" and generate the server URLs.
>
>  nonBlockingTransportEnabled="false">
> 
> localhost
> 
> 
> 9764
> 9444
> 
> 
>
> Now you have to increase the port offset in this classes to be 100 +
> portOffset and according to new port offset you have to change the
> configuration as well.
>
>  nonBlockingTransportEnabled="false">
> 
> localhost
> 
> 
> 9864
> 9544
> 
> 
>
> Thanks,
> Nuwanw
>
> On Thu, Sep 3, 2015 at 12:07 PM, Manuri Amaya Perera <manu...@wso2.com>
> wrote:
>
>> Adding Dev
>>
>> On Thu, Sep 3, 2015 at 11:50 AM, Manuri Amaya Perera <manu...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> At the moment, in automation.xml in test modules, the -DportOffset
>>> parameter has been set to 100 and the port values in relevant instances
>>> also have been changed accordingly.
>>>
>>> But in the test cases where internally a server is set up, the port
>>> offset values are being hard coded. These values also need to be moved
>>> forward by 100. A configuration can be added to automation.xml which can be
>>> read and used to do this.
>>>
>>> I'd like to discuss the best way to address this problem.
>>>
>>> Thank you.
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> <http://manuriamayaperera.blogspot.com>*
>>>
>>
>>
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> <http://manuriamayaperera.blogspot.com>*
>>
>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com <sup...@wso2.com>
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Java Security Manager needs read permission to h2 db in AS 5.3.0 SNAPSHOT

2015-08-28 Thread Supun Malinga
On Fri, Aug 28, 2015 at 11:27 AM, Isuru Perera isu...@wso2.com wrote:

 Hi Supun,

 The checkSecurity method just checks for a permission. I'm not sure how
 your fix works. But it doesn't seem to be a proper solution. We might need
 to debug more and see.

 Can you check whether you have fixes for
 https://wso2.org/jira/browse/IDENTITY-3340?


No, I don't PR is not merged yet..
I had a  chat with KasunB, its for a different error however.



 On Fri, Aug 28, 2015 at 9:55 AM, Aruna Karunarathna ar...@wso2.com
 wrote:



 On Thu, Aug 27, 2015 at 6:44 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Found that the issue happens at the following,

 at
 org.wso2.carbon.user.core.common.AbstractUserStoreManager.listUsers(AbstractUserStoreManager.java:2034)
 at
 org.apache.jsp.carbon.usermgt.index_jsp._jspService(index_jsp.java:167)

 I did the following fix in CarbonContext (where the user realm is
 retrieved initially), and the issue disappeared. Is this a good enough
 solution ? Or do we have to explicitly do permission checks in
 AbstractUserStoreManager ?. So far there is none in that.. Let me know.

 +++
 b/core/org.wso2.carbon.utils/src/main/java/org/wso2/carbon/context/CarbonContext.java
 @@ -233,6 +233,8 @@ public class CarbonContext {
   * @return the user realm instance.
   */
  public UserRealm getUserRealm() {
 +CarbonUtils.checkSecurity();
  return getCarbonContextDataHolder().getUserRealm();
  }


 Any idea why this is not needed for AS 5.2.1?..


 thanks,


 On Tue, Aug 25, 2015 at 12:17 PM, Supun Malinga sup...@wso2.com wrote:

 thanks Isuru. Let me see what I can find.

 thanks

 On Tue, Aug 25, 2015 at 12:12 PM, Isuru Perera isu...@wso2.com wrote:

 Hi Supun,

 I'm sorry I missed this mail. We need to identify which method is
 accessing the local database. We should never give explicit read
 permissions for the H2 database.

 We need to use Java Privileged Block API in Carbon Context APIs. If
 you cannot figure out the protection domain for the access failure, please
 check Java Security Debug logs. See Troubleshooting section in my Java
 Security Manager related blog post [1].

 With Privileged Block API, we can let Carbon Context APIs to use same
 permissions we give to Carbon code.

 Thanks!

 Best Regards,

 [1]
 http://isuru-perera.blogspot.com/2014/12/enabling-java-security-manager-for-wso2.html


 On Thu, Aug 13, 2015 at 3:37 PM, Supun Malinga sup...@wso2.com
 wrote:

 Hi,

 For accessing usermgt via CarbonContext had to provide following
 permission for webapp.

 permission java.io.FilePermission
 /home/supun/smoke/java_sec/530_custom/wso2as-5.3.0-SNAPSHOT/repository/database/WSO2CARBON_DB.data.db,
 read;

 I tested with AS 5.2.1 and we don't need this in 5.2.1.

 Can anyone tell why this is needed and if its an issue ?.

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Isuru Perera
 Associate Technical Lead | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha
 Contact: +IsuruPereraWSO2
 https://www.google.com/+IsuruPereraWSO2/about




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --

 *Aruna Sujith Karunarathna *| Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com





 --
 Isuru Perera
 Associate Technical Lead | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha
 Contact: +IsuruPereraWSO2 https://www.google.com/+IsuruPereraWSO2/about




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Java Security Manager needs read permission to h2 db in AS 5.3.0 SNAPSHOT

2015-08-27 Thread Supun Malinga
Hi,

Found that the issue happens at the following,

at
org.wso2.carbon.user.core.common.AbstractUserStoreManager.listUsers(AbstractUserStoreManager.java:2034)
at
org.apache.jsp.carbon.usermgt.index_jsp._jspService(index_jsp.java:167)

I did the following fix in CarbonContext (where the user realm is retrieved
initially), and the issue disappeared. Is this a good enough solution ? Or
do we have to explicitly do permission checks in AbstractUserStoreManager
?. So far there is none in that.. Let me know.

+++
b/core/org.wso2.carbon.utils/src/main/java/org/wso2/carbon/context/CarbonContext.java
@@ -233,6 +233,8 @@ public class CarbonContext {
  * @return the user realm instance.
  */
 public UserRealm getUserRealm() {
+CarbonUtils.checkSecurity();
 return getCarbonContextDataHolder().getUserRealm();
 }

thanks,


On Tue, Aug 25, 2015 at 12:17 PM, Supun Malinga sup...@wso2.com wrote:

 thanks Isuru. Let me see what I can find.

 thanks

 On Tue, Aug 25, 2015 at 12:12 PM, Isuru Perera isu...@wso2.com wrote:

 Hi Supun,

 I'm sorry I missed this mail. We need to identify which method is
 accessing the local database. We should never give explicit read
 permissions for the H2 database.

 We need to use Java Privileged Block API in Carbon Context APIs. If you
 cannot figure out the protection domain for the access failure, please
 check Java Security Debug logs. See Troubleshooting section in my Java
 Security Manager related blog post [1].

 With Privileged Block API, we can let Carbon Context APIs to use same
 permissions we give to Carbon code.

 Thanks!

 Best Regards,

 [1]
 http://isuru-perera.blogspot.com/2014/12/enabling-java-security-manager-for-wso2.html


 On Thu, Aug 13, 2015 at 3:37 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 For accessing usermgt via CarbonContext had to provide following
 permission for webapp.

 permission java.io.FilePermission
 /home/supun/smoke/java_sec/530_custom/wso2as-5.3.0-SNAPSHOT/repository/database/WSO2CARBON_DB.data.db,
 read;

 I tested with AS 5.2.1 and we don't need this in 5.2.1.

 Can anyone tell why this is needed and if its an issue ?.

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Isuru Perera
 Associate Technical Lead | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha
 Contact: +IsuruPereraWSO2 https://www.google.com/+IsuruPereraWSO2/about




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Java Security Manager needs read permission to h2 db in AS 5.3.0 SNAPSHOT

2015-08-25 Thread Supun Malinga
thanks Isuru. Let me see what I can find.

thanks

On Tue, Aug 25, 2015 at 12:12 PM, Isuru Perera isu...@wso2.com wrote:

 Hi Supun,

 I'm sorry I missed this mail. We need to identify which method is
 accessing the local database. We should never give explicit read
 permissions for the H2 database.

 We need to use Java Privileged Block API in Carbon Context APIs. If you
 cannot figure out the protection domain for the access failure, please
 check Java Security Debug logs. See Troubleshooting section in my Java
 Security Manager related blog post [1].

 With Privileged Block API, we can let Carbon Context APIs to use same
 permissions we give to Carbon code.

 Thanks!

 Best Regards,

 [1]
 http://isuru-perera.blogspot.com/2014/12/enabling-java-security-manager-for-wso2.html


 On Thu, Aug 13, 2015 at 3:37 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 For accessing usermgt via CarbonContext had to provide following
 permission for webapp.

 permission java.io.FilePermission
 /home/supun/smoke/java_sec/530_custom/wso2as-5.3.0-SNAPSHOT/repository/database/WSO2CARBON_DB.data.db,
 read;

 I tested with AS 5.2.1 and we don't need this in 5.2.1.

 Can anyone tell why this is needed and if its an issue ?.

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Isuru Perera
 Associate Technical Lead | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha
 Contact: +IsuruPereraWSO2 https://www.google.com/+IsuruPereraWSO2/about




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Intermittent Classloading issue in WebApp

2015-08-25 Thread Supun Malinga
(AbstractProtocol.java:611)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at
 org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.lang.Thread.run(Thread.java:745)

 When I start the server in osgi console, I found that the tomcat
 doesn't see the package, I have exported package correctly.

 osgi p org.wso2.carbon.dataservices.core
 org.wso2.carbon.dataservices.core;
 version=4.3.1.SNAPSHOTorg.wso2.carbon.dataservices.core_4.3.1.SNAPSHOT
 [145]
   org.wso2.carbon.dataservices.task_4.3.1.SNAPSHOT [149] imports
 osgi

 Any help on this matter is highly appreciated.

 Thanks,
 Madhawa
 --
 *Madhawa Gunasekara*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 719411002 +94+719411002
 blog: *http://madhawa-gunasekara.blogspot.com
 http://madhawa-gunasekara.blogspot.com*
 linkedin: *http://lk.linkedin.com/in/mgunasekara
 http://lk.linkedin.com/in/mgunasekara*




 --
 *Madhawa Gunasekara*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 719411002 +94+719411002
 blog: *http://madhawa-gunasekara.blogspot.com
 http://madhawa-gunasekara.blogspot.com*
 linkedin: *http://lk.linkedin.com/in/mgunasekara
 http://lk.linkedin.com/in/mgunasekara*




 --
 *Madhawa Gunasekara*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 719411002 +94+719411002
 blog: *http://madhawa-gunasekara.blogspot.com
 http://madhawa-gunasekara.blogspot.com*
 linkedin: *http://lk.linkedin.com/in/mgunasekara
 http://lk.linkedin.com/in/mgunasekara*




 --
 *Anjana Fernando*
 Senior Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Which branch we need to do fixes in carbon-commons

2015-08-24 Thread Supun Malinga
We should do a 4.4.5 release. What are your release timelines ?. Is this
for a RC/ Beta or Alpha ?

On Mon, Aug 24, 2015 at 12:04 PM, Rajith Vitharana raji...@wso2.com wrote:

 Hi Supun,

 I have done small fix to issue [1] and sent a PR for that to master branch
 in [2]. But can't resolve it since it is not yet reflected in DSS. So need
 to know which version will get released next so that we can use that in DSS
 and resolve the jira(Need this ASAP since we need to do a DSS release)

 [1] - https://wso2.org/jira/browse/DS-1078
 [2] - https://github.com/wso2/carbon-commons/pull/135

 Thanks,

 On Mon, Aug 24, 2015 at 11:59 AM, Supun Malinga sup...@wso2.com wrote:

 Hi Rajitha,

 For the moment you can commit the bug fixes to master. We will create
 branches according to the new process and let you know. So if you have
 major/ minor fixes please inform before hand..

 thanks,

 On Mon, Aug 24, 2015 at 10:36 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Thusitha,

 This is a bug fix. So to which branches do I need to send pulls? and
 which will be the next release version? do we need to request specifically
 for 4.4.x branch and release that for us?(Basically I'm asking about
 carbon-commons release process)

 Thanks,

 On Mon, Aug 24, 2015 at 10:29 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Rajith,

 If you want any API changes you can send PRs to the master branch. But
 if you need a patch release based on the 4.4.4, I think you can request
 4.4.x branch from the kernel team.
 Thaniks
 /Thusitha


 On Mon, Aug 24, 2015 at 10:10 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi,

 There seems to be three branches in carbon-commons git repo
 master
 release-4.2.x
 release-4.5.0

 So to which branch do we need to send pull requests? and what would be
 the next release version?

 Thanks,

 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Which branch we need to do fixes in carbon-commons

2015-08-24 Thread Supun Malinga
Hi Rajith,

Since this is a small bug fix we really don't need to include that into
Alpha in a hurry. You might get more bugs when you are doing the Beta. So
let's go ahead with DSS Alpha since this fix is not blocking it.

thanks,

On Mon, Aug 24, 2015 at 12:18 PM, Rajith Vitharana raji...@wso2.com wrote:

 This is for Alpha, We are planning to do the release within this week.

 Thanks,

 On Mon, Aug 24, 2015 at 12:07 PM, Supun Malinga sup...@wso2.com wrote:

 We should do a 4.4.5 release. What are your release timelines ?. Is this
 for a RC/ Beta or Alpha ?

 On Mon, Aug 24, 2015 at 12:04 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Supun,

 I have done small fix to issue [1] and sent a PR for that to master
 branch in [2]. But can't resolve it since it is not yet reflected in DSS.
 So need to know which version will get released next so that we can use
 that in DSS and resolve the jira(Need this ASAP since we need to do a DSS
 release)

 [1] - https://wso2.org/jira/browse/DS-1078
 [2] - https://github.com/wso2/carbon-commons/pull/135

 Thanks,

 On Mon, Aug 24, 2015 at 11:59 AM, Supun Malinga sup...@wso2.com wrote:

 Hi Rajitha,

 For the moment you can commit the bug fixes to master. We will create
 branches according to the new process and let you know. So if you have
 major/ minor fixes please inform before hand..

 thanks,

 On Mon, Aug 24, 2015 at 10:36 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Thusitha,

 This is a bug fix. So to which branches do I need to send pulls? and
 which will be the next release version? do we need to request specifically
 for 4.4.x branch and release that for us?(Basically I'm asking about
 carbon-commons release process)

 Thanks,

 On Mon, Aug 24, 2015 at 10:29 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Rajith,

 If you want any API changes you can send PRs to the master branch.
 But if you need a patch release based on the 4.4.4, I think you can 
 request
 4.4.x branch from the kernel team.
 Thaniks
 /Thusitha


 On Mon, Aug 24, 2015 at 10:10 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi,

 There seems to be three branches in carbon-commons git repo
 master
 release-4.2.x
 release-4.5.0

 So to which branch do we need to send pull requests? and what would
 be the next release version?

 Thanks,

 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Which branch we need to do fixes in carbon-commons

2015-08-24 Thread Supun Malinga
Hi Rajitha,

For the moment you can commit the bug fixes to master. We will create
branches according to the new process and let you know. So if you have
major/ minor fixes please inform before hand..

thanks,

On Mon, Aug 24, 2015 at 10:36 AM, Rajith Vitharana raji...@wso2.com wrote:

 Hi Thusitha,

 This is a bug fix. So to which branches do I need to send pulls? and which
 will be the next release version? do we need to request specifically for
 4.4.x branch and release that for us?(Basically I'm asking about
 carbon-commons release process)

 Thanks,

 On Mon, Aug 24, 2015 at 10:29 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Rajith,

 If you want any API changes you can send PRs to the master branch. But if
 you need a patch release based on the 4.4.4, I think you can request 4.4.x
 branch from the kernel team.
 Thaniks
 /Thusitha


 On Mon, Aug 24, 2015 at 10:10 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi,

 There seems to be three branches in carbon-commons git repo
 master
 release-4.2.x
 release-4.5.0

 So to which branch do we need to send pull requests? and what would be
 the next release version?

 Thanks,

 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Upgrading Mongodb-java-driver library 3.0.0

2015-08-19 Thread Supun Malinga
Merged.

@Maheshika, pls deploy this into nexus..

thanks,

On Wed, Aug 19, 2015 at 3:23 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 I'll look into this.

 thanks,

 On Wed, Aug 19, 2015 at 10:02 AM, Madhawa Gunasekara madha...@wso2.com
 wrote:

 kind reminder on this.

 On Fri, Aug 14, 2015 at 8:27 AM, Madhawa Gunasekara madha...@wso2.com
 wrote:

 Hi Carbon team,

 Can you please review and merge this pull request [1] for upgrade
 mongodb-java-driver library. This library is needed to support new MongoDB
 authentication mechanisms in DSS.

 [1] https://github.com/wso2/orbit/pull/119

 Thanks,
 Madhawa

 --
 *Madhawa Gunasekara*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 719411002 +94+719411002
 blog: *http://madhawa-gunasekara.blogspot.com
 http://madhawa-gunasekara.blogspot.com*
 linkedin: *http://lk.linkedin.com/in/mgunasekara
 http://lk.linkedin.com/in/mgunasekara*




 --
 *Madhawa Gunasekara*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 719411002 +94+719411002
 blog: *http://madhawa-gunasekara.blogspot.com
 http://madhawa-gunasekara.blogspot.com*
 linkedin: *http://lk.linkedin.com/in/mgunasekara
 http://lk.linkedin.com/in/mgunasekara*

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




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Upgrading Mongodb-java-driver library 3.0.0

2015-08-19 Thread Supun Malinga
Hi,

I'll look into this.

thanks,

On Wed, Aug 19, 2015 at 10:02 AM, Madhawa Gunasekara madha...@wso2.com
wrote:

 kind reminder on this.

 On Fri, Aug 14, 2015 at 8:27 AM, Madhawa Gunasekara madha...@wso2.com
 wrote:

 Hi Carbon team,

 Can you please review and merge this pull request [1] for upgrade
 mongodb-java-driver library. This library is needed to support new MongoDB
 authentication mechanisms in DSS.

 [1] https://github.com/wso2/orbit/pull/119

 Thanks,
 Madhawa

 --
 *Madhawa Gunasekara*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 719411002 +94+719411002
 blog: *http://madhawa-gunasekara.blogspot.com
 http://madhawa-gunasekara.blogspot.com*
 linkedin: *http://lk.linkedin.com/in/mgunasekara
 http://lk.linkedin.com/in/mgunasekara*




 --
 *Madhawa Gunasekara*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 719411002 +94+719411002
 blog: *http://madhawa-gunasekara.blogspot.com
 http://madhawa-gunasekara.blogspot.com*
 linkedin: *http://lk.linkedin.com/in/mgunasekara
 http://lk.linkedin.com/in/mgunasekara*

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




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += ​Kalpa Welivitigoda

2015-08-18 Thread Supun Malinga
Congrats Kalpa! Keep up the good work..!

On Tue, Aug 18, 2015 at 11:31 AM, KasunG Gajasinghe kas...@wso2.com wrote:


 Congratulations Kalpa! A well deserved one! :-)

 On Tue, Aug 18, 2015 at 10:29 AM, Sameera Perera samee...@wso2.com
 wrote:

 Hi,

 It is with great pleasure we welcome ​Kalpa Welivitigoda​ as a WSO2
 Committer.
 @Kalpa, congratulations and keep up the good work!

 --

 --

 *Sameera Perera*
 Director of Engineering
 gtalk: samee...@wso2.com
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware



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




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



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




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Use case of Topics menu item in Application Server

2015-08-18 Thread Supun Malinga
Hi,

I'm looking into the PR https://github.com/wso2/product-as/pull/204.
Do we want to keep org.wso2.carbon.event.server.feature ?

thanks,

On Tue, Aug 18, 2015 at 12:07 PM, KasunG Gajasinghe kas...@wso2.com wrote:

 Hi,

 It looks like there is no direct relation for this in AS. Hence, we do not
 need to ship this by default. If a user needs it in AS, they can use the
 p2-repo to get it back.

 @Manuri, please note.

 Thanks.

 On Thu, Jul 30, 2015 at 3:00 PM, Shabir Mohamed sha...@wso2.com wrote:

 Hi,

 Isn't it the same feature as in MB[1] to allow AS to work as a Pub/Sub
 Queue. I beleive this tab lists the topics created for subscription.

 [1]
 https://docs.wso2.com/display/MB220/Creating+a+Durable+Topic+Subscription

 -
 *Shabir Mohamed*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 Email: sha...@wso2.com ayy...@wso2.com
 Mobile: +94 77 3516019 | +94 71 6583393

 On Wed, Jul 29, 2015 at 10:29 PM, Niranjan Karunanandham 
 niran...@wso2.com wrote:

 [adding Kasun]

 On Wed, Jul 29, 2015 at 10:16 PM, Niranjan Karunanandham 
 niran...@wso2.com wrote:

 Hi all,

 What is the use case of the Topics menu item (Manager  Topics) in the
 side bar of the Admin Console in Application Server?

 Regards,
 Nira

 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com




 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

 ___
 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




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



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




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Java Security Manager needs read permission to h2 db in AS 5.3.0 SNAPSHOT

2015-08-13 Thread Supun Malinga
Hi,

For accessing usermgt via CarbonContext had to provide following permission
for webapp.

permission java.io.FilePermission
/home/supun/smoke/java_sec/530_custom/wso2as-5.3.0-SNAPSHOT/repository/database/WSO2CARBON_DB.data.db,
read;

I tested with AS 5.2.1 and we don't need this in 5.2.1.

Can anyone tell why this is needed and if its an issue ?.

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing Carbon Multitenancy

2015-08-07 Thread Supun Malinga
On Wed, Aug 5, 2015 at 9:14 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 On Wed, Aug 5, 2015 at 12:59 PM, Prabath Ariyarathna prabat...@wso2.com
 wrote:

 Hi Supun.

 I did small changes on PR to fix the few issues existing in the URL
 validation. Please check the new changes.

 Eg:-
 http://wso2s-MacBook-Pro-2.local:8280//services/t/wso1.com/Proxy1

 http://wso2s-MacBook-Pro-2.local:8280/services//t/wso1.com/Proxy1
 I checked basic scenarios like proxy service valid and invalid URLs with
 super tenant and tenant modes and ran available test cases which are
 related to the proxyServices/APIs in the ESB found no issues but
 unfortunately at the moment we don't have enough automated test cases to
 cover the multitenant edge cases.


 OK this is good. I'll merge the PR then. We should add test cases if they
 are not there. Please create a jira for that.


Merged.

thanks,


 Thanks.


 On Wed, Aug 5, 2015 at 12:06 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 We need to release carbon-identity and carbon-registry once the commons
 is released. This is due to carbon-multitenancy being dependent on identity
 and registry.

 Greg and IS teams as we discussed shall we start on those once the
 commons is out ?.

 thanks,

 On Wed, Aug 5, 2015 at 9:14 AM, Supun Malinga sup...@wso2.com wrote:

 Hi All,

 We will be releasing carbon-multitenancy today..

 Hi Prabath AR,
 I looked at the diff and fix looks ok. Have we also verified this with
 ESB team in terms of the approach to the fix ?. If yes I can go ahead and
 merge this.

 thanks,

 On Tue, Aug 4, 2015 at 12:39 PM, Prabath Ariyarathna 
 prabat...@wso2.com wrote:

 Hi Supun.

 Please review and merge the PR[1] for this issue[2].

 [1] = https://github.com/wso2/carbon-multitenancy/pull/46
 [2] = https://wso2.org/jira/browse/ESBJAVA-3992


 Thanks.

 On Tue, Aug 4, 2015 at 10:48 AM, Chanaka Fernando chana...@wso2.com
 wrote:

 Hi Supun,

 We have come across several issues[1], [2], [3] related to tenancy
 when testing the ESB 490 beta release. We are currently looking into 
 these
 issues. Did you guys face any issue related to dispatching when testing 
 the
 AS in multitenant scenarios?

 [1] https://wso2.org/jira/browse/ESBJAVA-3992

 [2] https://wso2.org/jira/browse/ESBJAVA-3989

 [3] https://wso2.org/jira/browse/ESBJAVA-3988

 Thanks,
 Chanaka



 On Mon, Aug 3, 2015 at 10:13 PM, Supun Malinga sup...@wso2.com
 wrote:

 Hi Devs,

 We are going to do $subject soon after carbon commons release. Shout
 if you have any fixes to be added.

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321

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




 --
 --
 Chanaka Fernando
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya
 Wordpress:http://chanakaudaya.wordpress.com






 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *








 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *








 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error building carbon-identity with carbon-commons 4.5.0

2015-08-06 Thread Supun Malinga
/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[292,32]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[296,17]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[422,16]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[422,42]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[422,57]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[442,17]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[522,16]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[522,42]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[522,57]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[530,16]
error: cannot find symbol

[ERROR]  class SalesforceProvisioningConnector
/home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[546,17]
error: cannot find symbol

[INFO] 26 errors

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Default sessionIdLength for webapps

2015-08-06 Thread Supun Malinga
Please create a jira and assign to me. I'll fix it for next
carbon-deployment release.

thanks,

On Thu, Aug 6, 2015 at 3:50 PM, Prabath Siriwardena prab...@wso2.com
wrote:

 Please set the default value of *sessionIdLength* to 128.

 Thanks  regards,
 -Prabath

 On Thu, Oct 9, 2014 at 8:44 PM, Prabath Siriwardena prab...@wso2.com
 wrote:

 Any reason why we should stick to 16..?

 Thanks  regards,
 -Prabath

 On Thu, Oct 9, 2014 at 8:42 PM, Afkham Azeez az...@wso2.com wrote:

 Can you keep it at 16, and make it possible to configure it?

 On Thu, Oct 9, 2014 at 8:37 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 I'm going to set $subject via config from platform 4.3 onward. What
 should be the optimum value ?.

 Tomcat default value for this is 16 and seems not enough for security
 purposes.

 https://wso2.org/jira/browse/WSAS-1818

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/*
 *email: **az...@wso2.com* az...@wso2.com
 * cell: +94 77 3320919 %2B94%2077%203320919blog: *
 *http://blog.afkham.org* http://blog.afkham.org
 *twitter: **http://twitter.com/afkham_azeez*
 http://twitter.com/afkham_azeez
 *linked-in: **http://lk.linkedin.com/in/afkhamazeez
 http://lk.linkedin.com/in/afkhamazeez*

 *Lean . Enterprise . Middleware*




 --
 Thanks  Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://blog.api-security.org




 --
 Thanks  Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +1 650 625 7950

 http://blog.facilelogin.com
 http://blog.api-security.org




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error building carbon-identity with carbon-commons 4.5.0

2015-08-06 Thread Supun Malinga
thanks Hasintha

On Fri, Aug 7, 2015 at 11:22 AM, Hasintha Indrajee hasin...@wso2.com
wrote:

 This is fixed with [1]

 [1] https://github.com/wso2/carbon-identity/pull/761

 On Fri, Aug 7, 2015 at 1:20 AM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Please have a look. Tried with carbon-identity master branch.

 [INFO] Compiling 6 source files to
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/target/classes
 [INFO] -
 [ERROR] COMPILATION ERROR :
 [INFO] -
 [ERROR]
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[32,15]
 error: package org.json does not exist

 [ERROR]
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[33,15]
 error: package org.json does not exist

 [ERROR]
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[34,15]
 error: package org.json does not exist

 [ERROR]
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[35,15]
 error: package org.json does not exist

 [ERROR]
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[125,12]
 error: cannot find symbol

 [ERROR]  class SalesforceProvisioningConnector
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[308,45]
 error: cannot find symbol

 [ERROR]  class SalesforceProvisioningConnector
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[140,8]
 error: cannot find symbol

 [ERROR]  class SalesforceProvisioningConnector
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[140,30]
 error: cannot find symbol

 [ERROR]  class SalesforceProvisioningConnector
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[197,17]
 error: cannot find symbol

 [ERROR]  class SalesforceProvisioningConnector
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[216,8]
 error: cannot find symbol

 [ERROR]  class SalesforceProvisioningConnector
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[240,16]
 error: cannot find symbol

 [ERROR]  class SalesforceProvisioningConnector
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[240,42]
 error: cannot find symbol

 [ERROR]  class SalesforceProvisioningConnector
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[240,57]
 error: cannot find symbol

 [ERROR]  class SalesforceProvisioningConnector
 /home/ubuntu/builds/carbon-identity/components/provisioning/org.wso2.carbon.identity.provisioning.connector.salesforce/src/main/java/org/wso2/carbon/identity/provisioning/connector/salesforce/SalesforceProvisioningConnector.java:[259,31]
 error: cannot find symbol

 [ERROR]  class SalesforceProvisioningConnector
 /home/ubuntu/builds/carbon

Re: [Dev] Default sessionIdLength for webapps

2015-08-06 Thread Supun Malinga
Fixed..

On Thu, Aug 6, 2015 at 3:55 PM, Prabath Siriwardena prab...@wso2.com
wrote:

 https://wso2.org/jira/browse/CARBON-15352

 Thanks  regards,
 -Prabath

 On Thu, Aug 6, 2015 at 3:52 PM, Supun Malinga sup...@wso2.com wrote:

 Please create a jira and assign to me. I'll fix it for next
 carbon-deployment release.

 thanks,

 On Thu, Aug 6, 2015 at 3:50 PM, Prabath Siriwardena prab...@wso2.com
 wrote:

 Please set the default value of *sessionIdLength* to 128.

 Thanks  regards,
 -Prabath

 On Thu, Oct 9, 2014 at 8:44 PM, Prabath Siriwardena prab...@wso2.com
 wrote:

 Any reason why we should stick to 16..?

 Thanks  regards,
 -Prabath

 On Thu, Oct 9, 2014 at 8:42 PM, Afkham Azeez az...@wso2.com wrote:

 Can you keep it at 16, and make it possible to configure it?

 On Thu, Oct 9, 2014 at 8:37 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 I'm going to set $subject via config from platform 4.3 onward. What
 should be the optimum value ?.

 Tomcat default value for this is 16 and seems not enough for security
 purposes.

 https://wso2.org/jira/browse/WSAS-1818

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/*
 *email: **az...@wso2.com* az...@wso2.com
 * cell: +94 77 3320919 %2B94%2077%203320919blog: *
 *http://blog.afkham.org* http://blog.afkham.org
 *twitter: **http://twitter.com/afkham_azeez*
 http://twitter.com/afkham_azeez
 *linked-in: **http://lk.linkedin.com/in/afkhamazeez
 http://lk.linkedin.com/in/afkhamazeez*

 *Lean . Enterprise . Middleware*




 --
 Thanks  Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://blog.api-security.org




 --
 Thanks  Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +1 650 625 7950

 http://blog.facilelogin.com
 http://blog.api-security.org




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Thanks  Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +1 650 625 7950

 http://blog.facilelogin.com
 http://blog.api-security.org




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Does anyone needs carbon-commons/components/data-sources

2015-08-06 Thread Supun Malinga
Hi,

$subject?.
[1] is not included in the build and wasn't released so far. As per Anjana
its the old DS component.
I'm going to remove it from commons. If anyone still needs it pls holler.

[1]
https://github.com/wso2/carbon-commons/tree/master/components/data-sources
https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2%2Fcarbon-commons%2Ftree%2Fmaster%2Fcomponents%2Fdata-sourcessa=Dsntz=1usg=AFQjCNFvsoNaFj6hPYZiWVajnjP9MsCWWg

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Engage org.apache.catalina.filters.HttpHeaderSecurityFilter to all the web apps - including the Management Console

2015-08-06 Thread Supun Malinga
Hi Kishanthan,

On Thu, Aug 6, 2015 at 5:47 PM, Kishanthan Thangarajah kishant...@wso2.com
wrote:

 Ok. Targeting for next kernel release. For already released products, they
 can enable this by editing the global web.xml.

 @SupunM, can we include this for next AS release?


Since this is in kernel we cannot include this fix unless we do another
kernel release (i.e: 4.4.2) before AS 5.3.0. Other option would be to
duplicate the web.xml from carbon-deployment and add the changes there. If
this is important we can easily do this from second approach.



 On Thu, Aug 6, 2015 at 5:35 PM, Prabath Siriwardena prab...@wso2.com
 wrote:

 Yes.. please engage it by default..

 Thanks  regards,
 -Prabath

 On Thu, Aug 6, 2015 at 5:28 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 Created a jira for this : https://wso2.org/jira/browse/CARBON-15354

 On Thu, Aug 6, 2015 at 5:22 PM, Kishanthan Thangarajah 
 kishant...@wso2.com wrote:

 We can do this via the global web.xml at 
 $CARBON_HOME/repository/conf/tomcat/web.xml.
 Then it will be available for all the webapps (including mgt console).
 Should this be added as a default filter?

 Refer :
 https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#HTTP_Header_Security_Filter

 On Thu, Aug 6, 2015 at 3:48 PM, Prabath Siriwardena prab...@wso2.com
 wrote:

 Can we please do the $subject ?


 Thanks  Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +1 650 625 7950

 http://blog.facilelogin.com
 http://blog.api-security.org




 --
 *Kishanthan Thangarajah*
 Associate Technical Lead,
 Platform Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 *Kishanthan Thangarajah*
 Associate Technical Lead,
 Platform Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com
 http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan
 http://twitter.com/kishanthan*




 --
 Thanks  Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +1 650 625 7950

 http://blog.facilelogin.com
 http://blog.api-security.org




 --
 *Kishanthan Thangarajah*
 Associate Technical Lead,
 Platform Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan*




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing Carbon Multitenancy

2015-08-05 Thread Supun Malinga
Hi,

We need to release carbon-identity and carbon-registry once the commons is
released. This is due to carbon-multitenancy being dependent on identity
and registry.

Greg and IS teams as we discussed shall we start on those once the commons
is out ?.

thanks,

On Wed, Aug 5, 2015 at 9:14 AM, Supun Malinga sup...@wso2.com wrote:

 Hi All,

 We will be releasing carbon-multitenancy today..

 Hi Prabath AR,
 I looked at the diff and fix looks ok. Have we also verified this with ESB
 team in terms of the approach to the fix ?. If yes I can go ahead and merge
 this.

 thanks,

 On Tue, Aug 4, 2015 at 12:39 PM, Prabath Ariyarathna prabat...@wso2.com
 wrote:

 Hi Supun.

 Please review and merge the PR[1] for this issue[2].

 [1] = https://github.com/wso2/carbon-multitenancy/pull/46
 [2] = https://wso2.org/jira/browse/ESBJAVA-3992


 Thanks.

 On Tue, Aug 4, 2015 at 10:48 AM, Chanaka Fernando chana...@wso2.com
 wrote:

 Hi Supun,

 We have come across several issues[1], [2], [3] related to tenancy when
 testing the ESB 490 beta release. We are currently looking into these
 issues. Did you guys face any issue related to dispatching when testing the
 AS in multitenant scenarios?

 [1] https://wso2.org/jira/browse/ESBJAVA-3992

 [2] https://wso2.org/jira/browse/ESBJAVA-3989

 [3] https://wso2.org/jira/browse/ESBJAVA-3988

 Thanks,
 Chanaka



 On Mon, Aug 3, 2015 at 10:13 PM, Supun Malinga sup...@wso2.com wrote:

 Hi Devs,

 We are going to do $subject soon after carbon commons release. Shout if
 you have any fixes to be added.

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321

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




 --
 --
 Chanaka Fernando
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya
 Wordpress:http://chanakaudaya.wordpress.com






 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *








 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please release the staging repo for carbon-commons

2015-08-05 Thread Supun Malinga
thanks Kasun.

On Wed, Aug 5, 2015 at 12:11 PM, KasunG Gajasinghe kas...@wso2.com wrote:

 Hi all,

 Released the carbon-commons from staging. Next up is carbon-identity.

 On Wed, Aug 5, 2015 at 11:58 AM, Hasintha Indrajee hasin...@wso2.com
 wrote:

 Hi,

 Verified carbon-identity. Build is fine.

 On Wed, Aug 5, 2015 at 10:41 AM, Johann Nallathamby joh...@wso2.com
 wrote:

 +1.

 On Wed, Aug 5, 2015 at 9:25 AM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Verified carbon-deployment.

 We still use carbon-commons user mgt components.
 @Johann we would need a carbon-identity release since we have moved
 user mgt stuff into identity. Can we do this after commons is released ?.

 thanks,

 On Tue, Aug 4, 2015 at 6:59 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Guys can you build your respective repos pointing to the staging repo
 and verify this ?.
 I will look into carbon-deployment and product-as.

 thanks,

 On Tue, Aug 4, 2015 at 6:56 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi Supun,

 Closed the repo, please verify -
 http://maven.wso2.org/nexus/content/repositories/orgwso2carboncommons-001/

 On Tue, Aug 4, 2015 at 6:54 PM, Supun Malinga sup...@wso2.com
 wrote:

 Hi,

 $subject pls.

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*

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




 --
 Hasintha Indrajee
 Software Engineer
 WSO2, Inc.
 Mobile:+94 771892453


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




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



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




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Carbon Commons 4.4.4 Released!

2015-08-05 Thread Supun Malinga
Hi repo owners,

Please update to the released version 4.4.4.

eg:
carbon.commons.version4.4.4/carbon.commons.version

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing Carbon Multitenancy

2015-08-05 Thread Supun Malinga
Hi,

On Wed, Aug 5, 2015 at 12:59 PM, Prabath Ariyarathna prabat...@wso2.com
wrote:

 Hi Supun.

 I did small changes on PR to fix the few issues existing in the URL
 validation. Please check the new changes.

 Eg:-
 http://wso2s-MacBook-Pro-2.local:8280//services/t/wso1.com/Proxy1

 http://wso2s-MacBook-Pro-2.local:8280/services//t/wso1.com/Proxy1
 I checked basic scenarios like proxy service valid and invalid URLs with
 super tenant and tenant modes and ran available test cases which are
 related to the proxyServices/APIs in the ESB found no issues but
 unfortunately at the moment we don't have enough automated test cases to
 cover the multitenant edge cases.


OK this is good. I'll merge the PR then. We should add test cases if they
are not there. Please create a jira for that.


 Thanks.


 On Wed, Aug 5, 2015 at 12:06 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 We need to release carbon-identity and carbon-registry once the commons
 is released. This is due to carbon-multitenancy being dependent on identity
 and registry.

 Greg and IS teams as we discussed shall we start on those once the
 commons is out ?.

 thanks,

 On Wed, Aug 5, 2015 at 9:14 AM, Supun Malinga sup...@wso2.com wrote:

 Hi All,

 We will be releasing carbon-multitenancy today..

 Hi Prabath AR,
 I looked at the diff and fix looks ok. Have we also verified this with
 ESB team in terms of the approach to the fix ?. If yes I can go ahead and
 merge this.

 thanks,

 On Tue, Aug 4, 2015 at 12:39 PM, Prabath Ariyarathna prabat...@wso2.com
  wrote:

 Hi Supun.

 Please review and merge the PR[1] for this issue[2].

 [1] = https://github.com/wso2/carbon-multitenancy/pull/46
 [2] = https://wso2.org/jira/browse/ESBJAVA-3992


 Thanks.

 On Tue, Aug 4, 2015 at 10:48 AM, Chanaka Fernando chana...@wso2.com
 wrote:

 Hi Supun,

 We have come across several issues[1], [2], [3] related to tenancy
 when testing the ESB 490 beta release. We are currently looking into these
 issues. Did you guys face any issue related to dispatching when testing 
 the
 AS in multitenant scenarios?

 [1] https://wso2.org/jira/browse/ESBJAVA-3992

 [2] https://wso2.org/jira/browse/ESBJAVA-3989

 [3] https://wso2.org/jira/browse/ESBJAVA-3988

 Thanks,
 Chanaka



 On Mon, Aug 3, 2015 at 10:13 PM, Supun Malinga sup...@wso2.com
 wrote:

 Hi Devs,

 We are going to do $subject soon after carbon commons release. Shout
 if you have any fixes to be added.

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321

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




 --
 --
 Chanaka Fernando
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya
 Wordpress:http://chanakaudaya.wordpress.com






 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *








 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *








-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Releasing carbon-commons 4.5.0

2015-08-05 Thread Supun Malinga
Hi devs,

Since there are several API changes/ component changes we thought of doing
a carbon-commons minor release.
Current released version is : *4.4.4*
To be released: *4.5.0*

So if you have any api changes/ significant changes to commons please work
on sending PRs ASAP.. Do shout if you have anything pending.

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error at ESB startup after carbon commons 4.4.4-SNAPSHOT upgrade

2015-08-04 Thread Supun Malinga
org.wso2.carbon.tenant.mgt.server.feature packs
org.wso2.carbon.email.verification
4.4.3. So we need to update carbon-multitenancy after commons release. That
will fix the issue..

On Tue, Aug 4, 2015 at 4:16 PM, Supun Malinga sup...@wso2.com wrote:

 Seems its only packed in deployment.synchronizer composite feature
 and deployment.synchronizer server feature. So the older version of the jar
 should be packed in a feature from a different repo..

 On Tue, Aug 4, 2015 at 4:10 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 I have tried to find the root cause for this issue. But I could only find
 the feature which is exporting 4.4.4.SNAPSHOT version of
 org.wso2.carbon.email.verification which is on carbon-commons.

 org.wso2.carbon.deployment.synchronizer.server.feature

 I couldn't find the feature which is importing the 4.4.3 version of the
 same component. Is there any way which I can find where a particular jar
 file is coming from?



 On Tue, Aug 4, 2015 at 3:01 PM, Supun Malinga sup...@wso2.com wrote:

 Yeah this can happen when two features packs two different versions of
 same jar..

 On Tue, Aug 4, 2015 at 2:59 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:


 Can you verify whether there are any other version of
 org.wso2.carbon.email.verification component?

 On Tue, Aug 4, 2015 at 2:50 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 Hi Carbon team,

 We are getting the below exception[1]  at the server startup after
 upgrading to carbon-commons 4.4.4-SNAPSHOT version. What could be the
 reason for this?

 [1]

 [2015-08-04 14:31:49,191] ERROR - Axis2ServiceRegistry Error building
 service from bundle : Symbolic Name:
 org.wso2.carbon.email.verification,Bundle Version: 4.4.4.SNAPSHOT, ID: 179
 org.apache.axis2.AxisFault: Two services cannot have same name.  A
 service with the EmailVerificationService [null] name already exists in 
 the
 system.
 at
 org.apache.axis2.engine.AxisConfiguration.addToAllServicesMap(AxisConfiguration.java:510)
 at
 org.apache.axis2.description.AxisServiceGroup.addService(AxisServiceGroup.java:110)
 at
 org.apache.axis2.deployment.DeploymentEngine.fillServiceGroup(DeploymentEngine.java:745)
 at
 org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:601)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.addServices(Axis2ServiceRegistry.java:222)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:102)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:89)
 at
 org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:473)
 at
 org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
 at
 org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.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:497)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81

Re: [Dev] Getting error at ESB startup after carbon commons 4.4.4-SNAPSHOT upgrade

2015-08-04 Thread Supun Malinga
Seems its only packed in deployment.synchronizer composite feature
and deployment.synchronizer server feature. So the older version of the jar
should be packed in a feature from a different repo..

On Tue, Aug 4, 2015 at 4:10 PM, Chanaka Fernando chana...@wso2.com wrote:

 I have tried to find the root cause for this issue. But I could only find
 the feature which is exporting 4.4.4.SNAPSHOT version of
 org.wso2.carbon.email.verification which is on carbon-commons.

 org.wso2.carbon.deployment.synchronizer.server.feature

 I couldn't find the feature which is importing the 4.4.3 version of the
 same component. Is there any way which I can find where a particular jar
 file is coming from?



 On Tue, Aug 4, 2015 at 3:01 PM, Supun Malinga sup...@wso2.com wrote:

 Yeah this can happen when two features packs two different versions of
 same jar..

 On Tue, Aug 4, 2015 at 2:59 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:


 Can you verify whether there are any other version of
 org.wso2.carbon.email.verification component?

 On Tue, Aug 4, 2015 at 2:50 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 Hi Carbon team,

 We are getting the below exception[1]  at the server startup after
 upgrading to carbon-commons 4.4.4-SNAPSHOT version. What could be the
 reason for this?

 [1]

 [2015-08-04 14:31:49,191] ERROR - Axis2ServiceRegistry Error building
 service from bundle : Symbolic Name:
 org.wso2.carbon.email.verification,Bundle Version: 4.4.4.SNAPSHOT, ID: 179
 org.apache.axis2.AxisFault: Two services cannot have same name.  A
 service with the EmailVerificationService [null] name already exists in the
 system.
 at
 org.apache.axis2.engine.AxisConfiguration.addToAllServicesMap(AxisConfiguration.java:510)
 at
 org.apache.axis2.description.AxisServiceGroup.addService(AxisServiceGroup.java:110)
 at
 org.apache.axis2.deployment.DeploymentEngine.fillServiceGroup(DeploymentEngine.java:745)
 at
 org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:601)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.addServices(Axis2ServiceRegistry.java:222)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:102)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:89)
 at
 org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:473)
 at
 org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
 at
 org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.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:497)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.equinox.http.servlet.internal.Activator.registerHttpService(Activator.java:81)
 at
 org.eclipse.equinox.http.servlet.internal.Activator.addProxyServlet(Activator.java:60)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.init(ProxyServlet.java:40)
 at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.init

Re: [Dev] Getting error at ESB startup after carbon commons 4.4.4-SNAPSHOT upgrade

2015-08-04 Thread Supun Malinga
yeah. +1
It was wrong to pack email.verification jar in depsync feauture. Also there
is no usage of that within depsync.

On Tue, Aug 4, 2015 at 4:48 PM, KasunG Gajasinghe kas...@wso2.com wrote:

 Hi Supun,

 We should not pack an external component such as email.verification into
 depsync feature. So, can we remove this? Otherwise, this will lead to
 multiple issues because we have several repos that might pack different
 versions of the same component.

 On Tue, Aug 4, 2015 at 4:25 PM, Supun Malinga sup...@wso2.com wrote:

 org.wso2.carbon.tenant.mgt.server.feature packs 
 org.wso2.carbon.email.verification
 4.4.3. So we need to update carbon-multitenancy after commons release. That
 will fix the issue..

 On Tue, Aug 4, 2015 at 4:16 PM, Supun Malinga sup...@wso2.com wrote:

 Seems its only packed in deployment.synchronizer composite feature
 and deployment.synchronizer server feature. So the older version of the jar
 should be packed in a feature from a different repo..

 On Tue, Aug 4, 2015 at 4:10 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 I have tried to find the root cause for this issue. But I could only
 find the feature which is exporting 4.4.4.SNAPSHOT version of
 org.wso2.carbon.email.verification which is on carbon-commons.

 org.wso2.carbon.deployment.synchronizer.server.feature

 I couldn't find the feature which is importing the 4.4.3 version of the
 same component. Is there any way which I can find where a particular jar
 file is coming from?



 On Tue, Aug 4, 2015 at 3:01 PM, Supun Malinga sup...@wso2.com wrote:

 Yeah this can happen when two features packs two different versions of
 same jar..

 On Tue, Aug 4, 2015 at 2:59 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:


 Can you verify whether there are any other version of
 org.wso2.carbon.email.verification component?

 On Tue, Aug 4, 2015 at 2:50 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 Hi Carbon team,

 We are getting the below exception[1]  at the server startup after
 upgrading to carbon-commons 4.4.4-SNAPSHOT version. What could be the
 reason for this?

 [1]

 [2015-08-04 14:31:49,191] ERROR - Axis2ServiceRegistry Error
 building service from bundle : Symbolic Name:
 org.wso2.carbon.email.verification,Bundle Version: 4.4.4.SNAPSHOT, ID: 
 179
 org.apache.axis2.AxisFault: Two services cannot have same name.  A
 service with the EmailVerificationService [null] name already exists in 
 the
 system.
 at
 org.apache.axis2.engine.AxisConfiguration.addToAllServicesMap(AxisConfiguration.java:510)
 at
 org.apache.axis2.description.AxisServiceGroup.addService(AxisServiceGroup.java:110)
 at
 org.apache.axis2.deployment.DeploymentEngine.fillServiceGroup(DeploymentEngine.java:745)
 at
 org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:601)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.addServices(Axis2ServiceRegistry.java:222)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:102)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:89)
 at
 org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:473)
 at
 org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
 at
 org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.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:497)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819

Re: [Dev] Getting error at ESB startup after carbon commons 4.4.4-SNAPSHOT upgrade

2015-08-04 Thread Supun Malinga
Can you send this to release-4.4.4 branch ?

On Tue, Aug 4, 2015 at 5:17 PM, Chanaka Fernando chana...@wso2.com wrote:

 Hi Supun/KasunG,

 Can we get the following PR[1] merged? This is necessary for ESB 490-Beta
 release.

 [1] https://github.com/wso2/carbon-commons/pull/113


 Thanks,
 Chanaka

 On Tue, Aug 4, 2015 at 4:51 PM, Supun Malinga sup...@wso2.com wrote:

 yeah. +1
 It was wrong to pack email.verification jar in depsync feauture. Also
 there is no usage of that within depsync.

 On Tue, Aug 4, 2015 at 4:48 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi Supun,

 We should not pack an external component such as email.verification into
 depsync feature. So, can we remove this? Otherwise, this will lead to
 multiple issues because we have several repos that might pack different
 versions of the same component.

 On Tue, Aug 4, 2015 at 4:25 PM, Supun Malinga sup...@wso2.com wrote:

 org.wso2.carbon.tenant.mgt.server.feature packs 
 org.wso2.carbon.email.verification
 4.4.3. So we need to update carbon-multitenancy after commons release. That
 will fix the issue..

 On Tue, Aug 4, 2015 at 4:16 PM, Supun Malinga sup...@wso2.com wrote:

 Seems its only packed in deployment.synchronizer composite feature
 and deployment.synchronizer server feature. So the older version of the 
 jar
 should be packed in a feature from a different repo..

 On Tue, Aug 4, 2015 at 4:10 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 I have tried to find the root cause for this issue. But I could only
 find the feature which is exporting 4.4.4.SNAPSHOT version of
 org.wso2.carbon.email.verification which is on carbon-commons.

 org.wso2.carbon.deployment.synchronizer.server.feature

 I couldn't find the feature which is importing the 4.4.3 version of
 the same component. Is there any way which I can find where a particular
 jar file is coming from?



 On Tue, Aug 4, 2015 at 3:01 PM, Supun Malinga sup...@wso2.com
 wrote:

 Yeah this can happen when two features packs two different versions
 of same jar..

 On Tue, Aug 4, 2015 at 2:59 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:


 Can you verify whether there are any other version of
 org.wso2.carbon.email.verification component?

 On Tue, Aug 4, 2015 at 2:50 PM, Chanaka Fernando chana...@wso2.com
  wrote:

 Hi Carbon team,

 We are getting the below exception[1]  at the server startup after
 upgrading to carbon-commons 4.4.4-SNAPSHOT version. What could be the
 reason for this?

 [1]

 [2015-08-04 14:31:49,191] ERROR - Axis2ServiceRegistry Error
 building service from bundle : Symbolic Name:
 org.wso2.carbon.email.verification,Bundle Version: 4.4.4.SNAPSHOT, 
 ID: 179
 org.apache.axis2.AxisFault: Two services cannot have same name.  A
 service with the EmailVerificationService [null] name already exists 
 in the
 system.
 at
 org.apache.axis2.engine.AxisConfiguration.addToAllServicesMap(AxisConfiguration.java:510)
 at
 org.apache.axis2.description.AxisServiceGroup.addService(AxisServiceGroup.java:110)
 at
 org.apache.axis2.deployment.DeploymentEngine.fillServiceGroup(DeploymentEngine.java:745)
 at
 org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:601)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.addServices(Axis2ServiceRegistry.java:222)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:102)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:89)
 at
 org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:473)
 at
 org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
 at
 org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.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:497)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107

Re: [Dev] Getting error at ESB startup after carbon commons 4.4.4-SNAPSHOT upgrade

2015-08-04 Thread Supun Malinga
Merged!

On Tue, Aug 4, 2015 at 5:36 PM, Chanaka Fernando chana...@wso2.com wrote:

 Please find the new PR[1].

 [1] https://github.com/wso2/carbon-commons/pull/114/files

 On Tue, Aug 4, 2015 at 5:32 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 @Ravi:

 Can you send this PR to release-4.4.4 branch?

 On Tue, Aug 4, 2015 at 5:29 PM, Supun Malinga sup...@wso2.com wrote:

 Can you send this to release-4.4.4 branch ?

 On Tue, Aug 4, 2015 at 5:17 PM, Chanaka Fernando chana...@wso2.com
 wrote:

 Hi Supun/KasunG,

 Can we get the following PR[1] merged? This is necessary for ESB
 490-Beta release.

 [1] https://github.com/wso2/carbon-commons/pull/113


 Thanks,
 Chanaka

 On Tue, Aug 4, 2015 at 4:51 PM, Supun Malinga sup...@wso2.com wrote:

 yeah. +1
 It was wrong to pack email.verification jar in depsync feauture. Also
 there is no usage of that within depsync.

 On Tue, Aug 4, 2015 at 4:48 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi Supun,

 We should not pack an external component such as email.verification
 into depsync feature. So, can we remove this? Otherwise, this will lead 
 to
 multiple issues because we have several repos that might pack different
 versions of the same component.

 On Tue, Aug 4, 2015 at 4:25 PM, Supun Malinga sup...@wso2.com
 wrote:

 org.wso2.carbon.tenant.mgt.server.feature packs 
 org.wso2.carbon.email.verification
 4.4.3. So we need to update carbon-multitenancy after commons release. 
 That
 will fix the issue..

 On Tue, Aug 4, 2015 at 4:16 PM, Supun Malinga sup...@wso2.com
 wrote:

 Seems its only packed in deployment.synchronizer composite feature
 and deployment.synchronizer server feature. So the older version of 
 the jar
 should be packed in a feature from a different repo..

 On Tue, Aug 4, 2015 at 4:10 PM, Chanaka Fernando chana...@wso2.com
  wrote:

 I have tried to find the root cause for this issue. But I could
 only find the feature which is exporting 4.4.4.SNAPSHOT version of
 org.wso2.carbon.email.verification which is on carbon-commons.

 org.wso2.carbon.deployment.synchronizer.server.feature

 I couldn't find the feature which is importing the 4.4.3 version
 of the same component. Is there any way which I can find where a 
 particular
 jar file is coming from?



 On Tue, Aug 4, 2015 at 3:01 PM, Supun Malinga sup...@wso2.com
 wrote:

 Yeah this can happen when two features packs two different
 versions of same jar..

 On Tue, Aug 4, 2015 at 2:59 PM, KasunG Gajasinghe 
 kas...@wso2.com wrote:


 Can you verify whether there are any other version of
 org.wso2.carbon.email.verification component?

 On Tue, Aug 4, 2015 at 2:50 PM, Chanaka Fernando 
 chana...@wso2.com wrote:

 Hi Carbon team,

 We are getting the below exception[1]  at the server startup
 after upgrading to carbon-commons 4.4.4-SNAPSHOT version. What 
 could be the
 reason for this?

 [1]

 [2015-08-04 14:31:49,191] ERROR - Axis2ServiceRegistry Error
 building service from bundle : Symbolic Name:
 org.wso2.carbon.email.verification,Bundle Version: 4.4.4.SNAPSHOT, 
 ID: 179
 org.apache.axis2.AxisFault: Two services cannot have same
 name.  A service with the EmailVerificationService [null] name 
 already
 exists in the system.
 at
 org.apache.axis2.engine.AxisConfiguration.addToAllServicesMap(AxisConfiguration.java:510)
 at
 org.apache.axis2.description.AxisServiceGroup.addService(AxisServiceGroup.java:110)
 at
 org.apache.axis2.deployment.DeploymentEngine.fillServiceGroup(DeploymentEngine.java:745)
 at
 org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:601)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.addServices(Axis2ServiceRegistry.java:222)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:102)
 at
 org.wso2.carbon.utils.deployment.Axis2ServiceRegistry.register(Axis2ServiceRegistry.java:89)
 at
 org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:473)
 at
 org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
 at
 org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.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:497)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents

[Dev] Please release the staging repo for carbon-commons

2015-08-04 Thread Supun Malinga
Hi,

$subject pls.

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please release the staging repo for carbon-commons

2015-08-04 Thread Supun Malinga
Hi,

Guys can you build your respective repos pointing to the staging repo and
verify this ?.
I will look into carbon-deployment and product-as.

thanks,

On Tue, Aug 4, 2015 at 6:56 PM, KasunG Gajasinghe kas...@wso2.com wrote:

 Hi Supun,

 Closed the repo, please verify -
 http://maven.wso2.org/nexus/content/repositories/orgwso2carboncommons-001/

 On Tue, Aug 4, 2015 at 6:54 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 $subject pls.

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error at ESB startup after carbon commons 4.4.4-SNAPSHOT upgrade

2015-08-04 Thread Supun Malinga
:266)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)


 Thanks,
 Chanaka

 --
 --
 Chanaka Fernando
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya
 Wordpress:http://chanakaudaya.wordpress.com






 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please release the staging repo for carbon-commons

2015-08-04 Thread Supun Malinga
Hi Chanaka,

We haven't started the carbon-deployment release yet since we have to do it
after multitenancy release.. I think we can start working on that today..

thanks,

On Wed, Aug 5, 2015 at 9:42 AM, Chanaka Fernando chana...@wso2.com wrote:

 Hi Supun,

 We will test the carbon-commons repo[1] with the ESB and let you know.
 Could you please share the staging repo for the carbon-deployment also if
 there is any?

 [1]
 http://maven.wso2.org/nexus/content/repositories/orgwso2carboncommons-001/

 Thanks,
 Chanaka

 On Wed, Aug 5, 2015 at 9:25 AM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Verified carbon-deployment.

 We still use carbon-commons user mgt components.
 @Johann we would need a carbon-identity release since we have moved user
 mgt stuff into identity. Can we do this after commons is released ?.

 thanks,

 On Tue, Aug 4, 2015 at 6:59 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Guys can you build your respective repos pointing to the staging repo
 and verify this ?.
 I will look into carbon-deployment and product-as.

 thanks,

 On Tue, Aug 4, 2015 at 6:56 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi Supun,

 Closed the repo, please verify -
 http://maven.wso2.org/nexus/content/repositories/orgwso2carboncommons-001/

 On Tue, Aug 4, 2015 at 6:54 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 $subject pls.

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 --
 Chanaka Fernando
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya
 Wordpress:http://chanakaudaya.wordpress.com






-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing Carbon Multitenancy

2015-08-04 Thread Supun Malinga
Hi All,

We will be releasing carbon-multitenancy today..

Hi Prabath AR,
I looked at the diff and fix looks ok. Have we also verified this with ESB
team in terms of the approach to the fix ?. If yes I can go ahead and merge
this.

thanks,

On Tue, Aug 4, 2015 at 12:39 PM, Prabath Ariyarathna prabat...@wso2.com
wrote:

 Hi Supun.

 Please review and merge the PR[1] for this issue[2].

 [1] = https://github.com/wso2/carbon-multitenancy/pull/46
 [2] = https://wso2.org/jira/browse/ESBJAVA-3992


 Thanks.

 On Tue, Aug 4, 2015 at 10:48 AM, Chanaka Fernando chana...@wso2.com
 wrote:

 Hi Supun,

 We have come across several issues[1], [2], [3] related to tenancy when
 testing the ESB 490 beta release. We are currently looking into these
 issues. Did you guys face any issue related to dispatching when testing the
 AS in multitenant scenarios?

 [1] https://wso2.org/jira/browse/ESBJAVA-3992

 [2] https://wso2.org/jira/browse/ESBJAVA-3989

 [3] https://wso2.org/jira/browse/ESBJAVA-3988

 Thanks,
 Chanaka



 On Mon, Aug 3, 2015 at 10:13 PM, Supun Malinga sup...@wso2.com wrote:

 Hi Devs,

 We are going to do $subject soon after carbon commons release. Shout if
 you have any fixes to be added.

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321

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




 --
 --
 Chanaka Fernando
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya
 Wordpress:http://chanakaudaya.wordpress.com






 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *








-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please release the staging repo for carbon-commons

2015-08-04 Thread Supun Malinga
Hi,

Verified carbon-deployment.

We still use carbon-commons user mgt components.
@Johann we would need a carbon-identity release since we have moved user
mgt stuff into identity. Can we do this after commons is released ?.

thanks,

On Tue, Aug 4, 2015 at 6:59 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 Guys can you build your respective repos pointing to the staging repo and
 verify this ?.
 I will look into carbon-deployment and product-as.

 thanks,

 On Tue, Aug 4, 2015 at 6:56 PM, KasunG Gajasinghe kas...@wso2.com wrote:

 Hi Supun,

 Closed the repo, please verify -
 http://maven.wso2.org/nexus/content/repositories/orgwso2carboncommons-001/

 On Tue, Aug 4, 2015 at 6:54 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 $subject pls.

 thanks,
 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue with location of tenant-mgt.xml in Products

2015-08-03 Thread Supun Malinga
On Mon, Aug 3, 2015 at 3:05 PM, Darshana Gunawardana darsh...@wso2.com
wrote:



 On Mon, Aug 3, 2015 at 2:09 PM, Niranjan Karunanandham niran...@wso2.com
 wrote:

 Hi Darshana,

 The p2.inf of tenant-mgt has been copying to the multitenancy folder
 since carbon 4.2.0 [1] and products have been copying this to the conf
 folder via their bin.xml which the carbon refers. Any reason as to why the
 tenant-mgt.xml needs to be copied to the multitenancy folder in the p2.inf?


 I also do not know why the p2.inf copy tenant-mgt.xml to multitenancy
 folder in kernel 4.2.0. IIRC, prior to 4.2.0 tenant-mgt.xml copied from
 kernel bin.xml.

 Anyway as of now, i think the clean way to read tenant-mgt.xml is from
 multitenancy folder.


That's what I thought initially. But since we are using this in conf dir
moving the file would bring up migration changes, etc. hence if we are
doing that we would need to do in a minor/ major release.
But before that we need to justify why we are moving the conf file to
multitenacy folder. If that was the plan and someone missed to move it then
I think we should move it. Otherwise its wiser to to keep it in the conf.

thanks,


 Thanks,
 Darshana.




 [1] -
 https://svn.wso2.com/wso2/custom/projects/projects/carbon/turing/platform/trunk/features/stratos/common/org.wso2.carbon.stratos.common.server.feature/2.2.2/resources

 Regards,
 Nira



 On Mon, Aug 3, 2015 at 1:47 PM, Darshana Gunawardana darsh...@wso2.com
 wrote:

 According to pattern we keep config files, tenant-mgt.xml should be in
 conf/multitenancy/ folder. Can't we have a third option to fix [1]?

 [1] -
 https://github.com/wso2/carbon4-kernel/blame/v4.4.1-RC2/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/config/TenantMgtXMLProcessor.java#L137

 Thanks,
 Darshana.

 On Mon, Aug 3, 2015 at 1:23 PM, Danushka Fernando danush...@wso2.com
 wrote:

 IMO it should be in the feature. Hence +1 for the option #2.

 Thanks  Regards
 Danushka Fernando
 Senior Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Mon, Aug 3, 2015 at 12:36 PM, Niranjan Karunanandham 
 niran...@wso2.com wrote:

 Hi all,

 In Carbon [1], it checks for the tenant-mgt.xml in the
 PRODUCT_HOME/repository/conf directory, but in the p2.inf of the
 tenant-mgt (carbon-multitenancy repo), it is copied to
 PRODUCT_HOME/repository/conf/multitenancy. Therefore to fix this there
 are two solutions:

1. Explicitly mention in the bin.xml of the product source to copy
the tenant-mgt.xml from the multitenancy to conf directory (or)
2. Modify the p2.inf in tenant-mgt feature to copy the
tenant-mgt.xml to conf directly.

 Which one is correct? IMO, the latter fix will resolution the issue
 and products need not mention this in their bin.xml.


 [1] -
 https://github.com/wso2/carbon4-kernel/blame/v4.4.1-RC2/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/config/TenantMgtXMLProcessor.java#L137
 [2] -
 https://github.com/wso2/carbon-multitenancy/blob/master/features/tenant-mgt/org.wso2.carbon.tenant.common.server.feature/src/main/resources/p2.inf#L4

 Regards,
 Nira
 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

 ___
 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




 --
 Regards,


 *Darshana Gunawardana*Senior Software Engineer
 WSO2 Inc.; http://wso2.com

 *E-mail: darsh...@wso2.com darsh...@wso2.com*
 *Mobile: +94718566859 %2B94718566859*Lean . Enterprise . Middleware

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




 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com




 --
 Regards,


 *Darshana Gunawardana*Senior Software Engineer
 WSO2 Inc.; http://wso2.com

 *E-mail: darsh...@wso2.com darsh...@wso2.com*
 *Mobile: +94718566859 %2B94718566859*Lean . Enterprise . Middleware

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




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Releasing Carbon Commons

2015-08-03 Thread Supun Malinga
Hi Devs,

We are going to do $subject soon. Shout if you have any fixes to be added.

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Component missing : com.google.code.gson in kernel pack

2015-08-03 Thread Supun Malinga
Niranjan,


On Mon, May 25, 2015 at 9:58 AM, Niranjan Karunanandham niran...@wso2.com
wrote:

 Hi all,

 I have created jiras for jaggery [1] and data publisher [2] and updated it
 with the pull requests. Please note that this should be merged only after
 the pull request [3] for kernel is merged and the jaggery and carbon
 commons is updated to kernel version 4.4.1.


Since we have release 4.4.1, pls go ahead and merge the PR
https://github.com/wso2/carbon-commons/pull/97



 [1] - https://wso2.org/jira/browse/JAGGERY-406
 [2] - https://wso2.org/jira/browse/COMMONS-120
 [3] - https://github.com/wso2/carbon4-kernel/pull/204

 Regards,
 Nira

 On Fri, May 22, 2015 at 10:25 PM, Sinthuja Ragendran sinth...@wso2.com
 wrote:

 Hi,

 On Fri, May 22, 2015 at 11:19 AM, Niranjan Karunanandham 
 niran...@wso2.com wrote:

 Hi Anjana,

 Kind reminder.

 Regards,
 Nira


 On Thu, May 21, 2015 at 4:49 PM, Ruchira Wageesha ruch...@wso2.com
 wrote:



 On Tue, May 19, 2015 at 5:52 PM, Niranjan Karunanandham 
 niran...@wso2.com wrote:

 Hi,

 When writing the integration test for axis2 gson [1], I came across a
 runtime exception. This was because axis2 gson requires*
 com.google.code.gson* which is not there in the kernel pack. Shall I
 add bundleDefcom.google.code.gson:gson/bundleDef in pom.xml of
 features/org.wso2.carbon.core.common.feature ? Currently the latest 
 version
 is 2.3.1.

 @Anjana and Ruchira: I noticed that currently* com.google.code.gson *is
 installed when *jaggery server feature* [2] or* datapublisher feature*
 [3]. If this component is installed along with kernel, can we remove it
 being installed by jaggery server and datapublisher features? I also
 noticed that for jaggery depends on 2.1 and datapublisher depends on 
 2.2.4.
 If this is moved to kernel, can we have the latest version, i.e., 2.3.1?

 +1


 +1, I don't see a problem in upgrading the version of gson in data
 publisher perspective.

 Thanks,
 Sinthuja.




 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

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




 --
 *Sinthuja Rajendran*
 Associate Technical Lead
 WSO2, Inc.:http://wso2.com

 Blog: http://sinthu-rajan.blogspot.com/
 Mobile: +94774273955





 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

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




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][IDENTITY-3106] Please review and merge

2015-08-03 Thread Supun Malinga
thanks Johann. Didn't notice there is another PR being sent for this to
carbon-identity.

On Mon, Aug 3, 2015 at 11:15 PM, Johann Nallathamby joh...@wso2.com wrote:

 No need to merge this. user-mgt is now moved to carbon-identity.

 Thanks.

 On Mon, Aug 3, 2015 at 11:04 PM, Supun Malinga sup...@wso2.com wrote:

 Hi IS team,

 Can you review this pls ?. I'm trying to merge this for next
 carbon-commons release.

 On Mon, Jun 22, 2015 at 1:46 PM, Damith Senanayake dami...@wso2.com
 wrote:

 Please review this PR as the repo is now changed
 https://github.com/wso2/carbon-identity/pull/454

 On Mon, Jun 22, 2015 at 11:53 AM, Damith Senanayake dami...@wso2.com
 wrote:

 hi,

 please review PR (https://github.com/wso2/carbon-commons/pull/102);
 fix for (https://wso2.org/jira/browse/IDENTITY-3106)

 thanks

 --
 *-Damith Senanayake-*
 +94712205272




 --
 *-Damith Senanayake-*
 +94712205272

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




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Thanks  Regards,

 *Johann Dilantha Nallathamby*
 Technical Lead  Product Lead of WSO2 Identity Server
 Integration Technologies Team
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Releasing Carbon Multitenancy

2015-08-03 Thread Supun Malinga
Hi Devs,

We are going to do $subject soon after carbon commons release. Shout if you
have any fixes to be added.

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][IDENTITY-3106] Please review and merge

2015-08-03 Thread Supun Malinga
Hi IS team,

Can you review this pls ?. I'm trying to merge this for next carbon-commons
release.

On Mon, Jun 22, 2015 at 1:46 PM, Damith Senanayake dami...@wso2.com wrote:

 Please review this PR as the repo is now changed
 https://github.com/wso2/carbon-identity/pull/454

 On Mon, Jun 22, 2015 at 11:53 AM, Damith Senanayake dami...@wso2.com
 wrote:

 hi,

 please review PR (https://github.com/wso2/carbon-commons/pull/102); fix
 for (https://wso2.org/jira/browse/IDENTITY-3106)

 thanks

 --
 *-Damith Senanayake-*
 +94712205272




 --
 *-Damith Senanayake-*
 +94712205272

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




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [PR] adding new dispatcher : carbon-multitenancy/pull/2

2015-08-03 Thread Supun Malinga
Hi Sanjeewa,

This is an old PR from you (June 2014). Do we still need to merge this?.
If yes, could you pls resolve the conflicts and update the PR?.

We are planning to release the next version of carbon-multitenancy soon.

[1] https://github.com/wso2/carbon-multitenancy/pull/2

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to read throttle policy elements

2015-08-03 Thread Supun Malinga
Hi Thilini,


On Wed, Jul 29, 2015 at 4:54 PM, Thilini Cooray thili...@wso2.com wrote:

 Hi,

 Is it possible to read throttle policy content and retrieve its elements?

 For an example consider following policy;

 wsp:Policy xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy;
 
 xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
 xmlns:throttle=http://www.wso2.org/products/wso2commons/throttle;
 wsu:Id=WSO2MediatorThrottlingPolicy
 throttle:MediatorThrottleAssertion
 
 throttle:MaximumConcurrentAccess10/throttle:MaximumConcurrentAccess
 wsp:Policy
 throttle:ID throttle:type=IPother/throttle:ID
 wsp:Policy
 throttle:Control
 wsp:Policy
 throttle:MaximumCount10/throttle:MaximumCount
 throttle:UnitTime80/throttle:UnitTime
 throttle:ProhibitTimePeriod 
 wsp:Optional=true1/throttle:ProhibitTimePeriod

 wsp:Policy
 throttle:Attributes
 throttle:Attribute1/throttle:Attribute1
 throttle:Attribute2/throttle:Attribute2
 /throttle:Attributes
 /wsp:Policy
 /wsp:Policy
 /throttle:Control
 /wsp:Policy
 /wsp:Policy
 /throttle:MediatorThrottleAssertion
 /wsp:Policy

 Tier level attributes can be retrieved already.
 What I would like to clarify is whether there is any API to read policy
 elements such as  throttle:MaximumCount and their values?


Policy is read from apache neethi [1] and policy spec is defined in [2].
There are some more references in [3] and [4]. HTH

[1] http://ws.apache.org/neethi/
[2] http://www.w3.org/TR/ws-policy/
[3]
https://svn.wso2.org/repos/wso2/branches/commons/throttle/3.1/modules/core/src/main/java/org/wso2/throttle/ThrottlePolicyProcessor.java
[4] http://wso2.com/library/articles/wso2-throttling/#t3



 Thanks.

 --
 Best Regards,

 *Thilini Cooray*
 Software Engineer
 Mobile : +94 (0) 774 570 112 %2B94%20%280%29%20773%20451194
 E-mail : thili...@wso2.com

 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] cipher tool feature installation in product build fails when incorporated into multiple profiles

2015-07-30 Thread Supun Malinga
AFAIR this is an issue with multiple profile + touch points, when we
configure p2.inf to delete jars/ configs. It will delete the resources in
the first profile and at the time of installing the second profile it will
throw the above issue.
For this we need to remove the resource delete logic in p2.inf in cipher
tool. This is just a workaround however. We should properly fix this in
future.

thanks,

On Thu, Jul 30, 2015 at 1:42 PM, Shazni Nazeer sha...@wso2.com wrote:

 Hi all,

 We tried to install the cipher tool feature in G-Reg as documented in the
 following [1], which is working fine. We get following error when building
 the pack with multiple profiles in the p2. Incorporating the feature only
 in default succeeds with the build.

 Installation failed.
 An error occurred while configuring the installed items
  session context was:(profile=repository,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null
 -- [R]org.wso2.ciphertool.feature.group 1.0.0.wso2v3,
 action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
  I/O Error while copying
 /home/shazni/ProjectFiles/Git/Development/WSO2/product-greg/modules/p2-profile-gen/target/wso2carbon-core-4.4.0/repository/components/repository/../features/org.wso2.ciphertool_1.0.0.wso2v3/lib
 - see details.
 Caused by:  java.io.IOException: Source:
 /home/shazni/ProjectFiles/Git/Development/WSO2/product-greg/modules/p2-profile-gen/target/wso2carbon-core-4.4.0/repository/components/repository/../features/org.wso2.ciphertool_1.0.0.wso2v3/libdoes
 not exists
 Application failed, log file location:
 /home/shazni/ProjectFiles/ProjectRepositories/repository_2/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1438243620714.log

 Created a jiira at [2] to track this issue.

 [1]
 https://docs.wso2.com/display/Carbon440/Enabling+Cipher+Tool+for+Password+Encryption
 [2] https://wso2.org/jira/browse/CARBON-15337

 Shazni Nazeer
 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] cipher tool feature installation in product build fails when incorporated into multiple profiles

2015-07-30 Thread Supun Malinga
Yes. You are correct. So we are already on the correct path. Pls go ahead
and resolve the jira.

thanks,

On Thu, Jul 30, 2015 at 11:44 PM, Niranjan Karunanandham niran...@wso2.com
wrote:

 Hi,

 IMO I do not think this is a bug. Let me explain: the ciphertool feature
 contains the following files cipher-tool.properties,
 cipher-text.properties, org.wso2.ciphertool-1.0.0-wso2v3.jar, ciphertool.sh
 and ciphertool.bat. These configuration files are copied to
 PRODUCT_HOME/repository/conf/security, the scripts are copied to
 PRODUCT_HOME/bin and the jar is copied to PRODUCT_HOME/lib (not to the
 plugins folder). Carbon Servers have multiple profiles so that when the
 server starts in a particular profile, only those bundles which are defined
 for the profile should be Active. In the case of the ciphertool, this is
 not valid since it is run separately to encrypt the files. Therefore there
 is no point in defining it in multiple profiles.

 Regards,
 Nira

 On Thu, Jul 30, 2015 at 2:03 PM, Supun Malinga sup...@wso2.com wrote:

 AFAIR this is an issue with multiple profile + touch points, when we
 configure p2.inf to delete jars/ configs. It will delete the resources in
 the first profile and at the time of installing the second profile it will
 throw the above issue.
 For this we need to remove the resource delete logic in p2.inf in cipher
 tool. This is just a workaround however. We should properly fix this in
 future.

 thanks,

 On Thu, Jul 30, 2015 at 1:42 PM, Shazni Nazeer sha...@wso2.com wrote:

 Hi all,

 We tried to install the cipher tool feature in G-Reg as documented in
 the following [1], which is working fine. We get following error when
 building the pack with multiple profiles in the p2. Incorporating the
 feature only in default succeeds with the build.

 Installation failed.
 An error occurred while configuring the installed items
  session context was:(profile=repository,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null
 -- [R]org.wso2.ciphertool.feature.group 1.0.0.wso2v3,
 action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
  I/O Error while copying
 /home/shazni/ProjectFiles/Git/Development/WSO2/product-greg/modules/p2-profile-gen/target/wso2carbon-core-4.4.0/repository/components/repository/../features/org.wso2.ciphertool_1.0.0.wso2v3/lib
 - see details.
 Caused by:  java.io.IOException: Source:
 /home/shazni/ProjectFiles/Git/Development/WSO2/product-greg/modules/p2-profile-gen/target/wso2carbon-core-4.4.0/repository/components/repository/../features/org.wso2.ciphertool_1.0.0.wso2v3/libdoes
 not exists
 Application failed, log file location:
 /home/shazni/ProjectFiles/ProjectRepositories/repository_2/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1438243620714.log

 Created a jiira at [2] to track this issue.

 [1]
 https://docs.wso2.com/display/Carbon440/Enabling+Cipher+Tool+for+Password+Encryption
 [2] https://wso2.org/jira/browse/CARBON-15337

 Shazni Nazeer
 Mob : +94 37331
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321

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




 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] java.lang.IllegalStateException: Trying to set the domain from 1 to 2

2015-07-24 Thread Supun Malinga
Thanks Malaka. I added few comments on code formatting. Could you pls
update ?

On Fri, Jul 24, 2015 at 12:33 PM, Malaka Silva mal...@wso2.com wrote:

 Hi All,

 Please review and merge the revised fix.

 https://github.com/wso2/carbon4-kernel/pull/327

 Pls note:
 I have only used following since it'll resolve the tenant id internally.

 privilegedCarbonContext.setTenantDomain(tenantDomain, true);

 On Fri, Jul 24, 2015 at 12:31 PM, Malaka Silva mal...@wso2.com wrote:

 Hi All,

 Please review and merge the revised fix.

 https://github.com/wso2/carbon4-kernel/pull/327

 On Fri, Jul 24, 2015 at 9:52 AM, Malaka Silva mal...@wso2.com wrote:

 Well we get the required info from the url and that logic is inside and
 cannot bring to the startup.

 On Fri, Jul 24, 2015 at 9:29 AM, Supun Malinga sup...@wso2.com wrote:

 Hi Malaka,

 Fix looks better now.. Can you also check why the tenant domain is not
 set when starting the tenant flow ?. Please see below on how to use CC..

 https://docs.wso2.com/display/Carbon420/CarbonContext+API#CarbonContextAPI-Switchingtenantflows

 thanks,

 On Thu, Jul 23, 2015 at 8:49 PM, Malaka Silva mal...@wso2.com wrote:

 Hi All,

 Please review and merge the revised fix.

 [1] https://github.com/wso2/carbon4-kernel/pull/325

 On Thu, Jul 23, 2015 at 4:46 PM, Supun Malinga sup...@wso2.com
 wrote:

 Hi,

 We (Azeez, Sameera  me) had a chat on this. Seems
 in MultitenantMessageReceiver it has violated the usage of
 PrivilegedCarbonContext usages. Usually we should do
 PrivilegedCarbonContext.getThreadLocalCarbonContext() startTenantFlow(),
 PrivilegedCarbonContext.getThreadLocalCarbonContext().
 endTenantFlow()  and put the required logic in between. Then it
 should not be required to call
 PrivilegedCarbonContext.destroyCurrentContext().

 We need to properly fix this in MultitenantMessageReceiver.. There
 are several places MultitenantMessageReceiver has done the same mistake.

 However we are so close the kernel 4.4.1 RC and we might not have
 enough time to do this. How should we proceed ?.

 thanks,

 On Thu, Jul 23, 2015 at 9:20 AM, Malaka Silva mal...@wso2.com
 wrote:

 thx

 On Thu, Jul 23, 2015 at 8:54 AM, Supun Malinga sup...@wso2.com
 wrote:

 Hi,

 The fix seems appropriate. Will discuss with the team further and
 merge this today..
 For the integration tests, is there no way to verify the fix
 without doing load requests ?.

 thanks,

 On Wed, Jul 22, 2015 at 1:39 PM, Supun Malinga sup...@wso2.com
 wrote:

 Hi Malaka,

 Can you point out the place where its being set in message context
 ?. Basically I want to understand why we cannot destroy the context 
 at that
 level (after the usage of CC is done).

 thanks,

 On Tue, Jul 21, 2015 at 8:10 PM, Malaka Silva mal...@wso2.com
 wrote:

 Hi Supun,

 This issue can only be reproduced if you do a load test parallel
 with two or more tenants.

 Here tenant domain is set with the value from message context.
 This fix will clean the thread context before setting the new 
 context.

 On Tue, Jul 21, 2015 at 7:45 PM, Supun Malinga sup...@wso2.com
 wrote:

 Hi Malaka,

 Can you explain the fix you have done pls ?. We need to
 understand that the fix is the optimal one.

 Also do we have integration tests for the fix in kernel or ESB
 level ?. Please note it is better if we can have a test case for 
 this in
 kernel itself.

 thanks,

 On Tue, Jul 21, 2015 at 4:33 PM, Malaka Silva mal...@wso2.com
 wrote:

 Hi Carbon Team,

 Please review and merge this before the next release.

 On Tue, Jul 21, 2015 at 4:29 PM, Malaka Silva mal...@wso2.com
 wrote:

 Any update on this?

 On Mon, Jul 13, 2015 at 10:35 AM, Malaka Silva 
 mal...@wso2.com wrote:

 Hi Carbon Team,

 Any update on this?

 On Thu, Jul 2, 2015 at 12:11 PM, Malaka Silva 
 mal...@wso2.com wrote:

 Hi Carbon Team,

 I have reproduced the issue and have done a fix.

 Please review and merge.

 Related jira's [1] and [2]. Fix with [3]

 [1] https://wso2.org/jira/browse/ESBJAVA-3801
 [2] https://wso2.org/jira/browse/CARBON-15294
 [3] https://github.com/wso2/carbon4-kernel/pull/264

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your
 future. Print this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team

Re: [Dev] [DEV] java.lang.IllegalStateException: Trying to set the domain from 1 to 2

2015-07-24 Thread Supun Malinga
Great!
Thanks for the fixes Malaka..
Will build and merge this.

p.s.
I checked with Malaka and he has tested the scenario after the CC
modifications.

thanks,

On Fri, Jul 24, 2015 at 1:56 PM, Malaka Silva mal...@wso2.com wrote:

 Updated pls check.

 On Fri, Jul 24, 2015 at 12:43 PM, Supun Malinga sup...@wso2.com wrote:

 Thanks Malaka. I added few comments on code formatting. Could you pls
 update ?

 On Fri, Jul 24, 2015 at 12:33 PM, Malaka Silva mal...@wso2.com wrote:

 Hi All,

 Please review and merge the revised fix.

 https://github.com/wso2/carbon4-kernel/pull/327

 Pls note:
 I have only used following since it'll resolve the tenant id internally.

 privilegedCarbonContext.setTenantDomain(tenantDomain, true);

 On Fri, Jul 24, 2015 at 12:31 PM, Malaka Silva mal...@wso2.com wrote:

 Hi All,

 Please review and merge the revised fix.

 https://github.com/wso2/carbon4-kernel/pull/327

 On Fri, Jul 24, 2015 at 9:52 AM, Malaka Silva mal...@wso2.com wrote:

 Well we get the required info from the url and that logic is inside
 and cannot bring to the startup.

 On Fri, Jul 24, 2015 at 9:29 AM, Supun Malinga sup...@wso2.com
 wrote:

 Hi Malaka,

 Fix looks better now.. Can you also check why the tenant domain is
 not set when starting the tenant flow ?. Please see below on how to use
 CC..

 https://docs.wso2.com/display/Carbon420/CarbonContext+API#CarbonContextAPI-Switchingtenantflows

 thanks,

 On Thu, Jul 23, 2015 at 8:49 PM, Malaka Silva mal...@wso2.com
 wrote:

 Hi All,

 Please review and merge the revised fix.

 [1] https://github.com/wso2/carbon4-kernel/pull/325

 On Thu, Jul 23, 2015 at 4:46 PM, Supun Malinga sup...@wso2.com
 wrote:

 Hi,

 We (Azeez, Sameera  me) had a chat on this. Seems
 in MultitenantMessageReceiver it has violated the usage of
 PrivilegedCarbonContext usages. Usually we should do
 PrivilegedCarbonContext.getThreadLocalCarbonContext() 
 startTenantFlow(),
 PrivilegedCarbonContext.getThreadLocalCarbonContext().
 endTenantFlow()  and put the required logic in between. Then it
 should not be required to call
 PrivilegedCarbonContext.destroyCurrentContext().

 We need to properly fix this in MultitenantMessageReceiver.. There
 are several places MultitenantMessageReceiver has done the same 
 mistake.

 However we are so close the kernel 4.4.1 RC and we might not have
 enough time to do this. How should we proceed ?.

 thanks,

 On Thu, Jul 23, 2015 at 9:20 AM, Malaka Silva mal...@wso2.com
 wrote:

 thx

 On Thu, Jul 23, 2015 at 8:54 AM, Supun Malinga sup...@wso2.com
 wrote:

 Hi,

 The fix seems appropriate. Will discuss with the team further and
 merge this today..
 For the integration tests, is there no way to verify the fix
 without doing load requests ?.

 thanks,

 On Wed, Jul 22, 2015 at 1:39 PM, Supun Malinga sup...@wso2.com
 wrote:

 Hi Malaka,

 Can you point out the place where its being set in message
 context ?. Basically I want to understand why we cannot destroy the 
 context
 at that level (after the usage of CC is done).

 thanks,

 On Tue, Jul 21, 2015 at 8:10 PM, Malaka Silva mal...@wso2.com
 wrote:

 Hi Supun,

 This issue can only be reproduced if you do a load test
 parallel with two or more tenants.

 Here tenant domain is set with the value from message context.
 This fix will clean the thread context before setting the new 
 context.

 On Tue, Jul 21, 2015 at 7:45 PM, Supun Malinga sup...@wso2.com
  wrote:

 Hi Malaka,

 Can you explain the fix you have done pls ?. We need to
 understand that the fix is the optimal one.

 Also do we have integration tests for the fix in kernel or ESB
 level ?. Please note it is better if we can have a test case for 
 this in
 kernel itself.

 thanks,

 On Tue, Jul 21, 2015 at 4:33 PM, Malaka Silva mal...@wso2.com
  wrote:

 Hi Carbon Team,

 Please review and merge this before the next release.

 On Tue, Jul 21, 2015 at 4:29 PM, Malaka Silva 
 mal...@wso2.com wrote:

 Any update on this?

 On Mon, Jul 13, 2015 at 10:35 AM, Malaka Silva 
 mal...@wso2.com wrote:

 Hi Carbon Team,

 Any update on this?

 On Thu, Jul 2, 2015 at 12:11 PM, Malaka Silva 
 mal...@wso2.com wrote:

 Hi Carbon Team,

 I have reproduced the issue and have done a fix.

 Please review and merge.

 Related jira's [1] and [2]. Fix with [3]

 [1] https://wso2.org/jira/browse/ESBJAVA-3801
 [2] https://wso2.org/jira/browse/CARBON-15294
 [3] https://github.com/wso2/carbon4-kernel/pull/264

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn :
 http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your
 future. Print this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead

Re: [Dev] [DEV] java.lang.IllegalStateException: Trying to set the domain from 1 to 2

2015-07-24 Thread Supun Malinga
Merged.

thanks,

On Fri, Jul 24, 2015 at 2:03 PM, Supun Malinga sup...@wso2.com wrote:

 Great!
 Thanks for the fixes Malaka..
 Will build and merge this.

 p.s.
 I checked with Malaka and he has tested the scenario after the CC
 modifications.

 thanks,

 On Fri, Jul 24, 2015 at 1:56 PM, Malaka Silva mal...@wso2.com wrote:

 Updated pls check.

 On Fri, Jul 24, 2015 at 12:43 PM, Supun Malinga sup...@wso2.com wrote:

 Thanks Malaka. I added few comments on code formatting. Could you pls
 update ?

 On Fri, Jul 24, 2015 at 12:33 PM, Malaka Silva mal...@wso2.com wrote:

 Hi All,

 Please review and merge the revised fix.

 https://github.com/wso2/carbon4-kernel/pull/327

 Pls note:
 I have only used following since it'll resolve the tenant id internally.

 privilegedCarbonContext.setTenantDomain(tenantDomain, true);

 On Fri, Jul 24, 2015 at 12:31 PM, Malaka Silva mal...@wso2.com wrote:

 Hi All,

 Please review and merge the revised fix.

 https://github.com/wso2/carbon4-kernel/pull/327

 On Fri, Jul 24, 2015 at 9:52 AM, Malaka Silva mal...@wso2.com wrote:

 Well we get the required info from the url and that logic is inside
 and cannot bring to the startup.

 On Fri, Jul 24, 2015 at 9:29 AM, Supun Malinga sup...@wso2.com
 wrote:

 Hi Malaka,

 Fix looks better now.. Can you also check why the tenant domain is
 not set when starting the tenant flow ?. Please see below on how to use
 CC..

 https://docs.wso2.com/display/Carbon420/CarbonContext+API#CarbonContextAPI-Switchingtenantflows

 thanks,

 On Thu, Jul 23, 2015 at 8:49 PM, Malaka Silva mal...@wso2.com
 wrote:

 Hi All,

 Please review and merge the revised fix.

 [1] https://github.com/wso2/carbon4-kernel/pull/325

 On Thu, Jul 23, 2015 at 4:46 PM, Supun Malinga sup...@wso2.com
 wrote:

 Hi,

 We (Azeez, Sameera  me) had a chat on this. Seems
 in MultitenantMessageReceiver it has violated the usage of
 PrivilegedCarbonContext usages. Usually we should do
 PrivilegedCarbonContext.getThreadLocalCarbonContext() 
 startTenantFlow(),
 PrivilegedCarbonContext.getThreadLocalCarbonContext().
 endTenantFlow()  and put the required logic in between. Then it
 should not be required to call
 PrivilegedCarbonContext.destroyCurrentContext().

 We need to properly fix this in MultitenantMessageReceiver.. There
 are several places MultitenantMessageReceiver has done the same 
 mistake.

 However we are so close the kernel 4.4.1 RC and we might not have
 enough time to do this. How should we proceed ?.

 thanks,

 On Thu, Jul 23, 2015 at 9:20 AM, Malaka Silva mal...@wso2.com
 wrote:

 thx

 On Thu, Jul 23, 2015 at 8:54 AM, Supun Malinga sup...@wso2.com
 wrote:

 Hi,

 The fix seems appropriate. Will discuss with the team further
 and merge this today..
 For the integration tests, is there no way to verify the fix
 without doing load requests ?.

 thanks,

 On Wed, Jul 22, 2015 at 1:39 PM, Supun Malinga sup...@wso2.com
 wrote:

 Hi Malaka,

 Can you point out the place where its being set in message
 context ?. Basically I want to understand why we cannot destroy 
 the context
 at that level (after the usage of CC is done).

 thanks,

 On Tue, Jul 21, 2015 at 8:10 PM, Malaka Silva mal...@wso2.com
 wrote:

 Hi Supun,

 This issue can only be reproduced if you do a load test
 parallel with two or more tenants.

 Here tenant domain is set with the value from message context.
 This fix will clean the thread context before setting the new 
 context.

 On Tue, Jul 21, 2015 at 7:45 PM, Supun Malinga 
 sup...@wso2.com wrote:

 Hi Malaka,

 Can you explain the fix you have done pls ?. We need to
 understand that the fix is the optimal one.

 Also do we have integration tests for the fix in kernel or
 ESB level ?. Please note it is better if we can have a test case 
 for this
 in kernel itself.

 thanks,

 On Tue, Jul 21, 2015 at 4:33 PM, Malaka Silva 
 mal...@wso2.com wrote:

 Hi Carbon Team,

 Please review and merge this before the next release.

 On Tue, Jul 21, 2015 at 4:29 PM, Malaka Silva 
 mal...@wso2.com wrote:

 Any update on this?

 On Mon, Jul 13, 2015 at 10:35 AM, Malaka Silva 
 mal...@wso2.com wrote:

 Hi Carbon Team,

 Any update on this?

 On Thu, Jul 2, 2015 at 12:11 PM, Malaka Silva 
 mal...@wso2.com wrote:

 Hi Carbon Team,

 I have reproduced the issue and have done a fix.

 Please review and merge.

 Related jira's [1] and [2]. Fix with [3]

 [1] https://wso2.org/jira/browse/ESBJAVA-3801
 [2] https://wso2.org/jira/browse/CARBON-15294
 [3] https://github.com/wso2/carbon4-kernel/pull/264

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn :
 http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your
 future. Print

Re: [Dev] [DEV] java.lang.IllegalStateException: Trying to set the domain from 1 to 2

2015-07-23 Thread Supun Malinga
Hi,

We (Azeez, Sameera  me) had a chat on this. Seems
in MultitenantMessageReceiver it has violated the usage of
PrivilegedCarbonContext usages. Usually we should do
PrivilegedCarbonContext.getThreadLocalCarbonContext() startTenantFlow(),
PrivilegedCarbonContext.getThreadLocalCarbonContext().
endTenantFlow()  and put the required logic in between. Then it should not
be required to call PrivilegedCarbonContext.destroyCurrentContext().

We need to properly fix this in MultitenantMessageReceiver.. There are
several places MultitenantMessageReceiver has done the same mistake.

However we are so close the kernel 4.4.1 RC and we might not have enough
time to do this. How should we proceed ?.

thanks,

On Thu, Jul 23, 2015 at 9:20 AM, Malaka Silva mal...@wso2.com wrote:

 thx

 On Thu, Jul 23, 2015 at 8:54 AM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 The fix seems appropriate. Will discuss with the team further and merge
 this today..
 For the integration tests, is there no way to verify the fix without
 doing load requests ?.

 thanks,

 On Wed, Jul 22, 2015 at 1:39 PM, Supun Malinga sup...@wso2.com wrote:

 Hi Malaka,

 Can you point out the place where its being set in message context ?.
 Basically I want to understand why we cannot destroy the context at that
 level (after the usage of CC is done).

 thanks,

 On Tue, Jul 21, 2015 at 8:10 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Supun,

 This issue can only be reproduced if you do a load test parallel with
 two or more tenants.

 Here tenant domain is set with the value from message context. This fix
 will clean the thread context before setting the new context.

 On Tue, Jul 21, 2015 at 7:45 PM, Supun Malinga sup...@wso2.com wrote:

 Hi Malaka,

 Can you explain the fix you have done pls ?. We need to understand
 that the fix is the optimal one.

 Also do we have integration tests for the fix in kernel or ESB level
 ?. Please note it is better if we can have a test case for this in kernel
 itself.

 thanks,

 On Tue, Jul 21, 2015 at 4:33 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Carbon Team,

 Please review and merge this before the next release.

 On Tue, Jul 21, 2015 at 4:29 PM, Malaka Silva mal...@wso2.com
 wrote:

 Any update on this?

 On Mon, Jul 13, 2015 at 10:35 AM, Malaka Silva mal...@wso2.com
 wrote:

 Hi Carbon Team,

 Any update on this?

 On Thu, Jul 2, 2015 at 12:11 PM, Malaka Silva mal...@wso2.com
 wrote:

 Hi Carbon Team,

 I have reproduced the issue and have done a fix.

 Please review and merge.

 Related jira's [1] and [2]. Fix with [3]

 [1] https://wso2.org/jira/browse/ESBJAVA-3801
 [2] https://wso2.org/jira/browse/CARBON-15294
 [3] https://github.com/wso2/carbon4-kernel/pull/264

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future.
 Print this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future.
 Print this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --

 Best Regards,

 Malaka Silva

Re: [Dev] [DEV] java.lang.IllegalStateException: Trying to set the domain from 1 to 2

2015-07-23 Thread Supun Malinga
Hi Malaka,

Fix looks better now.. Can you also check why the tenant domain is not set
when starting the tenant flow ?. Please see below on how to use CC..
https://docs.wso2.com/display/Carbon420/CarbonContext+API#CarbonContextAPI-Switchingtenantflows

thanks,

On Thu, Jul 23, 2015 at 8:49 PM, Malaka Silva mal...@wso2.com wrote:

 Hi All,

 Please review and merge the revised fix.

 [1] https://github.com/wso2/carbon4-kernel/pull/325

 On Thu, Jul 23, 2015 at 4:46 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 We (Azeez, Sameera  me) had a chat on this. Seems
 in MultitenantMessageReceiver it has violated the usage of
 PrivilegedCarbonContext usages. Usually we should do
 PrivilegedCarbonContext.getThreadLocalCarbonContext() startTenantFlow(),
 PrivilegedCarbonContext.getThreadLocalCarbonContext().
 endTenantFlow()  and put the required logic in between. Then it should
 not be required to call PrivilegedCarbonContext.destroyCurrentContext().

 We need to properly fix this in MultitenantMessageReceiver.. There are
 several places MultitenantMessageReceiver has done the same mistake.

 However we are so close the kernel 4.4.1 RC and we might not have enough
 time to do this. How should we proceed ?.

 thanks,

 On Thu, Jul 23, 2015 at 9:20 AM, Malaka Silva mal...@wso2.com wrote:

 thx

 On Thu, Jul 23, 2015 at 8:54 AM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 The fix seems appropriate. Will discuss with the team further and merge
 this today..
 For the integration tests, is there no way to verify the fix without
 doing load requests ?.

 thanks,

 On Wed, Jul 22, 2015 at 1:39 PM, Supun Malinga sup...@wso2.com wrote:

 Hi Malaka,

 Can you point out the place where its being set in message context ?.
 Basically I want to understand why we cannot destroy the context at that
 level (after the usage of CC is done).

 thanks,

 On Tue, Jul 21, 2015 at 8:10 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Supun,

 This issue can only be reproduced if you do a load test parallel with
 two or more tenants.

 Here tenant domain is set with the value from message context. This
 fix will clean the thread context before setting the new context.

 On Tue, Jul 21, 2015 at 7:45 PM, Supun Malinga sup...@wso2.com
 wrote:

 Hi Malaka,

 Can you explain the fix you have done pls ?. We need to understand
 that the fix is the optimal one.

 Also do we have integration tests for the fix in kernel or ESB level
 ?. Please note it is better if we can have a test case for this in 
 kernel
 itself.

 thanks,

 On Tue, Jul 21, 2015 at 4:33 PM, Malaka Silva mal...@wso2.com
 wrote:

 Hi Carbon Team,

 Please review and merge this before the next release.

 On Tue, Jul 21, 2015 at 4:29 PM, Malaka Silva mal...@wso2.com
 wrote:

 Any update on this?

 On Mon, Jul 13, 2015 at 10:35 AM, Malaka Silva mal...@wso2.com
 wrote:

 Hi Carbon Team,

 Any update on this?

 On Thu, Jul 2, 2015 at 12:11 PM, Malaka Silva mal...@wso2.com
 wrote:

 Hi Carbon Team,

 I have reproduced the issue and have done a fix.

 Please review and merge.

 Related jira's [1] and [2]. Fix with [3]

 [1] https://wso2.org/jira/browse/ESBJAVA-3801
 [2] https://wso2.org/jira/browse/CARBON-15294
 [3] https://github.com/wso2/carbon4-kernel/pull/264

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future.
 Print this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future.
 Print this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future.
 Print this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub

Re: [Dev] [DEV] java.lang.IllegalStateException: Trying to set the domain from 1 to 2

2015-07-22 Thread Supun Malinga
Hi Malaka,

Can you point out the place where its being set in message context ?.
Basically I want to understand why we cannot destroy the context at that
level (after the usage of CC is done).

thanks,

On Tue, Jul 21, 2015 at 8:10 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Supun,

 This issue can only be reproduced if you do a load test parallel with two
 or more tenants.

 Here tenant domain is set with the value from message context. This fix
 will clean the thread context before setting the new context.

 On Tue, Jul 21, 2015 at 7:45 PM, Supun Malinga sup...@wso2.com wrote:

 Hi Malaka,

 Can you explain the fix you have done pls ?. We need to understand that
 the fix is the optimal one.

 Also do we have integration tests for the fix in kernel or ESB level ?.
 Please note it is better if we can have a test case for this in kernel
 itself.

 thanks,

 On Tue, Jul 21, 2015 at 4:33 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Carbon Team,

 Please review and merge this before the next release.

 On Tue, Jul 21, 2015 at 4:29 PM, Malaka Silva mal...@wso2.com wrote:

 Any update on this?

 On Mon, Jul 13, 2015 at 10:35 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Carbon Team,

 Any update on this?

 On Thu, Jul 2, 2015 at 12:11 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Carbon Team,

 I have reproduced the issue and have done a fix.

 Please review and merge.

 Related jira's [1] and [2]. Fix with [3]

 [1] https://wso2.org/jira/browse/ESBJAVA-3801
 [2] https://wso2.org/jira/browse/CARBON-15294
 [3] https://github.com/wso2/carbon4-kernel/pull/264

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print this
 email only if it is absolutely necessary.




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to check exceeded allocated quota in RoleBasedAccessRateController

2015-07-22 Thread Supun Malinga
Hi,

For the moment this would be the way to filter out the cause. But the
better approach would be to set a flag in AccessInformation class on the
respective error type. For this we need to improve AccessInformation class.

May I know your use case ?.

thanks,

On Wed, Jul 22, 2015 at 11:37 AM, Thilini Cooray thili...@wso2.com wrote:

 Hi,

 I would like to have a little clarification regarding canAccess method in 
 RoleBasedAccessRateController
 of org.wso2.carbon.throttle.core.

 Consider following example
   AccessInformation info =
 roleBasedAccessControler.canAccess(throttleContext, consumerKey,
 throttleId);

 I want to filter out the situation where info.isAccessAllowed() = false due
 to the reason exceeded the allocated quota.

 Is there a more suitable approach to do this check other than info.
 getFaultReason().contains(exceeded the allocated quota)?

 Thanks.

 --
 Best Regards,

 *Thilini Cooray*
 Software Engineer
 Mobile : +94 (0) 774 570 112 %2B94%20%280%29%20773%20451194
 E-mail : thili...@wso2.com

 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware

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




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] java.lang.IllegalStateException: Trying to set the domain from 1 to 2

2015-07-22 Thread Supun Malinga
Hi,

The fix seems appropriate. Will discuss with the team further and merge
this today..
For the integration tests, is there no way to verify the fix without doing
load requests ?.

thanks,

On Wed, Jul 22, 2015 at 1:39 PM, Supun Malinga sup...@wso2.com wrote:

 Hi Malaka,

 Can you point out the place where its being set in message context ?.
 Basically I want to understand why we cannot destroy the context at that
 level (after the usage of CC is done).

 thanks,

 On Tue, Jul 21, 2015 at 8:10 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Supun,

 This issue can only be reproduced if you do a load test parallel with two
 or more tenants.

 Here tenant domain is set with the value from message context. This fix
 will clean the thread context before setting the new context.

 On Tue, Jul 21, 2015 at 7:45 PM, Supun Malinga sup...@wso2.com wrote:

 Hi Malaka,

 Can you explain the fix you have done pls ?. We need to understand that
 the fix is the optimal one.

 Also do we have integration tests for the fix in kernel or ESB level ?.
 Please note it is better if we can have a test case for this in kernel
 itself.

 thanks,

 On Tue, Jul 21, 2015 at 4:33 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Carbon Team,

 Please review and merge this before the next release.

 On Tue, Jul 21, 2015 at 4:29 PM, Malaka Silva mal...@wso2.com wrote:

 Any update on this?

 On Mon, Jul 13, 2015 at 10:35 AM, Malaka Silva mal...@wso2.com
 wrote:

 Hi Carbon Team,

 Any update on this?

 On Thu, Jul 2, 2015 at 12:11 PM, Malaka Silva mal...@wso2.com
 wrote:

 Hi Carbon Team,

 I have reproduced the issue and have done a fix.

 Please review and merge.

 Related jira's [1] and [2]. Fix with [3]

 [1] https://wso2.org/jira/browse/ESBJAVA-3801
 [2] https://wso2.org/jira/browse/CARBON-15294
 [3] https://github.com/wso2/carbon4-kernel/pull/264

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print this
 email only if it is absolutely necessary.




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http

Re: [Dev] How to check exceeded allocated quota in RoleBasedAccessRateController

2015-07-22 Thread Supun Malinga
On Thu, Jul 23, 2015 at 9:58 AM, Thilini Cooray thili...@wso2.com wrote:

 Hi,

 We are going to add an attribute to tier policies such as ignoreThrottle
 (attribute name not finalized). If this attribute is enabled for a
 particular tier policy, throttled out requests will not be halt.

Its better if the name implies the usecase. ignoreThrottle might be
confusing as per why we are ignoring it..



 For this particular scenario, we want to filter out requests which
 throttled out because its allocated quota is exceeded. While going through
 the source of RoleBasedAccessRateController I was able to identify that
 exceeding quota is not the only reason for becoming
 AccessInformation.isAccessAllowed = false.
 That is why I wanted to clarify.


I see. Then you will have to add a flag to represent each case..

thanks,



 Thanks.

 On Wed, Jul 22, 2015 at 6:25 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 For the moment this would be the way to filter out the cause. But the
 better approach would be to set a flag in AccessInformation class on the
 respective error type. For this we need to improve AccessInformation
 class.

 May I know your use case ?.

 thanks,

 On Wed, Jul 22, 2015 at 11:37 AM, Thilini Cooray thili...@wso2.com
 wrote:

 Hi,

 I would like to have a little clarification regarding canAccess method
 in RoleBasedAccessRateController of org.wso2.carbon.throttle.core.

 Consider following example
   AccessInformation info =
 roleBasedAccessControler.canAccess(throttleContext, consumerKey,
 throttleId);

 I want to filter out the situation where info.isAccessAllowed() = false due
 to the reason exceeded the allocated quota.

 Is there a more suitable approach to do this check other than info.
 getFaultReason().contains(exceeded the allocated quota)?

 Thanks.

 --
 Best Regards,

 *Thilini Cooray*
 Software Engineer
 Mobile : +94 (0) 774 570 112 %2B94%20%280%29%20773%20451194
 E-mail : thili...@wso2.com

 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware

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




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




 --
 Best Regards,

 *Thilini Cooray*
 Software Engineer
 Mobile : +94 (0) 774 570 112 %2B94%20%280%29%20773%20451194
 E-mail : thili...@wso2.com

 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] java.lang.IllegalStateException: Trying to set the domain from 1 to 2

2015-07-21 Thread Supun Malinga
Hi Malaka,

Can you explain the fix you have done pls ?. We need to understand that the
fix is the optimal one.

Also do we have integration tests for the fix in kernel or ESB level ?.
Please note it is better if we can have a test case for this in kernel
itself.

thanks,

On Tue, Jul 21, 2015 at 4:33 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Carbon Team,

 Please review and merge this before the next release.

 On Tue, Jul 21, 2015 at 4:29 PM, Malaka Silva mal...@wso2.com wrote:

 Any update on this?

 On Mon, Jul 13, 2015 at 10:35 AM, Malaka Silva mal...@wso2.com wrote:

 Hi Carbon Team,

 Any update on this?

 On Thu, Jul 2, 2015 at 12:11 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Carbon Team,

 I have reproduced the issue and have done a fix.

 Please review and merge.

 Related jira's [1] and [2]. Fix with [3]

 [1] https://wso2.org/jira/browse/ESBJAVA-3801
 [2] https://wso2.org/jira/browse/CARBON-15294
 [3] https://github.com/wso2/carbon4-kernel/pull/264

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print
 this email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print this
 email only if it is absolutely necessary.




 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 http://wso2.com/about/team/malaka-silva/

 Save a tree -Conserve nature  Save the world for your future. Print this
 email only if it is absolutely necessary.




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to handle QOS Security for servlet request

2015-07-17 Thread Supun Malinga
On Fri, Jul 17, 2015 at 5:27 PM, KasunG Gajasinghe kas...@wso2.com wrote:


 For that, you need to set a security constraint for your webapp via
 web.xml. [1] The axis2 service security QOS settings are irrelevant here.

 [1] http://docs.oracle.com/cd/E19798-01/821-1841/bncbk/index.html


adding to the above,
Here user name and roles defined will work with the users  roles defined
in wso2 servers.

thanks,


 On Fri, Jul 17, 2015 at 3:03 PM, Madhawa Gunasekara madha...@wso2.com
 wrote:

 Hi devs,

 I have a requirement to authenticate users for my service. and also I'm
 not using axis2 for my service. It's a simple web app.
 Is there a way to access service configs (QOS security) from backend to
 write a callback handler for my servlet.

 Any help on this matter is highly appreciated.

 Thanks,
 Madhawa

 --
 *Madhawa Gunasekara*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 719411002 +94+719411002
 blog: *http://madhawa-gunasekara.blogspot.com
 http://madhawa-gunasekara.blogspot.com*
 linkedin: *http://lk.linkedin.com/in/mgunasekara
 http://lk.linkedin.com/in/mgunasekara*




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org



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




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Please review the PR for Spark 1.4.0 upgrade

2015-07-02 Thread Supun Malinga
Merged.

thanks,

On Fri, Jul 3, 2015 at 8:42 AM, Nirmal Fernando nir...@wso2.com wrote:

 Please review and merge the PR for Spark-mllib 140:
 https://github.com/wso2/orbit/pull/108

 On Thu, Jul 2, 2015 at 4:58 PM, Niranda Perera nira...@wso2.com wrote:

 thanks Kasun :-)

 On Thu, Jul 2, 2015 at 4:57 PM, KasunG Gajasinghe kas...@wso2.com
 wrote:

 Hi Niranda,

 Released the bundles.

 On Thu, Jul 2, 2015 at 2:36 PM, Niranda Perera nira...@wso2.com wrote:

 Hi Maheshika,

 could you please deploy the following orbit bundles?

 paranamer/2.6.wso2v1
 spark-core_2.10/1.4.0.wso2v1
 spark-sql_2.10/1.4.0.wso2v1
 spark-streaming_2.10/1.4.0.wso2v1

 thanks

 On Thu, Jul 2, 2015 at 2:23 PM, Niranjan Karunanandham 
 niran...@wso2.com wrote:

 Hi Niranda,

 I have merged the PR.

 Regards,
 Nira

 On Thu, Jul 2, 2015 at 2:01 PM, Niranda Perera nira...@wso2.com
 wrote:

 Hi Niranjan,

 I just made the changes. could you please review?

 On Thu, Jul 2, 2015 at 1:51 PM, Niranjan Karunanandham 
 niran...@wso2.com wrote:

 Hi Niranda,

 As per the offline discussion we had with KasunG, please change the
 export package version to the project's (pom) version.

 Regards,
 Nira

 On Wed, Jul 1, 2015 at 8:39 PM, Niranda Perera nira...@wso2.com
 wrote:

 the link in the above mail has to change to [1].

 sorry about the inconvenience.

 rgds

 [1] https://github.com/wso2/orbit/pull/105

 On Wed, Jul 1, 2015 at 8:34 PM, Niranda Perera nira...@wso2.com
 wrote:

 Hi Sameera,

 Could you please review this PR [1] for Spark 1.4.0.

 this upgrades spark-core and spark-sql from 1.3.0 to 1.4.0. this
 upgrade is done, because 1.4.0 has some important bug fixes related to
 spark clustering and we need to include these in the DAS (BAM) 3.0.0 
 beta

 it also adds paranamer/2.6.wso2v1 which is a runtime dependency

 cheers

 [1] https://github.com/wso2/orbit/pull/83

 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44
 https://pythagoreanscript.wordpress.com/




 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44
 https://pythagoreanscript.wordpress.com/

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




 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com




 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44
 https://pythagoreanscript.wordpress.com/




 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com




 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44
 https://pythagoreanscript.wordpress.com/




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44
 https://pythagoreanscript.wordpress.com/

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




 --

 Thanks  regards,
 Nirmal

 Associate Technical Lead - Data Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/



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




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Exception when running a JMX application in AS multi-tenant environment

2015-07-02 Thread Supun Malinga
Hi,

Shouldn't we include this by default.. ?

thanks,

On Fri, Jul 3, 2015 at 10:02 AM, Chathura Priyankara chathu...@wso2.com
wrote:

 Hi,

 I was able to solve this issue by adding rmi context in carbon.xml
 as mentioned in [1].

 [1]
 http://wso2.com/library/articles/2013/02/jmx-monitoring-wso2-bam/#multitenancy

 Thanks,
 Chathura.

 On Thu, Jul 2, 2015 at 11:13 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi All,

 When I'm trying to use JMX webapp in AS multi tenant environment I'm
 getting following exception.

 org.springframework.web.util.NestedServletException: Request processing
 failed; nested exception is java.lang.IllegalArgumentException:
 rmiURLContext: name is not an RMI URL: 1

 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:927)

 org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:735)

 org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 root cause

 java.lang.IllegalArgumentException: rmiURLContext: name is not an RMI
 URL: 1

 com.sun.jndi.url.rmi.rmiURLContext.getRootURLContext(rmiURLContext.java:64)

 com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:200)

 org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.getInitialContext(CarbonContextDataHolder.java:886)

 org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:951)
 javax.naming.InitialContext.lookup(InitialContext.java:411)

 javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1929)

 javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1896)
 javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:286)
 javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:249)
 org.wso2.carbon.jms.HelloController.printWelcome(HelloController.java:23)
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 java.lang.reflect.Method.invoke(Method.java:606)

 org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)

 org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:439)

 org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:427)

 org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)

 org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)

 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915)

 org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:735)

 org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

 However this works fine in super tenant mode.
 The JMX service URL that I'm using is as follows
 service:jmx:rmi://localhost:1199/jndi/rmi://localhost:1199/jmxrmi.

 I found similar exceptions are reported in few places but I could not
 solve this in AS.
 Any suggestion to overcome this issue is highly appreciated.

 Thanks,
 Chathura.



 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com




 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue : AS integration test for tenant web apps

2015-06-29 Thread Supun Malinga
Hi,

I used,
getWebAppURL(WebAppTypes.WEBAPPS)

thanks,

On Mon, Jun 29, 2015 at 11:32 AM, Niranjan Karunanandham niran...@wso2.com
wrote:

 Hi Manoj,

 The problem here is in Super Admin space when a web app is uploaded, it
 does not require to append webapps to the server url, but only for
 tenants this is required. Why is this different in the case of tenant and
 super admin?

 Regards,
 Nira

 On Mon, Jun 29, 2015 at 11:28 AM, Manoj Kumara ma...@wso2.com wrote:

 Hi Nira,

 We discussed the same issue on the last week review as well. As per the
 integration team *webAppURL* is due to apps like Jaggery have different
 context and due to this they cannot make it generic to all webapps,

 ex: http://10.100.0.92:9763/t/wso2.com/jaggeryapps/docs/

 As per what we discussed the conclusion was to append the required
 context depending on the userType.

 Also there was a discussion that whether we need to add 'webapp' or
 'jaggeryapps' context for tenants.

 Regards,
 Manoj


 *Manoj Kumara |* Senior Software Engineer
  Inc. *| **lean. enterprise. middleware.*
 #20, Palm Grove, Colombo 03, Sri Lanka
 *Mobile:* +94 713 448188 *|** Work:* +94 112 145345


 On Mon, Jun 29, 2015 at 11:17 AM, Niranjan Karunanandham 
 niran...@wso2.com wrote:

 Hi all,

 When writing the integration test for Web apps, I came across an issue
 when testing it for Super Admin and Tenant user. To web app exposes a Rest
 endpoint and the requirement is to check the endpoint in both space (Super
 Admin and tenant).

 The web app successfully gets deployed in both space (Super Admin and
 tenant) and to test the endpoint I use the 
 HttpRequestUtil.sendGetRequest(endpoint,
 null) provided by the Automation Framework where the endpoint is
 obtained from the *webAppURL* [1]. The problem is that when the webapp
 is uploaded to Super-Admin space, the endpoint is

 *http://localhost:9763/ http://localhost:9763/*webapp name

 and in the Tenant space it is

  *http://localhost:9763/t/wso2.com/webapps
 http://localhost:9763/t/wso2.com/webapps*/webapp name


 but the *webAppURL* obtained when running the integration test for
 Super Admin space is http://localhost:9763 and Tenant space is
 http://localhost:9763/t/wso2.com and not
 http://localhost:9763/t/wso2.com/webapps . Is there a way to get the
 webapps URL for tenant instead of getting the Server URL?



 [1] -
 https://github.com/wso2/product-as/blob/master/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/appserver/integration/common/utils/ASIntegrationTest.java#L45

 Regards,
 Nira

 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

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





 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com

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




-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon-identity 4.5.2 is ready for release

2015-06-19 Thread Supun Malinga
Verified with AS build. Please release..

thanks,

On Fri, Jun 19, 2015 at 5:12 PM, Jayanga Dissanayake jaya...@wso2.com
wrote:

 Hi Prasad/Supun,

 Repo is closed. Please verify.

 Thanks,
 Jayanga.

 *Jayanga Dissanayake*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.com/
 lean . enterprise . middleware
 email: jaya...@wso2.com
 mobile: +94772207259

 On Fri, Jun 19, 2015 at 5:08 PM, Prasad Tissera pras...@wso2.com wrote:

 Hi Supun,

 carbon-identity 4.5.2 is released to staging [1].. Please verify the
 fixes. Thanks.

 [1].
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-054/



 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444





-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] carbon-identity 4.5.2 is ready for release

2015-06-19 Thread Supun Malinga
thanks!

On Fri, Jun 19, 2015 at 7:21 PM, Jayanga Dissanayake jaya...@wso2.com
wrote:

 Hi,

 Repo is released.

 Thanks,
 Jayanga.

 *Jayanga Dissanayake*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.com/
 lean . enterprise . middleware
 email: jaya...@wso2.com
 mobile: +94772207259

 On Fri, Jun 19, 2015 at 7:06 PM, Supun Malinga sup...@wso2.com wrote:

 Verified with AS build. Please release..

 thanks,

 On Fri, Jun 19, 2015 at 5:12 PM, Jayanga Dissanayake jaya...@wso2.com
 wrote:

 Hi Prasad/Supun,

 Repo is closed. Please verify.

 Thanks,
 Jayanga.

 *Jayanga Dissanayake*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.com/
 lean . enterprise . middleware
 email: jaya...@wso2.com
 mobile: +94772207259

 On Fri, Jun 19, 2015 at 5:08 PM, Prasad Tissera pras...@wso2.com
 wrote:

 Hi Supun,

 carbon-identity 4.5.2 is released to staging [1].. Please verify the
 fixes. Thanks.

 [1].
 http://maven.wso2.org/nexus/content/repositories/orgwso2carbonidentity-054/



 --
 Prasad Tissera
 Software Engineer.
 Mobile : +94777223444





 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321





-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge PR #448

2015-06-18 Thread Supun Malinga
Hi,

$subject pls for [1]

[1] https://github.com/wso2/carbon-identity/pull/448

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] SSO Agent jar dependency requirements

2015-06-14 Thread Supun Malinga
Hi

I'm trying to include sso.agent jar into AS build (webapp mgt feature) so
that it will be available into the build. But since the agent depends on
other jars it complains at p2 profile gen.

Following are the two dependencies
groupIdorg.openid4java.wso2/groupId
artifactIdopenid4java-nodeps/artifactId

and
groupIdxerces.wso2/groupId
artifactIdxercesImpl/artifactId

If I include xercesImpl jar into the feature server won't even start.

Hence I tried a alternative method. Modified the sso agent to use those
dependencies as optional.

--- a/components/agents/org.wso2.carbon.identity.sso.agent/pom.xml
+++ b/components/agents/org.wso2.carbon.identity.sso.agent/pom.xml
@@ -90,10 +90,10 @@
 javax.xml.parsers,

 com.google.gson;version=${com.google.code.gson.osgi.version.range},
 org.apache.http.conn.ssl;
version=${httpcomponents-httpclient.imp.pkg.version.range},
-org.apache.xerces.util,
+org.apache.xerces.util;resolution:=optional,
 org.apache.xml.security.*;
version=${wss4j.xml.security.imp.pkg.version.range},

 org.joda.time;version=${opensaml2.wso2.osgi.version.range},
-
 org.openid4java.*;version=${openid4java.wso2.osgi.version.range},
+
 
org.openid4java.*;version=${openid4java.wso2.osgi.version.range};resolution:=optional,
 org.opensaml.*;
version=${opensaml2.wso2.osgi.version.range},
 org.w3c.dom.*,


After this I can build and run the server successfully. But we would need a
release for carbonn-identity for this in order to go with this approach.
Let's discuss the options.
Also let me know if there are alternatives.

p.s: I tried to exclude dependencies in the feature level, but that doesn't
work.

thanks,
-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com sup...@wso2.com
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   3   4   5   6   7   8   9   10   >