Re: [Dev] App Factory/ App Cloud - API for getting information about data-sources?

2015-08-03 Thread Danushka Fernando
Hi Kavith
It seems to be the correct api.

   1. Do you have any datasources in the app *testappo*?
   2. What's the role of the user you tried this with?
   3. In which stages do you have the datasources in the given application?



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

On Tue, Aug 4, 2015 at 12:14 PM, Kavith Lokuhewage  wrote:

> Hi,
>
> What is the correct API to get information (name, DB URL, user, etc.)
> about the data-sources of a given application?
>
> I am currently improving App Factory tools in Developer studio and found
> that the API we are using currently (see below) is returning an empty array.
>
> Current API we are invoking:-
> Path: /appmgt/site/blocks/resources/datasource/get/ajax/list.jag
>
> Params: {applicationKey=testappo, action=getDatasources}
>
>
> Thanks,
> --
> *Kavith Lokuhewage*
> Software Engineer
> WSO2 Inc. - http://wso2.com
> lean . enterprise . middleware
> Mobile - +9477-9-145-123 | +9471-455-6-401
> Linkedin 
> Twitter 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue related to UES Dashboard

2015-08-03 Thread Manuranga Perera
Hi Suho/Dunith,
If you have any issues please create JIRAs and mark priority accordingly
and we will take a look. assigning a separate person is bit difficult with
ES release but that will be done withing next 2 weeks (hopefully ;-) ).
how's your release time line?

please create under https://wso2.org/jira/browse/UES (not store)

On Tue, Aug 4, 2015 at 9:25 AM, Sriskandarajah Suhothayan 
wrote:

> Hi Manu
>
> Can you assign someone from your team to help us fix the issues related to
> the dashboard[1] before the DAS, CEP releases.
>
> @Dunith do you have any issues identified?
>
> Thanks
> Suho
>
> [1]https://wso2.org/jira/browse/CEP-1258
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>



-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge

2015-08-03 Thread Madhawa Gunasekara
Hi Sameera,

Kind reminder on this.

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


[Dev] App Factory/ App Cloud - API for getting information about data-sources?

2015-08-03 Thread Kavith Lokuhewage
Hi,

What is the correct API to get information (name, DB URL, user, etc.) about
the data-sources of a given application?

I am currently improving App Factory tools in Developer studio and found
that the API we are using currently (see below) is returning an empty array.

Current API we are invoking:-
Path: /appmgt/site/blocks/resources/datasource/get/ajax/list.jag

Params: {applicationKey=testappo, action=getDatasources}


Thanks,
-- 
*Kavith Lokuhewage*
Software Engineer
WSO2 Inc. - http://wso2.com
lean . enterprise . middleware
Mobile - +9477-9-145-123 | +9471-455-6-401
Linkedin   Twitter

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


[Dev] Please review and merge

2015-08-03 Thread Isura Karunaratne
Hi Johann,

Please review and merge [1]


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




Thanks
Isura


Isura Dilhara Karunaratne
Senior Software Engineer

Mob +94 772 254 810
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] java.net.SocketException: Broken pipe -Error while running ESB scheduled task

2015-08-03 Thread Lakshman Udayakantha
Hi Nashry,

did you enable the autoReconnect to true by defining connection string in
master datasource xml in following way?

jdbc:mysql://10.3.24.96:3306/master?autoReconnect=true

Thanks

On Tue, Aug 4, 2015 at 11:26 AM, Aaquibah Nashry  wrote:

> Hi,
>
> i get the following error logs when I am trying to run a scheduled task in
> the ESB.
> What could be the reason? What can i do to overcome this?
>
> TID: [0] [ESB] [2015-08-04 00:00:36,958]  INFO
> {org.apache.synapse.mediators.builtin.LogMediator} -  To:
> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
> MessageID: urn:uuid:6cba9ade-1456-42bf-bca9-e0c2110fed2c, Direction:
> request, STATE = LEADQ {org.apache.synapse.mediators.builtin.LogMediator}
> TID: [0] [ESB] [2015-08-04 00:00:38,318] ERROR
> {org.apache.synapse.mediators.db.DBReportMediator} -  Error execuring
> insert statement :
> INSERT INTO quarterlyleads
> (Region, count, RecordDate) VALUES (?, ?, ?) against DataSource :
> jdbc:mysql://localhost:3306/sf
> {org.apache.synapse.mediators.db.DBReportMediator}
> com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet
> successfully received from the server was 62,995,899 milliseconds ago.  The
> last packet sent successfully to the server was 62,995,908 milliseconds
> ago. is longer than the server configured value of 'wait_timeout'. You
> should consider either expiring and/or testing connection validity before
> use in your application, increasing the server configured values for client
> timeouts, or using the Connector/J connection property 'autoReconnect=true'
> to avoid this problem.
> 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:534)
> at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
> at
> com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
> at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3965)
> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2578)
> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2758)
> at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2826)
> at
> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2082)
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2334)
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2262)
> at
> com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2246)
> at
> org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
> at
> org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
> at
> org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
> at
> org.apache.synapse.mediators.db.DBReportMediator.processStatement(DBReportMediator.java:55)
> at
> org.apache.synapse.mediators.db.AbstractDBMediator.mediate(AbstractDBMediator.java:143)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
> at org.apache.synapse.mediators.eip.Target.mediate(Target.java:106)
> at
> org.apache.synapse.mediators.eip.splitter.IterateMediator.mediate(IterateMediator.java:146)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:255)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:556)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:198)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:701)
> Caused by: java.net.SocketException: Broken pipe
> at java.net.SocketOutputStream.socketWrite0(Native Method)
> at java.net.SocketOutputStream.socketWrite(SocketOutputStream.ja

Re: [Dev] [GSoC-2015] Data Wrangler extension for WSO2 Machine Learner

2015-08-03 Thread Danula Eranjith
In other words,
What would be the preferred output type for a dataset which is
pre-processed by wrangler?
As I have observed different algorithms use different JavaRDD types as
input ( JavaRDD, JavaRDD etc )

On Tue, Aug 4, 2015 at 11:48 AM, Nirmal Fernando  wrote:

> Hi Danula,
>
> On Tue, Aug 4, 2015 at 11:47 AM, Danula Eranjith 
> wrote:
>
>> Hi Nirmal,
>>
>> In ML, what is the preferred way of keeping data in a single row of
>> JavaRDD?
>>
>
> I didn't quite get your question. Can you elaborate please?
>
>
>>
>> As I have figured it depends on the algorithm being used.
>>
>> Danula
>>
>> On Thu, Jul 30, 2015 at 9:14 AM, Nirmal Fernando  wrote:
>>
>>> Thanks Danula, I'll send an invite.
>>>
>>> On Wed, Jul 29, 2015 at 10:24 PM, Danula Eranjith 
>>> wrote:
>>>
 Hi Nirmal,

 I am available after 1.30pm on Tuesday, Wednesday and Thursday.

 Danula

 On Wed, Jul 29, 2015 at 12:10 PM, Nirmal Fernando 
 wrote:

> Hi Danula,
>
> Can we arrange a demo/review somewhere next week? Please let me know
> few time slots.
>
> On Thu, Jul 23, 2015 at 11:47 AM, Nirmal Fernando 
> wrote:
>
>> Thanks Danula.
>>
>> On Thu, Jul 23, 2015 at 11:41 AM, Danula Eranjith <
>> hmdanu...@gmail.com> wrote:
>>
>>> You can find the source at [1]
>>> . I have to
>>> do some refactoring when integrating to ML.
>>>
>>> [1] - https://github.com/danula/wso2-ml-wrangler-integration
>>>
>>> On Thu, Jul 23, 2015 at 11:31 AM, Nirmal Fernando 
>>> wrote:
>>>
 Thanks Danula. Please share the current code, if possible.

 On Thu, Jul 23, 2015 at 8:41 AM, Danula Eranjith <
 hmdanu...@gmail.com> wrote:

> Hi all,
>
> I have succeeded in parsing the operations from wrangler
> javascript code to spark transformations I have written. Working on
> automating the process.
>
> Last couple of steps would be changing the wrangler interface and
> integrating it into ML Wizard.
>
> Thanks
> Danula
>
> On Wed, Jul 22, 2015 at 9:31 AM, Nirmal Fernando 
> wrote:
>
>> Hi Danula,
>>
>> Could you please summarize the current status of the project and
>> also the things left to do?
>>
>> On Sun, Jul 19, 2015 at 11:39 PM, Danula Eranjith <
>> hmdanu...@gmail.com> wrote:
>>
>>> Thank you.
>>> Will use them. I already have some other kaggle datasets as
>>> well.
>>>
>>>
1.


 On Sun, Jul 19, 2015 at 11:30 PM, Danula Eranjith <
 hmdanu...@gmail.com> wrote:

> Hi Nirmal,
>
> Would it be possible to get some sample data sets which are
> more likely to be pre-processed using wrangler. I am currently 
> testing my
> implementations against small and more general data sets.
>
> I have checked datasets available at [1]
>  
> as
> well. But there is nothing much to be processed as they are ready 
> to be fed
> to ML.
>
> [1] -
> https://github.com/wso2/product-ml/tree/master/modules/samples
>
> Thanks,
> Danula
>
> On Thu, Jul 16, 2015 at 10:15 PM, Nirmal Fernando <
> nir...@wso2.com> wrote:
>
>> Thanks Danula.
>>
>> On Thu, Jul 16, 2015 at 10:07 PM, Danula Eranjith <
>> hmdanu...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> Sorry for not keeping you in the loop.
>>>
>>> After considering and experimenting with several options. I
>>> am using the javascript code generated by wrangler to implement 
>>> them using
>>> spark. I have used regular expressions to extract the 
>>> operations,
>>> parameters and values and mapped them to spark transformations 
>>> I previously
>>> developed.
>>>
>>> The code generated by wrangler for certain functions have
>>> nested operations.
>>>
>>> (1)
>>>
>>> /* Fill split3  with values from above */
>>> w.add(dw.fill().column(["split3"])
>>> .table(0)
>>> .status("active")
>>> .drop(false)
>>> .direction("down")
>>> .method("copy")
>>> .row(undefined)
>>> )
>>>
>>> (2)
>>>
>>> /* D

Re: [Dev] [GSoC-2015] Data Wrangler extension for WSO2 Machine Learner

2015-08-03 Thread Nirmal Fernando
Hi Danula,

On Tue, Aug 4, 2015 at 11:47 AM, Danula Eranjith 
wrote:

> Hi Nirmal,
>
> In ML, what is the preferred way of keeping data in a single row of
> JavaRDD?
>

I didn't quite get your question. Can you elaborate please?


>
> As I have figured it depends on the algorithm being used.
>
> Danula
>
> On Thu, Jul 30, 2015 at 9:14 AM, Nirmal Fernando  wrote:
>
>> Thanks Danula, I'll send an invite.
>>
>> On Wed, Jul 29, 2015 at 10:24 PM, Danula Eranjith 
>> wrote:
>>
>>> Hi Nirmal,
>>>
>>> I am available after 1.30pm on Tuesday, Wednesday and Thursday.
>>>
>>> Danula
>>>
>>> On Wed, Jul 29, 2015 at 12:10 PM, Nirmal Fernando 
>>> wrote:
>>>
 Hi Danula,

 Can we arrange a demo/review somewhere next week? Please let me know
 few time slots.

 On Thu, Jul 23, 2015 at 11:47 AM, Nirmal Fernando 
 wrote:

> Thanks Danula.
>
> On Thu, Jul 23, 2015 at 11:41 AM, Danula Eranjith  > wrote:
>
>> You can find the source at [1]
>> . I have to
>> do some refactoring when integrating to ML.
>>
>> [1] - https://github.com/danula/wso2-ml-wrangler-integration
>>
>> On Thu, Jul 23, 2015 at 11:31 AM, Nirmal Fernando 
>> wrote:
>>
>>> Thanks Danula. Please share the current code, if possible.
>>>
>>> On Thu, Jul 23, 2015 at 8:41 AM, Danula Eranjith <
>>> hmdanu...@gmail.com> wrote:
>>>
 Hi all,

 I have succeeded in parsing the operations from wrangler javascript
 code to spark transformations I have written. Working on automating the
 process.

 Last couple of steps would be changing the wrangler interface and
 integrating it into ML Wizard.

 Thanks
 Danula

 On Wed, Jul 22, 2015 at 9:31 AM, Nirmal Fernando 
 wrote:

> Hi Danula,
>
> Could you please summarize the current status of the project and
> also the things left to do?
>
> On Sun, Jul 19, 2015 at 11:39 PM, Danula Eranjith <
> hmdanu...@gmail.com> wrote:
>
>> Thank you.
>> Will use them. I already have some other kaggle datasets as well.
>>
>>
>>>1.
>>>
>>>
>>> On Sun, Jul 19, 2015 at 11:30 PM, Danula Eranjith <
>>> hmdanu...@gmail.com> wrote:
>>>
 Hi Nirmal,

 Would it be possible to get some sample data sets which are
 more likely to be pre-processed using wrangler. I am currently 
 testing my
 implementations against small and more general data sets.

 I have checked datasets available at [1]
  as
 well. But there is nothing much to be processed as they are ready 
 to be fed
 to ML.

 [1] -
 https://github.com/wso2/product-ml/tree/master/modules/samples

 Thanks,
 Danula

 On Thu, Jul 16, 2015 at 10:15 PM, Nirmal Fernando <
 nir...@wso2.com> wrote:

> Thanks Danula.
>
> On Thu, Jul 16, 2015 at 10:07 PM, Danula Eranjith <
> hmdanu...@gmail.com> wrote:
>
>> Hi all,
>>
>> Sorry for not keeping you in the loop.
>>
>> After considering and experimenting with several options. I
>> am using the javascript code generated by wrangler to implement 
>> them using
>> spark. I have used regular expressions to extract the operations,
>> parameters and values and mapped them to spark transformations I 
>> previously
>> developed.
>>
>> The code generated by wrangler for certain functions have
>> nested operations.
>>
>> (1)
>>
>> /* Fill split3  with values from above */
>> w.add(dw.fill().column(["split3"])
>> .table(0)
>> .status("active")
>> .drop(false)
>> .direction("down")
>> .method("copy")
>> .row(undefined)
>> )
>>
>> (2)
>>
>> /* Delete  rows where split1 is null */
>> w.add(dw.filter().column([])
>> .table(0)
>> .status("active")
>> .drop(false)
>> .row(dw.row().column([])
>> .table(0)
>> .status("active")
>> .drop(false)
>> .conditions([dw.is_null().column([])
>> .table(0)
>> .status("active")
>> .drop(false)
>> .lcol("split1")
>> .value(undefi

Re: [Dev] [GSoC-2015] Data Wrangler extension for WSO2 Machine Learner

2015-08-03 Thread Danula Eranjith
Hi Nirmal,

In ML, what is the preferred way of keeping data in a single row of JavaRDD?

As I have figured it depends on the algorithm being used.

Danula

On Thu, Jul 30, 2015 at 9:14 AM, Nirmal Fernando  wrote:

> Thanks Danula, I'll send an invite.
>
> On Wed, Jul 29, 2015 at 10:24 PM, Danula Eranjith 
> wrote:
>
>> Hi Nirmal,
>>
>> I am available after 1.30pm on Tuesday, Wednesday and Thursday.
>>
>> Danula
>>
>> On Wed, Jul 29, 2015 at 12:10 PM, Nirmal Fernando 
>> wrote:
>>
>>> Hi Danula,
>>>
>>> Can we arrange a demo/review somewhere next week? Please let me know few
>>> time slots.
>>>
>>> On Thu, Jul 23, 2015 at 11:47 AM, Nirmal Fernando 
>>> wrote:
>>>
 Thanks Danula.

 On Thu, Jul 23, 2015 at 11:41 AM, Danula Eranjith 
 wrote:

> You can find the source at [1]
> . I have to
> do some refactoring when integrating to ML.
>
> [1] - https://github.com/danula/wso2-ml-wrangler-integration
>
> On Thu, Jul 23, 2015 at 11:31 AM, Nirmal Fernando 
> wrote:
>
>> Thanks Danula. Please share the current code, if possible.
>>
>> On Thu, Jul 23, 2015 at 8:41 AM, Danula Eranjith > > wrote:
>>
>>> Hi all,
>>>
>>> I have succeeded in parsing the operations from wrangler javascript
>>> code to spark transformations I have written. Working on automating the
>>> process.
>>>
>>> Last couple of steps would be changing the wrangler interface and
>>> integrating it into ML Wizard.
>>>
>>> Thanks
>>> Danula
>>>
>>> On Wed, Jul 22, 2015 at 9:31 AM, Nirmal Fernando 
>>> wrote:
>>>
 Hi Danula,

 Could you please summarize the current status of the project and
 also the things left to do?

 On Sun, Jul 19, 2015 at 11:39 PM, Danula Eranjith <
 hmdanu...@gmail.com> wrote:

> Thank you.
> Will use them. I already have some other kaggle datasets as well.
>
>
>>1.
>>
>>
>> On Sun, Jul 19, 2015 at 11:30 PM, Danula Eranjith <
>> hmdanu...@gmail.com> wrote:
>>
>>> Hi Nirmal,
>>>
>>> Would it be possible to get some sample data sets which are more
>>> likely to be pre-processed using wrangler. I am currently testing my
>>> implementations against small and more general data sets.
>>>
>>> I have checked datasets available at [1]
>>>  as
>>> well. But there is nothing much to be processed as they are ready 
>>> to be fed
>>> to ML.
>>>
>>> [1] -
>>> https://github.com/wso2/product-ml/tree/master/modules/samples
>>>
>>> Thanks,
>>> Danula
>>>
>>> On Thu, Jul 16, 2015 at 10:15 PM, Nirmal Fernando <
>>> nir...@wso2.com> wrote:
>>>
 Thanks Danula.

 On Thu, Jul 16, 2015 at 10:07 PM, Danula Eranjith <
 hmdanu...@gmail.com> wrote:

> Hi all,
>
> Sorry for not keeping you in the loop.
>
> After considering and experimenting with several options. I am
> using the javascript code generated by wrangler to implement them 
> using
> spark. I have used regular expressions to extract the operations,
> parameters and values and mapped them to spark transformations I 
> previously
> developed.
>
> The code generated by wrangler for certain functions have
> nested operations.
>
> (1)
>
> /* Fill split3  with values from above */
> w.add(dw.fill().column(["split3"])
> .table(0)
> .status("active")
> .drop(false)
> .direction("down")
> .method("copy")
> .row(undefined)
> )
>
> (2)
>
> /* Delete  rows where split1 is null */
> w.add(dw.filter().column([])
> .table(0)
> .status("active")
> .drop(false)
> .row(dw.row().column([])
> .table(0)
> .status("active")
> .drop(false)
> .conditions([dw.is_null().column([])
> .table(0)
> .status("active")
> .drop(false)
> .lcol("split1")
> .value(undefined)
> .op_str("is null")
> ])
> )
> )
>
> I have succeeded in parsing the operations similar to (1)
> above and currently working on extending it to work on operations 
> similar
> to (2).
>
> Next s

[Dev] java.net.SocketException: Broken pipe -Error while running ESB scheduled task

2015-08-03 Thread Aaquibah Nashry
Hi,

i get the following error logs when I am trying to run a scheduled task in
the ESB.
What could be the reason? What can i do to overcome this?

TID: [0] [ESB] [2015-08-04 00:00:36,958]  INFO
{org.apache.synapse.mediators.builtin.LogMediator} -  To:
http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
MessageID: urn:uuid:6cba9ade-1456-42bf-bca9-e0c2110fed2c, Direction:
request, STATE = LEADQ {org.apache.synapse.mediators.builtin.LogMediator}
TID: [0] [ESB] [2015-08-04 00:00:38,318] ERROR
{org.apache.synapse.mediators.db.DBReportMediator} -  Error execuring
insert statement :
INSERT INTO quarterlyleads
(Region, count, RecordDate) VALUES (?, ?, ?) against DataSource :
jdbc:mysql://localhost:3306/sf
{org.apache.synapse.mediators.db.DBReportMediator}
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet
successfully received from the server was 62,995,899 milliseconds ago.  The
last packet sent successfully to the server was 62,995,908 milliseconds
ago. is longer than the server configured value of 'wait_timeout'. You
should consider either expiring and/or testing connection validity before
use in your application, increasing the server configured values for client
timeouts, or using the Connector/J connection property 'autoReconnect=true'
to avoid this problem.
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:534)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:408)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1137)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3965)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2578)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2758)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2826)
at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2082)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2334)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2262)
at
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2246)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at
org.apache.synapse.mediators.db.DBReportMediator.processStatement(DBReportMediator.java:55)
at
org.apache.synapse.mediators.db.AbstractDBMediator.mediate(AbstractDBMediator.java:143)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at org.apache.synapse.mediators.eip.Target.mediate(Target.java:106)
at
org.apache.synapse.mediators.eip.splitter.IterateMediator.mediate(IterateMediator.java:146)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:255)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:556)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:198)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
Caused by: java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3946)
... 29 more
TID: [0] [ESB] [2015-08-04 00:00:38,331] ERROR
{org.apache.synapse.core.axis2.SynapseCallbackReceiver} -  Synapse
encountered an exception, No error h

Re: [Dev] [PR] adding new dispatcher : carbon-multitenancy/pull/2

2015-08-03 Thread Sanjeewa Malalgoda
This fix was there to avoid sending requests to deactivated tenants. If we
addressed that already(over passthrough transport) we may discard this.

Thanks,
sanjeewa.

On Mon, Aug 3, 2015 at 11:10 PM, Supun Malinga  wrote:

> 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 
> mobile: +94 (0)71 56 91 321
>



-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

blog
:http://sanjeewamalalgoda.blogspot.com/

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


Re: [Dev] Releasing Carbon Multitenancy

2015-08-03 Thread Chanaka Fernando
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  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 
> 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
___
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 Niranjan Karunanandham
Hi Supun,

In order to merge this PR[1], we need to update the kernel version[2] in
carbon commons to 4.4.1.

[1] - https://github.com/wso2/carbon-commons/pull/97
[2] - https://github.com/wso2/carbon-commons/blob/master/pom.xml#L1895

Regards,
Nira

On Mon, Aug 3, 2015 at 11:06 PM, Supun Malinga  wrote:

> Niranjan,
>
>
> On Mon, May 25, 2015 at 9:58 AM, Niranjan Karunanandham  > 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 
>> 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 
 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 "com.google.code.gson:gson> 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 
> mobile: +94 (0)71 56 91 321
>



-- 

*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] Issue related to UES Dashboard

2015-08-03 Thread Sriskandarajah Suhothayan
Hi Manu

Can you assign someone from your team to help us fix the issues related to
the dashboard[1] before the DAS, CEP releases.

@Dunith do you have any issues identified?

Thanks
Suho

[1]https://wso2.org/jira/browse/CEP-1258

-- 

*S. Suhothayan*
Technical Lead & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Status on JMS performance of WSO2 CEP

2015-08-03 Thread Sriskandarajah Suhothayan
Hi Rajeev

Whats the progress on $Subject.

Regards
Suho

-- 

*S. Suhothayan*
Technical Lead & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Insufficient Privileges after changing the admin password.

2015-08-03 Thread Nuwan Dias
If you change the password via the user-mgt.xml file, then you need not
worry about changing passwords in the api-manager.xml file. If you change
it via the UI, then you need to update the api-manager.xml as well.

We need the admin credentials to talk to admin services residing in other
VMs. Is there a way to derive the admin password from the carbon runtime if
its updated by the UI?

This is how we get the admin password at the moment, but it doesn't seem to
be picking the password value which you provide through the UI.

*RealmConfiguration realmConfig = new
RealmConfigXMLProcessor().buildRealmConfigurationFromFile();*
*String password = realmConfig.getAdminPassword();*

Thanks,
NuwanD.

On Mon, Aug 3, 2015 at 11:24 PM, Ayyoob Hamza  wrote:

> Found the reason for having to change the password fields on api manager
> config[1]. However I wonder why cant we have a default behaviour on api
> manager to be able to adapt and work for default admin credentials And
>  then be able to adapt other configurations only if its specified ?.
>
> [1]https://docs.wso2.com/display/AM190/Maintaining+Logins+and+passwords
>
> Thanks
>
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
> On Mon, Aug 3, 2015 at 10:46 PM, Ayyoob Hamza  wrote:
>
>> Hi All,
>> I have shared the WSO2 API manager 1.9.0 user datasource with the CDMF
>> user datastore. I am getting "insufficient privileges" as a error message
>> when I access the api manager  store with the admin credential.  This
>> behaviour appeared after changing the password for admin user from the cdmf
>> carbon console.
>>
>> I wanted to know whether I need to change the password details on the
>> api-manager.xml from api manager configuration ?. Is this the expected
>> behaviour of api manager ?. If so wanted to know whether is there a
>> specific reason for editing the password fields on these configuration
>> files.
>>
>> Thanks,
>> *Ayyoob Hamza*
>> *Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Anuruddha Liyanarachchi

2015-08-03 Thread Imesh Gunaratne
s/great contributors/great contributions/g

On Mon, Aug 3, 2015 at 11:36 PM, Imesh Gunaratne  wrote:

> Hi Devs,
>
> It's my pleasure to welcome Anuruddha Liyanarachchi as a WSO2 Committer.
>
> Anuruddha has done great contributors to the WSO2 Private PaaS project. As
> a recognition of his work he has been voted as a WSO2 committer.
>
> Anuruddha, welcome aboard! Keep up the good work!
>
> Thanks
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Anuruddha Liyanarachchi

2015-08-03 Thread Imesh Gunaratne
Hi Devs,

It's my pleasure to welcome Anuruddha Liyanarachchi as a WSO2 Committer.

Anuruddha has done great contributors to the WSO2 Private PaaS project. As
a recognition of his work he has been voted as a WSO2 committer.

Anuruddha, welcome aboard! Keep up the good work!

Thanks

-- 
*Imesh Gunaratne*
Senior Technical Lead
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: http://imesh.gunaratne.org
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Insufficient Privileges after changing the admin password.

2015-08-03 Thread Ayyoob Hamza
Found the reason for having to change the password fields on api manager
config[1]. However I wonder why cant we have a default behaviour on api
manager to be able to adapt and work for default admin credentials And
 then be able to adapt other configurations only if its specified ?.

[1]https://docs.wso2.com/display/AM190/Maintaining+Logins+and+passwords

Thanks

*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>

On Mon, Aug 3, 2015 at 10:46 PM, Ayyoob Hamza  wrote:

> Hi All,
> I have shared the WSO2 API manager 1.9.0 user datasource with the CDMF
> user datastore. I am getting "insufficient privileges" as a error message
> when I access the api manager  store with the admin credential.  This
> behaviour appeared after changing the password for admin user from the cdmf
> carbon console.
>
> I wanted to know whether I need to change the password details on the
> api-manager.xml from api manager configuration ?. Is this the expected
> behaviour of api manager ?. If so wanted to know whether is there a
> specific reason for editing the password fields on these configuration
> files.
>
> Thanks,
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
___
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  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  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 
>> 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 
>>> 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 
>> 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 *
>



-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: 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 Johann Nallathamby
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  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 
> 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 
>> 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 
> 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 *
___
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 
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 
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 
> 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 
>>> 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 "com.google.code.gson:gson 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 
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  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 
> 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 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Insufficient Privileges after changing the admin password.

2015-08-03 Thread Ayyoob Hamza
Hi All,
I have shared the WSO2 API manager 1.9.0 user datasource with the CDMF user
datastore. I am getting "insufficient privileges" as a error message when I
access the api manager  store with the admin credential.  This behaviour
appeared after changing the password for admin user from the cdmf carbon
console.

I wanted to know whether I need to change the password details on the
api-manager.xml from api manager configuration ?. Is this the expected
behaviour of api manager ?. If so wanted to know whether is there a
specific reason for editing the password fields on these configuration
files.

Thanks,
*Ayyoob Hamza*
*Software Engineer*
WSO2 Inc.; http://wso2.com
email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] BPEL and HumanTask packages for Workflow support in IS

2015-08-03 Thread Vinod Kavinda
Hi Harsha,
I did the changes you requested. Please find the modified bpel package from
[1]. There is no any changes in human task package.

We'll discuss further modifications tomorrow.

[1] -
https://svn.wso2.org/repos/wso2/people/vinod/workflow-support/ApprovalProcess_3.0.0.zip

Regards,
Vinod

On Mon, Aug 3, 2015 at 9:55 PM, Harsha Thirimanna  wrote:

> Hi Vinod,
> There are more to change, and I will discuss with you tomorrow.
>
>
> *Harsha Thirimanna*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Mon, Aug 3, 2015 at 9:39 PM, Vinod Kavinda  wrote:
>
>> Hi Harsha,
>> I'll do the required modifications ASAP.
>>
>> Regards,
>> Vinod
>>
>> On Mon, Aug 3, 2015 at 6:26 PM, Harsha Thirimanna 
>> wrote:
>>
>>> This is the payload for that and those should be mandatory.
>>>
>>> http://schema.bpel.mgt.workflow.carbon.wso2.org/";>
>>>  http://schema.bpel.mgt.workflow.carbon.wso2.org/";>
>>> step1
>>> admin
>>> user1
>>>
>>> task1
>>> task1desc
>>>
>>>  
>>>  http://schema.bpel.mgt.workflow.carbon.wso2.org/";>
>>> step2
>>> vinod
>>>
>>> task1
>>> task1desc
>>>
>>>  
>>>   
>>>
>>>
>>> *Harsha Thirimanna*
>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Mon, Aug 3, 2015 at 6:13 PM, Harsha Thirimanna 
>>> wrote:
>>>
 Hi Vinod,

 As in the requirement, we need to pass human task subject and body as
 run time parameter per steps. Can we do this change on this please ?


 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * *
 *email: **hars...@wso2.com* * cell: +94 71 5186770 *
 *twitter: **http://twitter.com/ *
 *harshathirimannlinked-in: **http:
 **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 *

 *Lean . Enterprise . Middleware*


 On Mon, Aug 3, 2015 at 12:34 PM, Harsha Thirimanna 
 wrote:

> Hi Nandika/Vinod,
>
> I just deploy you BPEL and HumanTask package in to the BPS 3.2.0 and
> it is just give following logs and in admin console it says, successfully
> done. Are there any issues this artifacts in released pack or do I change
> something before i deploy this ?
>
>
>
> ​TID: [0] [BPS] [2015-08-03 12:25:49,401]  INFO
> {org.springframework.context.support.ClassPathXmlApplicationContext} -
>  Refreshing
> org.springframework.context.support.ClassPathXmlApplicationContext@10b8a942:
> startup date [Mon Aug 03 12:25:49 IST 2015]; root of context hierarchy
> {org.springframework.context.support.ClassPathXmlApplicationContext}
> TID: [0] [BPS] [2015-08-03 12:25:49,403]  INFO
> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
> XML bean definitions from class path resource [beans.xml]
> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader}
> TID: [0] [BPS] [2015-08-03 12:25:49,419] ERROR
> {org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
>  
> null:file:///home/harsha/wso2/IS/IS-5.1.0-Release/WORKFLOW/wso2bps-3.2.0/tmp/work/bpelTemp/1.4385849493994443E12/ApprovalProcess_2.0.0/ApprovalProcess.bpel:36:17:cvc-complex-type.2.4.a:
> Invalid content was found starting with element 'extensions'. One of '{"
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":import, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":partnerLinks,
> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":messageExchanges,
> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":variables,
> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":correlationSets,
> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":faultHandlers,
> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":eventHandlers,
> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":assign, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executabl

[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 
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 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] BPEL and HumanTask packages for Workflow support in IS

2015-08-03 Thread Harsha Thirimanna
Hi Vinod,
There are more to change, and I will discuss with you tomorrow.


*Harsha Thirimanna*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
* *
*email: **hars...@wso2.com* * cell: +94 71 5186770 *
*twitter: **http://twitter.com/ *
*harshathirimannlinked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

*Lean . Enterprise . Middleware*


On Mon, Aug 3, 2015 at 9:39 PM, Vinod Kavinda  wrote:

> Hi Harsha,
> I'll do the required modifications ASAP.
>
> Regards,
> Vinod
>
> On Mon, Aug 3, 2015 at 6:26 PM, Harsha Thirimanna 
> wrote:
>
>> This is the payload for that and those should be mandatory.
>>
>> http://schema.bpel.mgt.workflow.carbon.wso2.org/";>
>>  http://schema.bpel.mgt.workflow.carbon.wso2.org/";>
>> step1
>> admin
>> user1
>>
>> task1
>> task1desc
>>
>>  
>>  http://schema.bpel.mgt.workflow.carbon.wso2.org/";>
>> step2
>> vinod
>>
>> task1
>> task1desc
>>
>>  
>>   
>>
>>
>> *Harsha Thirimanna*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Mon, Aug 3, 2015 at 6:13 PM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi Vinod,
>>>
>>> As in the requirement, we need to pass human task subject and body as
>>> run time parameter per steps. Can we do this change on this please ?
>>>
>>>
>>> *Harsha Thirimanna*
>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>>> * *
>>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>>> *twitter: **http://twitter.com/ *
>>> *harshathirimannlinked-in: **http:
>>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> On Mon, Aug 3, 2015 at 12:34 PM, Harsha Thirimanna 
>>> wrote:
>>>
 Hi Nandika/Vinod,

 I just deploy you BPEL and HumanTask package in to the BPS 3.2.0 and it
 is just give following logs and in admin console it says, successfully
 done. Are there any issues this artifacts in released pack or do I change
 something before i deploy this ?



 ​TID: [0] [BPS] [2015-08-03 12:25:49,401]  INFO
 {org.springframework.context.support.ClassPathXmlApplicationContext} -
  Refreshing
 org.springframework.context.support.ClassPathXmlApplicationContext@10b8a942:
 startup date [Mon Aug 03 12:25:49 IST 2015]; root of context hierarchy
 {org.springframework.context.support.ClassPathXmlApplicationContext}
 TID: [0] [BPS] [2015-08-03 12:25:49,403]  INFO
 {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
 XML bean definitions from class path resource [beans.xml]
 {org.springframework.beans.factory.xml.XmlBeanDefinitionReader}
 TID: [0] [BPS] [2015-08-03 12:25:49,419] ERROR
 {org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
  
 null:file:///home/harsha/wso2/IS/IS-5.1.0-Release/WORKFLOW/wso2bps-3.2.0/tmp/work/bpelTemp/1.4385849493994443E12/ApprovalProcess_2.0.0/ApprovalProcess.bpel:36:17:cvc-complex-type.2.4.a:
 Invalid content was found starting with element 'extensions'. One of '{"
 http://docs.oasis-open.org/wsbpel/2.0/process/executable":import, "
 http://docs.oasis-open.org/wsbpel/2.0/process/executable":partnerLinks,
 "http://docs.oasis-open.org/wsbpel/2.0/process/executable":messageExchanges,
 "http://docs.oasis-open.org/wsbpel/2.0/process/executable":variables, "
 http://docs.oasis-open.org/wsbpel/2.0/process/executable":correlationSets,
 "http://docs.oasis-open.org/wsbpel/2.0/process/executable":faultHandlers,
 "http://docs.oasis-open.org/wsbpel/2.0/process/executable":eventHandlers,
 "http://docs.oasis-open.org/wsbpel/2.0/process/executable":assign, "
 http://docs.oasis-open.org/wsbpel/2.0/process/executable":compensate, "
 http://docs.oasis-open.org/wsbpel/2.0/process/executable":compensateScope,
 "http://docs.oasis-open.org/wsbpel/2.0/process/executable":empty, "
 http://docs.oasis-open.org/wsbpel/2.0/process/executable":exit, "
 http://docs.oasis-open.org/wsbpel/2.0/process/executable":extensionActivity,
 "http://docs.oasis-open.org/wsbpel/2.0/process/executable":flow, "
 http://docs.oasis-open.org/wsbpel/2.0/process/executable":forEach, "
 http://docs.o

Re: [Dev] [IS] BPEL and HumanTask packages for Workflow support in IS

2015-08-03 Thread Vinod Kavinda
Hi Harsha,
I'll do the required modifications ASAP.

Regards,
Vinod

On Mon, Aug 3, 2015 at 6:26 PM, Harsha Thirimanna  wrote:

> This is the payload for that and those should be mandatory.
>
> http://schema.bpel.mgt.workflow.carbon.wso2.org/";>
>  http://schema.bpel.mgt.workflow.carbon.wso2.org/";>
> step1
> admin
> user1
>
> task1
> task1desc
>
>  
>  http://schema.bpel.mgt.workflow.carbon.wso2.org/";>
> step2
> vinod
>
> task1
> task1desc
>
>  
>   
>
>
> *Harsha Thirimanna*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Mon, Aug 3, 2015 at 6:13 PM, Harsha Thirimanna 
> wrote:
>
>> Hi Vinod,
>>
>> As in the requirement, we need to pass human task subject and body as run
>> time parameter per steps. Can we do this change on this please ?
>>
>>
>> *Harsha Thirimanna*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> * *
>> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
>> *twitter: **http://twitter.com/ *
>> *harshathirimannlinked-in: **http:
>> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>>
>> On Mon, Aug 3, 2015 at 12:34 PM, Harsha Thirimanna 
>> wrote:
>>
>>> Hi Nandika/Vinod,
>>>
>>> I just deploy you BPEL and HumanTask package in to the BPS 3.2.0 and it
>>> is just give following logs and in admin console it says, successfully
>>> done. Are there any issues this artifacts in released pack or do I change
>>> something before i deploy this ?
>>>
>>>
>>>
>>> ​TID: [0] [BPS] [2015-08-03 12:25:49,401]  INFO
>>> {org.springframework.context.support.ClassPathXmlApplicationContext} -
>>>  Refreshing
>>> org.springframework.context.support.ClassPathXmlApplicationContext@10b8a942:
>>> startup date [Mon Aug 03 12:25:49 IST 2015]; root of context hierarchy
>>> {org.springframework.context.support.ClassPathXmlApplicationContext}
>>> TID: [0] [BPS] [2015-08-03 12:25:49,403]  INFO
>>> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
>>> XML bean definitions from class path resource [beans.xml]
>>> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader}
>>> TID: [0] [BPS] [2015-08-03 12:25:49,419] ERROR
>>> {org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
>>>  
>>> null:file:///home/harsha/wso2/IS/IS-5.1.0-Release/WORKFLOW/wso2bps-3.2.0/tmp/work/bpelTemp/1.4385849493994443E12/ApprovalProcess_2.0.0/ApprovalProcess.bpel:36:17:cvc-complex-type.2.4.a:
>>> Invalid content was found starting with element 'extensions'. One of '{"
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":import, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":partnerLinks,
>>> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":messageExchanges,
>>> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":variables, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":correlationSets,
>>> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":faultHandlers,
>>> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":eventHandlers,
>>> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":assign, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":compensate, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":compensateScope,
>>> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":empty, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":exit, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":extensionActivity,
>>> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":flow, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":forEach, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":if, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":invoke, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":pick, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":receive, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":repeatUntil, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":reply, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":rethrow, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":scope, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":sequence, "
>>> http://docs.oasis-open.org/wsbpel/2.0/process/executabl

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.1 RC2

2015-08-03 Thread KasunG Gajasinghe
Created the 4.4.1 tag, and released the artifacts to nexus. Next
development branch is 4.4.x [1], while we will have parallel development
branch on master for 4.5.x.

@Maheshika, can you create a Jenkins job for the carbon4-kernel 4.4.x
branch?

[1] https://github.com/wso2/carbon4-kernel/tree/4.4.x

Thanks


On Mon, Aug 3, 2015 at 5:24 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Devs,
>
> Thanks for testing and verifying the Carbon kernel 4.4.1 RC2. We are
> closing this vote.
> This vote has passed with 4 +1s and 0 -1s. Therefore we will proceed with
> the Carbon kernel 4.4.1 release.
>
> 4 +1s (Charitha Goonathilleke, Ruwan Abekoon, Chanaka Fernando, Madhawa
> Gunesekara)
> 0  -1s
>
> Thanks
> Best Regards
> Carbon Team.
>
>
> On Mon, Aug 3, 2015 at 4:59 PM, Madhawa Gunasekara 
> wrote:
>
>> +1
>>
>> We are okay if carbon-kernel team releasing 4.4.2 before DSS GA release.
>>
>> Thanks,
>> Madhawa
>>
>> On Mon, Aug 3, 2015 at 4:50 PM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> @Chanaka*, *We are going to fix this, and the fix will be in
>>> carbon-deployment. So, this won't be a blocker for the kernel release.
>>>
>>> For the DSS issue, we have had a discussion with @Rajith and *@*Madhawa.
>>> Currently, there is a workaround for this issue by having different
>>> namespaces for its services. Users could use default json message
>>> builders/formatters as well instead of gson one if needed. So, this issue
>>> should not stop us from passing this RC. We will incorporate this for the
>>> next Kernel release which we will do before the DSS GA release.
>>>
>>> From user's perspective, the tenant-mgt.xml has been placed in
>>> repository/conf/ folder starting from Carbon 4.2.0 days. If we are to
>>> change the location, we can only do this in a major version, not in a patch
>>> release.
>>>
>>> Thanks.
>>>
>>> On Aug 3, 2015, at 9:59 AM, Chanaka Fernando  wrote:
>>>
>>> Hi All,
>>>
>>> Module management feature is not working properly. When I try to engage
>>> a module (rahas or rampart), It throws the following exception[1]  in the
>>> back end and UI is showing an error. With these errors, modules are listed
>>> under globally engaged modules list and when I try to disengage the module,
>>> it is not possible.
>>>
>>> [1]
>>>
>>> [2015-08-03 09:54:50,197] ERROR - AbstractPersistenceManager Trying to
>>> engage or disengage unavailable module rahas
>>> [2015-08-03 09:54:50,198] ERROR - AbstractPersistenceManager Unable to
>>> engage rahas globally
>>> org.wso2.carbon.core.persistence.PersistenceException: Trying to engage
>>> or disengage unavailable module rahas
>>> at
>>> org.wso2.carbon.core.persistence.AbstractPersistenceManager.handleException(AbstractPersistenceManager.java:614)
>>> at
>>> org.wso2.carbon.core.persistence.ModulePersistenceManager.handleGlobalModule(ModulePersistenceManager.java:440)
>>> at
>>> org.wso2.carbon.core.persistence.ModulePersistenceManager.globallyEngageModule(ModulePersistenceManager.java:139)
>>> at
>>> org.wso2.carbon.module.mgt.service.ModuleAdminService.globallyEngageModule(ModuleAdminService.java:282)
>>> 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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
>>> at
>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>>> at
>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>> at
>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>> at
>>> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
>>> at
>>> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
>>> at
>>> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
>>> at
>>> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>>> at
>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
>>> at
>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>>> at
>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>> at
>>> org.wso2.carbon.module.mgt.stub.ModuleAdminServiceStub.globallyEngageModule(ModuleAdminServiceStub.java:2801)
>>> at
>>> org.wso2.carbon.modul

Re: [Dev] WSO2 MB build failure after upgrading kernel version

2015-08-03 Thread Thusitha Thilina Dayaratne
Hi Sasikala,

Can you check the group id of the org.wso2.carbon.tenant.usage.agent? It
should be org.wso2.carbon.multitenancy.
Thanks

On Mon, Aug 3, 2015 at 3:38 PM, Sasikala Kottegoda 
wrote:

> Hi all,
>
> I tried to build WSO2 MB with the following version upgrades
>
>- carbon.kernel.version - from 4.4.0 to 4.4.1
>- carbon.commons.version - from 4.4.0 to 4.4.3
>- carbon.multitenancy.version - from 4.4.0 to 4.4.1
>- carbon.identity.version - from 4.4.0 to 4.5.3
>
> The build fails with the following message:
>
> Missing requirement: org.wso2.carbon.tenant.usage.agent 4.4.1
> (org.wso2.carbon.tenant.usage.agent 4.4.1) requires 'package
> org.wso2.carbon.stratos.common.util [4.4.0,5.0.0)' but it could not be found
>  Cannot satisfy dependency:
>   From: WSO2 Tenant Usage Agent Feature 4.4.1
> (org.wso2.carbon.tenant.usage.agent.feature.group 4.4.1)
>   To: org.wso2.carbon.tenant.usage.agent [4.4.1]
>
> Could somebody help me solve this issue?
>
> Thank you
> --
> Sasikala Kottegoda
> *Software Engineer*
> WSO2 Inc., http://wso2.com/
> lean. enterprise. middleware
> Mobile: +94 774835928/712792401
>
> ___
> 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


Re: [Dev] DepSync failure in ESB 4.9.0

2015-08-03 Thread KasunG Gajasinghe
Thanks Thusitha. Merged the fix.

On Mon, Aug 3, 2015 at 6:47 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi All,
>
> We have fixed this issue PR[1] JIRA[2]
> [1] - https://github.com/wso2/carbon-commons/pull/108
> [2] - https://wso2.org/jira/browse/WSAS-2037
>
> Thanks
> Best Reagards
> /Thusitha
>
> On Mon, Aug 3, 2015 at 6:06 PM, Asanthi Kulasinghe 
> wrote:
>
>> Hi ESB Team,
>>
>> ESB 4.9.0/repository/components/plugins/ contains '
>> *svn-client-adapter_1.6.18.wso2v2.jar*'.
>> Thread [1]  instructs to use '*svnkit-all-1.8.7.wso2v1.jar*' to enable
>> DepSync.
>>
>> When DepSync is enabled for ESB 4.9.0  with *svnkit-all-1.8.7.wso2v1.jar* ,
>> [2] occurs during node start up.
>>
>> As per the offline discussion with Aruna, the *svn-client-adapter jar *of
>> ESB 4.9.0 needs to be upgraded.
>>
>>
>> [1] "SVNKit library for SVN 1.7 / 1.8 for Carbon 4.4.x"
>>
>>
>> [2] ___
>>
>> [2015-08-03 12:05:32,916] ERROR - DeploymentSynchronizerComponent Error
>> while initializing a deployment synchronizer for the super tenant Carbon
>> repository
>> org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException:
>> No Repository found for type svn
>> at
>> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.getDeploymentSyncConfigurationFromConf(CarbonRepositoryUtils.java:167)
>> at
>> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.getActiveSynchronizerConfiguration(CarbonRepositoryUtils.java:97)
>> at
>> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.isSynchronizerEnabled(CarbonRepositoryUtils.java:240)
>> at
>> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent.initDeploymentSynchronizerForSuperTenant(DeploymentSynchronizerComponent.java:90)
>> at
>> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent.activate(DeploymentSynchronizerComponent.java:67)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
>> at java.lang.reflect.Method.invoke(Method.java:507)
>> 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.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>> at
>> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517)
>> 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:95)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
>> at java.lang.reflect.Method.invoke(Method.java:507)
>> 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
>

Re: [Dev] Pre-packaged IS 5.0 server creating invalid XACML

2015-08-03 Thread Nuwan Dias
Can you try the same use case on a Vanilla IS 5.0.0 + SP1? I doubt this
having anything to with the pre-packaged Key Manager features.

Thanks,
NuwanD.

On Mon, Aug 3, 2015 at 7:03 PM, John Hawkins  wrote:

> Hi,
>
> I just noticed that I am getting a namespace error in the console when it
> happens -
>
> ERROR {org.wso2.carbon.identity.entitlement.EntitlementUtil} -  Invalid
> Namespace in policy
>
> So looks like some ns thing in the UI created policy perhaps ?
>
>
> cheers,
>
> John.
>
> John Hawkins
> Director: Solutions Architecture
>
>
> On Sat, Aug 1, 2015 at 5:35 PM, John Hawkins  wrote:
>
>> Hmm, Hi Tharindu, thanks for looking at this so quickly !!
>> I just downloaded it and then bin/wso2server.sh then go to the policy
>> page and try to create a policy. This fails whether I have done the
>> additional steps to connect the API-M up to it or not.
>>
>> It seems to be a validation thing - where is the validation done - on the
>> server or in the client ? Maybe there are some clues there - perhaps Java
>> versions or some such? I'm on a  mac too ?
>>
>> John Hawkins
>> Director: Solutions Architecture
>>
>>
>> On Sat, Aug 1, 2015 at 7:16 AM, Tharindu Dharmarathna > > wrote:
>>
>>> Hi John,
>>>
>>> I have setup the Pre-packaged IS  according to the documentaion [1]. I
>>> couldn't get any issue on creating policy on Identity server.
>>>
>>> Can you please send us the steps you are done in order to reproduce this
>>> issue.
>>>
>>> [1] -
>>> https://docs.wso2.com/display/CLUSTER420/Configuring+the+Pre-Packaged+Identity+Server+5.0.0+with+API+Manager+1.9.0
>>>
>>>
>>> Thanks
>>> Tharindu
>>>
>>>
>>> On Fri, Jul 31, 2015 at 3:50 PM, John Hawkins  wrote:
>>>
 Hi Folks,

 I've created a JIRA for this [1]. I couldn't see any JIRA that looked
 like this one but I apologise if it's a dupe.

 The UI appears unable to create any policies using the wizards. This
 only happens in the pre-packaged Identity server package when you're trying
 to connect IS and API-M.

 [1] https://wso2.org/jira/browse/IDENTITY-3473


 best regards,
 John.



 John Hawkins
 Director: Solutions Architecture


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


>>>
>>>
>>> --
>>>
>>> *Tharindu Dharmarathna*Associate Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94779109091 <%2B94779109091>*
>>>
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pre-packaged IS 5.0 server creating invalid XACML

2015-08-03 Thread John Hawkins
Hi,

I just noticed that I am getting a namespace error in the console when it
happens -

ERROR {org.wso2.carbon.identity.entitlement.EntitlementUtil} -  Invalid
Namespace in policy

So looks like some ns thing in the UI created policy perhaps ?


cheers,

John.

John Hawkins
Director: Solutions Architecture


On Sat, Aug 1, 2015 at 5:35 PM, John Hawkins  wrote:

> Hmm, Hi Tharindu, thanks for looking at this so quickly !!
> I just downloaded it and then bin/wso2server.sh then go to the policy page
> and try to create a policy. This fails whether I have done the additional
> steps to connect the API-M up to it or not.
>
> It seems to be a validation thing - where is the validation done - on the
> server or in the client ? Maybe there are some clues there - perhaps Java
> versions or some such? I'm on a  mac too ?
>
> John Hawkins
> Director: Solutions Architecture
>
>
> On Sat, Aug 1, 2015 at 7:16 AM, Tharindu Dharmarathna 
> wrote:
>
>> Hi John,
>>
>> I have setup the Pre-packaged IS  according to the documentaion [1]. I
>> couldn't get any issue on creating policy on Identity server.
>>
>> Can you please send us the steps you are done in order to reproduce this
>> issue.
>>
>> [1] -
>> https://docs.wso2.com/display/CLUSTER420/Configuring+the+Pre-Packaged+Identity+Server+5.0.0+with+API+Manager+1.9.0
>>
>>
>> Thanks
>> Tharindu
>>
>>
>> On Fri, Jul 31, 2015 at 3:50 PM, John Hawkins  wrote:
>>
>>> Hi Folks,
>>>
>>> I've created a JIRA for this [1]. I couldn't see any JIRA that looked
>>> like this one but I apologise if it's a dupe.
>>>
>>> The UI appears unable to create any policies using the wizards. This
>>> only happens in the pre-packaged Identity server package when you're trying
>>> to connect IS and API-M.
>>>
>>> [1] https://wso2.org/jira/browse/IDENTITY-3473
>>>
>>>
>>> best regards,
>>> John.
>>>
>>>
>>>
>>> John Hawkins
>>> Director: Solutions Architecture
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Tharindu Dharmarathna*Associate Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94779109091 <%2B94779109091>*
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DepSync failure in ESB 4.9.0

2015-08-03 Thread Thusitha Thilina Dayaratne
Hi All,

We have fixed this issue PR[1] JIRA[2]
[1] - https://github.com/wso2/carbon-commons/pull/108
[2] - https://wso2.org/jira/browse/WSAS-2037

Thanks
Best Reagards
/Thusitha

On Mon, Aug 3, 2015 at 6:06 PM, Asanthi Kulasinghe  wrote:

> Hi ESB Team,
>
> ESB 4.9.0/repository/components/plugins/ contains '
> *svn-client-adapter_1.6.18.wso2v2.jar*'.
> Thread [1]  instructs to use '*svnkit-all-1.8.7.wso2v1.jar*' to enable
> DepSync.
>
> When DepSync is enabled for ESB 4.9.0  with *svnkit-all-1.8.7.wso2v1.jar* ,
> [2] occurs during node start up.
>
> As per the offline discussion with Aruna, the *svn-client-adapter jar *of
> ESB 4.9.0 needs to be upgraded.
>
>
> [1] "SVNKit library for SVN 1.7 / 1.8 for Carbon 4.4.x"
>
>
> [2] ___
>
> [2015-08-03 12:05:32,916] ERROR - DeploymentSynchronizerComponent Error
> while initializing a deployment synchronizer for the super tenant Carbon
> repository
> org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException:
> No Repository found for type svn
> at
> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.getDeploymentSyncConfigurationFromConf(CarbonRepositoryUtils.java:167)
> at
> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.getActiveSynchronizerConfiguration(CarbonRepositoryUtils.java:97)
> at
> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.isSynchronizerEnabled(CarbonRepositoryUtils.java:240)
> at
> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent.initDeploymentSynchronizerForSuperTenant(DeploymentSynchronizerComponent.java:90)
> at
> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent.activate(DeploymentSynchronizerComponent.java:67)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
> at java.lang.reflect.Method.invoke(Method.java:507)
> 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.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
> at
> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517)
> 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:95)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
> at java.lang.reflect.Method.invoke(Method.java:507)
> 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.getE

Re: [Dev] IS_Server JWT Settings

2015-08-03 Thread Nuwan Dias
On Mon, Aug 3, 2015 at 6:28 PM, Senaka Fernando  wrote:

> Hi Nuwan,
>
> So I think then there are few things now.
>
>1. First the docs need to be clear on what is done @ IS - your context
>is far more clearer than what the docs actually explain.
>2. Also related to #1 above, the actual config needs some renaming I
>guess, it doesn't fall into place.
>3. What if the KM is third party? Don't we have any JWT concept at
>all? If we say no, we'd be loosing a massive portion of interoperability.
>And, if so, there needs to be a config @ GW as well that says enable JWT
>request and there needs to be an extension point for which we can generate
>a JWT @ the GW level if the KM was 3rd party.
>
> Even if we use a third party KM the API Manager also plays a role in key
validation. The actual OAuth2 token is validated by the third party KM. API
Manager still validates the subscription, validates the token against the
auth-type of the Resource and generates the JWT. The part that plays this
role could either reside on the Gateway instance or as a separate API
Manager instance as well.

> So, I think the story has a few gaps as it stands now. WDYT?
> Thanks,
> Senaka.
>
> On Mon, Aug 3, 2015 at 1:49 PM, Nuwan Dias  wrote:
>
>> Hi Senaka,
>>
>> Its not just about enabling/disabling JWT. We also have options of
>> caching the JWT, specifying custom claims to be included in the JWT,
>> extending the JWT generator implementation to include custom attributes,
>> etc. All these are provided through the configuration on the KM since its
>> the KM who actually would have access to user claims, application data,
>> etc. The Gateway just passes whatever information generated by the KM as
>> the JWT to the back-end.
>>
>> Thanks,
>> NuwanD.
>>
>>
>>
>> On Mon, Aug 3, 2015 at 6:02 PM, Senaka Fernando  wrote:
>>
>>> Hi John,
>>>
>>> I think the IS sends back the JWT, but when you use IS as the key
>>> manager, shouldn't it be the API-M that requests for the JWT from IS? And,
>>> regardless of that the setting should be done at the API-M GW IMO, because
>>> that's what creates the JWT and passes on to the ESB for instance. I think
>>> it has to happen that way, especially with external KMs used and all.
>>> Therefore, I think this setting should be done on the API-M GW-side (if I
>>> understood correctly).
>>>
>>> AM team, what's your thoughts on this?
>>>
>>> Thanks,
>>> Senaka.
>>>
>>> On Mon, Aug 3, 2015 at 11:47 AM, John Hawkins  wrote:
>>>
 Hi Folks,

 I've just been following these instructions [1] to get the API-M
 talking to the Identity server. I am confused as to why I have set JWT on
 in the Identity servers api-manager.xml [2] and not just in the API-M?
 Isn't it the API-M sending JWT out rather than the IS ? Can someone explain
 to me what's going on under-the-hood please?


 [1]
 https://docs.wso2.com/display/CLUSTER420/Configuring+the+Pre-Packaged+Identity+Server+5.0.0+with+API+Manager+1.9.0

 [2] Bullet 7: JWT configuration must be done in the
 /repository/conf/api-manager.xml file in the Identity Server.


 many thanks,
 John.



 John Hawkins
 Director: Solutions Architecture


>>>
>>>
>>> --
>>>
>>>
>>> *[image: http://wso2.com] Senaka Fernando*
>>> Solutions Architect; WSO2 Inc.; http://wso2.com
>>>
>>>
>>>
>>> *Member; Apache Software Foundation; http://apache.org
>>> E-mail: senaka AT wso2.com **P: +1
>>> 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;
>>>
>>>
>>> *M: +44 782 741 1966 <%2B44%20782%20741%201966>Linked-In:
>>> http://linkedin.com/in/senakafernando
>>> *Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Technical Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>
>
> --
>
>
> *[image: http://wso2.com] Senaka Fernando*
> Solutions Architect; WSO2 Inc.; http://wso2.com
>
>
>
> *Member; Apache Software Foundation; http://apache.org
> E-mail: senaka AT wso2.com **P: +1
> 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;
>
>
> *M: +44 782 741 1966 <%2B44%20782%20741%201966>Linked-In:
> http://linkedin.com/in/senakafernando
> *Lean . Enterprise . Middleware
>



-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DepSync failure in ESB 4.9.0

2015-08-03 Thread Ravindra Ranwala
Hi Asanthi,

I tested the functionality of the cluster in ESB Beta pack, but did not
encounter with this issue.


Thanks & Regards,

On Mon, Aug 3, 2015 at 6:38 PM, Aruna Karunarathna  wrote:

> Yes Chanaka. Experienced the same with AS-5.3.0 testing. Need to update
> the svn-client-adapter version.
>
> On Mon, Aug 3, 2015 at 6:34 PM, Chanaka Fernando 
> wrote:
>
>> Hi Asanthi/Aruna,
>>
>> This *svn-client-adapter jar *file is coming from the carbon-commons
>> repository through the "org.wso2.carbon.deployment.synchronizer.subversion"
>> feature. The version which is there in the released version of the
>> carbon-commons (4.4.3) and the latest code base is "1.6.18.wso2v2". We need
>> to update the parent pom[1]  of the carbon-commons repository to fix this
>> issue for all the products. This is nothing specific to ESB but should be
>> reproducible with other products also.
>>
>> [1] https://github.com/wso2/carbon-commons/blob/master/pom.xml
>>
>> Thanks,
>> Chanaka
>>
>> On Mon, Aug 3, 2015 at 6:06 PM, Asanthi Kulasinghe 
>> wrote:
>>
>>> Hi ESB Team,
>>>
>>> ESB 4.9.0/repository/components/plugins/ contains '
>>> *svn-client-adapter_1.6.18.wso2v2.jar*'.
>>> Thread [1]  instructs to use '*svnkit-all-1.8.7.wso2v1.jar*' to enable
>>> DepSync.
>>>
>>> When DepSync is enabled for ESB 4.9.0  with
>>> *svnkit-all-1.8.7.wso2v1.jar* , [2] occurs during node start up.
>>>
>>> As per the offline discussion with Aruna, the *svn-client-adapter jar *of
>>> ESB 4.9.0 needs to be upgraded.
>>>
>>>
>>> [1] "SVNKit library for SVN 1.7 / 1.8 for Carbon 4.4.x"
>>>
>>>
>>> [2] ___
>>>
>>> [2015-08-03 12:05:32,916] ERROR - DeploymentSynchronizerComponent Error
>>> while initializing a deployment synchronizer for the super tenant Carbon
>>> repository
>>> org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException:
>>> No Repository found for type svn
>>> at
>>> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.getDeploymentSyncConfigurationFromConf(CarbonRepositoryUtils.java:167)
>>> at
>>> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.getActiveSynchronizerConfiguration(CarbonRepositoryUtils.java:97)
>>> at
>>> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.isSynchronizerEnabled(CarbonRepositoryUtils.java:240)
>>> at
>>> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent.initDeploymentSynchronizerForSuperTenant(DeploymentSynchronizerComponent.java:90)
>>> at
>>> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent.activate(DeploymentSynchronizerComponent.java:67)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
>>> at java.lang.reflect.Method.invoke(Method.java:507)
>>> 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.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>>> at
>>> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517)
>>> at
>>> org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManag

Re: [Dev] DepSync failure in ESB 4.9.0

2015-08-03 Thread Aruna Karunarathna
Yes Chanaka. Experienced the same with AS-5.3.0 testing. Need to update the
svn-client-adapter version.

On Mon, Aug 3, 2015 at 6:34 PM, Chanaka Fernando  wrote:

> Hi Asanthi/Aruna,
>
> This *svn-client-adapter jar *file is coming from the carbon-commons
> repository through the "org.wso2.carbon.deployment.synchronizer.subversion"
> feature. The version which is there in the released version of the
> carbon-commons (4.4.3) and the latest code base is "1.6.18.wso2v2". We need
> to update the parent pom[1]  of the carbon-commons repository to fix this
> issue for all the products. This is nothing specific to ESB but should be
> reproducible with other products also.
>
> [1] https://github.com/wso2/carbon-commons/blob/master/pom.xml
>
> Thanks,
> Chanaka
>
> On Mon, Aug 3, 2015 at 6:06 PM, Asanthi Kulasinghe 
> wrote:
>
>> Hi ESB Team,
>>
>> ESB 4.9.0/repository/components/plugins/ contains '
>> *svn-client-adapter_1.6.18.wso2v2.jar*'.
>> Thread [1]  instructs to use '*svnkit-all-1.8.7.wso2v1.jar*' to enable
>> DepSync.
>>
>> When DepSync is enabled for ESB 4.9.0  with *svnkit-all-1.8.7.wso2v1.jar* ,
>> [2] occurs during node start up.
>>
>> As per the offline discussion with Aruna, the *svn-client-adapter jar *of
>> ESB 4.9.0 needs to be upgraded.
>>
>>
>> [1] "SVNKit library for SVN 1.7 / 1.8 for Carbon 4.4.x"
>>
>>
>> [2] ___
>>
>> [2015-08-03 12:05:32,916] ERROR - DeploymentSynchronizerComponent Error
>> while initializing a deployment synchronizer for the super tenant Carbon
>> repository
>> org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException:
>> No Repository found for type svn
>> at
>> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.getDeploymentSyncConfigurationFromConf(CarbonRepositoryUtils.java:167)
>> at
>> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.getActiveSynchronizerConfiguration(CarbonRepositoryUtils.java:97)
>> at
>> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.isSynchronizerEnabled(CarbonRepositoryUtils.java:240)
>> at
>> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent.initDeploymentSynchronizerForSuperTenant(DeploymentSynchronizerComponent.java:90)
>> at
>> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent.activate(DeploymentSynchronizerComponent.java:67)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
>> at java.lang.reflect.Method.invoke(Method.java:507)
>> 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.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>> at
>> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517)
>> 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:95)
>> at
>> sun.reflect.Dele

[Dev] Fix for IDENTITY-3470, please review and commit

2015-08-03 Thread Damith Senanayake
Hi,

Please find the fix for https://wso2.org/jira/browse/IDENTITY-3470 in
https://github.com/wso2/carbon-identity/pull/726

​Thanks​

-- 
*-Damith Senanayake-*
+94712205272
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] DepSync failure in ESB 4.9.0

2015-08-03 Thread Chanaka Fernando
Hi Asanthi/Aruna,

This *svn-client-adapter jar *file is coming from the carbon-commons
repository through the "org.wso2.carbon.deployment.synchronizer.subversion"
feature. The version which is there in the released version of the
carbon-commons (4.4.3) and the latest code base is "1.6.18.wso2v2". We need
to update the parent pom[1]  of the carbon-commons repository to fix this
issue for all the products. This is nothing specific to ESB but should be
reproducible with other products also.

[1] https://github.com/wso2/carbon-commons/blob/master/pom.xml

Thanks,
Chanaka

On Mon, Aug 3, 2015 at 6:06 PM, Asanthi Kulasinghe  wrote:

> Hi ESB Team,
>
> ESB 4.9.0/repository/components/plugins/ contains '
> *svn-client-adapter_1.6.18.wso2v2.jar*'.
> Thread [1]  instructs to use '*svnkit-all-1.8.7.wso2v1.jar*' to enable
> DepSync.
>
> When DepSync is enabled for ESB 4.9.0  with *svnkit-all-1.8.7.wso2v1.jar* ,
> [2] occurs during node start up.
>
> As per the offline discussion with Aruna, the *svn-client-adapter jar *of
> ESB 4.9.0 needs to be upgraded.
>
>
> [1] "SVNKit library for SVN 1.7 / 1.8 for Carbon 4.4.x"
>
>
> [2] ___
>
> [2015-08-03 12:05:32,916] ERROR - DeploymentSynchronizerComponent Error
> while initializing a deployment synchronizer for the super tenant Carbon
> repository
> org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException:
> No Repository found for type svn
> at
> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.getDeploymentSyncConfigurationFromConf(CarbonRepositoryUtils.java:167)
> at
> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.getActiveSynchronizerConfiguration(CarbonRepositoryUtils.java:97)
> at
> org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.isSynchronizerEnabled(CarbonRepositoryUtils.java:240)
> at
> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent.initDeploymentSynchronizerForSuperTenant(DeploymentSynchronizerComponent.java:90)
> at
> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent.activate(DeploymentSynchronizerComponent.java:67)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
> at java.lang.reflect.Method.invoke(Method.java:507)
> 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.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
> at
> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517)
> 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:95)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
> at java.lang.reflect.Method.invoke(Method.java:507)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComp

Re: [Dev] IS_Server JWT Settings

2015-08-03 Thread Sanjeewa Malalgoda
On Mon, Aug 3, 2015 at 6:28 PM, Senaka Fernando  wrote:

> Hi Nuwan,
>
> So I think then there are few things now.
>
>1. First the docs need to be clear on what is done @ IS - your context
>is far more clearer than what the docs actually explain.
>2. Also related to #1 above, the actual config needs some renaming I
>guess, it doesn't fall into place.
>3. What if the KM is third party? Don't we have any JWT concept at
>all? If we say no, we'd be loosing a massive portion of interoperability.
>And, if so, there needs to be a config @ GW as well that says enable JWT
>request and there needs to be an extension point for which we can generate
>a JWT @ the GW level if the KM was 3rd party.
>
> IMO even if key manager is 3rd party we should generate JWT at key manager
side. We use JWT to retrieve some additional information about user and
user information usually available with key manager.
In gateway side we should get JWT as a part of key validation response. Or
as you said we can provide interface to extract JWT from validation
response. So if key manager do not send JWT we can implement our own logic
there.

Thanks,
sanjeewa.

> So, I think the story has a few gaps as it stands now. WDYT?
> Thanks,
> Senaka.
>
> On Mon, Aug 3, 2015 at 1:49 PM, Nuwan Dias  wrote:
>
>> Hi Senaka,
>>
>> Its not just about enabling/disabling JWT. We also have options of
>> caching the JWT, specifying custom claims to be included in the JWT,
>> extending the JWT generator implementation to include custom attributes,
>> etc. All these are provided through the configuration on the KM since its
>> the KM who actually would have access to user claims, application data,
>> etc. The Gateway just passes whatever information generated by the KM as
>> the JWT to the back-end.
>>
>> Thanks,
>> NuwanD.
>>
>>
>>
>> On Mon, Aug 3, 2015 at 6:02 PM, Senaka Fernando  wrote:
>>
>>> Hi John,
>>>
>>> I think the IS sends back the JWT, but when you use IS as the key
>>> manager, shouldn't it be the API-M that requests for the JWT from IS? And,
>>> regardless of that the setting should be done at the API-M GW IMO, because
>>> that's what creates the JWT and passes on to the ESB for instance. I think
>>> it has to happen that way, especially with external KMs used and all.
>>> Therefore, I think this setting should be done on the API-M GW-side (if I
>>> understood correctly).
>>>
>>> AM team, what's your thoughts on this?
>>>
>>> Thanks,
>>> Senaka.
>>>
>>> On Mon, Aug 3, 2015 at 11:47 AM, John Hawkins  wrote:
>>>
 Hi Folks,

 I've just been following these instructions [1] to get the API-M
 talking to the Identity server. I am confused as to why I have set JWT on
 in the Identity servers api-manager.xml [2] and not just in the API-M?
 Isn't it the API-M sending JWT out rather than the IS ? Can someone explain
 to me what's going on under-the-hood please?


 [1]
 https://docs.wso2.com/display/CLUSTER420/Configuring+the+Pre-Packaged+Identity+Server+5.0.0+with+API+Manager+1.9.0

 [2] Bullet 7: JWT configuration must be done in the
 /repository/conf/api-manager.xml file in the Identity Server.


 many thanks,
 John.



 John Hawkins
 Director: Solutions Architecture


>>>
>>>
>>> --
>>>
>>>
>>> *[image: http://wso2.com] Senaka Fernando*
>>> Solutions Architect; WSO2 Inc.; http://wso2.com
>>>
>>>
>>>
>>> *Member; Apache Software Foundation; http://apache.org
>>> E-mail: senaka AT wso2.com **P: +1
>>> 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;
>>>
>>>
>>> *M: +44 782 741 1966 <%2B44%20782%20741%201966>Linked-In:
>>> http://linkedin.com/in/senakafernando
>>> *Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Technical Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>
>
> --
>
>
> *[image: http://wso2.com] Senaka Fernando*
> Solutions Architect; WSO2 Inc.; http://wso2.com
>
>
>
> *Member; Apache Software Foundation; http://apache.org
> E-mail: senaka AT wso2.com **P: +1
> 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;
>
>
> *M: +44 782 741 1966 <%2B44%20782%20741%201966>Linked-In:
> http://linkedin.com/in/senakafernando
> *Lean . Enterprise . Middleware
>



-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

blog
:http://sanjeewamalalgoda.blogspot.com/

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


Re: [Dev] IS_Server JWT Settings

2015-08-03 Thread Senaka Fernando
Hi Nuwan,

So I think then there are few things now.

   1. First the docs need to be clear on what is done @ IS - your context
   is far more clearer than what the docs actually explain.
   2. Also related to #1 above, the actual config needs some renaming I
   guess, it doesn't fall into place.
   3. What if the KM is third party? Don't we have any JWT concept at all?
   If we say no, we'd be loosing a massive portion of interoperability. And,
   if so, there needs to be a config @ GW as well that says enable JWT request
   and there needs to be an extension point for which we can generate a JWT @
   the GW level if the KM was 3rd party.

So, I think the story has a few gaps as it stands now. WDYT?
Thanks,
Senaka.

On Mon, Aug 3, 2015 at 1:49 PM, Nuwan Dias  wrote:

> Hi Senaka,
>
> Its not just about enabling/disabling JWT. We also have options of caching
> the JWT, specifying custom claims to be included in the JWT, extending the
> JWT generator implementation to include custom attributes, etc. All these
> are provided through the configuration on the KM since its the KM who
> actually would have access to user claims, application data, etc. The
> Gateway just passes whatever information generated by the KM as the JWT to
> the back-end.
>
> Thanks,
> NuwanD.
>
>
>
> On Mon, Aug 3, 2015 at 6:02 PM, Senaka Fernando  wrote:
>
>> Hi John,
>>
>> I think the IS sends back the JWT, but when you use IS as the key
>> manager, shouldn't it be the API-M that requests for the JWT from IS? And,
>> regardless of that the setting should be done at the API-M GW IMO, because
>> that's what creates the JWT and passes on to the ESB for instance. I think
>> it has to happen that way, especially with external KMs used and all.
>> Therefore, I think this setting should be done on the API-M GW-side (if I
>> understood correctly).
>>
>> AM team, what's your thoughts on this?
>>
>> Thanks,
>> Senaka.
>>
>> On Mon, Aug 3, 2015 at 11:47 AM, John Hawkins  wrote:
>>
>>> Hi Folks,
>>>
>>> I've just been following these instructions [1] to get the API-M talking
>>> to the Identity server. I am confused as to why I have set JWT on in the
>>> Identity servers api-manager.xml [2] and not just in the API-M? Isn't it
>>> the API-M sending JWT out rather than the IS ? Can someone explain to me
>>> what's going on under-the-hood please?
>>>
>>>
>>> [1]
>>> https://docs.wso2.com/display/CLUSTER420/Configuring+the+Pre-Packaged+Identity+Server+5.0.0+with+API+Manager+1.9.0
>>>
>>> [2] Bullet 7: JWT configuration must be done in the
>>> /repository/conf/api-manager.xml file in the Identity Server.
>>>
>>>
>>> many thanks,
>>> John.
>>>
>>>
>>>
>>> John Hawkins
>>> Director: Solutions Architecture
>>>
>>>
>>
>>
>> --
>>
>>
>> *[image: http://wso2.com] Senaka Fernando*
>> Solutions Architect; WSO2 Inc.; http://wso2.com
>>
>>
>>
>> *Member; Apache Software Foundation; http://apache.org
>> E-mail: senaka AT wso2.com **P: +1
>> 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;
>>
>>
>> *M: +44 782 741 1966 <%2B44%20782%20741%201966>Linked-In:
>> http://linkedin.com/in/senakafernando
>> *Lean . Enterprise . Middleware
>>
>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 


*[image: http://wso2.com] Senaka Fernando*
Solutions Architect; WSO2 Inc.; http://wso2.com



*Member; Apache Software Foundation; http://apache.org
E-mail: senaka AT wso2.com **P: +1 408
754 7388; ext: 51736*;


*M: +44 782 741 1966Linked-In: http://linkedin.com/in/senakafernando
*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] BPEL and HumanTask packages for Workflow support in IS

2015-08-03 Thread Harsha Thirimanna
This is the payload for that and those should be mandatory.

http://schema.bpel.mgt.workflow.carbon.wso2.org/";>
 http://schema.bpel.mgt.workflow.carbon.wso2.org/";>
step1
admin
user1
   
task1
task1desc
   
 
 http://schema.bpel.mgt.workflow.carbon.wso2.org/";>
step2
vinod
   
task1
task1desc
   
 
  


*Harsha Thirimanna*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
* *
*email: **hars...@wso2.com* * cell: +94 71 5186770 *
*twitter: **http://twitter.com/ *
*harshathirimannlinked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

*Lean . Enterprise . Middleware*


On Mon, Aug 3, 2015 at 6:13 PM, Harsha Thirimanna  wrote:

> Hi Vinod,
>
> As in the requirement, we need to pass human task subject and body as run
> time parameter per steps. Can we do this change on this please ?
>
>
> *Harsha Thirimanna*
> Senior Software Engineer; WSO2, Inc.; http://wso2.com
> * *
> *email: **hars...@wso2.com* * cell: +94 71 5186770 *
> *twitter: **http://twitter.com/ *
> *harshathirimannlinked-in: **http:
> **//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
> *
>
> *Lean . Enterprise . Middleware*
>
>
> On Mon, Aug 3, 2015 at 12:34 PM, Harsha Thirimanna 
> wrote:
>
>> Hi Nandika/Vinod,
>>
>> I just deploy you BPEL and HumanTask package in to the BPS 3.2.0 and it
>> is just give following logs and in admin console it says, successfully
>> done. Are there any issues this artifacts in released pack or do I change
>> something before i deploy this ?
>>
>>
>>
>> ​TID: [0] [BPS] [2015-08-03 12:25:49,401]  INFO
>> {org.springframework.context.support.ClassPathXmlApplicationContext} -
>>  Refreshing
>> org.springframework.context.support.ClassPathXmlApplicationContext@10b8a942:
>> startup date [Mon Aug 03 12:25:49 IST 2015]; root of context hierarchy
>> {org.springframework.context.support.ClassPathXmlApplicationContext}
>> TID: [0] [BPS] [2015-08-03 12:25:49,403]  INFO
>> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
>> XML bean definitions from class path resource [beans.xml]
>> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader}
>> TID: [0] [BPS] [2015-08-03 12:25:49,419] ERROR
>> {org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
>>  
>> null:file:///home/harsha/wso2/IS/IS-5.1.0-Release/WORKFLOW/wso2bps-3.2.0/tmp/work/bpelTemp/1.4385849493994443E12/ApprovalProcess_2.0.0/ApprovalProcess.bpel:36:17:cvc-complex-type.2.4.a:
>> Invalid content was found starting with element 'extensions'. One of '{"
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":import, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":partnerLinks, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":messageExchanges,
>> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":variables, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":correlationSets,
>> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":faultHandlers,
>> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":eventHandlers,
>> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":assign, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":compensate, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":compensateScope,
>> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":empty, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":exit, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":extensionActivity,
>> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":flow, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":forEach, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":if, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":invoke, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":pick, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":receive, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":repeatUntil, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":reply, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":rethrow, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":scope, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":sequence, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":throw, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":validate, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":wait, "
>> http://docs.oasis-open.org/wsbpel/2.0/process/executable":while}' is
>> expected.
>> {org.apache.ode.bpel.com

Re: [Dev] IS_Server JWT Settings

2015-08-03 Thread Nuwan Dias
Hi Senaka,

Its not just about enabling/disabling JWT. We also have options of caching
the JWT, specifying custom claims to be included in the JWT, extending the
JWT generator implementation to include custom attributes, etc. All these
are provided through the configuration on the KM since its the KM who
actually would have access to user claims, application data, etc. The
Gateway just passes whatever information generated by the KM as the JWT to
the back-end.

Thanks,
NuwanD.



On Mon, Aug 3, 2015 at 6:02 PM, Senaka Fernando  wrote:

> Hi John,
>
> I think the IS sends back the JWT, but when you use IS as the key manager,
> shouldn't it be the API-M that requests for the JWT from IS? And,
> regardless of that the setting should be done at the API-M GW IMO, because
> that's what creates the JWT and passes on to the ESB for instance. I think
> it has to happen that way, especially with external KMs used and all.
> Therefore, I think this setting should be done on the API-M GW-side (if I
> understood correctly).
>
> AM team, what's your thoughts on this?
>
> Thanks,
> Senaka.
>
> On Mon, Aug 3, 2015 at 11:47 AM, John Hawkins  wrote:
>
>> Hi Folks,
>>
>> I've just been following these instructions [1] to get the API-M talking
>> to the Identity server. I am confused as to why I have set JWT on in the
>> Identity servers api-manager.xml [2] and not just in the API-M? Isn't it
>> the API-M sending JWT out rather than the IS ? Can someone explain to me
>> what's going on under-the-hood please?
>>
>>
>> [1]
>> https://docs.wso2.com/display/CLUSTER420/Configuring+the+Pre-Packaged+Identity+Server+5.0.0+with+API+Manager+1.9.0
>>
>> [2] Bullet 7: JWT configuration must be done in the
>> /repository/conf/api-manager.xml file in the Identity Server.
>>
>>
>> many thanks,
>> John.
>>
>>
>>
>> John Hawkins
>> Director: Solutions Architecture
>>
>>
>
>
> --
>
>
> *[image: http://wso2.com] Senaka Fernando*
> Solutions Architect; WSO2 Inc.; http://wso2.com
>
>
>
> *Member; Apache Software Foundation; http://apache.org
> E-mail: senaka AT wso2.com **P: +1
> 408 754 7388 <%2B1%20408%20754%207388>; ext: 51736*;
>
>
> *M: +44 782 741 1966 <%2B44%20782%20741%201966>Linked-In:
> http://linkedin.com/in/senakafernando
> *Lean . Enterprise . Middleware
>



-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] BPEL and HumanTask packages for Workflow support in IS

2015-08-03 Thread Harsha Thirimanna
Hi Vinod,

As in the requirement, we need to pass human task subject and body as run
time parameter per steps. Can we do this change on this please ?


*Harsha Thirimanna*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
* *
*email: **hars...@wso2.com* * cell: +94 71 5186770 *
*twitter: **http://twitter.com/ *
*harshathirimannlinked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

*Lean . Enterprise . Middleware*


On Mon, Aug 3, 2015 at 12:34 PM, Harsha Thirimanna  wrote:

> Hi Nandika/Vinod,
>
> I just deploy you BPEL and HumanTask package in to the BPS 3.2.0 and it is
> just give following logs and in admin console it says, successfully done.
> Are there any issues this artifacts in released pack or do I change
> something before i deploy this ?
>
>
>
> ​TID: [0] [BPS] [2015-08-03 12:25:49,401]  INFO
> {org.springframework.context.support.ClassPathXmlApplicationContext} -
>  Refreshing
> org.springframework.context.support.ClassPathXmlApplicationContext@10b8a942:
> startup date [Mon Aug 03 12:25:49 IST 2015]; root of context hierarchy
> {org.springframework.context.support.ClassPathXmlApplicationContext}
> TID: [0] [BPS] [2015-08-03 12:25:49,403]  INFO
> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
> XML bean definitions from class path resource [beans.xml]
> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader}
> TID: [0] [BPS] [2015-08-03 12:25:49,419] ERROR
> {org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
>  
> null:file:///home/harsha/wso2/IS/IS-5.1.0-Release/WORKFLOW/wso2bps-3.2.0/tmp/work/bpelTemp/1.4385849493994443E12/ApprovalProcess_2.0.0/ApprovalProcess.bpel:36:17:cvc-complex-type.2.4.a:
> Invalid content was found starting with element 'extensions'. One of '{"
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":import, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":partnerLinks, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":messageExchanges,
> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":variables, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":correlationSets,
> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":faultHandlers,
> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":eventHandlers,
> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":assign, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":compensate, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":compensateScope,
> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":empty, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":exit, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":extensionActivity,
> "http://docs.oasis-open.org/wsbpel/2.0/process/executable":flow, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":forEach, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":if, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":invoke, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":pick, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":receive, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":repeatUntil, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":reply, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":rethrow, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":scope, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":sequence, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":throw, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":validate, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":wait, "
> http://docs.oasis-open.org/wsbpel/2.0/process/executable":while}' is
> expected.
> {org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler}
> TID: [0] [BPS] [2015-08-03 12:25:49,420] ERROR
> {org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
>  
> null:file:///home/harsha/wso2/IS/IS-5.1.0-Release/WORKFLOW/wso2bps-3.2.0/tmp/work/bpelTemp/1.4385849493994443E12/ApprovalProcess_2.0.0/ApprovalProcess.bpel:73:52:cvc-complex-type.3.2.2:
> Attribute 'xml:space' is not allowed to appear in element 'bpel:literal'.
> {org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler}
> TID: [0] [BPS] [2015-08-03 12:25:49,420] ERROR
> {org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
>  
> null:file:///home/harsha/wso2/IS/IS-5.1.0-Release/WORKFLOW/wso2bps-3.2.0/tmp/work/bpelTemp/1.4385849493994443E12/ApprovalProcess_2.0.0/ApprovalProcess.bpel:79:52:cvc-complex-type.3.2.2:
> Attribute 'xml:space' is not allowed to appear in element 'bpel:literal'.
> {org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler}
> TID: [0] [BP

[Dev] DepSync failure in ESB 4.9.0

2015-08-03 Thread Asanthi Kulasinghe
Hi ESB Team,

ESB 4.9.0/repository/components/plugins/ contains '
*svn-client-adapter_1.6.18.wso2v2.jar*'.
Thread [1]  instructs to use '*svnkit-all-1.8.7.wso2v1.jar*' to enable
DepSync.

When DepSync is enabled for ESB 4.9.0  with *svnkit-all-1.8.7.wso2v1.jar* ,
[2] occurs during node start up.

As per the offline discussion with Aruna, the *svn-client-adapter jar *of
ESB 4.9.0 needs to be upgraded.


[1] "SVNKit library for SVN 1.7 / 1.8 for Carbon 4.4.x"


[2] ___

[2015-08-03 12:05:32,916] ERROR - DeploymentSynchronizerComponent Error
while initializing a deployment synchronizer for the super tenant Carbon
repository
org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizerException: No
Repository found for type svn
at
org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.getDeploymentSyncConfigurationFromConf(CarbonRepositoryUtils.java:167)
at
org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.getActiveSynchronizerConfiguration(CarbonRepositoryUtils.java:97)
at
org.wso2.carbon.deployment.synchronizer.repository.CarbonRepositoryUtils.isSynchronizerEnabled(CarbonRepositoryUtils.java:240)
at
org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent.initDeploymentSynchronizerForSuperTenant(DeploymentSynchronizerComponent.java:90)
at
org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerComponent.activate(DeploymentSynchronizerComponent.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:507)
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.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:517)
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:95)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:507)
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
o

Re: [Dev] IS_Server JWT Settings

2015-08-03 Thread Senaka Fernando
Hi John,

I think the IS sends back the JWT, but when you use IS as the key manager,
shouldn't it be the API-M that requests for the JWT from IS? And,
regardless of that the setting should be done at the API-M GW IMO, because
that's what creates the JWT and passes on to the ESB for instance. I think
it has to happen that way, especially with external KMs used and all.
Therefore, I think this setting should be done on the API-M GW-side (if I
understood correctly).

AM team, what's your thoughts on this?

Thanks,
Senaka.

On Mon, Aug 3, 2015 at 11:47 AM, John Hawkins  wrote:

> Hi Folks,
>
> I've just been following these instructions [1] to get the API-M talking
> to the Identity server. I am confused as to why I have set JWT on in the
> Identity servers api-manager.xml [2] and not just in the API-M? Isn't it
> the API-M sending JWT out rather than the IS ? Can someone explain to me
> what's going on under-the-hood please?
>
>
> [1]
> https://docs.wso2.com/display/CLUSTER420/Configuring+the+Pre-Packaged+Identity+Server+5.0.0+with+API+Manager+1.9.0
>
> [2] Bullet 7: JWT configuration must be done in the
> /repository/conf/api-manager.xml file in the Identity Server.
>
>
> many thanks,
> John.
>
>
>
> John Hawkins
> Director: Solutions Architecture
>
>


-- 


*[image: http://wso2.com] Senaka Fernando*
Solutions Architect; WSO2 Inc.; http://wso2.com



*Member; Apache Software Foundation; http://apache.org
E-mail: senaka AT wso2.com **P: +1 408
754 7388; ext: 51736*;


*M: +44 782 741 1966Linked-In: http://linkedin.com/in/senakafernando
*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.1 RC2

2015-08-03 Thread Thusitha Thilina Dayaratne
Hi Devs,

Thanks for testing and verifying the Carbon kernel 4.4.1 RC2. We are
closing this vote.
This vote has passed with 4 +1s and 0 -1s. Therefore we will proceed with
the Carbon kernel 4.4.1 release.

4 +1s (Charitha Goonathilleke, Ruwan Abekoon, Chanaka Fernando, Madhawa
Gunesekara)
0  -1s

Thanks
Best Regards
Carbon Team.


On Mon, Aug 3, 2015 at 4:59 PM, Madhawa Gunasekara 
wrote:

> +1
>
> We are okay if carbon-kernel team releasing 4.4.2 before DSS GA release.
>
> Thanks,
> Madhawa
>
> On Mon, Aug 3, 2015 at 4:50 PM, KasunG Gajasinghe  wrote:
>
>> Hi,
>>
>> @Chanaka*, *We are going to fix this, and the fix will be in
>> carbon-deployment. So, this won't be a blocker for the kernel release.
>>
>> For the DSS issue, we have had a discussion with @Rajith and *@*Madhawa.
>> Currently, there is a workaround for this issue by having different
>> namespaces for its services. Users could use default json message
>> builders/formatters as well instead of gson one if needed. So, this issue
>> should not stop us from passing this RC. We will incorporate this for the
>> next Kernel release which we will do before the DSS GA release.
>>
>> From user's perspective, the tenant-mgt.xml has been placed in
>> repository/conf/ folder starting from Carbon 4.2.0 days. If we are to
>> change the location, we can only do this in a major version, not in a patch
>> release.
>>
>> Thanks.
>>
>> On Aug 3, 2015, at 9:59 AM, Chanaka Fernando  wrote:
>>
>> Hi All,
>>
>> Module management feature is not working properly. When I try to engage a
>> module (rahas or rampart), It throws the following exception[1]  in the
>> back end and UI is showing an error. With these errors, modules are listed
>> under globally engaged modules list and when I try to disengage the module,
>> it is not possible.
>>
>> [1]
>>
>> [2015-08-03 09:54:50,197] ERROR - AbstractPersistenceManager Trying to
>> engage or disengage unavailable module rahas
>> [2015-08-03 09:54:50,198] ERROR - AbstractPersistenceManager Unable to
>> engage rahas globally
>> org.wso2.carbon.core.persistence.PersistenceException: Trying to engage
>> or disengage unavailable module rahas
>> at
>> org.wso2.carbon.core.persistence.AbstractPersistenceManager.handleException(AbstractPersistenceManager.java:614)
>> at
>> org.wso2.carbon.core.persistence.ModulePersistenceManager.handleGlobalModule(ModulePersistenceManager.java:440)
>> at
>> org.wso2.carbon.core.persistence.ModulePersistenceManager.globallyEngageModule(ModulePersistenceManager.java:139)
>> at
>> org.wso2.carbon.module.mgt.service.ModuleAdminService.globallyEngageModule(ModuleAdminService.java:282)
>> 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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
>> at
>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>> at
>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>> at
>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
>> at
>> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
>> at
>> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
>> at
>> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
>> at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>> at
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>> at
>> org.wso2.carbon.module.mgt.stub.ModuleAdminServiceStub.globallyEngageModule(ModuleAdminServiceStub.java:2801)
>> at
>> org.wso2.carbon.module.mgt.ui.client.ModuleManagementClient.globallyEngageModule(ModuleManagementClient.java:140)
>> at
>> org.apache.jsp.modulemgt.global_005feng_005fajaxprocessor_jsp._jspService(global_005feng_005fajaxprocessor_jsp.java:123)
>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
>> at
>> org.apache.jasper.servlet.JspServlet.serv

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  wrote:

> Hi,
>
> Is it possible to read throttle policy content and retrieve its elements?
>
> For an example consider following policy;
>
> 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">
> 
> 
> 10
> 
> other
> 
> 
> 
> 10
> 80
>  wsp:Optional="true">1
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 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 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSoC-2015] Proposal2 : Siddhi Editor for WSO2 CEP

2015-08-03 Thread Sriskandarajah Suhothayan
Sure, we'll have a chat on this next Wednesday

Suho

On Mon, Aug 3, 2015 at 1:50 PM, Tharindu Munasinghe <
munasinghethari...@gmail.com> wrote:

> Hi Suho,
>
> As per the discussion last time , I have implemented the context aware
> auto-completion feature with  regular expression based approach. Currently
>  this supports
>
>- Syntax completions : For stream,table, function definition
>statements and query statements appropriately
>- Completion for Stream Names and attributes :  Within the query,
>based on the context
>- Stream references (alias) handling
>- Object attribute suggestions
>- Stream functions and Window processor suggestions  (inbuilt and
>extension level with predefined list)
>- Function suggestions
>- Snippet suggestions for the longer structures  : Define statements,
>window statements, function definitions, etc.
>
> I have a few questions regarding the scoping rules to be discussed. Can we
> have a meeting to review the work ?
>
> *Th**a**rindu Munasin**ghe.*
> *Undergraduate ,Department of Computer **S**cience and Engineering*
> *University of Moratuwa.*
> *Contact no. +94770460887 <%2B94770460887>*
>
>
>
>
> On Wed, Jul 15, 2015 at 5:03 PM, Sriskandarajah Suhothayan 
> wrote:
>
>> any update one this?
>>
>> Whats the approach we are taking now
>>
>> On Mon, Jul 6, 2015 at 4:34 PM, Tharindu Munasinghe <
>> munasinghethari...@gmail.com> wrote:
>>
>>> Yes , exactly they are not scalable models. There are several
>>> implementations I found but many of them doesn't
>>> provide context-sensitiveness for custom languages.  As I can see the
>>> scalability can be achieved only if the auto completion logic resides
>>> within Antlr4 context right? .
>>>
>>> I have started a discussion in antlr-discussion google group regarding
>>> this matter. I am still looking for an alternative but haven't come across
>>> a scalable solution. Meanwhile if you have an alternative in mind, please
>>> let me know.
>>>
>>>
>>> *Th**a**rindu Munasin**ghe.*
>>> *Undergraduate ,Department of Computer **S**cience and Engineering*
>>> *University of Moratuwa.*
>>> *Contact no. +94770460887 <%2B94770460887>*
>>>
>>>
>>>
>>>
>>> On Sun, Jul 5, 2015 at 9:38 PM, Sriskandarajah Suhothayan >> > wrote:
>>>
 The both model you are progressing are not scalable, and error prone.
 If we make any change to the grammar then we have to also fix that in
 several places.

 Isn't there any other alternatives?

 Suho

 On Tue, Jun 30, 2015 at 4:59 AM, Tharindu Munasinghe <
 tharindu...@cse.mrt.ac.lk> wrote:

> Hi Mentors,
>
> I have been working on the context-aware auto completion feature.
> There is a function called getExpectedTokensInCurrentRule() in Antlr4
> API which returns the possible next tokens based on the current rule
> context. I have tried to use that function to get the possible tokens, but
> as I can see this function will only work with valid input that can be
> parsed without errors. While the query is incomplete (while user is typing
> the query) it will only generate a generic error without returning any
> parsing information.
>
> I have two alternatives in mind to overcome the issue .
> 1. create set of regular expressions to match the last input token and
> present a set of predefined suggestion lists.
> 2. create token graph similar to following diagram and suggest the
> children of the current token
>
>
>
> ​
> I would be grateful if you can provide feedback regarding which method
> to implement. Any alternative suggestions are highly appreciated.
>
>
> On 15 June 2015 at 09:36, Tharindu Munasinghe <
> tharindu...@cse.mrt.ac.lk> wrote:
>
>> Hi Mentors,
>>
>> I have almost completed the implementation of syntax and semantic
>> error highlighting mechanism. Now the errors are listed in appropriate
>> lines while user is writing the query . Number of server calls are 
>> reduced
>> significantly , but still more optimizations can be done on this.
>>
>> This week I will be working on the auto completion feature , current
>> editor does have all-text auto completion. But I am trying to reduce the
>> suggestion list based on the context-awareness.
>>
>> Can we have a meeting in this week to verify the work I have already
>> done and to discuss the proceedings of this project ?.
>>
>> On 11 June 2015 at 08:08, Tharindu Munasinghe <
>> tharindu...@cse.mrt.ac.lk> wrote:
>>
>>> Hi Suho,
>>>
>>>
>>> *Weekly Progress Update*
>>>
>>> I have been working on syntax and semantic error highlighting
>>> mechanism. Client side syntax checking is almost completed and I 
>>> managed to
>>> integrate new editor with CEP 4.0 .Once there are no syntax errors , the
>>> query will be submitted to the server side Siddhi compiler for 

Re: [Dev] Automated tests to tests Application Server with Apache Ldap as a User Store

2015-08-03 Thread Nuwan Wimalasekara
On Mon, Jul 27, 2015 at 5:13 PM, KasunG Gajasinghe  wrote:

> Thanks Nuwan for checking into this.
>
> On Wed, Jul 22, 2015 at 2:18 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Kasun,
>>
>> Please find the inline answers.
>>
>> On Tue, Jul 21, 2015 at 8:39 PM, KasunG Gajasinghe 
>> wrote:
>>
>>> Hi Nuwan,
>>>
>>> Can you please answer following questions regarding this PR?
>>>
>>> 1. Can you rename to module name "tests-with-ldap" to
>>> "tests-ldap-userstores". I believe that's more meaningful.
>>>
>>
>> Yes. This is more meaningful. will rename the module
>>
>>>
>>> 2. Shouldn't the distribution-with-apache-ldap be placed under
>>> tests-common module? We need a proper name for this module as well, since
>>> for new eyes, the name seems to be less meaningful. How about
>>> ldap-installed-wso2as-distribution? Please let me know if you have a better
>>> name. :-)
>>>
>> As discussed, the module is renamed as
ldap-server-feature-installed-wso2as.

>
>> I do not think the module which build distribution move into tests-common
>> module. tests-common module contains the AS test utilities. Having a new
>> distribution in integration level is fine.
>>
>> I will discuss and put a meaningful name for the module which built AS
>> distribution having Apache Ldap server feature itself
>>
>>>
>>> 3. What does it mean to have a test case with only a @Factory annotation
>>> - ReadWriteLdapUserStoreAdminUserTestCase
>>>
>>
>> I did not duplicate the UserManagement Test cases in this test module. I
>> reuse the same user management test cases which are in the tests module
>> already implemented for JDBC user store. So I implement a new class
>> extending the existing class. Then same test methods are executing against
>> the readwrite Ldap user store . In that class We have to implement a
>> constructor with @Factory annotation referring the same data provider in
>> order to execute the test class.
>>
>>>
>>> 4. The sub-modules should not have the version tag in maven
>>> dependencies. The version should be defined in the root pom.
>>>
>>
>> Fixed it by removing version.
>>
>> Thanks,
>> Nuwanw
>>
>>>
>>> Thanks.
>>>
>>>
>>> On Tue, Jul 21, 2015 at 2:53 PM, Nuwan Wimalasekara 
>>> wrote:
>>>
 Hi,

  We have integrate a tests module(tests-with-ldap)[1] in AS integration
 to test the user management in AS with apache Ldap server as the user
 store. Ldap server feature is installed on AS by building a distribution
 with ldap server feature and the built server is used by the
 tests-with-ldap module throughout the test execution.

 This module executes 100 test cases with the user store as ReadWrite
 and ReadOnly modes by changing the user-mgt.xml. All the user management
 test cases in tests module are executed against the ReadWrite Ldap user
 store and implemented a test class to test the ReadOnly Ldap
 functionalities as well.

 [1] https://github.com/wso2/product-as/pull/152

 Please refer the attached  surefire-reports.zip for test cases

 Thanks,
 Nuwanw

 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620




>>>
>>>
>>> --
>>>
>>> *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
>>>
>>>
>>>
>>
>>
>>
>> --
>> Nuwan Wimalasekara
>> Senior Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>
>
> --
>
> *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
>
>
>



-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.1 RC2

2015-08-03 Thread Madhawa Gunasekara
+1

We are okay if carbon-kernel team releasing 4.4.2 before DSS GA release.

Thanks,
Madhawa

On Mon, Aug 3, 2015 at 4:50 PM, KasunG Gajasinghe  wrote:

> Hi,
>
> @Chanaka*, *We are going to fix this, and the fix will be in
> carbon-deployment. So, this won't be a blocker for the kernel release.
>
> For the DSS issue, we have had a discussion with @Rajith and *@*Madhawa.
> Currently, there is a workaround for this issue by having different
> namespaces for its services. Users could use default json message
> builders/formatters as well instead of gson one if needed. So, this issue
> should not stop us from passing this RC. We will incorporate this for the
> next Kernel release which we will do before the DSS GA release.
>
> From user's perspective, the tenant-mgt.xml has been placed in
> repository/conf/ folder starting from Carbon 4.2.0 days. If we are to
> change the location, we can only do this in a major version, not in a patch
> release.
>
> Thanks.
>
> On Aug 3, 2015, at 9:59 AM, Chanaka Fernando  wrote:
>
> Hi All,
>
> Module management feature is not working properly. When I try to engage a
> module (rahas or rampart), It throws the following exception[1]  in the
> back end and UI is showing an error. With these errors, modules are listed
> under globally engaged modules list and when I try to disengage the module,
> it is not possible.
>
> [1]
>
> [2015-08-03 09:54:50,197] ERROR - AbstractPersistenceManager Trying to
> engage or disengage unavailable module rahas
> [2015-08-03 09:54:50,198] ERROR - AbstractPersistenceManager Unable to
> engage rahas globally
> org.wso2.carbon.core.persistence.PersistenceException: Trying to engage or
> disengage unavailable module rahas
> at
> org.wso2.carbon.core.persistence.AbstractPersistenceManager.handleException(AbstractPersistenceManager.java:614)
> at
> org.wso2.carbon.core.persistence.ModulePersistenceManager.handleGlobalModule(ModulePersistenceManager.java:440)
> at
> org.wso2.carbon.core.persistence.ModulePersistenceManager.globallyEngageModule(ModulePersistenceManager.java:139)
> at
> org.wso2.carbon.module.mgt.service.ModuleAdminService.globallyEngageModule(ModuleAdminService.java:282)
> 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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
> at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
> at
> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
> at
> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
> at
> org.wso2.carbon.module.mgt.stub.ModuleAdminServiceStub.globallyEngageModule(ModuleAdminServiceStub.java:2801)
> at
> org.wso2.carbon.module.mgt.ui.client.ModuleManagementClient.globallyEngageModule(ModuleManagementClient.java:140)
> at
> org.apache.jsp.modulemgt.global_005feng_005fajaxprocessor_jsp._jspService(global_005feng_005fajaxprocessor_jsp.java:123)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor

Re: [Dev] Test Automation Framework Support for MQTT Server

2015-08-03 Thread Tharik Kanaka
Hi All,

I hope above fix has been released by now. Anyway i  have enabled CEP MQTT
test cases and test frameworks activemq broker (5.9.1) getting started
within test case. But I am getting following exception as "Unrecognized
packet (32108)" when calling connect method. I manually downloaded and ran
activemq broker (5.9.1), for that it is getting connected and messages will
be sent.

[java] [main] INFO  org.wso2.carbon.sample.mqttclient.MQTTClient  - Error
while connecting to MQTT server

 [java] Unrecognized packet (32108)

 [java] at
org.eclipse.paho.client.mqttv3.internal.ExceptionHelper.createMqttException(ExceptionHelper.java:31)

 [java] at
org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:72)

 [java] at
org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:107)

 [java] at java.lang.Thread.run(Thread.java:745)


Regards,

On Tue, May 19, 2015 at 1:07 PM, Krishantha Samaraweera  wrote:

> Hi Mohan,
>
> On Tue, May 19, 2015 at 10:49 AM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>>
>>
>> On Thu, May 14, 2015 at 12:18 PM, Nuwan Wimalasekara 
>> wrote:
>>
>>> Hi Mohan,
>>> We are planning to release the test-automation-framework 4.3.2 by end of
>>> tomorrow(Friday).
>>>
>>
>> @ Nuwan, Whether above is released ?
>>
>
> This is not yet released publicly, but in staging -
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonautomation-010/org/wso2/carbon/automation/
>
> Version - 4.4.0
>
> Thanks,
> Krishantha.
>
>>
>>
>>>
>>> Thanks,
>>> Nuwanw
>>>
>>> On Thu, May 14, 2015 at 12:04 PM, Mohanadarshan Vivekanandalingam <
>>> mo...@wso2.com> wrote:
>>>
 By the Nuwan, when you guys planning to release the 4.3.2 automation
 framework ?

 Thanks,
 Mohan


 On Wed, May 13, 2015 at 5:44 PM, Mohanadarshan Vivekanandalingam <
 mo...@wso2.com> wrote:

> Thanks Nuwan, I'll check that...
>
> Regards,
> Mohan
>
>
> On Wed, May 13, 2015 at 4:54 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Mohan,
>> We have enabled the MQTT transport in Embedded ActiveMQ server
>> started by Test Framework. Now you can use mqtt transport in integration
>> test. This feature is available in test-automation-framework 
>> 4.3.2-SNAPSHOT.
>>
>> Transport is enabled on mqtt://localhost:1883
>>
>> Use below code to start the server with MQTT transport and TCP
>> transport
>>
>> JMSBrokerController  activeMqBroker = new
>> JMSBrokerController("localhost",
>>  JMSBrokerConfigurationProvider.getInstance().getTransportConnectors());
>>
>> activeMqBroker.start()
>>
>>
>> Thanks,
>> Nuwanw
>>
>> On Mon, May 11, 2015 at 5:51 PM, Mohanadarshan Vivekanandalingam <
>> mo...@wso2.com> wrote:
>>
>>>
>>>
>>> On Mon, May 11, 2015 at 3:38 PM, Nuwan Wimalasekara >> > wrote:
>>>
 Hi Mohan,
 Embedded broker only enable the tcp connector currently. We have to
 add the mqtt connector when the server is started.
 I am working on enabling the mqtt for embedded activeMQ server
 started by test framework. I will update the thread once 
 implementation is
 done.

>>>
>>> Great.. Thanks Nuwan for looking into this..
>>>
>>>
 Thanks,
 Nuwanw

 On Thu, May 7, 2015 at 10:15 PM, Mohanadarshan Vivekanandalingam <
 mo...@wso2.com> wrote:

> Thanks Krishantha...
>
> @Waruna, please let us know if you found any option..
>
> Thanks,
> Mohan
>
>
> On Thu, May 7, 2015 at 11:57 AM, Waruna Perera 
> wrote:
>
>> HI Krishantha,
>>
>> Will check on that.
>>
>> Thanks,
>>
>> On Thu, May 7, 2015 at 11:54 AM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi Waruna,
>>>
>>> I don't think we have enabled ActiveMQ broker for MQTT.  Can you
>>> check whether MQTT endpoint is exposed.  And any workaround to get 
>>> it
>>> started.
>>>
>>> The version we used is 5.9.1 and it should support for MQTT.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>>
>>> On Tue, May 5, 2015 at 6:29 PM, Mohanadarshan Vivekanandalingam
>>>  wrote:
>>>
 Hi All,

 We are planning to ship MQTT event adapter support with CEP
 4.0.0. We are done with the implementation but facing some issues 
 in
 writing integration tests.. To test this functionality, we have 
 used the
 ActiveMQ as the MQTT server. ActiveMQ version 5.9.0 and upwards 
 contains a
 mqtt endpoint. B

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.1 RC2

2015-08-03 Thread Chanaka Fernando
Hi Carbon Team,

[x] Stable

Product : ESB 4.9.0
Tested:

   - User management
   - Tenant management
   - Proxy/API/Sequences/Endpoints creation
   - Primary/Secondary LDAP user store
   - Clustering


Thanks,

Chanaka

On Mon, Aug 3, 2015 at 4:50 PM, KasunG Gajasinghe  wrote:

> Hi,
>
> @Chanaka*, *We are going to fix this, and the fix will be in
> carbon-deployment. So, this won't be a blocker for the kernel release.
>
> For the DSS issue, we have had a discussion with @Rajith and *@*Madhawa.
> Currently, there is a workaround for this issue by having different
> namespaces for its services. Users could use default json message
> builders/formatters as well instead of gson one if needed. So, this issue
> should not stop us from passing this RC. We will incorporate this for the
> next Kernel release which we will do before the DSS GA release.
>
> From user's perspective, the tenant-mgt.xml has been placed in
> repository/conf/ folder starting from Carbon 4.2.0 days. If we are to
> change the location, we can only do this in a major version, not in a patch
> release.
>
> Thanks.
>
> On Aug 3, 2015, at 9:59 AM, Chanaka Fernando  wrote:
>
> Hi All,
>
> Module management feature is not working properly. When I try to engage a
> module (rahas or rampart), It throws the following exception[1]  in the
> back end and UI is showing an error. With these errors, modules are listed
> under globally engaged modules list and when I try to disengage the module,
> it is not possible.
>
> [1]
>
> [2015-08-03 09:54:50,197] ERROR - AbstractPersistenceManager Trying to
> engage or disengage unavailable module rahas
> [2015-08-03 09:54:50,198] ERROR - AbstractPersistenceManager Unable to
> engage rahas globally
> org.wso2.carbon.core.persistence.PersistenceException: Trying to engage or
> disengage unavailable module rahas
> at
> org.wso2.carbon.core.persistence.AbstractPersistenceManager.handleException(AbstractPersistenceManager.java:614)
> at
> org.wso2.carbon.core.persistence.ModulePersistenceManager.handleGlobalModule(ModulePersistenceManager.java:440)
> at
> org.wso2.carbon.core.persistence.ModulePersistenceManager.globallyEngageModule(ModulePersistenceManager.java:139)
> at
> org.wso2.carbon.module.mgt.service.ModuleAdminService.globallyEngageModule(ModuleAdminService.java:282)
> 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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
> at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
> at
> org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
> at
> org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
> at
> org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
> at
> org.wso2.carbon.module.mgt.stub.ModuleAdminServiceStub.globallyEngageModule(ModuleAdminServiceStub.java:2801)
> at
> org.wso2.carbon.module.mgt.ui.client.ModuleManagementClient.globallyEngageModule(ModuleManagementClient.java:140)
> at
> org.apache.jsp.modulemgt.global_005feng_005fajaxprocessor_jsp._jspService(global_005feng_005fajaxprocessor_jsp.java:123)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
> at javax.servlet.http.HttpServlet.servic

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.1 RC2

2015-08-03 Thread KasunG Gajasinghe
Hi,

@Chanaka*, *We are going to fix this, and the fix will be in
carbon-deployment. So, this won't be a blocker for the kernel release.

For the DSS issue, we have had a discussion with @Rajith and *@*Madhawa.
Currently, there is a workaround for this issue by having different
namespaces for its services. Users could use default json message
builders/formatters as well instead of gson one if needed. So, this issue
should not stop us from passing this RC. We will incorporate this for the
next Kernel release which we will do before the DSS GA release.

>From user's perspective, the tenant-mgt.xml has been placed in
repository/conf/ folder starting from Carbon 4.2.0 days. If we are to
change the location, we can only do this in a major version, not in a patch
release.

Thanks.

On Aug 3, 2015, at 9:59 AM, Chanaka Fernando  wrote:

Hi All,

Module management feature is not working properly. When I try to engage a
module (rahas or rampart), It throws the following exception[1]  in the
back end and UI is showing an error. With these errors, modules are listed
under globally engaged modules list and when I try to disengage the module,
it is not possible.

[1]

[2015-08-03 09:54:50,197] ERROR - AbstractPersistenceManager Trying to
engage or disengage unavailable module rahas
[2015-08-03 09:54:50,198] ERROR - AbstractPersistenceManager Unable to
engage rahas globally
org.wso2.carbon.core.persistence.PersistenceException: Trying to engage or
disengage unavailable module rahas
at
org.wso2.carbon.core.persistence.AbstractPersistenceManager.handleException(AbstractPersistenceManager.java:614)
at
org.wso2.carbon.core.persistence.ModulePersistenceManager.handleGlobalModule(ModulePersistenceManager.java:440)
at
org.wso2.carbon.core.persistence.ModulePersistenceManager.globallyEngageModule(ModulePersistenceManager.java:139)
at
org.wso2.carbon.module.mgt.service.ModuleAdminService.globallyEngageModule(ModuleAdminService.java:282)
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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:169)
at
org.apache.axis2.transport.local.LocalTransportReceiver.processMessage(LocalTransportReceiver.java:82)
at
org.wso2.carbon.core.transports.local.CarbonLocalTransportSender.finalizeSendWithToAddress(CarbonLocalTransportSender.java:45)
at
org.apache.axis2.transport.local.LocalTransportSender.invoke(LocalTransportSender.java:77)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at
org.wso2.carbon.module.mgt.stub.ModuleAdminServiceStub.globallyEngageModule(ModuleAdminServiceStub.java:2801)
at
org.wso2.carbon.module.mgt.ui.client.ModuleManagementClient.globallyEngageModule(ModuleManagementClient.java:140)
at
org.apache.jsp.modulemgt.global_005feng_005fajaxprocessor_jsp._jspService(global_005feng_005fajaxprocessor_jsp.java:123)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.

Re: [Dev] [DevStudio] Fix for artifact.xml file corruption when deleting multiple ESB artifact files at once

2015-08-03 Thread Rajeevan Vimalanathan
Merged.

Thanks,
Rajeevan

On Fri, Jul 31, 2015 at 1:54 PM, Nuwan Pallewela  wrote:

> Hi,
>
> Please review and merge following PRs  [1] and [2] which will fix
> Tools-2967 and $subject
> [1]https://github.com/wso2/developer-studio/pull/92
> [2]https://github.com/wso2/developer-studio/pull/93
>
> Following are the changes this PR adds
>
>- User can select multiple ESB artifact files from one ESB Config
>project or multiple ESB Config projects at once and delete.
>- Ctrl+Z will undo the delete operation by also correctly undoing the
>changes in artifact.xml files which introduced in the delete process.
>- But preview will not show changes done for artifact.xml file
>separately for each artifact. It will show all changes together, done for
>artifact.xml file in each ESB Config project.
>
> Thanks,
> --
> --
>
> *Nuwan Chamara Pallewela*
>
>
> *Software Engineer*
>
> *WSO2, Inc. *http://wso2.com
> *lean . enterprise . middleware*
>
> Email   *nuw...@wso2.com *
> Mobile  *+94719079739 <%2B94719079739>*
>
> *+94767100087 <%2B94767100087>*
>



-- 
Vimalanathan Rajeevan
Software Engineer,
WSO2, Inc. *http://wso2.com* 
Lean.Enterprise.Middleware

Mobile:
*+94 773090875*
LinkedIn:
*https://www.linkedin.com/in/RajeevanVimalanathan
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question [WSO2 EMM - blacklist application]

2015-08-03 Thread Kasun Dananjaya Delgolla
Hi,

In the current implementation, you can not achieve that. You can always try
digging into the code and improve. It's in our official documentation[1].

[1] - https://docs.wso2.com/display/EMM110/WSO2+Enterprise+Mobility+Manager

Thanks

On Mon, Aug 3, 2015 at 1:56 PM, Zahra Alimadadi  wrote:

> Hi,
>
> Is it possible to define white list instead of blacklist in wso2_emm and
> just lock other apps when device connected to enterprise network?
> How can I modify wso2_emm to do this?
>
> Here is the link to my question in stackoverflow:
>
> WSO2 EMM - blacklist application
> http://stackoverflow.com/q/31782589/3933607?sem=2
>
> Best regards,
> Zahra
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] IS_Server JWT Settings

2015-08-03 Thread John Hawkins
Hi Folks,

I've just been following these instructions [1] to get the API-M talking to
the Identity server. I am confused as to why I have set JWT on in the
Identity servers api-manager.xml [2] and not just in the API-M? Isn't it
the API-M sending JWT out rather than the IS ? Can someone explain to me
what's going on under-the-hood please?


[1]
https://docs.wso2.com/display/CLUSTER420/Configuring+the+Pre-Packaged+Identity+Server+5.0.0+with+API+Manager+1.9.0

[2] Bullet 7: JWT configuration must be done in the
/repository/conf/api-manager.xml file in the Identity Server.


many thanks,
John.



John Hawkins
Director: Solutions Architecture
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Status update] Adding single tenant cartridge support to appfactory

2015-08-03 Thread Anuruddha Premalal
Hi Raj,

Yes adding -Dstratos.component.startup.synchronizer.enabled=true to
stratos.sh fixed the issue. We missed updating stratos.sh file while doing
the migration from 4.0.0 to 4.1.0



On Mon, Aug 3, 2015 at 1:44 PM, Rajkumar Rajaratnam 
wrote:

> Hi Anuruddha,
>
> I guess we have already fixed this issue sometimes back. I went though the
> log again and found that you haven't enabled Component startup
> synchronizer. If you enable it, it will ensure that CompleteTopologyEvent
> will be published only after SM is activated (SM will be activated only
> after AS).
>
> In your logs, have a look at line number 402 : "Component startup
> synchronizer enabled: false"
>
> Please check whether your bin/stratos.sh have
> "-Dstratos.component.startup.synchronizer.enabled=true". If not, add it.
> Please let us know whether it resolves your issue.
>
> Thanks,
> Raj.
>
>
>
> On Mon, Aug 3, 2015 at 12:59 PM, Anuruddha Premalal 
> wrote:
>
>> Hi Raj,
>>
>> Thanks for the support given in finding the issue.I couldn't find a
>> public stratos jira for this so I've raised jira[1] to track this.
>>
>> [1] https://issues.apache.org/jira/browse/STRATOS-1487
>>
>>
>>
>> On Mon, Aug 3, 2015 at 12:43 PM, Rajkumar Rajaratnam 
>> wrote:
>>
>>> Monitors were not created because CompleteTopologyEvent was published
>>> before AutoscalerComponent was activated. In the attached logs,
>>>
>>> Line number 478 - CompleteTopologyEvent was received by AS
>>> Line number 501 - AutoscalerComponent was activated
>>>
>>> When AS received CompleteTopologyEvent, it didn't load the application
>>> context from registry. Hence it just logged "The application is not yet
>>> deployed for this [application] asdevelopment" (Line number 482) and
>>> ignored the CompleteTopologyEvent. And CompleteTopologyEvent is published
>>> only once (until topology is initialized) - so there is no way that the
>>> monitors will be created.
>>>
>>> It needs to be fixed.
>>>
>>> Thanks,
>>> Raj.
>>>
>>> On Mon, Aug 3, 2015 at 12:06 PM, Anuruddha Premalal 
>>> wrote:
>>>
 HI Raj,

 i'm attaching the carbon log file herewith.

 On Mon, Aug 3, 2015 at 11:52 AM, Rajkumar Rajaratnam <
 rajkum...@wso2.com> wrote:

> Hi Anuruddha,
>
> Cluster monitor can be created in two situations.
>
> 1) when a cluster is created for the first time (application
> deployment time)
> 2) when stratos is restarted
>
> If cluster monitor creation failed, it would log enough information
> about it (some error logs like "Monitor creation failed, even after
> retrying for 5 times") . You can trace back the logs and see the reason 
> for
> it. I don't think scenario 1) is the reason for the above behaviour,
> because the members will not be created if the cluster monitor creation
> failed. Scenario 2) can be one reason for this behaviour. If it is the
> reason, then you should be able to see some error logs regarding cluster
> monitor creation failed. Have you restarted stratos?
>
> Further, "*A cluster monitor is not found in autoscaler context" *error
> doesn't necessarily mean that cluster monitor creation failed. It can
> be because cluster is undeployed and the monitor is removed before getting
> this event from CEP.
>
> If you could attach the complete log, we will be able to point out the
> issue.
>
> Thanks,
> Raj.
>
> On Mon, Aug 3, 2015 at 11:32 AM, Anuruddha Premalal <
> anurud...@wso2.com> wrote:
>
>> Also this setup use kubernetes as the IaaS
>>
>> On Mon, Aug 3, 2015 at 11:31 AM, Anuruddha Premalal <
>> anurud...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I am working on $subject.
>>>
>>> In the current appfactory setup we have a single JVM Stratos 4.1.0
>>> deployment. I am trying to get the autoscaling working since resetting 
>>> the
>>> SM node each time of failure consumes time. Once a member fault event
>>> received to AS receives it but unable to continue with the following 
>>> log.
>>> When will the cluster monitor get initiated? What would are the
>>> possibilities for failing the initialization of the cluster monitor?
>>>
>>> *INFO
>>> {org.apache.stratos.cep.extension.FaultHandlingWindowProcessor} -  
>>> Faulty
>>> member detected [member-id]
>>> asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988
>>> with [last time-stamp] 1438580270973 [time-out] 6 milliseconds*
>>> *TID: [0] [SCC] [2015-08-03 11:26:38,956]  INFO
>>> {org.apache.stratos.cep.extension.FaultHandlingWindowProcessor} -
>>>  Publishing member fault event for [member-id]
>>> asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988*
>>> *TID: [0] [SCC] [2015-08-03 11:26:38,969] DEBUG
>>> {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventRec

Re: [Dev] Stack Overflow Question [WSO2 EMM - Application list]

2015-08-03 Thread Zahra Alimadadi
Could you please tell which class I should change?

Thanks,

On Mon, Aug 3, 2015 at 2:29 PM, Kasun Dananjaya Delgolla 
wrote:

> Hi,
>
> To do that, you need to change the source of EMM Android Agent app.
>
> Thanks
>
> On Mon, Aug 3, 2015 at 3:28 PM, Zahra Alimadadi 
> wrote:
>
>> Hi,
>>
>> How can I change it to show all app installed on device?
>>
>> Thanks
>>
>> On Mon, Aug 3, 2015 at 2:26 PM, Zahra Alimadadi 
>> wrote:
>>
>>> Thanks
>>>
>>> On Mon, Aug 3, 2015 at 9:32 AM, Kasun Dananjaya Delgolla <
>>> kas...@wso2.com> wrote:
>>>
 Hi Zahra,

 By default, it does not show system apps. In your case, the apps you
 don't see are system apps. We track the apps which are installed by the
 user and the enterprises. We have filtered the apps functionality to show
 only user-installed apps.

 Thanks

 On Sun, Aug 2, 2015 at 11:57 PM, Zahra Alimadadi 
 wrote:

> Hi
>
> The application list on device management tab didn't show all app
> installed on device.
> Here  is the app on home page of my
> device (others all also installed) and here
>  is the list of app recognized by emm.
>
> how can I fix this issuse?
>
> Here is the link to my question in stackoverflow:
>
> WSO2 EMM - Application list
> http://stackoverflow.com/q/31775093/3933607?sem=2
>
> Best regards,
> Zahra
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 771 771 015
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 *

>>>
>>>
>>>
>>> --
>>> *Zahra Alimadadi*
>>>
>>>
>>
>>
>> --
>> *Zahra Alimadadi*
>>
>>
>
>
> --
> Kasun Dananjaya Delgolla
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Tel:  +94 11 214 5345
> Fax: +94 11 2145300
> Mob: + 94 771 771 015
> Blog: http://kddcodingparadise.blogspot.com
> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
> *
>



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


Re: [Dev] Stack Overflow Question [WSO2 EMM - Location]

2015-08-03 Thread Milan Perera
Hi Zahra,

Obviously it should appear in the device detail page. However if you want
to view it from the database, check the *"received_data"* column of the
*"notifications"* table under *"INFO"* record in the WSO2EMM_DB.

Regards,

On Mon, Aug 3, 2015 at 3:33 PM, Zahra Alimadadi  wrote:

> Hi Milan,
>
> So it should always show device location on device's tab on device
> management, but it didn't show the location.
> what is store for location in emm, As it show google map it should store 
> co-ordinates or
> place's name.
> I want to find the place of the device, if someone forget wher he put it.
>
> Thanks,
>
> On Mon, Aug 3, 2015 at 2:10 PM, Milan Perera  wrote:
>
>> Hi Zahra,
>>
>> Since WSO2 EMM agent is running as the device administrator on the
>> device, it has relevant permissions to retrieve location (GPS) information
>> of the device at any time. Furthermore, the Android agent retrieves the
>> latest updated location information over three different methods such as
>> WiFi, Network and GPS. So you will be able to see the latest updated
>> location from the map in device details page. Other than that we do not
>> provide co-ordinates (latitude and longitude) directly in EMM.
>>
>> Regards,
>>
>> On Sun, Aug 2, 2015 at 11:09 PM, Zahra Alimadadi 
>> wrote:
>>
>>> Hi
>>>
>>> How can I force the devices to turn on gps (location) when connected to
>>> enterprise network, and how can I access to latitude and longitude of it in
>>> wso2_emm?
>>>
>>> Here is the link to my question in stackoverflow:
>>>
>>> WSO2 EMM - Location
>>> http://stackoverflow.com/q/31774570/3933607?sem=2
>>>
>>> Best regards,
>>> Zahra
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Milan Harindu Perera
>> Software Engineer
>> *WSO2, Inc*
>> (+94) 77 309 7088
>> lean . enterprise . middleware
>> 
>>
>
>
>
> --
> *Zahra Alimadadi*
>
>


-- 
Milan Harindu Perera
Software Engineer
*WSO2, Inc*
(+94) 77 309 7088
lean . enterprise . middleware

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


[Dev] WSO2 MB build failure after upgrading kernel version

2015-08-03 Thread Sasikala Kottegoda
Hi all,

I tried to build WSO2 MB with the following version upgrades

   - carbon.kernel.version - from 4.4.0 to 4.4.1
   - carbon.commons.version - from 4.4.0 to 4.4.3
   - carbon.multitenancy.version - from 4.4.0 to 4.4.1
   - carbon.identity.version - from 4.4.0 to 4.5.3

The build fails with the following message:

Missing requirement: org.wso2.carbon.tenant.usage.agent 4.4.1
(org.wso2.carbon.tenant.usage.agent 4.4.1) requires 'package
org.wso2.carbon.stratos.common.util [4.4.0,5.0.0)' but it could not be found
 Cannot satisfy dependency:
  From: WSO2 Tenant Usage Agent Feature 4.4.1
(org.wso2.carbon.tenant.usage.agent.feature.group 4.4.1)
  To: org.wso2.carbon.tenant.usage.agent [4.4.1]

Could somebody help me solve this issue?

Thank you
-- 
Sasikala Kottegoda
*Software Engineer*
WSO2 Inc., http://wso2.com/
lean. enterprise. middleware
Mobile: +94 774835928/712792401
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question [WSO2 EMM - Email configuration]

2015-08-03 Thread Kasun Dananjaya Delgolla
Hi Zahra,

Error shows that there's a connection timeout. Gmail SMTP might be blocking
your authentication request. Usually it throttles 3rd party client requests
unless you disable security from your mail account settings.

Thanks

On Mon, Aug 3, 2015 at 1:55 PM, Zahra Alimadadi  wrote:

> Hi
>
> I know this question is already answered, but I couldn't solve it for
> myself.
> How can I configure email for emm?
>
> Here is my config in general setting :
>
> Host: smtp.gmail.com
> Port: 25 (also I check it using 587)
> Username: myusern...@gmail.com
> password: my email pass
> Sender email address: myusern...@gmail.com
> Email template: You have been registered to the to EMM. Below is the link
> to enroll.
>
> but no invitation email sent to users.
> first I try sending invitation email to already registered user.
> then I check adding new user and send invitation to him.
> here  is the log for port 25
> here  is the log for port
> 587 and here  is the
> log for new user with port 25 and here
>  for port 587.
>
> Also I turn off my firewall and try again but no invitation email sent to
> users.
>
> More info:
>
> server : windows 7 (wso2 v : 1.1.0) - localhost, database : mysql
>
> I have done these configuration using tenant which I have created.
> Here is the link to my question in stackoverflow:
>
> WSO2 EMM - Email configuration
> http://stackoverflow.com/q/31775852/3933607?sem=2
>
> Best regards,
> Zahra
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question [WSO2 EMM - Location]

2015-08-03 Thread Zahra Alimadadi
Hi Milan,

So it should always show device location on device's tab on device
management, but it didn't show the location.
what is store for location in emm, As it show google map it should
store co-ordinates or
place's name.
I want to find the place of the device, if someone forget wher he put it.

Thanks,

On Mon, Aug 3, 2015 at 2:10 PM, Milan Perera  wrote:

> Hi Zahra,
>
> Since WSO2 EMM agent is running as the device administrator on the device,
> it has relevant permissions to retrieve location (GPS) information of the
> device at any time. Furthermore, the Android agent retrieves the latest
> updated location information over three different methods such as WiFi,
> Network and GPS. So you will be able to see the latest updated location
> from the map in device details page. Other than that we do not provide
> co-ordinates (latitude and longitude) directly in EMM.
>
> Regards,
>
> On Sun, Aug 2, 2015 at 11:09 PM, Zahra Alimadadi 
> wrote:
>
>> Hi
>>
>> How can I force the devices to turn on gps (location) when connected to
>> enterprise network, and how can I access to latitude and longitude of it in
>> wso2_emm?
>>
>> Here is the link to my question in stackoverflow:
>>
>> WSO2 EMM - Location
>> http://stackoverflow.com/q/31774570/3933607?sem=2
>>
>> Best regards,
>> Zahra
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Milan Harindu Perera
> Software Engineer
> *WSO2, Inc*
> (+94) 77 309 7088
> lean . enterprise . middleware
> 
>



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


Re: [Dev] Stack Overflow Question [WSO2 EMM - Application list]

2015-08-03 Thread Kasun Dananjaya Delgolla
Hi,

To do that, you need to change the source of EMM Android Agent app.

Thanks

On Mon, Aug 3, 2015 at 3:28 PM, Zahra Alimadadi  wrote:

> Hi,
>
> How can I change it to show all app installed on device?
>
> Thanks
>
> On Mon, Aug 3, 2015 at 2:26 PM, Zahra Alimadadi 
> wrote:
>
>> Thanks
>>
>> On Mon, Aug 3, 2015 at 9:32 AM, Kasun Dananjaya Delgolla > > wrote:
>>
>>> Hi Zahra,
>>>
>>> By default, it does not show system apps. In your case, the apps you
>>> don't see are system apps. We track the apps which are installed by the
>>> user and the enterprises. We have filtered the apps functionality to show
>>> only user-installed apps.
>>>
>>> Thanks
>>>
>>> On Sun, Aug 2, 2015 at 11:57 PM, Zahra Alimadadi 
>>> wrote:
>>>
 Hi

 The application list on device management tab didn't show all app
 installed on device.
 Here  is the app on home page of my
 device (others all also installed) and here
  is the list of app recognized by emm.

 how can I fix this issuse?

 Here is the link to my question in stackoverflow:

 WSO2 EMM - Application list
 http://stackoverflow.com/q/31775093/3933607?sem=2

 Best regards,
 Zahra

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


>>>
>>>
>>> --
>>> Kasun Dananjaya Delgolla
>>>
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> Tel:  +94 11 214 5345
>>> Fax: +94 11 2145300
>>> Mob: + 94 771 771 015
>>> Blog: http://kddcodingparadise.blogspot.com
>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>>> *
>>>
>>
>>
>>
>> --
>> *Zahra Alimadadi*
>>
>>
>
>
> --
> *Zahra Alimadadi*
>
>


-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 771 771 015
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question [WSO2 EMM - Application list]

2015-08-03 Thread Zahra Alimadadi
Hi,

How can I change it to show all app installed on device?

Thanks

On Mon, Aug 3, 2015 at 2:26 PM, Zahra Alimadadi  wrote:

> Thanks
>
> On Mon, Aug 3, 2015 at 9:32 AM, Kasun Dananjaya Delgolla 
> wrote:
>
>> Hi Zahra,
>>
>> By default, it does not show system apps. In your case, the apps you
>> don't see are system apps. We track the apps which are installed by the
>> user and the enterprises. We have filtered the apps functionality to show
>> only user-installed apps.
>>
>> Thanks
>>
>> On Sun, Aug 2, 2015 at 11:57 PM, Zahra Alimadadi 
>> wrote:
>>
>>> Hi
>>>
>>> The application list on device management tab didn't show all app
>>> installed on device.
>>> Here  is the app on home page of my
>>> device (others all also installed) and here
>>>  is the list of app recognized by emm.
>>>
>>> how can I fix this issuse?
>>>
>>> Here is the link to my question in stackoverflow:
>>>
>>> WSO2 EMM - Application list
>>> http://stackoverflow.com/q/31775093/3933607?sem=2
>>>
>>> Best regards,
>>> Zahra
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Kasun Dananjaya Delgolla
>>
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Tel:  +94 11 214 5345
>> Fax: +94 11 2145300
>> Mob: + 94 771 771 015
>> Blog: http://kddcodingparadise.blogspot.com
>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
>> *
>>
>
>
>
> --
> *Zahra Alimadadi*
>
>


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


[Dev] Fwd: Does ES support IBM jdk?

2015-08-03 Thread Shazni Nazeer
Shazni Nazeer
Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com

-- Forwarded message --
From: Shazni Nazeer 
Date: Mon, Aug 3, 2015 at 3:28 PM
Subject: Does ES support IBM jdk?
To: Manuranga Perera , Udara Rathnayake 
Cc: Chandana Napagoda , Sagara Gunathunga <
sag...@wso2.com>, Waruna De Silva , Chalitha Waldeniyage <
chali...@wso2.com>, Chankami Maddumage 


Hi,

We have a QA reported issue [1] stating that publisher and store is in
accessible with IBM jdk 1.7. Found a similar reported issue in the ES as
well [2].

Does ES support IBM jdk? Can we get this fixed in carbon-stpre 2.3.1?

[1] https://wso2.org/jira/browse/REGISTRY-2740
[2] https://wso2.org/jira/browse/STORE-959

Shazni Nazeer
Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question [WSO2 EMM - Application list]

2015-08-03 Thread Zahra Alimadadi
Thanks

On Mon, Aug 3, 2015 at 9:32 AM, Kasun Dananjaya Delgolla 
wrote:

> Hi Zahra,
>
> By default, it does not show system apps. In your case, the apps you don't
> see are system apps. We track the apps which are installed by the user and
> the enterprises. We have filtered the apps functionality to show only
> user-installed apps.
>
> Thanks
>
> On Sun, Aug 2, 2015 at 11:57 PM, Zahra Alimadadi 
> wrote:
>
>> Hi
>>
>> The application list on device management tab didn't show all app
>> installed on device.
>> Here  is the app on home page of my
>> device (others all also installed) and here
>>  is the list of app recognized by emm.
>>
>> how can I fix this issuse?
>>
>> Here is the link to my question in stackoverflow:
>>
>> WSO2 EMM - Application list
>> http://stackoverflow.com/q/31775093/3933607?sem=2
>>
>> Best regards,
>> Zahra
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Kasun Dananjaya Delgolla
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Tel:  +94 11 214 5345
> Fax: +94 11 2145300
> Mob: + 94 771 771 015
> Blog: http://kddcodingparadise.blogspot.com
> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
> *
>



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


Re: [Dev] Upgrade Carbon Kernel version to 4.4.0

2015-08-03 Thread Kishanthan Thangarajah
On Mon, Aug 3, 2015 at 2:19 AM, Akila Ravihansa Perera 
wrote:

> Hi,
>
> I've been working on evaluating the effort needed to upgrade Carbon kernel
> which is the underlying platform of Stratos to its latest version 4.4.0.
> Since this is a major version upgrade there are some API changes in the
> kernel hence some components needs to be updated to be compatible with the
> new Kernel. Also this means we will have to upgrade all Carbon features
> that we use in Stratos.
>
> Following is a high-level list of Carbon features that we use currently in
> Stratos
>
> OAuth identity feature for metadata service and REST API
> CEP event processing features
> Siddhi engine features
> Webapp management features
> Jaggery features
> Synapse mediation features (in Stratos LB)
>
> Following are the tasks that I identified that needs to be done for the
> upgrade.
>
> 1. Uplift kernel dependency version in pom files
> 2. Create the p2 profile for Stratos core and LB with new features
> 3. Create the  distribution for Stratos core and LB with new configuration
> files
> 4. Update Stratos code base to match the new features and Kernel
> 5. Merge all recent changes done in master branch.
> 6. Upgrade CEP artifacts; this includes execution plans, window
> processors, input/output adaptors, stream definitions
> 7. Upgrade Stratos console UI module
> 8. Upgrade test framework dependencies and integration tests
> 9. Test the functionality (end-to-end testing of all features and
> use-cases)
>
> I've already completed above tasks up to 5. While upgrading the Kernel I
> faced many OSGi issues and feature conflicts. Therefore I had to stop the
> upgrade process and do a complete refactoring of pom structure. I've
> removed duplicate dependencies and cleaned up OSGi package imports/exports.
> Also parameterized all the dependency versions and created properties for
> every dependency version in the root pom.
>

This is the correct approach. With 4.4, we have changed the group-id's of
each git repo (eg: commons, deployment) to match their names accordingly.
And the features coming from these repos will also have the same group-id
name changes. You will have change your pom files with correct dependency
names (which I think you have already done here).


> I'm still facing ClassNotFound issues while deploying Stratos webapps
> (oauth2, api). Currently investigating the root cause. Also Stratos console
> Jaggery app is broken with new Kernel and Jaggery features. I can view the
> login page but it throws some backend exception when logging in.
>

This could probably be due to multiple exported package versions or missing
required packages. Hope you are on the right path in identifying the
issues. Any unresolved bundles or unwired packages here?

>
> You can try it out by building from the source at [1]. I've attached a
> screen shot of new Carbon console UI.
>
> [1] https://github.com/ravihansa3000/stratos/tree/carbon-4.4.0-migration
>
> Thanks.
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
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 
wrote:

>
>
> On Mon, Aug 3, 2015 at 2:09 PM, Niranjan Karunanandham 
> 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 
>> 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 
>>> 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
> /repository/conf directory, but in the p2.inf of the
> tenant-mgt (carbon-multitenancy repo), it is copied to
> /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 *
>>> *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 *
> *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 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Stack Overflow Question [WSO2 EMM - Location]

2015-08-03 Thread Milan Perera
Hi Zahra,

Since WSO2 EMM agent is running as the device administrator on the device,
it has relevant permissions to retrieve location (GPS) information of the
device at any time. Furthermore, the Android agent retrieves the latest
updated location information over three different methods such as WiFi,
Network and GPS. So you will be able to see the latest updated location
from the map in device details page. Other than that we do not provide
co-ordinates (latitude and longitude) directly in EMM.

Regards,

On Sun, Aug 2, 2015 at 11:09 PM, Zahra Alimadadi 
wrote:

> Hi
>
> How can I force the devices to turn on gps (location) when connected to
> enterprise network, and how can I access to latitude and longitude of it in
> wso2_emm?
>
> Here is the link to my question in stackoverflow:
>
> WSO2 EMM - Location
> http://stackoverflow.com/q/31774570/3933607?sem=2
>
> Best regards,
> Zahra
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Milan Harindu Perera
Software Engineer
*WSO2, Inc*
(+94) 77 309 7088
lean . enterprise . middleware

___
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 Darshana Gunawardana
On Mon, Aug 3, 2015 at 2:09 PM, Niranjan Karunanandham 
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.

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 
> 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 
>> 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
 /repository/conf directory, but in the p2.inf of the
 tenant-mgt (carbon-multitenancy repo), it is copied to
 /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 *
>> *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 *
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.1 RC2

2015-08-03 Thread Niranjan Karunanandham
Hi Prasad,

On Fri, Jul 31, 2015 at 10:57 PM, Prasad Tissera  wrote:

> Hi All,
>
> Carbon 4.4.1 RC2, expects that the tenant-mgt.xml should be directly
> inside conf directory. [1]. But default file location as per the p2.inf is
> under multitenancy folder  [2]. To fix this issue, in the product builds,
> will need copy the file to the correct location in the bin.xml.
>
This has been the case since Carbon 4.2.0 where the products have been
copying the tenant-mgt.xml from multitenancy folder to the conf folder via
the bin.xml. I have created a separate thread [1] regarding this.



>
> [1]. 
> *https://github.com/wso2/carbon4-kernel/blob/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,
> Prasad.
>
> On Fri, Jul 31, 2015 at 9:58 AM, Madhawa Gunasekara 
> wrote:
>
>> Hi Kasun,
>>
>> This issue is happen in gson formatter only. workaround is to use old
>> json formatter which don't support streaming. also there will be a DSS
>> release soon
>>
>> 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
>> *
>> linkedin: *http://lk.linkedin.com/in/mgunasekara
>> *
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
>
> --
> Prasad Tissera
> Software Engineer.
> Mobile : +94777223444
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
[1] - Mail Subject: [Dev] Issue with location of tenant-mgt.xml in Products

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


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

2015-08-03 Thread Niranjan Karunanandham
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?


[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 
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 
> 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
>>> /repository/conf directory, but in the p2.inf of the
>>> tenant-mgt (carbon-multitenancy repo), it is copied to
>>> /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 *
> *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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Stack Overflow Question [WSO2 EMM - blacklist application]

2015-08-03 Thread Zahra Alimadadi
Hi,

Is it possible to define white list instead of blacklist in wso2_emm and
just lock other apps when device connected to enterprise network?
How can I modify wso2_emm to do this?

Here is the link to my question in stackoverflow:

WSO2 EMM - blacklist application
http://stackoverflow.com/q/31782589/3933607?sem=2

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


[Dev] Stack Overflow Question [WSO2 EMM - Email configuration]

2015-08-03 Thread Zahra Alimadadi
Hi

I know this question is already answered, but I couldn't solve it for
myself.
How can I configure email for emm?

Here is my config in general setting :

Host: smtp.gmail.com
Port: 25 (also I check it using 587)
Username: myusern...@gmail.com
password: my email pass
Sender email address: myusern...@gmail.com
Email template: You have been registered to the to EMM. Below is the link
to enroll.

but no invitation email sent to users.
first I try sending invitation email to already registered user.
then I check adding new user and send invitation to him.
here  is the log for port 25
here  is the log for port 587
and here  is the log
for new user with port 25 and here
 for port 587.

Also I turn off my firewall and try again but no invitation email sent to
users.

More info:

server : windows 7 (wso2 v : 1.1.0) - localhost, database : mysql

I have done these configuration using tenant which I have created.
Here is the link to my question in stackoverflow:

WSO2 EMM - Email configuration
http://stackoverflow.com/q/31775852/3933607?sem=2

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


Re: [Dev] [GSoC-2015] Proposal2 : Siddhi Editor for WSO2 CEP

2015-08-03 Thread Tharindu Munasinghe
Hi Suho,

As per the discussion last time , I have implemented the context aware
auto-completion feature with  regular expression based approach. Currently
 this supports

   - Syntax completions : For stream,table, function definition statements
   and query statements appropriately
   - Completion for Stream Names and attributes :  Within the query, based
   on the context
   - Stream references (alias) handling
   - Object attribute suggestions
   - Stream functions and Window processor suggestions  (inbuilt and
   extension level with predefined list)
   - Function suggestions
   - Snippet suggestions for the longer structures  : Define statements,
   window statements, function definitions, etc.

I have a few questions regarding the scoping rules to be discussed. Can we
have a meeting to review the work ?

*Th**a**rindu Munasin**ghe.*
*Undergraduate ,Department of Computer **S**cience and Engineering*
*University of Moratuwa.*
*Contact no. +94770460887*




On Wed, Jul 15, 2015 at 5:03 PM, Sriskandarajah Suhothayan 
wrote:

> any update one this?
>
> Whats the approach we are taking now
>
> On Mon, Jul 6, 2015 at 4:34 PM, Tharindu Munasinghe <
> munasinghethari...@gmail.com> wrote:
>
>> Yes , exactly they are not scalable models. There are several
>> implementations I found but many of them doesn't
>> provide context-sensitiveness for custom languages.  As I can see the
>> scalability can be achieved only if the auto completion logic resides
>> within Antlr4 context right? .
>>
>> I have started a discussion in antlr-discussion google group regarding
>> this matter. I am still looking for an alternative but haven't come across
>> a scalable solution. Meanwhile if you have an alternative in mind, please
>> let me know.
>>
>>
>> *Th**a**rindu Munasin**ghe.*
>> *Undergraduate ,Department of Computer **S**cience and Engineering*
>> *University of Moratuwa.*
>> *Contact no. +94770460887 <%2B94770460887>*
>>
>>
>>
>>
>> On Sun, Jul 5, 2015 at 9:38 PM, Sriskandarajah Suhothayan 
>> wrote:
>>
>>> The both model you are progressing are not scalable, and error prone. If
>>> we make any change to the grammar then we have to also fix that in several
>>> places.
>>>
>>> Isn't there any other alternatives?
>>>
>>> Suho
>>>
>>> On Tue, Jun 30, 2015 at 4:59 AM, Tharindu Munasinghe <
>>> tharindu...@cse.mrt.ac.lk> wrote:
>>>
 Hi Mentors,

 I have been working on the context-aware auto completion feature. There
 is a function called getExpectedTokensInCurrentRule() in Antlr4 API
 which returns the possible next tokens based on the current rule context. I
 have tried to use that function to get the possible tokens, but as I can
 see this function will only work with valid input that can be parsed
 without errors. While the query is incomplete (while user is typing the
 query) it will only generate a generic error without returning any parsing
 information.

 I have two alternatives in mind to overcome the issue .
 1. create set of regular expressions to match the last input token and
 present a set of predefined suggestion lists.
 2. create token graph similar to following diagram and suggest the
 children of the current token



 ​
 I would be grateful if you can provide feedback regarding which method
 to implement. Any alternative suggestions are highly appreciated.


 On 15 June 2015 at 09:36, Tharindu Munasinghe <
 tharindu...@cse.mrt.ac.lk> wrote:

> Hi Mentors,
>
> I have almost completed the implementation of syntax and semantic
> error highlighting mechanism. Now the errors are listed in appropriate
> lines while user is writing the query . Number of server calls are reduced
> significantly , but still more optimizations can be done on this.
>
> This week I will be working on the auto completion feature , current
> editor does have all-text auto completion. But I am trying to reduce the
> suggestion list based on the context-awareness.
>
> Can we have a meeting in this week to verify the work I have already
> done and to discuss the proceedings of this project ?.
>
> On 11 June 2015 at 08:08, Tharindu Munasinghe <
> tharindu...@cse.mrt.ac.lk> wrote:
>
>> Hi Suho,
>>
>>
>> *Weekly Progress Update*
>>
>> I have been working on syntax and semantic error highlighting
>> mechanism. Client side syntax checking is almost completed and I managed 
>> to
>> integrate new editor with CEP 4.0 .Once there are no syntax errors , the
>> query will be submitted to the server side Siddhi compiler for semantic
>> error checking .
>>
>> Since the syntax errors are checked in client side, only the semantic
>> error messages will be getting from the server . But there was an issue 
>> in
>> displaying the error messages since some of the semantic error messages 
>> do
>> not contain the l

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

2015-08-03 Thread Darshana Gunawardana
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 
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  > wrote:
>
>> Hi all,
>>
>> In Carbon [1], it checks for the tenant-mgt.xml in the
>> /repository/conf directory, but in the p2.inf of the
>> tenant-mgt (carbon-multitenancy repo), it is copied to
>> /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 *
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Status update] Adding single tenant cartridge support to appfactory

2015-08-03 Thread Rajkumar Rajaratnam
Hi Anuruddha,

I guess we have already fixed this issue sometimes back. I went though the
log again and found that you haven't enabled Component startup
synchronizer. If you enable it, it will ensure that CompleteTopologyEvent
will be published only after SM is activated (SM will be activated only
after AS).

In your logs, have a look at line number 402 : "Component startup
synchronizer enabled: false"

Please check whether your bin/stratos.sh have
"-Dstratos.component.startup.synchronizer.enabled=true". If not, add it.
Please let us know whether it resolves your issue.

Thanks,
Raj.



On Mon, Aug 3, 2015 at 12:59 PM, Anuruddha Premalal 
wrote:

> Hi Raj,
>
> Thanks for the support given in finding the issue.I couldn't find a public
> stratos jira for this so I've raised jira[1] to track this.
>
> [1] https://issues.apache.org/jira/browse/STRATOS-1487
>
>
>
> On Mon, Aug 3, 2015 at 12:43 PM, Rajkumar Rajaratnam 
> wrote:
>
>> Monitors were not created because CompleteTopologyEvent was published
>> before AutoscalerComponent was activated. In the attached logs,
>>
>> Line number 478 - CompleteTopologyEvent was received by AS
>> Line number 501 - AutoscalerComponent was activated
>>
>> When AS received CompleteTopologyEvent, it didn't load the application
>> context from registry. Hence it just logged "The application is not yet
>> deployed for this [application] asdevelopment" (Line number 482) and
>> ignored the CompleteTopologyEvent. And CompleteTopologyEvent is published
>> only once (until topology is initialized) - so there is no way that the
>> monitors will be created.
>>
>> It needs to be fixed.
>>
>> Thanks,
>> Raj.
>>
>> On Mon, Aug 3, 2015 at 12:06 PM, Anuruddha Premalal 
>> wrote:
>>
>>> HI Raj,
>>>
>>> i'm attaching the carbon log file herewith.
>>>
>>> On Mon, Aug 3, 2015 at 11:52 AM, Rajkumar Rajaratnam >> > wrote:
>>>
 Hi Anuruddha,

 Cluster monitor can be created in two situations.

 1) when a cluster is created for the first time (application deployment
 time)
 2) when stratos is restarted

 If cluster monitor creation failed, it would log enough information
 about it (some error logs like "Monitor creation failed, even after
 retrying for 5 times") . You can trace back the logs and see the reason for
 it. I don't think scenario 1) is the reason for the above behaviour,
 because the members will not be created if the cluster monitor creation
 failed. Scenario 2) can be one reason for this behaviour. If it is the
 reason, then you should be able to see some error logs regarding cluster
 monitor creation failed. Have you restarted stratos?

 Further, "*A cluster monitor is not found in autoscaler context" *error
 doesn't necessarily mean that cluster monitor creation failed. It can
 be because cluster is undeployed and the monitor is removed before getting
 this event from CEP.

 If you could attach the complete log, we will be able to point out the
 issue.

 Thanks,
 Raj.

 On Mon, Aug 3, 2015 at 11:32 AM, Anuruddha Premalal >>> > wrote:

> Also this setup use kubernetes as the IaaS
>
> On Mon, Aug 3, 2015 at 11:31 AM, Anuruddha Premalal <
> anurud...@wso2.com> wrote:
>
>> Hi,
>>
>> I am working on $subject.
>>
>> In the current appfactory setup we have a single JVM Stratos 4.1.0
>> deployment. I am trying to get the autoscaling working since resetting 
>> the
>> SM node each time of failure consumes time. Once a member fault event
>> received to AS receives it but unable to continue with the following log.
>> When will the cluster monitor get initiated? What would are the
>> possibilities for failing the initialization of the cluster monitor?
>>
>> *INFO {org.apache.stratos.cep.extension.FaultHandlingWindowProcessor}
>> -  Faulty member detected [member-id]
>> asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988
>> with [last time-stamp] 1438580270973 [time-out] 6 milliseconds*
>> *TID: [0] [SCC] [2015-08-03 11:26:38,956]  INFO
>> {org.apache.stratos.cep.extension.FaultHandlingWindowProcessor} -
>>  Publishing member fault event for [member-id]
>> asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988*
>> *TID: [0] [SCC] [2015-08-03 11:26:38,969] DEBUG
>> {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver}
>> -  Member fault event received: [member]
>> asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988
>>  *
>> *TID: [0] [SCC] [2015-08-03 11:26:38,969] DEBUG
>> {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver}
>> -  A cluster monitor is not found in autoscaler context [cluster]
>> asdevelopment.anuasdevelopment.anuasdevelopment.domain*
>>
>

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

2015-08-03 Thread Danushka Fernando
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 
wrote:

> Hi all,
>
> In Carbon [1], it checks for the tenant-mgt.xml in the
> /repository/conf directory, but in the p2.inf of the
> tenant-mgt (carbon-multitenancy repo), it is copied to
> /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


Re: [Dev] Stack Overflow Question [WSO2 EMM - WIFI operation not working]

2015-08-03 Thread Zahra Alimadadi
Thanks

On Mon, Aug 3, 2015 at 9:33 AM, Kasun Dananjaya Delgolla 
wrote:

> Hi Zahra,
>
> You can't change the security type in EMM. It currently supports only WEP.
>
> Thanks
>
> On Sun, Aug 2, 2015 at 2:55 AM, Zahra Alimadadi 
> wrote:
>
>> Hi,
>>
>> I am testing device management operation, but wifi setting is not
>> working. The difference between wifi set using emm and defualt is security
>> type which is WPA PSK and EMM device management set it to WEP. How can I
>> modify the security type?
>>
>> More info:
>>
>> server : windows 7 (wso2 v : 1.1.0),client : galaxy note 10.1 (android),
>> database : mysql
>>
>> Here is the link to my question in stackoverflow:
>>
>> WSO2 EMM - WIFI operation not working
>> http://stackoverflow.com/q/31766344/3933607?sem=2
>>
>> Best regards,
>> Zahra
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Kasun Dananjaya Delgolla
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Tel:  +94 11 214 5345
> Fax: +94 11 2145300
> Mob: + 94 771 771 015
> Blog: http://kddcodingparadise.blogspot.com
> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
> *
>



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


Re: [Dev] [Status update] Adding single tenant cartridge support to appfactory

2015-08-03 Thread Anuruddha Premalal
Hi Raj,

Thanks for the support given in finding the issue.I couldn't find a public
stratos jira for this so I've raised jira[1] to track this.

[1] https://issues.apache.org/jira/browse/STRATOS-1487



On Mon, Aug 3, 2015 at 12:43 PM, Rajkumar Rajaratnam 
wrote:

> Monitors were not created because CompleteTopologyEvent was published
> before AutoscalerComponent was activated. In the attached logs,
>
> Line number 478 - CompleteTopologyEvent was received by AS
> Line number 501 - AutoscalerComponent was activated
>
> When AS received CompleteTopologyEvent, it didn't load the application
> context from registry. Hence it just logged "The application is not yet
> deployed for this [application] asdevelopment" (Line number 482) and
> ignored the CompleteTopologyEvent. And CompleteTopologyEvent is published
> only once (until topology is initialized) - so there is no way that the
> monitors will be created.
>
> It needs to be fixed.
>
> Thanks,
> Raj.
>
> On Mon, Aug 3, 2015 at 12:06 PM, Anuruddha Premalal 
> wrote:
>
>> HI Raj,
>>
>> i'm attaching the carbon log file herewith.
>>
>> On Mon, Aug 3, 2015 at 11:52 AM, Rajkumar Rajaratnam 
>> wrote:
>>
>>> Hi Anuruddha,
>>>
>>> Cluster monitor can be created in two situations.
>>>
>>> 1) when a cluster is created for the first time (application deployment
>>> time)
>>> 2) when stratos is restarted
>>>
>>> If cluster monitor creation failed, it would log enough information
>>> about it (some error logs like "Monitor creation failed, even after
>>> retrying for 5 times") . You can trace back the logs and see the reason for
>>> it. I don't think scenario 1) is the reason for the above behaviour,
>>> because the members will not be created if the cluster monitor creation
>>> failed. Scenario 2) can be one reason for this behaviour. If it is the
>>> reason, then you should be able to see some error logs regarding cluster
>>> monitor creation failed. Have you restarted stratos?
>>>
>>> Further, "*A cluster monitor is not found in autoscaler context" *error
>>> doesn't necessarily mean that cluster monitor creation failed. It can
>>> be because cluster is undeployed and the monitor is removed before getting
>>> this event from CEP.
>>>
>>> If you could attach the complete log, we will be able to point out the
>>> issue.
>>>
>>> Thanks,
>>> Raj.
>>>
>>> On Mon, Aug 3, 2015 at 11:32 AM, Anuruddha Premalal 
>>> wrote:
>>>
 Also this setup use kubernetes as the IaaS

 On Mon, Aug 3, 2015 at 11:31 AM, Anuruddha Premalal >>> > wrote:

> Hi,
>
> I am working on $subject.
>
> In the current appfactory setup we have a single JVM Stratos 4.1.0
> deployment. I am trying to get the autoscaling working since resetting the
> SM node each time of failure consumes time. Once a member fault event
> received to AS receives it but unable to continue with the following log.
> When will the cluster monitor get initiated? What would are the
> possibilities for failing the initialization of the cluster monitor?
>
> *INFO {org.apache.stratos.cep.extension.FaultHandlingWindowProcessor}
> -  Faulty member detected [member-id]
> asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988
> with [last time-stamp] 1438580270973 [time-out] 6 milliseconds*
> *TID: [0] [SCC] [2015-08-03 11:26:38,956]  INFO
> {org.apache.stratos.cep.extension.FaultHandlingWindowProcessor} -
>  Publishing member fault event for [member-id]
> asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988*
> *TID: [0] [SCC] [2015-08-03 11:26:38,969] DEBUG
> {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver}
> -  Member fault event received: [member]
> asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988
>  *
> *TID: [0] [SCC] [2015-08-03 11:26:38,969] DEBUG
> {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver}
> -  A cluster monitor is not found in autoscaler context [cluster]
> asdevelopment.anuasdevelopment.anuasdevelopment.domain*
>
>
> Thanks & Regards,
> --
> *Anuruddha Premalal*
> Software Eng. | WSO2 Inc.
> Mobile : +94710461070
> Web site : www.regilandvalley.com
>
>


 --
 *Anuruddha Premalal*
 Software Eng. | WSO2 Inc.
 Mobile : +94710461070
 Web site : www.regilandvalley.com


>>>
>>>
>>> --
>>> Rajkumar Rajaratnam
>>> Committer & PMC Member, Apache Stratos
>>> Software Engineer, WSO2
>>>
>>> Mobile : +94777568639
>>> Blog : rajkumarr.com
>>>
>>
>>
>>
>> --
>> *Anuruddha Premalal*
>> Software Eng. | WSO2 Inc.
>> Mobile : +94710461070
>> Web site : www.regilandvalley.com
>>
>>
>
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
> Blog : rajkumarr.com
>



-- 
*Anuruddha

[Dev] G-Reg 5.0.0 nightly build pack - 03/08/2015

2015-08-03 Thread Sameera Kannangara
Hi all,

Please find $Subject at [1].
This pack contains updated solr version from 5.0.0 to 5.2.1.
This Change affects following functions,

   - Advanced search via management console, store and publisher
   - Artifact listing in management console, store and publisher
   - Artifact filtering in management console, store and publisher

Thank you,
SameeraK.

[1]
https://svn.wso2.org/repos/wso2/scratch/G-Reg/5.0.0/nightlybuild/20150803/

-- 
*Sameera Kannangara*
Software Engineer
Platform TG; WSO2 Inc. http://wso2.com
Contact:
phone: +94719541577
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Status update] Adding single tenant cartridge support to appfactory

2015-08-03 Thread Rajkumar Rajaratnam
Monitors were not created because CompleteTopologyEvent was published
before AutoscalerComponent was activated. In the attached logs,

Line number 478 - CompleteTopologyEvent was received by AS
Line number 501 - AutoscalerComponent was activated

When AS received CompleteTopologyEvent, it didn't load the application
context from registry. Hence it just logged "The application is not yet
deployed for this [application] asdevelopment" (Line number 482) and
ignored the CompleteTopologyEvent. And CompleteTopologyEvent is published
only once (until topology is initialized) - so there is no way that the
monitors will be created.

It needs to be fixed.

Thanks,
Raj.

On Mon, Aug 3, 2015 at 12:06 PM, Anuruddha Premalal 
wrote:

> HI Raj,
>
> i'm attaching the carbon log file herewith.
>
> On Mon, Aug 3, 2015 at 11:52 AM, Rajkumar Rajaratnam 
> wrote:
>
>> Hi Anuruddha,
>>
>> Cluster monitor can be created in two situations.
>>
>> 1) when a cluster is created for the first time (application deployment
>> time)
>> 2) when stratos is restarted
>>
>> If cluster monitor creation failed, it would log enough information about
>> it (some error logs like "Monitor creation failed, even after retrying for
>> 5 times") . You can trace back the logs and see the reason for it. I don't
>> think scenario 1) is the reason for the above behaviour, because the
>> members will not be created if the cluster monitor creation failed.
>> Scenario 2) can be one reason for this behaviour. If it is the reason, then
>> you should be able to see some error logs regarding cluster monitor
>> creation failed. Have you restarted stratos?
>>
>> Further, "*A cluster monitor is not found in autoscaler context" *error
>> doesn't necessarily mean that cluster monitor creation failed. It can be
>> because cluster is undeployed and the monitor is removed before getting
>> this event from CEP.
>>
>> If you could attach the complete log, we will be able to point out the
>> issue.
>>
>> Thanks,
>> Raj.
>>
>> On Mon, Aug 3, 2015 at 11:32 AM, Anuruddha Premalal 
>> wrote:
>>
>>> Also this setup use kubernetes as the IaaS
>>>
>>> On Mon, Aug 3, 2015 at 11:31 AM, Anuruddha Premalal 
>>> wrote:
>>>
 Hi,

 I am working on $subject.

 In the current appfactory setup we have a single JVM Stratos 4.1.0
 deployment. I am trying to get the autoscaling working since resetting the
 SM node each time of failure consumes time. Once a member fault event
 received to AS receives it but unable to continue with the following log.
 When will the cluster monitor get initiated? What would are the
 possibilities for failing the initialization of the cluster monitor?

 *INFO {org.apache.stratos.cep.extension.FaultHandlingWindowProcessor} -
  Faulty member detected [member-id]
 asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988
 with [last time-stamp] 1438580270973 [time-out] 6 milliseconds*
 *TID: [0] [SCC] [2015-08-03 11:26:38,956]  INFO
 {org.apache.stratos.cep.extension.FaultHandlingWindowProcessor} -
  Publishing member fault event for [member-id]
 asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988*
 *TID: [0] [SCC] [2015-08-03 11:26:38,969] DEBUG
 {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver}
 -  Member fault event received: [member]
 asdevelopment.anuasdevelopment.anuasdevelopment.domain38d5a847-d16a-4891-bbc0-6582cd9b9988
  *
 *TID: [0] [SCC] [2015-08-03 11:26:38,969] DEBUG
 {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver}
 -  A cluster monitor is not found in autoscaler context [cluster]
 asdevelopment.anuasdevelopment.anuasdevelopment.domain*


 Thanks & Regards,
 --
 *Anuruddha Premalal*
 Software Eng. | WSO2 Inc.
 Mobile : +94710461070
 Web site : www.regilandvalley.com


>>>
>>>
>>> --
>>> *Anuruddha Premalal*
>>> Software Eng. | WSO2 Inc.
>>> Mobile : +94710461070
>>> Web site : www.regilandvalley.com
>>>
>>>
>>
>>
>> --
>> Rajkumar Rajaratnam
>> Committer & PMC Member, Apache Stratos
>> Software Engineer, WSO2
>>
>> Mobile : +94777568639
>> Blog : rajkumarr.com
>>
>
>
>
> --
> *Anuruddha Premalal*
> Software Eng. | WSO2 Inc.
> Mobile : +94710461070
> Web site : www.regilandvalley.com
>
>


-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog : rajkumarr.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2015-08-03 Thread Niranjan Karunanandham
Hi all,

In Carbon [1], it checks for the tenant-mgt.xml in the
/repository/conf directory, but in the p2.inf of the
tenant-mgt (carbon-multitenancy repo), it is copied to
/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


Re: [Dev] [IS] BPEL and HumanTask packages for Workflow support in IS

2015-08-03 Thread Harsha Thirimanna
Hi Nandika/Vinod,

I just deploy you BPEL and HumanTask package in to the BPS 3.2.0 and it is
just give following logs and in admin console it says, successfully done.
Are there any issues this artifacts in released pack or do I change
something before i deploy this ?



​TID: [0] [BPS] [2015-08-03 12:25:49,401]  INFO
{org.springframework.context.support.ClassPathXmlApplicationContext} -
 Refreshing
org.springframework.context.support.ClassPathXmlApplicationContext@10b8a942:
startup date [Mon Aug 03 12:25:49 IST 2015]; root of context hierarchy
{org.springframework.context.support.ClassPathXmlApplicationContext}
TID: [0] [BPS] [2015-08-03 12:25:49,403]  INFO
{org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
XML bean definitions from class path resource [beans.xml]
{org.springframework.beans.factory.xml.XmlBeanDefinitionReader}
TID: [0] [BPS] [2015-08-03 12:25:49,419] ERROR
{org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
 
null:file:///home/harsha/wso2/IS/IS-5.1.0-Release/WORKFLOW/wso2bps-3.2.0/tmp/work/bpelTemp/1.4385849493994443E12/ApprovalProcess_2.0.0/ApprovalProcess.bpel:36:17:cvc-complex-type.2.4.a:
Invalid content was found starting with element 'extensions'. One of '{"
http://docs.oasis-open.org/wsbpel/2.0/process/executable":import, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":partnerLinks, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":messageExchanges,
"http://docs.oasis-open.org/wsbpel/2.0/process/executable":variables, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":correlationSets, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":faultHandlers, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":eventHandlers, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":assign, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":compensate, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":compensateScope, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":empty, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":exit, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":extensionActivity,
"http://docs.oasis-open.org/wsbpel/2.0/process/executable":flow, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":forEach, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":if, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":invoke, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":pick, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":receive, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":repeatUntil, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":reply, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":rethrow, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":scope, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":sequence, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":throw, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":validate, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":wait, "
http://docs.oasis-open.org/wsbpel/2.0/process/executable":while}' is
expected.
{org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler}
TID: [0] [BPS] [2015-08-03 12:25:49,420] ERROR
{org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
 
null:file:///home/harsha/wso2/IS/IS-5.1.0-Release/WORKFLOW/wso2bps-3.2.0/tmp/work/bpelTemp/1.4385849493994443E12/ApprovalProcess_2.0.0/ApprovalProcess.bpel:73:52:cvc-complex-type.3.2.2:
Attribute 'xml:space' is not allowed to appear in element 'bpel:literal'.
{org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler}
TID: [0] [BPS] [2015-08-03 12:25:49,420] ERROR
{org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
 
null:file:///home/harsha/wso2/IS/IS-5.1.0-Release/WORKFLOW/wso2bps-3.2.0/tmp/work/bpelTemp/1.4385849493994443E12/ApprovalProcess_2.0.0/ApprovalProcess.bpel:79:52:cvc-complex-type.3.2.2:
Attribute 'xml:space' is not allowed to appear in element 'bpel:literal'.
{org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler}
TID: [0] [BPS] [2015-08-03 12:25:49,421] ERROR
{org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
 
null:file:///home/harsha/wso2/IS/IS-5.1.0-Release/WORKFLOW/wso2bps-3.2.0/tmp/work/bpelTemp/1.4385849493994443E12/ApprovalProcess_2.0.0/ApprovalProcess.bpel:99:52:cvc-complex-type.3.2.2:
Attribute 'xml:space' is not allowed to appear in element 'bpel:literal'.
{org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler}
TID: [0] [BPS] [2015-08-03 12:25:49,422] ERROR
{org.apache.ode.bpel.compiler.bom.BpelObjectFactory$BOMSAXErrorHandler} -
 
null:file:///home/harsha/wso2/IS/IS-5.1.0-Release/WORKFLOW/wso2bps-3.2.0/tmp/work/bpelTemp/1.4385849493994443E12/ApprovalProcess_2.0.0/ApprovalProcess.bpel:123:52:cvc-complex-type.3.2.2:
Attribute 'xml:space' is not al