Re: [Dev] Error in using CQL data source for master-datasources.xml

2014-07-29 Thread Dhanuka Ranasinghe
One more thing we have missed was, mentioning providers at
master-datasources.xml


org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader

org.wso2.carbon.cassandra.datareader.datasource.CassandraDataSourceReader


*Dhanuka Ranasinghe*

Senior Software Engineer
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

phone : +94 715381915


On Wed, Jul 30, 2014 at 11:27 AM, Asitha Nanayakkara 
wrote:

> Tried that. But It gives the same error.
>
>
> On Wed, Jul 30, 2014 at 10:33 AM, Dhanuka Ranasinghe 
> wrote:
>
>> Can you please verify,whether you have added below component to dropins ?
>>
>> org.wso2.carbon.cassandra.datareader-4.3.0-SNAPSHOT.jar
>>
>> *Dhanuka Ranasinghe*
>>
>> Senior Software Engineer
>> WSO2 Inc. ; http://wso2.com
>> lean . enterprise . middleware
>>
>> phone : +94 715381915
>>
>>
>> On Wed, Jul 30, 2014 at 10:13 AM, Asitha Nanayakkara 
>> wrote:
>>
>>> I'v used the following to get a CQL connection
>>> com.datastax.driver.core.Cluster cluster = InitialContext.doLookup("
>>> CassandraRepo");
>>>
>>> And added the following entry to master-datasources.xml
>>>
>>> 
>>> WSO2_CASSANDRA_DB
>>> The datasource used for cassandra
>>> 
>>> CassandraRepo
>>> 
>>> 
>>> 
>>> false
>>> TestCluster
>>> SNAPPY
>>> 100
>>> admin
>>> admin
>>> 9042
>>> 100
>>> 
>>> 127.0.0.1
>>> 
>>> 
>>> 2.5
>>> true
>>> 100
>>> RoundRobinPolicy
>>> 10
>>> 2
>>> 
>>> 
>>>
>>> 10
>>>
>>> 10
>>>
>>> 10
>>>
>>> 10
>>>
>>> 10
>>>
>>> 10
>>>
>>> 10
>>>
>>> 10
>>> 
>>> 
>>> 100
>>>
>>> ConstantReconnectionPolicy
>>> 
>>> 
>>> 200
>>> true
>>> 200
>>> true
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>>
>>>
>>>
>>> On Wed, Jul 30, 2014 at 7:48 AM, Dhanuka Ranasinghe 
>>> wrote:
>>>
 Can you please let me know the exact steps followed?
  On 29 Jul 2014 17:47, "Udara Rathnayake"  wrote:

> Hi Asitha,
>
> Not sure whether you can use this approach or not, previously in ES
> product we had following Cassandra data-source[1] definition and able to
> create connection using following, But we have used cassandra.cql.jdbc
> driver here.
>
> CarbonDataSource carbonDataSource =
> DataSourceManager.getInstance().getDataSourceRepository().getDataSource("SOCIAL_CASSANDRA_DB");
> DataSource dataSource = (DataSource) carbonDataSource.getDSObject();
> conn = dataSource.getConnection();
>
> [1]
>
> 
> SOCIAL_CASSANDRA_DB
>  The cassandra datasource used for storing social
> activities
> 
>  
> jdbc:cassandra://localhost:9160/EVENT_KS
>  admin
> admin
>
> org.apache.cassandra.cql.jdbc.CassandraDriver
> 
>  
> 
>
> Regards,
> UdaraR
>
>
> On Tue, Jul 29, 2014 at 2:25 PM, Asitha Nanayakkara 
> wrote:
>
>> Hi,
>>
>> While trying to integrate CQL data source feature of
>> master-datasources.xml to MB I get an error at run time.
>>
>> I've used the following method to get the connection
>>
>>> com.datastax.driver.core.Cluster cluster
>>> = InitialContext.doLookup("CassandraRepo");
>>
>>
>> Following is the error I get.
>>
>> [2014-07-29 14:08:57,035] ERROR
>> {org.wso2.carbon.ndatasource.core.DataSourceRepository} -  A data source
>> reader cannot be found for the type 'CASSANDRA'
>> org.wso2.carbon.ndatasource.common.DataSourceException: A data source
>> reader cannot be found for the type 'CASSANDRA'
>> at
>> org.wso2.carbon.ndatasource.core.DataSourceRepository.createDataSourceObject(DataSourceRepository.java:196)
>>  at
>> org.wso2.carbon.ndatasource.core.DataSourceRepository.registerDataSource(DataSourceRepository.java:359)
>> at
>> org.wso2.carbon.ndatasource.core.DataSourceRepository.addDataSource(DataSourceRepository.java:473)
>>  at
>> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:185)
>> at
>> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:157)
>>  at
>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSystemDataSources(DataSourceServiceComponent.java:191)
>> at
>> org.wso2.carbo

[Dev] Retrieve assets from registry using uuid only.

2014-07-29 Thread Ayesha Dissanayaka
Hi,

I need to do $subject while implementing Enterprise-Store REST-API. The
exact endpoint is like "../apis/assets/<:id>" which will be used to
retrieve the asset of <:id>.

Currently, I use "*GenericArtifactManager.getGenericArtifact(String
artifactId)*" method to retrieve the asset from registry. In order to
create a *GenericArtifactManager* instance we have to provide the ' 'type'.
Therefore I have to pass 'type' as an URL parameter.
*(ex:
https://localhost:9443/publisher/apis/assets/1dfaac50-a96a-42dc-8f4b-1720bd3d6434?type=site
)*

I don't think that passing 'type' as an URL parameter in this kind of
endpoint is acceptable, since the concept of having an 'id' is that we
should be able to refer that resource by 'id' itself. (this might be
confusing in the way registry handles assets).

The other way we can implement "../apis/assets/<:id>" endpoint is as
follows.[01]

   - use "GovernanceUtils.retrieveGovernanceArtifactById" which includes
   following two steps.
   - get 'path' to asset by id (GovernanceUtils.getArtifactPath)
   - retrieve asset using path
   (GovernanceUtils.retrieveGovernanceArtifactByPath)

What would be the best approach. Is there any other way of providing this
such as using indexes etc.
[01]
https://github.com/wso2-dev/carbon-governance/blob/master/components/governance/org.wso2.carbon.governance.api/src/main/java/org/wso2/carbon/governance/api/util/GovernanceUtils.java

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com

20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Patch method support for SCIM end points]

2014-07-29 Thread Gayan Gunawardana
Hi,

Please find [1]. I couldn't mention in the previous mail.

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



On Tue, Jul 29, 2014 at 11:55 PM, Sagara Gunathunga  wrote:

>
>
> Hi Gayan,
>
> I couldn't find any PR related to a test case, can you please attend to
> needful ?
>
> Thanks !
>
> On Tue, Jul 29, 2014 at 2:33 PM, Gayan Gunawardana  wrote:
>
>> Hi All,
>>
>> Please review and merge [1]
>>
>> [1] https://github.com/wso2-dev/carbon-deployment/pull/13
>>
>> Thanks,
>> Gayan
>>
>>
>> On Fri, Jul 25, 2014 at 9:54 PM, Prabath Siriwardena 
>> wrote:
>>
>>>
>>>
>>>
>>> On Fri, Jul 25, 2014 at 9:52 PM, Sagara Gunathunga 
>>> wrote:
>>>



 On Fri, Jul 25, 2014 at 5:37 PM, Gayan Gunawardana 
 wrote:

> Hi All,
>
> I have added custom implementation for PATCH as mention in [1]. What
> is the package naming convention we can use for this implementation. Will
> it be fine something like "org.wso2.identity.annotations" ?
>
> [1]
> http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-HTTPMethod
>
>


 In case if you want to move this class into cxf.ext[1] component you
 could use "org.wso2.carbon.webapp.ext.jaxrs.designator" package name,
 this[2] may help you to write test cases for this.

>>>
>>> +1
>>>
>>> Thanks & regards,
>>> -Prabath
>>>
>>>

 [1] -
 https://github.com/wso2-dev/carbon-deployment/tree/master/components/webapp-mgt/org.wso2.carbon.cxf.ext
 [2] -
 https://github.com/wso2-dev/product-as/tree/master/modules/integration/tests-integration/src/test/java/org/wso2/appserver/integration/tests/webapp/classloading

 Thanks !


>
>
> On Mon, Jul 7, 2014 at 12:22 PM, Gayan Gunawardana 
> wrote:
>
>> Thanks Ishara & Supun.
>>
>> Will proceed accordingly.
>>
>> Thanks,
>> Gayan
>>
>>
>> On Mon, Jul 7, 2014 at 12:11 PM, Supun Malinga 
>> wrote:
>>
>>> yeah. it looks like patch method is not supported OOTB, since as per
>>> the spec[5] patch method is not specified. So the usual practice seems 
>>> to
>>> be implementing it by the user..
>>>
>>> [5]
>>> http://download.oracle.com/otndocs/jcp/jaxrs-2_0-fr-eval-spec/index.html
>>>
>>> thanks,
>>>
>>>
>>> On Mon, Jul 7, 2014 at 12:01 PM, Ishara Karunarathna <
>>> isha...@wso2.com> wrote:
>>>
 Hi Gayan,


 On Mon, Jul 7, 2014 at 11:46 AM, Gayan Gunawardana 
 wrote:

> Hi All,
>
> The requirement based on [1]. Since wso2 identity server can act
> as a SCIM provider, it exposes  REST end points with standard http 
> methods
> (GET, POST, PUT, DELETE). How ever according to [2] http PATCH method 
> also
> require to do patch operation. The idea of patch operation is, 
> suppose we
> need to add new user to existing group, with update operation we can 
> update
> entire list of users in a particular group so we have to send 
> complete set
> of users. Patch operation supports merging of existing users with new
> users.
>
> The bottleneck to implement patch operation is currently [3] does
> not support http PATCH method directly. But according to [4] it allows
> custom annotation such as @Update or @Patch.
>
> WDYT?
>

 +1,
 You will have to do the custom implementation to get PATCH support.

>
>
> [1] https://wso2.org/jira/browse/IDENTITY-1891
>
> [2]
> http://tools.ietf.org/html/draft-ietf-scim-api-02#section-3.3.1
>
> [3] http://cxf.apache.org/docs/jax-rs.html
>
> [4]
> http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-HTTPMethod
>
> Thanks,
> Gayan
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



 --
 Ishara Karunarathna
 Senior Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,
 mobile: +94 718211678

>>>
>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> email: sup...@wso2.com 
>>> mobile: +94 (0)71 56 91 321
>>>
>>
>>
>>
>> --
>> Gayan Gunawardana
>> Software Engineer; WSO2 Inc.; http://wso2.com/
>> Email: ga...@wso2.com
>> Mobile: +94 (71) 8020933
>>>

Re: [Dev] ETA for on-premise App Factory

2014-07-29 Thread Dmitry Sotnikov
OK, thanks for the update Janaka!


On Wed, Jul 30, 2014 at 7:37 AM, Janaka Ranabahu  wrote:

> Hi,
>
> I was unable to attend to this past few days due to some personal matters.
> I will get them done today. sorry for the inconvenience.
>
> Thanks,
> Janaka
>
>
> On Wed, Jul 30, 2014 at 1:39 AM, Dmitry Sotnikov  wrote:
>
>> This (scripts and docs for on-premise deployment) didn't get published,
>> did it?
>>
>> Is there a new ETA?
>>
>> (Would like to have the answer if customers ask again.)
>>
>> Dmitry
>>
>>
>> On Wed, Jul 23, 2014 at 8:23 PM, Dmitry Sotnikov  wrote:
>>
>>> *Dimuthu*, would these and the work that Janaka and Samith are doing be
>>> sufficient for App Factory on-premise installation? User will still need to
>>> download the actual bits and scripts - will we publish everything around
>>> July 29?
>>>
>>> (Not sure whether you saw this today - another customer also said in
>>> email he wanted to install AF on premises - the interest is growing, which
>>> is a good thing.)
>>>
>>> Dmitry
>>>
>>>
>>> On Wed, Jul 23, 2014 at 8:19 PM, Nirdesha Munasinghe 
>>> wrote:
>>>
 Done. 2.0.1 docs are public.

 Thanks,
 -Nirdesha


 On Wed, Jul 23, 2014 at 5:17 PM, Dimuthu Leelarathne >>> > wrote:

> Hi,
>
> If we have the docs ready, then it is a matter of opening it up. If we
> have continuous deployment I believe our doc strategy should change to
> reflect that?
>
> @Nirdesha - Could we just make 2.0.1 docs public? So that as we deploy
> things into cloud people can access the docs?
>
> thanks,
> dimuthu
>
>
>
> On Wed, Jul 23, 2014 at 4:53 PM, Dmitry Sotnikov 
> wrote:
>
>> Janaka,
>>
>> This comment by Nirdesha reads to me like a statement that although
>> the scripts and docs will be created, it will not be until 2.0.1 release
>> that they will be made public - so potentially much later than July 29. 
>> Is
>> that so?
>>
>> As we are not going to give scripts with AF 2.0.0, I will remove that
>>> section from the 2.0.0 docs. We will be adding the content to 2.0.1 
>>> docs.
>>
>>
>> Dmitry
>>
>>
>> On Wed, Jul 23, 2014 at 3:11 PM, Janaka Ranabahu 
>> wrote:
>>
>>> Hi,
>>>
>>> Our plan is to complete the docs by 29 July. Samith will be working
>>> on these with me.
>>>
>>> Thanks,
>>> Janaka
>>>
>>>
>>> On Wed, Jul 23, 2014 at 11:42 AM, Nirdesha Munasinghe <
>>> nirde...@wso2.com> wrote:
>>>
 Janaka will be adding the draft steps to wiki or in a Google doc.
 Please let me know once you are done so that I can complete this page.

 As we are not going to give scripts with AF 2.0.0, I will remove
 that section from the 2.0.0 docs. We will be adding the content to 
 2.0.1
 docs.

 Thanks,
 -Nirdesha


 On Wed, Jul 23, 2014 at 11:08 AM, Dmitry Sotnikov 
 wrote:

> Quick check on the status of this:
>
>- The scripts have been released, right?
>- What is the ETA for documentation on using them to install
>AF?
>
> Dmitry
>
>
> On Sat, Jul 5, 2014 at 4:10 PM, Dmitry Sotnikov 
> wrote:
>
>> Thanks Harsha!
>>
>> I will let the customer know it is coming within a couple of
>> weeks or so.
>>
>> Please let me know when everything is ready.
>>
>> Dmitry
>> On Jul 4, 2014 7:01 PM, "Harsha Thirimanna" 
>> wrote:
>>
>>> Hi Dimitry,
>>>
>>> We are in final stage of this.
>>>
>>> After finish the appfactory puppet scripts we hope to run it
>>> with privatepaas puppet and do the complete test.
>>>
>>> We can finish it on next friday (11th July).
>>>
>>> Thanks
>>>  On Jul 4, 2014 5:20 PM, "Dmitry Sotnikov" 
>>> wrote:
>>>
 An App Cloud user just asked me when the on-premise App Factory
 2 support coming.

 He wants to install it but docs are saying that this is not
 possible:
 https://docs.wso2.com/display/AF200/Installing+On-Premise

 Thanks!
 Dmitry

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


>
>
> --
> Dmitry Sotnikov
> VP of Cloud; WSO2, Inc.;  http://wso2.com/
> email: dmi...@wso2.com; cell: +1.949.303.9653; Skype: DSotnikov
> Lean . Enterprise . Middleware
>
>  
>



 --
>

Re: [Dev] Chunk 13-packs -29/07/2014

2014-07-29 Thread Krishantha Samaraweera
Please make sure to run all integration tests before handing the packs over
to QA.

Thanks,
Krishantha.


On Wed, Jul 30, 2014 at 1:22 AM, Vijayaratha Vijayasingam 
wrote:

> No krishnatha..i skipped tests..in the next build will share..
>
>
> On 30 July 2014 10:51, Krishantha Samaraweera  wrote:
>
>> Hi Ratha,
>>
>> Are you building these packs with integration tests.
>>
>> Can you please share the surefire reports
>>
>> Thanks,
>> Krishantha.
>>
>>
>> On Wed, Jul 30, 2014 at 1:06 AM, Vijayaratha Vijayasingam <
>> rat...@wso2.com> wrote:
>>
>>>
>>> Hi;
>>> Please find packs+p2 repo here[1]
>>>
>>> [1]https://svn.wso2.org/repos/wso2/scratch/chunk13-release/29-07-2014/
>>>
>>> Thanks.
>>> --
>>> -Ratha
>>> mobile: (+94)755906608
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Krishantha Samaraweera
>> Senior Technical Lead - Test Automation
>> Mobile: +94 77 7759918
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> -Ratha
> mobile: (+94)755906608
>



-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error in using CQL data source for master-datasources.xml

2014-07-29 Thread Asitha Nanayakkara
Tried that. But It gives the same error.


On Wed, Jul 30, 2014 at 10:33 AM, Dhanuka Ranasinghe 
wrote:

> Can you please verify,whether you have added below component to dropins ?
>
> org.wso2.carbon.cassandra.datareader-4.3.0-SNAPSHOT.jar
>
> *Dhanuka Ranasinghe*
>
> Senior Software Engineer
> WSO2 Inc. ; http://wso2.com
> lean . enterprise . middleware
>
> phone : +94 715381915
>
>
> On Wed, Jul 30, 2014 at 10:13 AM, Asitha Nanayakkara 
> wrote:
>
>> I'v used the following to get a CQL connection
>> com.datastax.driver.core.Cluster cluster = InitialContext.doLookup("
>> CassandraRepo");
>>
>> And added the following entry to master-datasources.xml
>>
>> 
>> WSO2_CASSANDRA_DB
>> The datasource used for cassandra
>> 
>> CassandraRepo
>> 
>> 
>> 
>> false
>> TestCluster
>> SNAPPY
>> 100
>> admin
>> admin
>> 9042
>> 100
>> 
>> 127.0.0.1
>> 
>> 
>> 2.5
>> true
>> 100
>> RoundRobinPolicy
>> 10
>> 2
>> 
>> 
>>
>> 10
>>
>> 10
>>
>> 10
>>
>> 10
>>
>> 10
>>
>> 10
>>
>> 10
>>
>> 10
>> 
>> 
>> 100
>>
>> ConstantReconnectionPolicy
>> 
>> 
>> 200
>> true
>> 200
>> true
>> 
>> 
>> 
>> 
>>
>>
>>
>>
>>
>> On Wed, Jul 30, 2014 at 7:48 AM, Dhanuka Ranasinghe 
>> wrote:
>>
>>> Can you please let me know the exact steps followed?
>>>  On 29 Jul 2014 17:47, "Udara Rathnayake"  wrote:
>>>
 Hi Asitha,

 Not sure whether you can use this approach or not, previously in ES
 product we had following Cassandra data-source[1] definition and able to
 create connection using following, But we have used cassandra.cql.jdbc
 driver here.

 CarbonDataSource carbonDataSource =
 DataSourceManager.getInstance().getDataSourceRepository().getDataSource("SOCIAL_CASSANDRA_DB");
 DataSource dataSource = (DataSource) carbonDataSource.getDSObject();
 conn = dataSource.getConnection();

 [1]

 
 SOCIAL_CASSANDRA_DB
  The cassandra datasource used for storing social
 activities
 
  
 jdbc:cassandra://localhost:9160/EVENT_KS
  admin
 admin

 org.apache.cassandra.cql.jdbc.CassandraDriver
 
  
 

 Regards,
 UdaraR


 On Tue, Jul 29, 2014 at 2:25 PM, Asitha Nanayakkara 
 wrote:

> Hi,
>
> While trying to integrate CQL data source feature of
> master-datasources.xml to MB I get an error at run time.
>
> I've used the following method to get the connection
>
>> com.datastax.driver.core.Cluster cluster
>> = InitialContext.doLookup("CassandraRepo");
>
>
> Following is the error I get.
>
> [2014-07-29 14:08:57,035] ERROR
> {org.wso2.carbon.ndatasource.core.DataSourceRepository} -  A data source
> reader cannot be found for the type 'CASSANDRA'
> org.wso2.carbon.ndatasource.common.DataSourceException: A data source
> reader cannot be found for the type 'CASSANDRA'
> at
> org.wso2.carbon.ndatasource.core.DataSourceRepository.createDataSourceObject(DataSourceRepository.java:196)
>  at
> org.wso2.carbon.ndatasource.core.DataSourceRepository.registerDataSource(DataSourceRepository.java:359)
> at
> org.wso2.carbon.ndatasource.core.DataSourceRepository.addDataSource(DataSourceRepository.java:473)
>  at
> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:185)
> at
> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:157)
>  at
> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSystemDataSources(DataSourceServiceComponent.java:191)
> at
> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setSecretCallbackHandlerService(DataSourceServiceComponent.java:177)
>  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.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
> at
> org.eclipse.equino

Re: [Dev] [STORE-398] Search doesn't work on asset view

2014-07-29 Thread Udara Rathnayake
Hi all,

As per the off-line chat with Pubudu, I tried to reproduce this by
introducing a new asset type. But I don't get such search anomaly within
the asset view page.

Used resources available here[1] to introduce new mp3 asset type to fresh
ES-1.0.0 pack, then published a sample asset for testing.
After browsing the store for published asset[2] , searched store using
different combinations.

Pubudu seems missing some configuration change(s) since we have to do a lot
of configuration changes[3] in ES-1.0.0.
With the ES-1.2.0 M2 release we can introduce a new asset type with minimum
changes.

[1] https://github.com/udarakr/mp3-store
[2] http://:9763/store/assets/mp3/590d33f2-caf6-436a-a584-ebc97c1ebded
[3]
https://docs.wso2.com/display/ES100/Adding+a+New+Asset+Type#AddingaNewAssetType-Step5-ConfiguringEStoworkwiththenewassettype

Regards,
UdaraR


On Wed, Jul 30, 2014 at 9:44 AM, Udara Rathnayake  wrote:

> Hi Pubudu,
>
> Is it possible for you to provide configuration information[1] for your
> project artifact type.
> I tried to reproduce this[2] with a default asset type, but I'm able to
> generate the search form and search according to the asset type definition
> in the asset view page.
>
> [1] RXT definition, life-cycle definition, other store/publisher configs
> [2] https://wso2.org/jira/browse/STORE-398
>
> Regards,
> UdaraR
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : +94 772207239
> Twitter : http://twitter.com/udarakr
> Blog: http://udarakr.blogspot.com
>
>


-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Esb connector and authentication

2014-07-29 Thread Ramindu Deshapriya
Hi Flavio,

You'd be calling an ESB configuration using your Java client. The
configuration is what would be calling the actual connector.

e.g. in your ESB proxy, you'd have something like this:




{$ctx:myParameter}




The above is an example of calling the ESB configuration with an XML
payload (note the XPath expression to extract the value from the message
context, and then pass it to the connector method).

You can write your Java Client in whichever way you prefer based on how you
write your ESB Configuration to call the particular connector. You could
accomplish this through a JSON, XML, or SOAP-based payload.

Thanks.



On Wed, Jul 30, 2014 at 11:00 AM, Flavio Pompermaier [via WSO2 Oxygen Tank]
 wrote:

>
> I still don't understand how to call the connector and specify the
> parameters from my webapp.
> Do I have to use axis? can you show me a snippet of Java code please?
>
> Thanks for the support Malaga!
>
> On Wed, Jul 30, 2014 at 7:18 AM, Malaka Silva <[hidden email]
> > wrote:
>
>> You can dynamically extract message context and pass as parameters to
>> the connectors.
>>
>> XML you mentioned is more likely the esb configuration. But the
>> parameters can he hard-coded or dynamic.
>>
>> Following article gives some more details of how to use it.
>>
>>
>> http://wso2.com/library/articles/2013/12/esb-connectors-in-action-enterprise-integration/
>>
>>
>> On Wed, Jul 30, 2014 at 10:20 AM, Flavio Pompermaier <[hidden email]
>> > wrote:
>>
>>> What is not clear is how to pass those parameters: from documentation it
>>> seems that I have to put an xml in the esb server but it does not make
>>> sense, it's something I want to create at runtime.
>>> Or is it a parameter I pass with the ws message context?
>>>
>>>
>>> On Wed, Jul 30, 2014 at 6:05 AM, Malaka Silva <[hidden email]
>>> > wrote:
>>>
 Hi Flavio,

 You can create your api (application API) whatever the way you prefer.

 Inside these apis you can use connectors. The advantage of using
 connectors is you can simple call methods in these connectors with given
 parameters.

 All the complexities and domain specific requirements when calling
 third-party APIs are encapsulated inside connectors.

 eg:

 User can simple use the following config to search.

 
 xxx
 40.71435,-74.00597
 10
 mi
  

 More connectors are in the pipeline and will be released in parallel
 with esb 4.9.0 release.

 More information can be found with following links.

 [1] https://docs.wso2.com/display/ESB481/Working+with+Connectors
 [2] https://docs.wso2.com/display/ESB481/ESB+Connectors

 Best Regards,
 Malaka


 On Wed, Jul 30, 2014 at 5:26 AM, Flavio Pompermaier <[hidden email]
 > wrote:

> Hi to all,
> I'm new to wso2. I found ESB connectors for social media like twitter
> and Facebook.
> What is the right way to connect Facebook API with my application API?
> For example, if I have to retrieve the user details, should my app
> wrap the call to the esb or not?
> If I use the API manager, should I publish only my webapp APIs or the
> Facebook APIs or the esb APIs or whatever...? do I need to register a
> identity provider? This is not really clear to me..
>
> Thanks in advance,
> FP
>
> ___
> Dev mailing list
> [hidden email] 
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 Best Regards,

 Malaka Silva
 Senior Tech Lead
 M: +94 777 219 791
 Tel : 94 11 214 5345
 Fax :94 11 2145300
 Skype : malaka.sampath.silva
 LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
 Blog : http://mrmalakasilva.blogspot.com/

 WSO2, Inc.
 lean . enterprise . middleware
 http://www.wso2.com/
 http://www.wso2.com/about/team/malaka-silva/
 

 Save a tree -Conserve nature & Save the world for your future. Print
 this email only if it is absolutely necessary.

>>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> e

Re: [Dev] api manager clustering

2014-07-29 Thread Akila Nimantha [IT/EKO/LOITS]
Hi Kasun,

Cheeez…….. its working now. after adding wso2registry component again its 
working fine now..
Thanks for your help..
Specially thanks for Amila and Udara.

Regards,
Akila

From: Kasun Gajasinghe [mailto:kas...@wso2.com]
Sent: Wednesday, July 30, 2014 10:36 AM
To: Akila Nimantha [IT/EKO/LOITS]
Cc: Amila De Silva; dev@wso2.org
Subject: [Caution: Message contains Suspicious URL content] Re: [Dev] api 
manager clustering

Hi Akila,

It seems you have removed the 'wso2registry' dbConfig configuration from 
repository/conf/registry.xml. You need to re-add it. This can co-exist with 
govregistry dbConfig.


jdbc/WSO2CarbonDB



On Wed, Jul 30, 2014 at 9:12 AM, Akila Nimantha [IT/EKO/LOITS] 
mailto:aki...@lolctech.com>> wrote:
Hi Amila,

Please check the attachment . I have attached configuration (zip)file of Store 
Node.

Regards,
Akila

From: Amila De Silva [mailto:ami...@wso2.com]
Sent: Tuesday, July 29, 2014 9:23 PM
To: Akila Nimantha [IT/EKO/LOITS]
Cc: Udara Liyanage; dev@wso2.org
Subject: [Caution: Message contains Suspicious URL content] Re: [Dev] api 
manager clustering

Hi Akila,

Seems the registry.xml has been wrongly configured. Can you attach the config 
folder (AM/repository/conf) for the Store node?



On Tue, Jul 29, 2014 at 9:09 PM, Akila Nimantha [IT/EKO/LOITS] 
mailto:aki...@lolctech.com>> wrote:
Hi udara,
when i start four servers, gataway and keyStore nodes works fine but store and 
publisher still not show any url to access store and publisher in distributed 
api manager environment. and i did those configurations without ELB.

my server offsets.
KeyManager - 1
Gateway - 2
Publisher - 3
Store - 4
in store and publisher nodes, there are same following error,

[2014-07-29 20:49:04,609] ERROR - RegistryContext Couldn't find db 
configuration 'wso2registry'
[2014-07-29 20:49:04,730] ERROR - EmbeddedRegistryService Failed to configure 
the embedded registry. Invalid data access manager.
[2014-07-29 20:49:04,732] ERROR - RegistryCoreServiceComponent Failed to 
activate Registry Core bundle
org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to configure 
the embedded registry. Invalid data access manager.
at 
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.configure(EmbeddedRegistryService.java:167)
at 
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.(EmbeddedRegistryService.java:99)
at 
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.getEmbeddedRegistryService(RegistryCoreServiceComponent.java:630)
at 
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.buildRegistryService(RegistryCoreServiceComponent.java:563)
at 
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:117)
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.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:347)
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.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:70)
at 
org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCh

Re: [Dev] Esb connector and authentication

2014-07-29 Thread Flavio Pompermaier
I still don't understand how to call the connector and specify the
parameters from my webapp.
Do I have to use axis? can you show me a snippet of Java code please?

Thanks for the support Malaga!

On Wed, Jul 30, 2014 at 7:18 AM, Malaka Silva  wrote:

> You can dynamically extract message context and pass as parameters to the
> connectors.
>
> XML you mentioned is more likely the esb configuration. But the parameters
> can he hard-coded or dynamic.
>
> Following article gives some more details of how to use it.
>
>
> http://wso2.com/library/articles/2013/12/esb-connectors-in-action-enterprise-integration/
>
>
> On Wed, Jul 30, 2014 at 10:20 AM, Flavio Pompermaier  > wrote:
>
>> What is not clear is how to pass those parameters: from documentation it
>> seems that I have to put an xml in the esb server but it does not make
>> sense, it's something I want to create at runtime.
>> Or is it a parameter I pass with the ws message context?
>>
>>
>> On Wed, Jul 30, 2014 at 6:05 AM, Malaka Silva  wrote:
>>
>>> Hi Flavio,
>>>
>>> You can create your api (application API) whatever the way you prefer.
>>>
>>> Inside these apis you can use connectors. The advantage of using
>>> connectors is you can simple call methods in these connectors with given
>>> parameters.
>>>
>>> All the complexities and domain specific requirements when calling
>>> third-party APIs are encapsulated inside connectors.
>>>
>>> eg:
>>>
>>> User can simple use the following config to search.
>>>
>>> 
>>> xxx
>>> 40.71435,-74.00597
>>> 10
>>> mi
>>>  
>>>
>>> More connectors are in the pipeline and will be released in parallel
>>> with esb 4.9.0 release.
>>>
>>> More information can be found with following links.
>>>
>>> [1] https://docs.wso2.com/display/ESB481/Working+with+Connectors
>>> [2] https://docs.wso2.com/display/ESB481/ESB+Connectors
>>>
>>> Best Regards,
>>> Malaka
>>>
>>>
>>> On Wed, Jul 30, 2014 at 5:26 AM, Flavio Pompermaier <
>>> pomperma...@okkam.it> wrote:
>>>
 Hi to all,
 I'm new to wso2. I found ESB connectors for social media like twitter
 and Facebook.
 What is the right way to connect Facebook API with my application API?
 For example, if I have to retrieve the user details, should my app wrap
 the call to the esb or not?
 If I use the API manager, should I publish only my webapp APIs or the
 Facebook APIs or the esb APIs or whatever...? do I need to register a
 identity provider? This is not really clear to me..

 Thanks in advance,
 FP

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


>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Malaka Silva
>>> Senior Tech Lead
>>> M: +94 777 219 791
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>> Skype : malaka.sampath.silva
>>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>>> Blog : http://mrmalakasilva.blogspot.com/
>>>
>>> WSO2, Inc.
>>> lean . enterprise . middleware
>>> http://www.wso2.com/
>>> http://www.wso2.com/about/team/malaka-silva/
>>> 
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Chunk 13-packs -29/07/2014

2014-07-29 Thread Vijayaratha Vijayasingam
No krishnatha..i skipped tests..in the next build will share..


On 30 July 2014 10:51, Krishantha Samaraweera  wrote:

> Hi Ratha,
>
> Are you building these packs with integration tests.
>
> Can you please share the surefire reports
>
> Thanks,
> Krishantha.
>
>
> On Wed, Jul 30, 2014 at 1:06 AM, Vijayaratha Vijayasingam  > wrote:
>
>>
>> Hi;
>> Please find packs+p2 repo here[1]
>>
>> [1]https://svn.wso2.org/repos/wso2/scratch/chunk13-release/29-07-2014/
>>
>> Thanks.
>> --
>> -Ratha
>> mobile: (+94)755906608
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
-Ratha
mobile: (+94)755906608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Chunk 13-packs -29/07/2014

2014-07-29 Thread Krishantha Samaraweera
Hi Ratha,

Are you building these packs with integration tests.

Can you please share the surefire reports

Thanks,
Krishantha.


On Wed, Jul 30, 2014 at 1:06 AM, Vijayaratha Vijayasingam 
wrote:

>
> Hi;
> Please find packs+p2 repo here[1]
>
> [1]https://svn.wso2.org/repos/wso2/scratch/chunk13-release/29-07-2014/
>
> Thanks.
> --
> -Ratha
> mobile: (+94)755906608
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Esb connector and authentication

2014-07-29 Thread Malaka Silva
You can dynamically extract message context and pass as parameters to the
connectors.

XML you mentioned is more likely the esb configuration. But the parameters
can he hard-coded or dynamic.

Following article gives some more details of how to use it.

http://wso2.com/library/articles/2013/12/esb-connectors-in-action-enterprise-integration/


On Wed, Jul 30, 2014 at 10:20 AM, Flavio Pompermaier 
wrote:

> What is not clear is how to pass those parameters: from documentation it
> seems that I have to put an xml in the esb server but it does not make
> sense, it's something I want to create at runtime.
> Or is it a parameter I pass with the ws message context?
>
>
> On Wed, Jul 30, 2014 at 6:05 AM, Malaka Silva  wrote:
>
>> Hi Flavio,
>>
>> You can create your api (application API) whatever the way you prefer.
>>
>> Inside these apis you can use connectors. The advantage of using
>> connectors is you can simple call methods in these connectors with given
>> parameters.
>>
>> All the complexities and domain specific requirements when calling
>> third-party APIs are encapsulated inside connectors.
>>
>> eg:
>>
>> User can simple use the following config to search.
>>
>> 
>> xxx
>> 40.71435,-74.00597
>> 10
>> mi
>>  
>>
>> More connectors are in the pipeline and will be released in parallel with
>> esb 4.9.0 release.
>>
>> More information can be found with following links.
>>
>> [1] https://docs.wso2.com/display/ESB481/Working+with+Connectors
>> [2] https://docs.wso2.com/display/ESB481/ESB+Connectors
>>
>> Best Regards,
>> Malaka
>>
>>
>> On Wed, Jul 30, 2014 at 5:26 AM, Flavio Pompermaier > > wrote:
>>
>>> Hi to all,
>>> I'm new to wso2. I found ESB connectors for social media like twitter
>>> and Facebook.
>>> What is the right way to connect Facebook API with my application API?
>>> For example, if I have to retrieve the user details, should my app wrap
>>> the call to the esb or not?
>>> If I use the API manager, should I publish only my webapp APIs or the
>>> Facebook APIs or the esb APIs or whatever...? do I need to register a
>>> identity provider? This is not really clear to me..
>>>
>>> Thanks in advance,
>>> FP
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>> 
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>


-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/


Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failed in Jenkins: carbon-storage-management #109

2014-07-29 Thread Maheshika Goonetilleke
Hi Prabath

There is currently some issue with Jenkins Build where all plans are
failing with similar deployment error.

Please refer mail with following subject : Nexus deployment issue {was:
Build failed in Jenkins: carbon4-kernel #383}


On Wed, Jul 30, 2014 at 8:47 AM, Prabath Abeysekera 
wrote:

> Hi Maheshika,
>
> Looks like we've again come across something similar to what Harsha
> reported yesterday. As it appears, uploading of artifacts into Snapshot
> repos doesn't seem to work properly. Would you be able to have a quick
> look?
>
> Cheers,
> Prabath
>
>
> On Wed, Jul 30, 2014 at 1:35 AM,  wrote:
>
>> See 
>>
>> --
>> [...truncated 3669 lines...]
>> [JENKINS] Archiving <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/components/mapred/org.wso2.carbon.identity.authenticator.krb5/target/org.wso2.carbon.identity.authenticator.krb5-4.3.0-SNAPSHOT.jar>
>> to
>> org.wso2.carbon/org.wso2.carbon.identity.authenticator.krb5/4.3.0-SNAPSHOT/org.wso2.carbon.identity.authenticator.krb5-4.3.0-SNAPSHOT.jar
>> [JENKINS] Archiving <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/hadoop/mapred/org.wso2.carbon.identity.authenticator.krb5.ui.feature/target/org.wso2.carbon.identity.authenticator.krb5.ui.feature-4.3.0-SNAPSHOT.zip>
>> to
>> org.wso2.carbon/org.wso2.carbon.identity.authenticator.krb5.ui.feature/4.3.0-SNAPSHOT/org.wso2.carbon.identity.authenticator.krb5.ui.feature-4.3.0-SNAPSHOT.pom
>> [JENKINS] Archiving <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/hadoop/mapred/org.wso2.carbon.identity.authenticator.krb5.ui.feature/target/org.wso2.carbon.identity.authenticator.krb5.ui.feature-4.3.0-SNAPSHOT.zip>
>> to
>> org.wso2.carbon/org.wso2.carbon.identity.authenticator.krb5.ui.feature/4.3.0-SNAPSHOT/org.wso2.carbon.identity.authenticator.krb5.ui.feature-4.3.0-SNAPSHOT.zip
>> [JENKINS] Archiving <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/cassandra-search/pom.xml>
>> to
>> org.wso2.carbon/cassandra-search-feature/4.3.0-SNAPSHOT/cassandra-search-feature-4.3.0-SNAPSHOT.pom
>> [JENKINS] Archiving <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/service-stubs/org.wso2.carbon.cassandra.cluster.mgt.stub/pom.xml>
>> to
>> org.wso2.carbon/org.wso2.carbon.cassandra.cluster.mgt.stub/4.3.0-SNAPSHOT/org.wso2.carbon.cassandra.cluster.mgt.stub-4.3.0-SNAPSHOT.pom
>> [JENKINS] Archiving <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/service-stubs/org.wso2.carbon.cassandra.cluster.mgt.stub/target/org.wso2.carbon.cassandra.cluster.mgt.stub-4.3.0-SNAPSHOT.jar>
>> to
>> org.wso2.carbon/org.wso2.carbon.cassandra.cluster.mgt.stub/4.3.0-SNAPSHOT/org.wso2.carbon.cassandra.cluster.mgt.stub-4.3.0-SNAPSHOT.jar
>> [JENKINS] Archiving <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/hadoop/hdfs/org.wso2.carbon.hdfs.mgt.ui.feature/target/org.wso2.carbon.hdfs.mgt.ui.feature-4.3.0-SNAPSHOT.zip>
>> to
>> org.wso2.carbon/org.wso2.carbon.hdfs.mgt.ui.feature/4.3.0-SNAPSHOT/org.wso2.carbon.hdfs.mgt.ui.feature-4.3.0-SNAPSHOT.pom
>> [JENKINS] Archiving <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/hadoop/hdfs/org.wso2.carbon.hdfs.mgt.ui.feature/target/org.wso2.carbon.hdfs.mgt.ui.feature-4.3.0-SNAPSHOT.zip>
>> to
>> org.wso2.carbon/org.wso2.carbon.hdfs.mgt.ui.feature/4.3.0-SNAPSHOT/org.wso2.carbon.hdfs.mgt.ui.feature-4.3.0-SNAPSHOT.zip
>> [JENKINS] Archiving <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/components/cassandra/org.wso2.carbon.cassandra.examples/pom.xml>
>> to
>> org.wso2.carbon/org.wso2.carbon.cassandra.examples/4.3.0-SNAPSHOT/org.wso2.carbon.cassandra.examples-4.3.0-SNAPSHOT.pom
>> [JENKINS] Archiving <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/components/cassandra/org.wso2.carbon.cassandra.examples/target/org.wso2.carbon.cassandra.examples-4.3.0-SNAPSHOT.jar>
>> to
>> org.wso2.carbon/org.wso2.carbon.cassandra.examples/4.3.0-SNAPSHOT/org.wso2.carbon.cassandra.examples-4.3.0-SNAPSHOT.jar
>> [JENKINS] Archiving <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/hadoop/hdfs/org.wso2.carbon.hdfs.mgt.feature/target/org.wso2.carbon.hdfs.mgt.feature-4.3.0-SNAPSHOT.zip>
>> to
>> org.wso2.carbon/org.wso2.carbon.hdfs.mgt.feature/4.3.0-SNAPSHOT/org.wso2.carbon.hdfs.mgt.feature-4.3.0-SNAPSHOT.pom
>> [JENKINS] Archiving <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/hadoop/hdfs/org.wso2.carbon.hdfs.mgt.feature/target/org.wso2.carbon.hdfs.mgt.feature-4.3.0-SNAPSHOT.zip>
>> to
>> org.wso2.carbon/org.wso2.carbon.hdfs.mgt.feature/4.3.0-SNAPSHOT/org.wso2.carbon.hdfs.mgt.feature-4.3.0-SNAPSHOT.zip
>> [JENKINS] Archiving <
>> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/cassandra-search/org.wso2.carbon.cassandra.search.server.feature/target/org.wso2.carbon.cassandra.search.server.feature-

[Dev] Chunk 13-packs -29/07/2014

2014-07-29 Thread Vijayaratha Vijayasingam
Hi;
Please find packs+p2 repo here[1]

[1]https://svn.wso2.org/repos/wso2/scratch/chunk13-release/29-07-2014/

Thanks.
-- 
-Ratha
mobile: (+94)755906608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] api manager clustering

2014-07-29 Thread Kasun Gajasinghe
Hi Akila,

It seems you have removed the 'wso2registry' dbConfig configuration from
repository/conf/registry.xml. You need to re-add it. This can co-exist with
govregistry dbConfig.


jdbc/WSO2CarbonDB




On Wed, Jul 30, 2014 at 9:12 AM, Akila Nimantha [IT/EKO/LOITS] <
aki...@lolctech.com> wrote:

>  Hi Amila,
>
>
>
> Please check the attachment . I have attached configuration (zip)file of
> Store Node.
>
>
>
> Regards,
>
> Akila
>
>
>
> *From:* Amila De Silva [mailto:ami...@wso2.com]
> *Sent:* Tuesday, July 29, 2014 9:23 PM
> *To:* Akila Nimantha [IT/EKO/LOITS]
> *Cc:* Udara Liyanage; dev@wso2.org
> *Subject:* [Caution: Message contains Suspicious URL content] Re: [Dev]
> api manager clustering
>
>
>
> Hi Akila,
>
>
>
> Seems the registry.xml has been wrongly configured. Can you attach the
> config folder (AM/repository/conf) for the Store node?
>
>
>
>
>
>
>
> On Tue, Jul 29, 2014 at 9:09 PM, Akila Nimantha [IT/EKO/LOITS] <
> aki...@lolctech.com> wrote:
>
>  Hi udara,
>
> when i start four servers, gataway and keyStore nodes works fine but store
> and publisher still not show any url to access store and publisher in
> distributed api manager environment. and i did those configurations without
> ELB.
>
>
> my server offsets.
>
> KeyManager - 1
>
> Gateway - 2
>
> Publisher - 3
>
> Store - 4
>
> in store and publisher nodes, there are same following error,
>
> [2014-07-29 20:49:04,609] ERROR - RegistryContext Couldn't find db
> configuration 'wso2registry'
> [2014-07-29 20:49:04,730] ERROR - EmbeddedRegistryService Failed to
> configure the embedded registry. Invalid data access manager.
> [2014-07-29 20:49:04,732] ERROR - RegistryCoreServiceComponent Failed to
> activate Registry Core bundle
> org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to
> configure the embedded registry. Invalid data access manager.
> at
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.configure(EmbeddedRegistryService.java:167)
> at
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.(EmbeddedRegistryService.java:99)
> at
> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.getEmbeddedRegistryService(RegistryCoreServiceComponent.java:630)
> at
> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.buildRegistryService(RegistryCoreServiceComponent.java:563)
> at
> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:117)
> 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.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:347)
> 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.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:70)
> at
> org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleCo

[Dev] Fixes on MQTT-MB integration for v3.0.0

2014-07-29 Thread Hasitha Amal De Silva
Hi Pamod,

I'm working on fixing any issues in the MQTT-MB integration for v3.0.0 and
ran the test suite you had provided. All mqtt specific features work fine
in non-clustered mode except for wildcards. (as you have rightly mentioned
in thread "Re: Need some insight abt MQTT")

Appreciate if you could point us to the fix done in v2.1.1 to support
wildcards. Im trying to fix it fresh at the moment.

Plan is to get everything working in non-clustered mode and then move on to
fixing any issues coming from clustering.

-- 
Cheers,
Hasitha Amal De Silva
 Software Engineer
Mobile : 0772037426
Blog: http://hastef.wordpress.com/
WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error in using CQL data source for master-datasources.xml

2014-07-29 Thread Dhanuka Ranasinghe
Can you please verify,whether you have added below component to dropins ?

org.wso2.carbon.cassandra.datareader-4.3.0-SNAPSHOT.jar

*Dhanuka Ranasinghe*

Senior Software Engineer
WSO2 Inc. ; http://wso2.com
lean . enterprise . middleware

phone : +94 715381915


On Wed, Jul 30, 2014 at 10:13 AM, Asitha Nanayakkara 
wrote:

> I'v used the following to get a CQL connection
> com.datastax.driver.core.Cluster cluster = InitialContext.doLookup("
> CassandraRepo");
>
> And added the following entry to master-datasources.xml
>
> 
> WSO2_CASSANDRA_DB
> The datasource used for cassandra
> 
> CassandraRepo
> 
> 
> 
> false
> TestCluster
> SNAPPY
> 100
> admin
> admin
> 9042
> 100
> 
> 127.0.0.1
> 
> 
> 2.5
> true
> 100
> RoundRobinPolicy
> 10
> 2
> 
> 
>
> 10
>
> 10
> 10
>
> 10
>
> 10
>
> 10
>
> 10
>
> 10
> 
> 
> 100
> ConstantReconnectionPolicy
> 
> 
> 200
> true
> 200
> true
> 
> 
> 
> 
>
>
>
>
>
> On Wed, Jul 30, 2014 at 7:48 AM, Dhanuka Ranasinghe 
> wrote:
>
>> Can you please let me know the exact steps followed?
>>  On 29 Jul 2014 17:47, "Udara Rathnayake"  wrote:
>>
>>> Hi Asitha,
>>>
>>> Not sure whether you can use this approach or not, previously in ES
>>> product we had following Cassandra data-source[1] definition and able to
>>> create connection using following, But we have used cassandra.cql.jdbc
>>> driver here.
>>>
>>> CarbonDataSource carbonDataSource =
>>> DataSourceManager.getInstance().getDataSourceRepository().getDataSource("SOCIAL_CASSANDRA_DB");
>>> DataSource dataSource = (DataSource) carbonDataSource.getDSObject();
>>> conn = dataSource.getConnection();
>>>
>>> [1]
>>>
>>> 
>>> SOCIAL_CASSANDRA_DB
>>>  The cassandra datasource used for storing social
>>> activities
>>> 
>>>  
>>> jdbc:cassandra://localhost:9160/EVENT_KS
>>>  admin
>>> admin
>>>
>>> org.apache.cassandra.cql.jdbc.CassandraDriver
>>> 
>>>  
>>> 
>>>
>>> Regards,
>>> UdaraR
>>>
>>>
>>> On Tue, Jul 29, 2014 at 2:25 PM, Asitha Nanayakkara 
>>> wrote:
>>>
 Hi,

 While trying to integrate CQL data source feature of
 master-datasources.xml to MB I get an error at run time.

 I've used the following method to get the connection

> com.datastax.driver.core.Cluster cluster
> = InitialContext.doLookup("CassandraRepo");


 Following is the error I get.

 [2014-07-29 14:08:57,035] ERROR
 {org.wso2.carbon.ndatasource.core.DataSourceRepository} -  A data source
 reader cannot be found for the type 'CASSANDRA'
 org.wso2.carbon.ndatasource.common.DataSourceException: A data source
 reader cannot be found for the type 'CASSANDRA'
 at
 org.wso2.carbon.ndatasource.core.DataSourceRepository.createDataSourceObject(DataSourceRepository.java:196)
  at
 org.wso2.carbon.ndatasource.core.DataSourceRepository.registerDataSource(DataSourceRepository.java:359)
 at
 org.wso2.carbon.ndatasource.core.DataSourceRepository.addDataSource(DataSourceRepository.java:473)
  at
 org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:185)
 at
 org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:157)
  at
 org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSystemDataSources(DataSourceServiceComponent.java:191)
 at
 org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setSecretCallbackHandlerService(DataSourceServiceComponent.java:177)
  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.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:432)
  at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)
 at
 org.eclipse.equinox.internal.ds.

Re: [Dev] Esb connector and authentication

2014-07-29 Thread Flavio Pompermaier
What is not clear is how to pass those parameters: from documentation it
seems that I have to put an xml in the esb server but it does not make
sense, it's something I want to create at runtime.
Or is it a parameter I pass with the ws message context?


On Wed, Jul 30, 2014 at 6:05 AM, Malaka Silva  wrote:

> Hi Flavio,
>
> You can create your api (application API) whatever the way you prefer.
>
> Inside these apis you can use connectors. The advantage of using
> connectors is you can simple call methods in these connectors with given
> parameters.
>
> All the complexities and domain specific requirements when calling
> third-party APIs are encapsulated inside connectors.
>
> eg:
>
> User can simple use the following config to search.
>
> 
> xxx
> 40.71435,-74.00597
> 10
> mi
>  
>
> More connectors are in the pipeline and will be released in parallel with
> esb 4.9.0 release.
>
> More information can be found with following links.
>
> [1] https://docs.wso2.com/display/ESB481/Working+with+Connectors
> [2] https://docs.wso2.com/display/ESB481/ESB+Connectors
>
> Best Regards,
> Malaka
>
>
> On Wed, Jul 30, 2014 at 5:26 AM, Flavio Pompermaier 
> wrote:
>
>> Hi to all,
>> I'm new to wso2. I found ESB connectors for social media like twitter and
>> Facebook.
>> What is the right way to connect Facebook API with my application API?
>> For example, if I have to retrieve the user details, should my app wrap
>> the call to the esb or not?
>> If I use the API manager, should I publish only my webapp APIs or the
>> Facebook APIs or the esb APIs or whatever...? do I need to register a
>> identity provider? This is not really clear to me..
>>
>> Thanks in advance,
>> FP
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error in using CQL data source for master-datasources.xml

2014-07-29 Thread Asitha Nanayakkara
I'v used the following to get a CQL connection
com.datastax.driver.core.Cluster cluster = InitialContext.doLookup("
CassandraRepo");

And added the following entry to master-datasources.xml


WSO2_CASSANDRA_DB
The datasource used for cassandra

CassandraRepo



false
TestCluster
SNAPPY
100
admin
admin
9042
100

127.0.0.1


2.5
true
100
RoundRobinPolicy
10
2



10

10
10

10

10

10

10

10


100
ConstantReconnectionPolicy


200
true
200
true









On Wed, Jul 30, 2014 at 7:48 AM, Dhanuka Ranasinghe 
wrote:

> Can you please let me know the exact steps followed?
>  On 29 Jul 2014 17:47, "Udara Rathnayake"  wrote:
>
>> Hi Asitha,
>>
>> Not sure whether you can use this approach or not, previously in ES
>> product we had following Cassandra data-source[1] definition and able to
>> create connection using following, But we have used cassandra.cql.jdbc
>> driver here.
>>
>> CarbonDataSource carbonDataSource =
>> DataSourceManager.getInstance().getDataSourceRepository().getDataSource("SOCIAL_CASSANDRA_DB");
>> DataSource dataSource = (DataSource) carbonDataSource.getDSObject();
>> conn = dataSource.getConnection();
>>
>> [1]
>>
>> 
>> SOCIAL_CASSANDRA_DB
>>  The cassandra datasource used for storing social
>> activities
>> 
>>  
>> jdbc:cassandra://localhost:9160/EVENT_KS
>>  admin
>> admin
>>
>> org.apache.cassandra.cql.jdbc.CassandraDriver
>> 
>>  
>> 
>>
>> Regards,
>> UdaraR
>>
>>
>> On Tue, Jul 29, 2014 at 2:25 PM, Asitha Nanayakkara 
>> wrote:
>>
>>> Hi,
>>>
>>> While trying to integrate CQL data source feature of
>>> master-datasources.xml to MB I get an error at run time.
>>>
>>> I've used the following method to get the connection
>>>
 com.datastax.driver.core.Cluster cluster
 = InitialContext.doLookup("CassandraRepo");
>>>
>>>
>>> Following is the error I get.
>>>
>>> [2014-07-29 14:08:57,035] ERROR
>>> {org.wso2.carbon.ndatasource.core.DataSourceRepository} -  A data source
>>> reader cannot be found for the type 'CASSANDRA'
>>> org.wso2.carbon.ndatasource.common.DataSourceException: A data source
>>> reader cannot be found for the type 'CASSANDRA'
>>> at
>>> org.wso2.carbon.ndatasource.core.DataSourceRepository.createDataSourceObject(DataSourceRepository.java:196)
>>>  at
>>> org.wso2.carbon.ndatasource.core.DataSourceRepository.registerDataSource(DataSourceRepository.java:359)
>>> at
>>> org.wso2.carbon.ndatasource.core.DataSourceRepository.addDataSource(DataSourceRepository.java:473)
>>>  at
>>> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:185)
>>> at
>>> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:157)
>>>  at
>>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSystemDataSources(DataSourceServiceComponent.java:191)
>>> at
>>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setSecretCallbackHandlerService(DataSourceServiceComponent.java:177)
>>>  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.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
>>> at
>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:432)
>>>  at
>>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)
>>> 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(Filt

Re: [Dev] Is there a direct method to retrieve number of assets from the registry?

2014-07-29 Thread Ayesha Dissanayaka
Hi all,

According to the off-line discussions I had with Subash and Ruchira, how
governance handles pagination in UI is as follows.

   - Use 'getAllGenericArtifactIds' method [01] to get all the asset-id's
   of a given type.
   - Get asset count from the result.
   - Then implement pagination logic based on defined 'number of items for
   a page'.

If we use same methodology to support pagination in ES,  we'll have to
perform above steps at each time the page is refreshed etc. This will be a
blocker in the perspective of performance. Further, when I look into the
implementation of "getAllGenericArtifactIds" it calls following method.[02]

> public String[] getAllGovernanceArtifactIds() throws GovernanceException {
> GovernanceArtifact[] artifacts = getAllGovernanceArtifacts();
> String[] artifactIds = new String[artifacts.length];
> for (int i = 0; i < artifacts.length; i++) {
> artifactIds[i] = artifacts[i].getId();
> }
> return artifactIds;
> }
>

Therefore I think using above methodology to handle pagination[to get
number of pages] is not acceptable due to the amount of back-end processing.

I suggest that we better have a method of returning a count of assets of a
given type. (something like caching asset count).

WDYT?

[01]
https://github.com/wso2-dev/carbon-governance/blob/master/components/governance/org.wso2.carbon.governance.api/src/main/java/org/wso2/carbon/governance/api/generic/GenericArtifactManager.java
[02]
https://github.com/wso2-dev/carbon-governance/blob/master/components/governance/org.wso2.carbon.governance.api/src/main/java/org/wso2/carbon/governance/api/common/GovernanceArtifactManager.java



On Tue, Jul 29, 2014 at 4:52 PM, Ayesha Dissanayaka  wrote:

> Hi,
>
> In order to provide pagination via ES-API we need to get the number of
> available assets of a given type.
>
>> ex: Registry.ArtifactManager.getCount();
>>
>
> If registry provides such direct method, what would be it? If not, is it
> possible to provide such method or what would be the best approach?
>
> --
> *Ayesha Dissanayaka*
> Software Engineer,
> WSO2, Inc : http://wso2.co
> 
> 20, Palmgrove Avenue, Colombo 3
> E-Mail: aye...@tryso2.com 
>



-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com

20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Uploading zip file with JaggeryAdminService

2014-07-29 Thread Chanaka Fernando
Hi,

I am trying to upload a zip file to Jaggery server using the admin service
exposed by the server. Here I am using the
https://localhost:9443/admin/services/JaggeryAppAdmin service to upload the
zip file.

The request for uploading a file (extracted from WSDL) is like below.

http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://org.apache.axis2/xsd"; xmlns:xsd1="
http://mgt.webapp.carbon.wso2.org/xsd";>
   
   
  
 
 

cid:1008642448031

test

1.0
 
  
   



I am writing a simple jaggery script to achieve this. Here is my Jaggery
code.

<%



var file = new File("app1.zip");
file.open("r");
   // print(file.getStream());


// Sending a request to Jaggery-Admin service
var ws = require("ws");

var req = new ws.WSRequest();
var options = new Array();
options.useSOAP = 1.2;
options.action = "urn:uploadWebapp";


var payload = 'http://org.apache.axis2/xsd";
xmlns:xsd1="http://mgt.webapp.carbon.wso2.org/xsd";>'
+ file.getStream() + '' + file.getName()
+
'1.0.0';
var result;

try {

req.open(options,"
https://localhost:9443/admin/services/JaggeryAppAdmin";, false, "admin",
"admin");

req.send(payload);

// Get the result
result = req;


} catch (e) {

 print(e.toString());

}

file.close();

%>


This is not working with the above jaggery script. The issue I am facing
here is mapping the dataHandler element to the file.getStream() object.

Is there any better way to achieve this?


Thanks,
Chanaka

-- 
--
Chanaka Fernando
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


[Dev] [STORE-398] Search doesn't work on asset view

2014-07-29 Thread Udara Rathnayake
Hi Pubudu,

Is it possible for you to provide configuration information[1] for your
project artifact type.
I tried to reproduce this[2] with a default asset type, but I'm able to
generate the search form and search according to the asset type definition
in the asset view page.

[1] RXT definition, life-cycle definition, other store/publisher configs
[2] https://wso2.org/jira/browse/STORE-398

Regards,
UdaraR
-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Esb connector and authentication

2014-07-29 Thread Malaka Silva
Hi Flavio,

You can create your api (application API) whatever the way you prefer.

Inside these apis you can use connectors. The advantage of using connectors
is you can simple call methods in these connectors with given parameters.

All the complexities and domain specific requirements when calling
third-party APIs are encapsulated inside connectors.

eg:

User can simple use the following config to search.


   xxx
   40.71435,-74.00597
   10
   mi


More connectors are in the pipeline and will be released in parallel with
esb 4.9.0 release.

More information can be found with following links.

[1] https://docs.wso2.com/display/ESB481/Working+with+Connectors
[2] https://docs.wso2.com/display/ESB481/ESB+Connectors

Best Regards,
Malaka


On Wed, Jul 30, 2014 at 5:26 AM, Flavio Pompermaier 
wrote:

> Hi to all,
> I'm new to wso2. I found ESB connectors for social media like twitter and
> Facebook.
> What is the right way to connect Facebook API with my application API?
> For example, if I have to retrieve the user details, should my app wrap
> the call to the esb or not?
> If I use the API manager, should I publish only my webapp APIs or the
> Facebook APIs or the esb APIs or whatever...? do I need to register a
> identity provider? This is not really clear to me..
>
> Thanks in advance,
> FP
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/


Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Carbon Kernel 4.3.0 - M1 Release

2014-07-29 Thread Sameera Jayasoma
Hi Folks,

We are planning to release Carbon Kernel 4.3.0 M1 in the first week of
August (7th). This will include following features as well as many bug
fixes.

   - Improved Carbon QOS functionality
   - Pluggable log providers for log viewer
   - Support SVN 1.7 and 1.8 for Deployment Synchronization module.
   - Cross-cluster cache invalidation mechanism.


Shameera will be the release manager for Carbon 4.3.0.


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://sameera.adahas.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


Re: [Dev] ETA for on-premise App Factory

2014-07-29 Thread Janaka Ranabahu
Hi,

I was unable to attend to this past few days due to some personal matters.
I will get them done today. sorry for the inconvenience.

Thanks,
Janaka


On Wed, Jul 30, 2014 at 1:39 AM, Dmitry Sotnikov  wrote:

> This (scripts and docs for on-premise deployment) didn't get published,
> did it?
>
> Is there a new ETA?
>
> (Would like to have the answer if customers ask again.)
>
> Dmitry
>
>
> On Wed, Jul 23, 2014 at 8:23 PM, Dmitry Sotnikov  wrote:
>
>> *Dimuthu*, would these and the work that Janaka and Samith are doing be
>> sufficient for App Factory on-premise installation? User will still need to
>> download the actual bits and scripts - will we publish everything around
>> July 29?
>>
>> (Not sure whether you saw this today - another customer also said in
>> email he wanted to install AF on premises - the interest is growing, which
>> is a good thing.)
>>
>> Dmitry
>>
>>
>> On Wed, Jul 23, 2014 at 8:19 PM, Nirdesha Munasinghe 
>> wrote:
>>
>>> Done. 2.0.1 docs are public.
>>>
>>> Thanks,
>>> -Nirdesha
>>>
>>>
>>> On Wed, Jul 23, 2014 at 5:17 PM, Dimuthu Leelarathne 
>>> wrote:
>>>
 Hi,

 If we have the docs ready, then it is a matter of opening it up. If we
 have continuous deployment I believe our doc strategy should change to
 reflect that?

 @Nirdesha - Could we just make 2.0.1 docs public? So that as we deploy
 things into cloud people can access the docs?

 thanks,
 dimuthu



 On Wed, Jul 23, 2014 at 4:53 PM, Dmitry Sotnikov 
 wrote:

> Janaka,
>
> This comment by Nirdesha reads to me like a statement that although
> the scripts and docs will be created, it will not be until 2.0.1 release
> that they will be made public - so potentially much later than July 29. Is
> that so?
>
> As we are not going to give scripts with AF 2.0.0, I will remove that
>> section from the 2.0.0 docs. We will be adding the content to 2.0.1 docs.
>
>
> Dmitry
>
>
> On Wed, Jul 23, 2014 at 3:11 PM, Janaka Ranabahu 
> wrote:
>
>> Hi,
>>
>> Our plan is to complete the docs by 29 July. Samith will be working
>> on these with me.
>>
>> Thanks,
>> Janaka
>>
>>
>> On Wed, Jul 23, 2014 at 11:42 AM, Nirdesha Munasinghe <
>> nirde...@wso2.com> wrote:
>>
>>> Janaka will be adding the draft steps to wiki or in a Google doc.
>>> Please let me know once you are done so that I can complete this page.
>>>
>>> As we are not going to give scripts with AF 2.0.0, I will remove
>>> that section from the 2.0.0 docs. We will be adding the content to 2.0.1
>>> docs.
>>>
>>> Thanks,
>>> -Nirdesha
>>>
>>>
>>> On Wed, Jul 23, 2014 at 11:08 AM, Dmitry Sotnikov 
>>> wrote:
>>>
 Quick check on the status of this:

- The scripts have been released, right?
- What is the ETA for documentation on using them to install AF?

 Dmitry


 On Sat, Jul 5, 2014 at 4:10 PM, Dmitry Sotnikov 
 wrote:

> Thanks Harsha!
>
> I will let the customer know it is coming within a couple of weeks
> or so.
>
> Please let me know when everything is ready.
>
> Dmitry
> On Jul 4, 2014 7:01 PM, "Harsha Thirimanna" 
> wrote:
>
>> Hi Dimitry,
>>
>> We are in final stage of this.
>>
>> After finish the appfactory puppet scripts we hope to run it with
>> privatepaas puppet and do the complete test.
>>
>> We can finish it on next friday (11th July).
>>
>> Thanks
>>  On Jul 4, 2014 5:20 PM, "Dmitry Sotnikov" 
>> wrote:
>>
>>> An App Cloud user just asked me when the on-premise App Factory
>>> 2 support coming.
>>>
>>> He wants to install it but docs are saying that this is not
>>> possible:
>>> https://docs.wso2.com/display/AF200/Installing+On-Premise
>>>
>>> Thanks!
>>> Dmitry
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>


 --
 Dmitry Sotnikov
 VP of Cloud; WSO2, Inc.;  http://wso2.com/
 email: dmi...@wso2.com; cell: +1.949.303.9653; Skype: DSotnikov
 Lean . Enterprise . Middleware

  

>>>
>>>
>>>
>>> --
>>>
>>> Thanks,
>>>
>>> Nirdesha Munasinghe,
>>> WSO2 Inc.
>>> Web:http://wso2.com
>>>
>>> Mobile: +94 776321920
>>>
>>
>>
>>
>> --
>> *Janaka Ranabahu*
>> Senior Software Engineer; WSO2 Inc.; http://wso2.com
>>
>>
>> * E-mail: jan...@wso2.c

Re: [Dev] Build failed in Jenkins: carbon-storage-management #109

2014-07-29 Thread Prabath Abeysekera
Hi Maheshika,

Looks like we've again come across something similar to what Harsha
reported yesterday. As it appears, uploading of artifacts into Snapshot
repos doesn't seem to work properly. Would you be able to have a quick
look?

Cheers,
Prabath


On Wed, Jul 30, 2014 at 1:35 AM,  wrote:

> See 
>
> --
> [...truncated 3669 lines...]
> [JENKINS] Archiving <
> https://wso2.org/jenkins/job/carbon-storage-management/ws/components/mapred/org.wso2.carbon.identity.authenticator.krb5/target/org.wso2.carbon.identity.authenticator.krb5-4.3.0-SNAPSHOT.jar>
> to
> org.wso2.carbon/org.wso2.carbon.identity.authenticator.krb5/4.3.0-SNAPSHOT/org.wso2.carbon.identity.authenticator.krb5-4.3.0-SNAPSHOT.jar
> [JENKINS] Archiving <
> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/hadoop/mapred/org.wso2.carbon.identity.authenticator.krb5.ui.feature/target/org.wso2.carbon.identity.authenticator.krb5.ui.feature-4.3.0-SNAPSHOT.zip>
> to
> org.wso2.carbon/org.wso2.carbon.identity.authenticator.krb5.ui.feature/4.3.0-SNAPSHOT/org.wso2.carbon.identity.authenticator.krb5.ui.feature-4.3.0-SNAPSHOT.pom
> [JENKINS] Archiving <
> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/hadoop/mapred/org.wso2.carbon.identity.authenticator.krb5.ui.feature/target/org.wso2.carbon.identity.authenticator.krb5.ui.feature-4.3.0-SNAPSHOT.zip>
> to
> org.wso2.carbon/org.wso2.carbon.identity.authenticator.krb5.ui.feature/4.3.0-SNAPSHOT/org.wso2.carbon.identity.authenticator.krb5.ui.feature-4.3.0-SNAPSHOT.zip
> [JENKINS] Archiving <
> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/cassandra-search/pom.xml>
> to
> org.wso2.carbon/cassandra-search-feature/4.3.0-SNAPSHOT/cassandra-search-feature-4.3.0-SNAPSHOT.pom
> [JENKINS] Archiving <
> https://wso2.org/jenkins/job/carbon-storage-management/ws/service-stubs/org.wso2.carbon.cassandra.cluster.mgt.stub/pom.xml>
> to
> org.wso2.carbon/org.wso2.carbon.cassandra.cluster.mgt.stub/4.3.0-SNAPSHOT/org.wso2.carbon.cassandra.cluster.mgt.stub-4.3.0-SNAPSHOT.pom
> [JENKINS] Archiving <
> https://wso2.org/jenkins/job/carbon-storage-management/ws/service-stubs/org.wso2.carbon.cassandra.cluster.mgt.stub/target/org.wso2.carbon.cassandra.cluster.mgt.stub-4.3.0-SNAPSHOT.jar>
> to
> org.wso2.carbon/org.wso2.carbon.cassandra.cluster.mgt.stub/4.3.0-SNAPSHOT/org.wso2.carbon.cassandra.cluster.mgt.stub-4.3.0-SNAPSHOT.jar
> [JENKINS] Archiving <
> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/hadoop/hdfs/org.wso2.carbon.hdfs.mgt.ui.feature/target/org.wso2.carbon.hdfs.mgt.ui.feature-4.3.0-SNAPSHOT.zip>
> to
> org.wso2.carbon/org.wso2.carbon.hdfs.mgt.ui.feature/4.3.0-SNAPSHOT/org.wso2.carbon.hdfs.mgt.ui.feature-4.3.0-SNAPSHOT.pom
> [JENKINS] Archiving <
> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/hadoop/hdfs/org.wso2.carbon.hdfs.mgt.ui.feature/target/org.wso2.carbon.hdfs.mgt.ui.feature-4.3.0-SNAPSHOT.zip>
> to
> org.wso2.carbon/org.wso2.carbon.hdfs.mgt.ui.feature/4.3.0-SNAPSHOT/org.wso2.carbon.hdfs.mgt.ui.feature-4.3.0-SNAPSHOT.zip
> [JENKINS] Archiving <
> https://wso2.org/jenkins/job/carbon-storage-management/ws/components/cassandra/org.wso2.carbon.cassandra.examples/pom.xml>
> to
> org.wso2.carbon/org.wso2.carbon.cassandra.examples/4.3.0-SNAPSHOT/org.wso2.carbon.cassandra.examples-4.3.0-SNAPSHOT.pom
> [JENKINS] Archiving <
> https://wso2.org/jenkins/job/carbon-storage-management/ws/components/cassandra/org.wso2.carbon.cassandra.examples/target/org.wso2.carbon.cassandra.examples-4.3.0-SNAPSHOT.jar>
> to
> org.wso2.carbon/org.wso2.carbon.cassandra.examples/4.3.0-SNAPSHOT/org.wso2.carbon.cassandra.examples-4.3.0-SNAPSHOT.jar
> [JENKINS] Archiving <
> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/hadoop/hdfs/org.wso2.carbon.hdfs.mgt.feature/target/org.wso2.carbon.hdfs.mgt.feature-4.3.0-SNAPSHOT.zip>
> to
> org.wso2.carbon/org.wso2.carbon.hdfs.mgt.feature/4.3.0-SNAPSHOT/org.wso2.carbon.hdfs.mgt.feature-4.3.0-SNAPSHOT.pom
> [JENKINS] Archiving <
> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/hadoop/hdfs/org.wso2.carbon.hdfs.mgt.feature/target/org.wso2.carbon.hdfs.mgt.feature-4.3.0-SNAPSHOT.zip>
> to
> org.wso2.carbon/org.wso2.carbon.hdfs.mgt.feature/4.3.0-SNAPSHOT/org.wso2.carbon.hdfs.mgt.feature-4.3.0-SNAPSHOT.zip
> [JENKINS] Archiving <
> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/cassandra-search/org.wso2.carbon.cassandra.search.server.feature/target/org.wso2.carbon.cassandra.search.server.feature-4.3.0-SNAPSHOT.zip>
> to
> org.wso2.carbon/org.wso2.carbon.cassandra.search.server.feature/4.3.0-SNAPSHOT/org.wso2.carbon.cassandra.search.server.feature-4.3.0-SNAPSHOT.pom
> [JENKINS] Archiving <
> https://wso2.org/jenkins/job/carbon-storage-management/ws/features/cassandra-search/org.wso2.carbon.cassandra.search.server.feature/target/org.wso2.carbon.cassandra.search.server

Re: [Dev] How to implement CARBON-14688

2014-07-29 Thread Sameera Jayasoma
On Tue, Jul 29, 2014 at 5:31 PM, Jayanga Dissanayake 
wrote:

>
>
> *Jayanga Dissanayake*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> email: jaya...@wso2.com
> mobile: +94772207259
>
>
> On Tue, Jul 29, 2014 at 5:07 PM, Pubudu Dissanayake 
> wrote:
>
>> +1, Restart later flag has to be properly maintain.
>>
>>
>> On Tue, Jul 29, 2014 at 4:48 PM, Sameera Jayasoma 
>> wrote:
>>
>>> +1
>>>
>>>
>>>
>>> On Tue, Jul 29, 2014 at 4:44 PM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 Why this is private?  Please move to dev.

 -- Sent from mobile --

 On 29 Jul 2014 12:17, "Jayanga Dissanayake"  wrote:
 >
 > Hi,
 >
 > I am currently working on [1]. As per the ticket, it wants to restart
 the server automatically after installing/uninstalling a feature. As per
 our discussion yesterday, we decided to let the user to restart the sever
 manually, but to provide him with the options to restart now or restart
 later.
 >
 > Initially the the idea was to give a pop up like interface.
 >
 > But when I see the steps carried out by the user when installing a
 feature. User comes into a page like [2][3]. So instead of having a finish
 button, Shall I change it to two buttons  (Restart Now, Restart Later)

>>>

+1 for the change.

Thanks,
Sameera.



>  >
 > If the user clicks on Restart Now, it will restart the server
 immediately.
 > If the user clicks on Restart later, it will do, what it did when the
 finished button  is clicked as per the current implementation
 > These two buttons will be place in the [2][3], not in a popup.
 >
 > So the change become much easier and more convenient to the user as
 it becomes a last step in the feature installing.
 >
 > [1] https://wso2.org/jira/browse/CARBON-14688
 > [2] Selection_053.png
 > [3] Selection_054.png
 >
 > Thanks.
 > Jayanga Dissanayake
 > Senior Software Engineer
 > WSO2 Inc. - http://wso2.com/
 > lean . enterprise . middleware
 > email: jaya...@wso2.com
 > mobile: +94772207259


>>>
>>>
>>> --
>>> Sameera Jayasoma,
>>> Software Architect,
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://sameera.adahas.org
>>> twitter: https://twitter.com/sameerajayasoma
>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>> Mobile: 0094776364456
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> *Pubudu Dissanayake*
>>  Software Engineer
>>
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> Mob: + 94 775 503 304
>>
>>  Blog: http://geekdetected.wordpress.com/
>>  Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
>> 
>> Flickr : https://www.flickr.com/photos/pubudufx/
>> Twitter: https://twitter.com/GeekInAction
>>
>>
>


-- 
Sameera Jayasoma,
Software Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://sameera.adahas.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


[Dev] [STORE-445] How to display super tenant's user names in social framework

2014-07-29 Thread Udara Rathnayake
Hi all,

In order to solve the following jira[1] how can we do the $Subject?
We can simply ignore carbon.super part from the user-name within UI.

Above proposed solution will display udara@carbon.super 's  name as *udara*
and ud...@wso2.org 's name as *ud...@wso2.org *.

Is there a better solution to make this  name meaningful?



​

[1] https://wso2.org/jira/browse/STORE-445

Regards,
UdaraR
-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error in using CQL data source for master-datasources.xml

2014-07-29 Thread Dhanuka Ranasinghe
Can you please let me know the exact steps followed?
On 29 Jul 2014 17:47, "Udara Rathnayake"  wrote:

> Hi Asitha,
>
> Not sure whether you can use this approach or not, previously in ES
> product we had following Cassandra data-source[1] definition and able to
> create connection using following, But we have used cassandra.cql.jdbc
> driver here.
>
> CarbonDataSource carbonDataSource =
> DataSourceManager.getInstance().getDataSourceRepository().getDataSource("SOCIAL_CASSANDRA_DB");
> DataSource dataSource = (DataSource) carbonDataSource.getDSObject();
> conn = dataSource.getConnection();
>
> [1]
>
> 
> SOCIAL_CASSANDRA_DB
>  The cassandra datasource used for storing social
> activities
> 
>  
> jdbc:cassandra://localhost:9160/EVENT_KS
>  admin
> admin
>
> org.apache.cassandra.cql.jdbc.CassandraDriver
> 
>  
> 
>
> Regards,
> UdaraR
>
>
> On Tue, Jul 29, 2014 at 2:25 PM, Asitha Nanayakkara 
> wrote:
>
>> Hi,
>>
>> While trying to integrate CQL data source feature of
>> master-datasources.xml to MB I get an error at run time.
>>
>> I've used the following method to get the connection
>>
>>> com.datastax.driver.core.Cluster cluster
>>> = InitialContext.doLookup("CassandraRepo");
>>
>>
>> Following is the error I get.
>>
>> [2014-07-29 14:08:57,035] ERROR
>> {org.wso2.carbon.ndatasource.core.DataSourceRepository} -  A data source
>> reader cannot be found for the type 'CASSANDRA'
>> org.wso2.carbon.ndatasource.common.DataSourceException: A data source
>> reader cannot be found for the type 'CASSANDRA'
>> at
>> org.wso2.carbon.ndatasource.core.DataSourceRepository.createDataSourceObject(DataSourceRepository.java:196)
>>  at
>> org.wso2.carbon.ndatasource.core.DataSourceRepository.registerDataSource(DataSourceRepository.java:359)
>> at
>> org.wso2.carbon.ndatasource.core.DataSourceRepository.addDataSource(DataSourceRepository.java:473)
>>  at
>> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:185)
>> at
>> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:157)
>>  at
>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSystemDataSources(DataSourceServiceComponent.java:191)
>> at
>> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setSecretCallbackHandlerService(DataSourceServiceComponent.java:177)
>>  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.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:432)
>>  at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)
>> 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.securevault.internal.SecretManagerInitializerComponent.activate(SecretManagerInitializerComponent.java:48)
>> 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.refle

[Dev] Esb connector and authentication

2014-07-29 Thread Flavio Pompermaier
Hi to all,
I'm new to wso2. I found ESB connectors for social media like twitter and
Facebook.
What is the right way to connect Facebook API with my application API?
For example, if I have to retrieve the user details, should my app wrap the
call to the esb or not?
If I use the API manager, should I publish only my webapp APIs or the
Facebook APIs or the esb APIs or whatever...? do I need to register a
identity provider? This is not really clear to me..

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


Re: [Dev] ETA for on-premise App Factory

2014-07-29 Thread Dmitry Sotnikov
This (scripts and docs for on-premise deployment) didn't get published, did
it?

Is there a new ETA?

(Would like to have the answer if customers ask again.)

Dmitry


On Wed, Jul 23, 2014 at 8:23 PM, Dmitry Sotnikov  wrote:

> *Dimuthu*, would these and the work that Janaka and Samith are doing be
> sufficient for App Factory on-premise installation? User will still need to
> download the actual bits and scripts - will we publish everything around
> July 29?
>
> (Not sure whether you saw this today - another customer also said in email
> he wanted to install AF on premises - the interest is growing, which is a
> good thing.)
>
> Dmitry
>
>
> On Wed, Jul 23, 2014 at 8:19 PM, Nirdesha Munasinghe 
> wrote:
>
>> Done. 2.0.1 docs are public.
>>
>> Thanks,
>> -Nirdesha
>>
>>
>> On Wed, Jul 23, 2014 at 5:17 PM, Dimuthu Leelarathne 
>> wrote:
>>
>>> Hi,
>>>
>>> If we have the docs ready, then it is a matter of opening it up. If we
>>> have continuous deployment I believe our doc strategy should change to
>>> reflect that?
>>>
>>> @Nirdesha - Could we just make 2.0.1 docs public? So that as we deploy
>>> things into cloud people can access the docs?
>>>
>>> thanks,
>>> dimuthu
>>>
>>>
>>>
>>> On Wed, Jul 23, 2014 at 4:53 PM, Dmitry Sotnikov 
>>> wrote:
>>>
 Janaka,

 This comment by Nirdesha reads to me like a statement that although the
 scripts and docs will be created, it will not be until 2.0.1 release that
 they will be made public - so potentially much later than July 29. Is that
 so?

 As we are not going to give scripts with AF 2.0.0, I will remove that
> section from the 2.0.0 docs. We will be adding the content to 2.0.1 docs.


 Dmitry


 On Wed, Jul 23, 2014 at 3:11 PM, Janaka Ranabahu 
 wrote:

> Hi,
>
> Our plan is to complete the docs by 29 July. Samith will be working on
> these with me.
>
> Thanks,
> Janaka
>
>
> On Wed, Jul 23, 2014 at 11:42 AM, Nirdesha Munasinghe <
> nirde...@wso2.com> wrote:
>
>> Janaka will be adding the draft steps to wiki or in a Google doc.
>> Please let me know once you are done so that I can complete this page.
>>
>> As we are not going to give scripts with AF 2.0.0, I will remove that
>> section from the 2.0.0 docs. We will be adding the content to 2.0.1 docs.
>>
>> Thanks,
>> -Nirdesha
>>
>>
>> On Wed, Jul 23, 2014 at 11:08 AM, Dmitry Sotnikov 
>> wrote:
>>
>>> Quick check on the status of this:
>>>
>>>- The scripts have been released, right?
>>>- What is the ETA for documentation on using them to install AF?
>>>
>>> Dmitry
>>>
>>>
>>> On Sat, Jul 5, 2014 at 4:10 PM, Dmitry Sotnikov 
>>> wrote:
>>>
 Thanks Harsha!

 I will let the customer know it is coming within a couple of weeks
 or so.

 Please let me know when everything is ready.

 Dmitry
 On Jul 4, 2014 7:01 PM, "Harsha Thirimanna" 
 wrote:

> Hi Dimitry,
>
> We are in final stage of this.
>
> After finish the appfactory puppet scripts we hope to run it with
> privatepaas puppet and do the complete test.
>
> We can finish it on next friday (11th July).
>
> Thanks
>  On Jul 4, 2014 5:20 PM, "Dmitry Sotnikov" 
> wrote:
>
>> An App Cloud user just asked me when the on-premise App Factory 2
>> support coming.
>>
>> He wants to install it but docs are saying that this is not
>> possible:
>> https://docs.wso2.com/display/AF200/Installing+On-Premise
>>
>> Thanks!
>> Dmitry
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>>>
>>>
>>> --
>>> Dmitry Sotnikov
>>> VP of Cloud; WSO2, Inc.;  http://wso2.com/
>>> email: dmi...@wso2.com; cell: +1.949.303.9653; Skype: DSotnikov
>>> Lean . Enterprise . Middleware
>>>
>>>  
>>>
>>
>>
>>
>> --
>>
>> Thanks,
>>
>> Nirdesha Munasinghe,
>> WSO2 Inc.
>> Web:http://wso2.com
>>
>> Mobile: +94 776321920
>>
>
>
>
> --
> *Janaka Ranabahu*
> Senior Software Engineer; WSO2 Inc.; http://wso2.com
>
>
> * E-mail: jan...@wso2.com **M: **+94 718370861
> <%2B94%20718370861>*
>
>
> Lean . Enterprise . Middleware
>
>


 --
 Dmitry Sotnikov
 VP of Cloud; WSO2, Inc.;  http://wso2.com/
 email: dmi...@wso2.com; cell: +1.949.303.9653; Skype: DSotnikov
 Lean . Enterprise . Middleware

  

>>>
>>>
>>>
>>> --
>>> Dimuthu Leelarathne

Re: [Dev] [Patch method support for SCIM end points]

2014-07-29 Thread Sagara Gunathunga
Hi Gayan,

I couldn't find any PR related to a test case, can you please attend to
needful ?

Thanks !

On Tue, Jul 29, 2014 at 2:33 PM, Gayan Gunawardana  wrote:

> Hi All,
>
> Please review and merge [1]
>
> [1] https://github.com/wso2-dev/carbon-deployment/pull/13
>
> Thanks,
> Gayan
>
>
> On Fri, Jul 25, 2014 at 9:54 PM, Prabath Siriwardena 
> wrote:
>
>>
>>
>>
>> On Fri, Jul 25, 2014 at 9:52 PM, Sagara Gunathunga 
>> wrote:
>>
>>>
>>>
>>>
>>> On Fri, Jul 25, 2014 at 5:37 PM, Gayan Gunawardana 
>>> wrote:
>>>
 Hi All,

 I have added custom implementation for PATCH as mention in [1]. What is
 the package naming convention we can use for this implementation. Will it
 be fine something like "org.wso2.identity.annotations" ?

 [1]
 http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-HTTPMethod


>>>
>>>
>>> In case if you want to move this class into cxf.ext[1] component you
>>> could use "org.wso2.carbon.webapp.ext.jaxrs.designator" package name,
>>> this[2] may help you to write test cases for this.
>>>
>>
>> +1
>>
>> Thanks & regards,
>> -Prabath
>>
>>
>>>
>>> [1] -
>>> https://github.com/wso2-dev/carbon-deployment/tree/master/components/webapp-mgt/org.wso2.carbon.cxf.ext
>>> [2] -
>>> https://github.com/wso2-dev/product-as/tree/master/modules/integration/tests-integration/src/test/java/org/wso2/appserver/integration/tests/webapp/classloading
>>>
>>> Thanks !
>>>
>>>


 On Mon, Jul 7, 2014 at 12:22 PM, Gayan Gunawardana 
 wrote:

> Thanks Ishara & Supun.
>
> Will proceed accordingly.
>
> Thanks,
> Gayan
>
>
> On Mon, Jul 7, 2014 at 12:11 PM, Supun Malinga 
> wrote:
>
>> yeah. it looks like patch method is not supported OOTB, since as per
>> the spec[5] patch method is not specified. So the usual practice seems to
>> be implementing it by the user..
>>
>> [5]
>> http://download.oracle.com/otndocs/jcp/jaxrs-2_0-fr-eval-spec/index.html
>>
>> thanks,
>>
>>
>> On Mon, Jul 7, 2014 at 12:01 PM, Ishara Karunarathna <
>> isha...@wso2.com> wrote:
>>
>>> Hi Gayan,
>>>
>>>
>>> On Mon, Jul 7, 2014 at 11:46 AM, Gayan Gunawardana 
>>> wrote:
>>>
 Hi All,

 The requirement based on [1]. Since wso2 identity server can act as
 a SCIM provider, it exposes  REST end points with standard http methods
 (GET, POST, PUT, DELETE). How ever according to [2] http PATCH method 
 also
 require to do patch operation. The idea of patch operation is, suppose 
 we
 need to add new user to existing group, with update operation we can 
 update
 entire list of users in a particular group so we have to send complete 
 set
 of users. Patch operation supports merging of existing users with new
 users.

 The bottleneck to implement patch operation is currently [3] does
 not support http PATCH method directly. But according to [4] it allows
 custom annotation such as @Update or @Patch.

 WDYT?

>>>
>>> +1,
>>> You will have to do the custom implementation to get PATCH support.
>>>


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

 [2] http://tools.ietf.org/html/draft-ietf-scim-api-02#section-3.3.1

 [3] http://cxf.apache.org/docs/jax-rs.html

 [4]
 http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-HTTPMethod

 Thanks,
 Gayan


 --
 Gayan Gunawardana
 Software Engineer; WSO2 Inc.; http://wso2.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933

>>>
>>>
>>>
>>> --
>>> Ishara Karunarathna
>>> Senior Software Engineer
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,
>>> mobile: +94 718211678
>>>
>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com 
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



 --
 Gayan Gunawardana
 Software Engineer; WSO2 Inc.; http://wso2.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933

>>>
>>>
>>>
>>> --
>>> Sagara Gunathunga
>>>
>>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>>> V.P Apache Web Services;http://ws.apache.org/
>>> Linkedin; http://www.linkedin.com/in/ssagara
>>> Blog ;  http://ssagara.blogspot.com
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Twitter : @prabath
>> LinkedIn : http://www.linkedin.com/in/prabathsiriwa

Re: [Dev] [DEV] - Carbon - Build failure on orbit/trunk

2014-07-29 Thread Chamila De Alwis
Thanks! got the build completed! :)


On Tue, Jul 29, 2014 at 1:21 PM, Aruna Karunarathna  wrote:

> Hi all,
>
> I think I have put the wrong repo link. Try the link [1] as  Kasung has
> suggested.
>
>
> Regards,
> Aruna
>
>
>
> On Tue, Jul 29, 2014 at 12:56 PM, Kasun Gajasinghe 
> wrote:
>
>> Hi,
>>
>> Not sure why it suggests you to build orbit trunk. If you need to build
>> Carbon 4.2.0, then you should build Orbit 4.2.0 branch [1]
>>
>> [1] https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.2.0
>>
>>
>> On Tue, Jul 29, 2014 at 12:45 PM, Chamila De Alwis 
>> wrote:
>>
>>> Hi Kasun,
>>>
>>> I checked out the orbit bundles from the SVN repository[1]. I'm
>>> following this tutorial[2].
>>>
>>> And here is the folder structure I have.
>>>
>>> .
>>> ├── kernel
>>> │   └── 4.2.0
>>> │   ├── core
>>> │   ├── dependencies
>>> │   ├── distribution
>>> │   ├── features
>>> │   ├── parent
>>> │   ├── patches
>>> │   ├── samples
>>> │   ├── service-packs
>>> │   └── service-stubs
>>> ├── orbit
>>> │   └── trunk
>>> │   ├── cassandra-jdbc
>>> │   ├── cglib
>>> │   ├── cors-filter
>>> │   ├── hazelcast
>>> │   ├── httpcore
>>> │   ├── java-property-utils
>>> │   ├── jdbc-pool
>>> │   ├── js
>>> │   ├── jstl
>>> │   ├── poi
>>> │   ├── poi-ooxml
>>> │   ├── poi-scratchpad
>>> │   ├── rabbit-mq
>>> │   ├── saxon
>>> │   ├── spring-framework
>>> │   ├── tribes
>>> │   └── wadl-core
>>> └── platform
>>> └── turing
>>> ├── build
>>> ├── components
>>> ├── dependencies
>>> ├── features
>>> ├── parent
>>> ├── platform-integration
>>> ├── product-releases
>>> ├── products
>>> ├── samples
>>> └── service-stubs
>>>
>>> [1] - https://svn.wso2.org/repos/wso2/carbon/orbit/trunk/
>>> [2] - http://java.dzone.com/articles/how-build-wso2-carbon-420
>>>
>>>
>>>
>>> On Tue, Jul 29, 2014 at 12:31 PM, Kasun Gajasinghe 
>>> wrote:
>>>
 Hi Chamila,

 What's the svn location of this jdbc-pool bundle? Your folder structure
 doesn't look like the standard structure we have. The parent of this orbit
 bundle should rather be the orbit parent.

 KasunG


 On Tue, Jul 29, 2014 at 11:34 AM, Chamila De Alwis 
 wrote:

> Hi,
>
> I was trying to build carbon with the following folder structure.
>
> .
> ├── kernel
> │   └── 4.2.0
> ├── orbit
> │   └── trunk
> └── platform
> └── turing
>
> However when a build was started on orbit/trunk the following error
> occurred.
>
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR]   The project
> org.apache.tomcat.wso2:jdbc-pool:${jdbc.pool.version}.wso2v1
> (/home/chamilad/dev/source/carbon/orbit/trunk/jdbc-pool/pom.xml) has 1 
> error
> [ERROR] Non-resolvable parent POM: Could not find artifact
> org.wso2.carbon:carbon-dependents:pom:4.0.0 in central (
> http://repo.maven.apache.org/maven2) and 'parent.relativePath' points
> at wrong local POM @ line 22, column 13 -> [Help 2]
> [ERROR]
>
>
> I was able to fix this by changing the relativePath to the
> carbon-dependents pom.
>
>
> Index: jdbc-pool/pom.xml
> ===
> --- jdbc-pool/pom.xml(revision 206122)
> +++ jdbc-pool/pom.xml(working copy)
> @@ -22,8 +22,8 @@
>  
>  org.wso2.carbon
>  carbon-dependents
> -4.0.0
> -../../../pom.xml
> +4.2.0
> +
> ../../../platform/turing/dependencies/pom.xml
> 
>
>  4.0.0
>
>
>
> --
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

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



>>>
>>>
>>>
>>> --
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>
>
>
> --
>
> * Aruna Sujith Karunarathna* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 9040362 | Work: +94 112145345
> Email: ar...@wso2.com | Web: www.wso2.com
>
>



-- 

Regards,
Chamila de Alwis
Software Engineer | WSO2 | +9477

Re: [Dev] Jaggery - Extracting an uploaded .zip file

2014-07-29 Thread Udara Rathnayake
Hi Dakshika,

I noticed the same behavior in latest ES-1.2.0-SNAPSHOT. You can't keep zip
files within jaggeryapps/ dir.


On Tue, Jul 29, 2014 at 2:49 PM, Dakshika Jayathilaka 
wrote:

> @udataR: I have tested with jaggery server(standalone pack
> jaggery-0.9.0-SNAPSHOT) and seems you can keep Zip files inside app
> container without auto extraction.
>
> But it will auto extract on AS. :)
>
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
>
> On Tue, Jul 29, 2014 at 9:06 AM, Dilan Udara Ariyaratne 
> wrote:
>
>> Hi Buddhima,
>>
>> Once you have created your jaggery app (let's name the containing folder
>> as ), select all the files and folders inside
>> 
>> and compress the files into a .zip file which you can upload to the
>> Application server under this path:
>> Home > Manage > Applications > Add > Jaggery
>>
>> If you are simply using the jaggery server to get this done, copy
>>  with its content to /apps
>> and start the server.
>> Now, you should be able to access your application using the following
>> url:
>> http://localhost:9763/ by default.
>>
>> Cheers...
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>>
>> On Tue, Jul 29, 2014 at 2:17 PM, Udara Rathnayake 
>> wrote:
>>
>>> Hi Buddhima,
>>>
>>> If you upload a zip file to any location within
>>> /repository/deployment/server/jaggeryapps/ , server will
>>> treat that file as a webapp and unzip it for you.
>>>
>>> You can try this behavior by copying a zip file to a directory inside
>>> your webapp. But I'm not sure whether this behaviour is correct or not.
>>> File API[1] might help you further.
>>>
>>> [1] http://jaggeryjs.org/documentation.jag?api=file
>>>
>>> Regards,
>>> UdaraR
>>>
>>>
>>> On Tue, Jul 29, 2014 at 2:05 PM, Buddhima Wijeweera 
>>> wrote:
>>>
 Hi,

 I'm currently developing a Jaggery app, which user can upload a zip
 file. After uploading the zip file, Jaggery app should extract that zip
 file & put the content in to a folder (at server-side).

 So I would like to know how can I do this or is there any place where
 this is already implemented.

 Thank You!

 --
 Buddhima Wijeweera
 Software Engineer; WSO2 Inc.; http://wso2.com ,

 Email: buddh...@wso2.com
 Blog:   https://buddhimawijeweera.wordpress.com
 GitHub Profile: https://github.com/Buddhima

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


>>>
>>>
>>> --
>>> *Udara Rathnayake*
>>> Software Engineer
>>> WSO2 Inc. : http://wso2.com
>>>
>>> Mobile : +94 772207239
>>> Twitter : http://twitter.com/udarakr
>>> Blog: http://udarakr.blogspot.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
>>
>>
>


-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] api manager clustering

2014-07-29 Thread Amila De Silva
Hi Akila,

Seems the registry.xml has been wrongly configured. Can you attach the
config folder (AM/repository/conf) for the Store node?




On Tue, Jul 29, 2014 at 9:09 PM, Akila Nimantha [IT/EKO/LOITS] <
aki...@lolctech.com> wrote:

>  Hi udara,
>
> when i start four servers, gataway and keyStore nodes works fine but store
> and publisher still not show any url to access store and publisher in
> distributed api manager environment. and i did those configurations without
> ELB.
>
>
> my server offsets.
>
> KeyManager - 1
>
> Gateway - 2
>
> Publisher - 3
>
> Store - 4
>
> in store and publisher nodes, there are same following error,
>
> [2014-07-29 20:49:04,609] ERROR - RegistryContext Couldn't find db
> configuration 'wso2registry'
> [2014-07-29 20:49:04,730] ERROR - EmbeddedRegistryService Failed to
> configure the embedded registry. Invalid data access manager.
> [2014-07-29 20:49:04,732] ERROR - RegistryCoreServiceComponent Failed to
> activate Registry Core bundle
> org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to
> configure the embedded registry. Invalid data access manager.
> at
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.configure(EmbeddedRegistryService.java:167)
> at
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.(EmbeddedRegistryService.java:99)
> at
> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.getEmbeddedRegistryService(RegistryCoreServiceComponent.java:630)
> at
> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.buildRegistryService(RegistryCoreServiceComponent.java:563)
> at
> org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:117)
> 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.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:347)
> 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.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:70)
> at
> org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
> at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at

Re: [Dev] api manager clustering

2014-07-29 Thread Akila Nimantha [IT/EKO/LOITS]
Hi udara,
when i start four servers, gataway and keyStore nodes works fine but store and 
publisher still not show any url to access store and publisher in distributed 
api manager environment. and i did those configurations without ELB.

my server offsets.
KeyManager - 1
Gateway - 2
Publisher - 3
Store - 4
in store and publisher nodes, there are same following error,

[2014-07-29 20:49:04,609] ERROR - RegistryContext Couldn't find db 
configuration 'wso2registry'
[2014-07-29 20:49:04,730] ERROR - EmbeddedRegistryService Failed to configure 
the embedded registry. Invalid data access manager.
[2014-07-29 20:49:04,732] ERROR - RegistryCoreServiceComponent Failed to 
activate Registry Core bundle
org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to configure 
the embedded registry. Invalid data access manager.
at 
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.configure(EmbeddedRegistryService.java:167)
at 
org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.(EmbeddedRegistryService.java:99)
at 
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.getEmbeddedRegistryService(RegistryCoreServiceComponent.java:630)
at 
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.buildRegistryService(RegistryCoreServiceComponent.java:563)
at 
org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent.activate(RegistryCoreServiceComponent.java:117)
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.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:347)
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.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:70)
at 
org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
at 
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at 
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at 
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at 
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at 
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(Even

Re: [Dev] [jaggery] responseXML of XMLHttpRequest returns null

2014-07-29 Thread Milinda Perera
Hi buddhima,

  Nope, I'll try with that.
  But It seems request and response doesn't have link with WSRequest.
WSRequest may wrap request and response with server.

  FYI - My jaggery app mediates between user and BPS, so I have to
maintain session with BPS separately.

Thanks,
milinda




On Tue, Jul 29, 2014 at 7:03 PM, Buddhima Wijeweera 
wrote:

> Hi Milinda,
>
> Did you try followings?
>
> [1] http://jaggeryjs.org/documentation.jag?api=request
> [2] http://jaggeryjs.org/documentation.jag?api=response
>
>
> On Tue, Jul 29, 2014 at 6:58 PM, Milinda Perera  wrote:
>
>> Hi Buddhima,
>>
>>  I tried this method and works fine. Is there any method to retrieve
>> (and also set) HTTP header of the response (set cookie in request as well)
>> from server?? I need to retain session with the server. If there is a way I
>> can use this method.
>>
>> Thanks,
>> milinda
>>
>>
>> On Tue, Jul 29, 2014 at 6:50 PM, Buddhima Wijeweera 
>> wrote:
>>
>>> Hi Milinda,
>>>
>>> Hope this may help:
>>>
>>> http://madhukaudantha.blogspot.com/2013/02/invoke-web-service-with-jaggery-with.html
>>>
>>>
>>>
>>>
>>> On Tue, Jul 29, 2014 at 6:48 PM, Milinda Perera 
>>> wrote:
>>>
 Hi Harsha & Tishan,

 Here is the response header (retrieved using getAllResponseHeaders()):

 Set-Cookie: JSESSIONID=4DA0D85B59354B71873C6F94BD89053D; Path=/;
 Secure; HttpOnly
 Content-Type: text/xml;charset=UTF-8
 Transfer-Encoding: chunked
 Date: Tue, 29 Jul 2014 13:07:25 GMT
 Server: WSO2 Carbon Server

 It seems reply (+ Content-Type) from the server is fine..

 could the problem caused due to ">>> encoding="UTF-8"?>" part of the xml response (may be *responseXML *expect
 response without that part) ??? WDYT?

 thanks,
 milinda



 On Tue, Jul 29, 2014 at 6:39 PM, Harsha Kumara 
 wrote:

> Hi Milinda,
> This can be due to content type is not returned as text/xml  by the
> server. If you can check the the full response text, you can figure it 
> out.
> If it return as text/plain responseText will work and responseXML won't
> work.
> Thanks,
> Harsha
>
>
> On Tue, Jul 29, 2014 at 6:24 PM, Milinda Perera 
> wrote:
>
>> Here is the response which retrieved by *responseText *
>>
>> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>> xmlns:ns="http://authentication.services.core.carbon.wso2.org
>> ">true
>>
>>
>> On Tue, Jul 29, 2014 at 6:18 PM, Tishan Dahanayakage > > wrote:
>>
>>> Hi Milinda,
>>> Can you please post the response text?
>>>
>>>
>>> On Tue, Jul 29, 2014 at 5:20 PM, Milinda Perera 
>>> wrote:
>>>
 Hi,
   I'm writing jaggery app to retrieve data from a Admin services.
 I'm getting for *responseXML* of XMLHttpRequest (responseText
 works perfectly) any problem with my code?

 var httpAuth = new XMLHttpRequest();
 var endPoint = '
 https://10.100.5.92:9443/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/
 ';

 httpAuth.open('POST', endPoint, false);
 httpAuth.setRequestHeader('SOAPAction', 'urn:login');
 httpAuth.setRequestHeader('Content-Type','text/xml');

 var payload = 'http://schemas.xmlsoap.org/soap/envelope/"; xmlns:aut="
 http://authentication.services.core.carbon.wso2.org";>\
 \
 \
 \
 ' +username
 +'\
 ' +password
 +'\
 '
 +remoteAddr +'\
 \
 \
 ';

 try{
 httpAuth.send(payload);
 //var BPSResponse = httpAuth.responseText;
 var BPSResponse = httpAuth.responseXML;
 log.info('RESPONSE XML : ' +BPSResponse.toXMLString());
 log.info('RESPONSE:'
 +httpAuth.responseText.toString());

 }catch(e){
  log.error(e.toString());
 }

 Thanks,
 Milinda

 --
 Milinda Perera
 Software Engineer;
 WSO2 Inc. http://wso2.com ,
 Mobile: (+94) 714 115 032


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


>>>
>>>
>>> --
>>> Tishan Dahanayakage
>>> Software Engineer
>>>  WSO2, Inc.
>>> Mobile:+94 716481328

Re: [Dev] [jaggery] responseXML of XMLHttpRequest returns null

2014-07-29 Thread Milinda Perera
Hi harsha,

Currently I'm doing same that you suggested, and it works fine. but
it's confusing that this method doesn't work...  may be problem my code
still unable to figure out.

Thanks
milinda,



On Tue, Jul 29, 2014 at 6:58 PM, Milinda Perera  wrote:

> Hi Buddhima,
>
>  I tried this method and works fine. Is there any method to retrieve
> (and also set) HTTP header of the response (set cookie in request as well)
> from server?? I need to retain session with the server. If there is a way I
> can use this method.
>
> Thanks,
> milinda
>
>
> On Tue, Jul 29, 2014 at 6:50 PM, Buddhima Wijeweera 
> wrote:
>
>> Hi Milinda,
>>
>> Hope this may help:
>>
>> http://madhukaudantha.blogspot.com/2013/02/invoke-web-service-with-jaggery-with.html
>>
>>
>>
>>
>> On Tue, Jul 29, 2014 at 6:48 PM, Milinda Perera 
>> wrote:
>>
>>> Hi Harsha & Tishan,
>>>
>>> Here is the response header (retrieved using getAllResponseHeaders()):
>>>
>>> Set-Cookie: JSESSIONID=4DA0D85B59354B71873C6F94BD89053D; Path=/; Secure;
>>> HttpOnly
>>> Content-Type: text/xml;charset=UTF-8
>>> Transfer-Encoding: chunked
>>> Date: Tue, 29 Jul 2014 13:07:25 GMT
>>> Server: WSO2 Carbon Server
>>>
>>> It seems reply (+ Content-Type) from the server is fine..
>>>
>>> could the problem caused due to ""
>>> part of the xml response (may be *responseXML *expect response without
>>> that part) ??? WDYT?
>>>
>>> thanks,
>>> milinda
>>>
>>>
>>>
>>> On Tue, Jul 29, 2014 at 6:39 PM, Harsha Kumara  wrote:
>>>
 Hi Milinda,
 This can be due to content type is not returned as text/xml  by the
 server. If you can check the the full response text, you can figure it out.
 If it return as text/plain responseText will work and responseXML won't
 work.
 Thanks,
 Harsha


 On Tue, Jul 29, 2014 at 6:24 PM, Milinda Perera 
 wrote:

> Here is the response which retrieved by *responseText *
>
> http://schemas.xmlsoap.org/soap/envelope/";> xmlns:ns="http://authentication.services.core.carbon.wso2.org
> ">true
>
>
> On Tue, Jul 29, 2014 at 6:18 PM, Tishan Dahanayakage 
> wrote:
>
>> Hi Milinda,
>> Can you please post the response text?
>>
>>
>> On Tue, Jul 29, 2014 at 5:20 PM, Milinda Perera 
>> wrote:
>>
>>> Hi,
>>>   I'm writing jaggery app to retrieve data from a Admin services. I'm
>>> getting for *responseXML* of XMLHttpRequest (responseText works
>>> perfectly) any problem with my code?
>>>
>>> var httpAuth = new XMLHttpRequest();
>>> var endPoint = '
>>> https://10.100.5.92:9443/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/
>>> ';
>>>
>>> httpAuth.open('POST', endPoint, false);
>>> httpAuth.setRequestHeader('SOAPAction', 'urn:login');
>>> httpAuth.setRequestHeader('Content-Type','text/xml');
>>>
>>> var payload = 'http://schemas.xmlsoap.org/soap/envelope/"; xmlns:aut="
>>> http://authentication.services.core.carbon.wso2.org";>\
>>> \
>>> \
>>> \
>>> ' +username
>>> +'\
>>> ' +password
>>> +'\
>>> '
>>> +remoteAddr +'\
>>> \
>>> \
>>> ';
>>>
>>> try{
>>> httpAuth.send(payload);
>>> //var BPSResponse = httpAuth.responseText;
>>> var BPSResponse = httpAuth.responseXML;
>>> log.info('RESPONSE XML : ' +BPSResponse.toXMLString());
>>> log.info('RESPONSE:' +httpAuth.responseText.toString());
>>>
>>> }catch(e){
>>>  log.error(e.toString());
>>> }
>>>
>>> Thanks,
>>> Milinda
>>>
>>> --
>>> Milinda Perera
>>> Software Engineer;
>>> WSO2 Inc. http://wso2.com ,
>>> Mobile: (+94) 714 115 032
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Tishan Dahanayakage
>> Software Engineer
>>  WSO2, Inc.
>> Mobile:+94 716481328
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender 
>> indicating
>> that fact and delete the copy you received and in addition, you should 
>> not
>> print, copy, re-transmit, disseminate, or otherwise use the information
>> contained in this comm

Re: [Dev] [jaggery] responseXML of XMLHttpRequest returns null

2014-07-29 Thread Harsha Kumara
I think that shouldn't cause an issue. But there can be issue with the
response. Alternatively you can take the responseText and convert it to xml
element using a parser.


On Tue, Jul 29, 2014 at 6:50 PM, Buddhima Wijeweera 
wrote:

> Hi Milinda,
>
> Hope this may help:
>
> http://madhukaudantha.blogspot.com/2013/02/invoke-web-service-with-jaggery-with.html
>
>
>
>
> On Tue, Jul 29, 2014 at 6:48 PM, Milinda Perera  wrote:
>
>> Hi Harsha & Tishan,
>>
>> Here is the response header (retrieved using getAllResponseHeaders()):
>>
>> Set-Cookie: JSESSIONID=4DA0D85B59354B71873C6F94BD89053D; Path=/; Secure;
>> HttpOnly
>> Content-Type: text/xml;charset=UTF-8
>> Transfer-Encoding: chunked
>> Date: Tue, 29 Jul 2014 13:07:25 GMT
>> Server: WSO2 Carbon Server
>>
>> It seems reply (+ Content-Type) from the server is fine..
>>
>> could the problem caused due to ""
>> part of the xml response (may be *responseXML *expect response without
>> that part) ??? WDYT?
>>
>> thanks,
>> milinda
>>
>>
>>
>> On Tue, Jul 29, 2014 at 6:39 PM, Harsha Kumara  wrote:
>>
>>> Hi Milinda,
>>> This can be due to content type is not returned as text/xml  by the
>>> server. If you can check the the full response text, you can figure it out.
>>> If it return as text/plain responseText will work and responseXML won't
>>> work.
>>> Thanks,
>>> Harsha
>>>
>>>
>>> On Tue, Jul 29, 2014 at 6:24 PM, Milinda Perera 
>>> wrote:
>>>
 Here is the response which retrieved by *responseText *

 http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns="http://authentication.services.core.carbon.wso2.org
 ">true


 On Tue, Jul 29, 2014 at 6:18 PM, Tishan Dahanayakage 
 wrote:

> Hi Milinda,
> Can you please post the response text?
>
>
> On Tue, Jul 29, 2014 at 5:20 PM, Milinda Perera 
> wrote:
>
>> Hi,
>>   I'm writing jaggery app to retrieve data from a Admin services. I'm
>> getting for *responseXML* of XMLHttpRequest (responseText works
>> perfectly) any problem with my code?
>>
>> var httpAuth = new XMLHttpRequest();
>> var endPoint = '
>> https://10.100.5.92:9443/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/
>> ';
>>
>> httpAuth.open('POST', endPoint, false);
>> httpAuth.setRequestHeader('SOAPAction', 'urn:login');
>> httpAuth.setRequestHeader('Content-Type','text/xml');
>>
>> var payload = 'http://schemas.xmlsoap.org/soap/envelope/"; xmlns:aut="
>> http://authentication.services.core.carbon.wso2.org";>\
>> \
>> \
>> \
>> ' +username
>> +'\
>> ' +password
>> +'\
>> '
>> +remoteAddr +'\
>> \
>> \
>> ';
>>
>> try{
>> httpAuth.send(payload);
>> //var BPSResponse = httpAuth.responseText;
>> var BPSResponse = httpAuth.responseXML;
>> log.info('RESPONSE XML : ' +BPSResponse.toXMLString());
>> log.info('RESPONSE:' +httpAuth.responseText.toString());
>>
>> }catch(e){
>>  log.error(e.toString());
>> }
>>
>> Thanks,
>> Milinda
>>
>> --
>> Milinda Perera
>> Software Engineer;
>> WSO2 Inc. http://wso2.com ,
>> Mobile: (+94) 714 115 032
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Tishan Dahanayakage
> Software Engineer
>  WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender 
> indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>



 --
 Milinda Perera
 Software Engineer;
 WSO2 Inc. http://wso2.com ,
 Mobile: (+94) 714 115 032


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


>>>
>>>
>>> --
>>> Harsha Kumara
>>> Software Engineer, WSO2 In

Re: [Dev] [jaggery] responseXML of XMLHttpRequest returns null

2014-07-29 Thread Buddhima Wijeweera
Hi Milinda,

Did you try followings?

[1] http://jaggeryjs.org/documentation.jag?api=request
[2] http://jaggeryjs.org/documentation.jag?api=response


On Tue, Jul 29, 2014 at 6:58 PM, Milinda Perera  wrote:

> Hi Buddhima,
>
>  I tried this method and works fine. Is there any method to retrieve
> (and also set) HTTP header of the response (set cookie in request as well)
> from server?? I need to retain session with the server. If there is a way I
> can use this method.
>
> Thanks,
> milinda
>
>
> On Tue, Jul 29, 2014 at 6:50 PM, Buddhima Wijeweera 
> wrote:
>
>> Hi Milinda,
>>
>> Hope this may help:
>>
>> http://madhukaudantha.blogspot.com/2013/02/invoke-web-service-with-jaggery-with.html
>>
>>
>>
>>
>> On Tue, Jul 29, 2014 at 6:48 PM, Milinda Perera 
>> wrote:
>>
>>> Hi Harsha & Tishan,
>>>
>>> Here is the response header (retrieved using getAllResponseHeaders()):
>>>
>>> Set-Cookie: JSESSIONID=4DA0D85B59354B71873C6F94BD89053D; Path=/; Secure;
>>> HttpOnly
>>> Content-Type: text/xml;charset=UTF-8
>>> Transfer-Encoding: chunked
>>> Date: Tue, 29 Jul 2014 13:07:25 GMT
>>> Server: WSO2 Carbon Server
>>>
>>> It seems reply (+ Content-Type) from the server is fine..
>>>
>>> could the problem caused due to ""
>>> part of the xml response (may be *responseXML *expect response without
>>> that part) ??? WDYT?
>>>
>>> thanks,
>>> milinda
>>>
>>>
>>>
>>> On Tue, Jul 29, 2014 at 6:39 PM, Harsha Kumara  wrote:
>>>
 Hi Milinda,
 This can be due to content type is not returned as text/xml  by the
 server. If you can check the the full response text, you can figure it out.
 If it return as text/plain responseText will work and responseXML won't
 work.
 Thanks,
 Harsha


 On Tue, Jul 29, 2014 at 6:24 PM, Milinda Perera 
 wrote:

> Here is the response which retrieved by *responseText *
>
> http://schemas.xmlsoap.org/soap/envelope/";> xmlns:ns="http://authentication.services.core.carbon.wso2.org
> ">true
>
>
> On Tue, Jul 29, 2014 at 6:18 PM, Tishan Dahanayakage 
> wrote:
>
>> Hi Milinda,
>> Can you please post the response text?
>>
>>
>> On Tue, Jul 29, 2014 at 5:20 PM, Milinda Perera 
>> wrote:
>>
>>> Hi,
>>>   I'm writing jaggery app to retrieve data from a Admin services. I'm
>>> getting for *responseXML* of XMLHttpRequest (responseText works
>>> perfectly) any problem with my code?
>>>
>>> var httpAuth = new XMLHttpRequest();
>>> var endPoint = '
>>> https://10.100.5.92:9443/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/
>>> ';
>>>
>>> httpAuth.open('POST', endPoint, false);
>>> httpAuth.setRequestHeader('SOAPAction', 'urn:login');
>>> httpAuth.setRequestHeader('Content-Type','text/xml');
>>>
>>> var payload = 'http://schemas.xmlsoap.org/soap/envelope/"; xmlns:aut="
>>> http://authentication.services.core.carbon.wso2.org";>\
>>> \
>>> \
>>> \
>>> ' +username
>>> +'\
>>> ' +password
>>> +'\
>>> '
>>> +remoteAddr +'\
>>> \
>>> \
>>> ';
>>>
>>> try{
>>> httpAuth.send(payload);
>>> //var BPSResponse = httpAuth.responseText;
>>> var BPSResponse = httpAuth.responseXML;
>>> log.info('RESPONSE XML : ' +BPSResponse.toXMLString());
>>> log.info('RESPONSE:' +httpAuth.responseText.toString());
>>>
>>> }catch(e){
>>>  log.error(e.toString());
>>> }
>>>
>>> Thanks,
>>> Milinda
>>>
>>> --
>>> Milinda Perera
>>> Software Engineer;
>>> WSO2 Inc. http://wso2.com ,
>>> Mobile: (+94) 714 115 032
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Tishan Dahanayakage
>> Software Engineer
>>  WSO2, Inc.
>> Mobile:+94 716481328
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender 
>> indicating
>> that fact and delete the copy you received and in addition, you should 
>> not
>> print, copy, re-transmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guara

Re: [Dev] [jaggery] responseXML of XMLHttpRequest returns null

2014-07-29 Thread Milinda Perera
Hi Buddhima,

 I tried this method and works fine. Is there any method to retrieve
(and also set) HTTP header of the response (set cookie in request as well)
from server?? I need to retain session with the server. If there is a way I
can use this method.

Thanks,
milinda


On Tue, Jul 29, 2014 at 6:50 PM, Buddhima Wijeweera 
wrote:

> Hi Milinda,
>
> Hope this may help:
>
> http://madhukaudantha.blogspot.com/2013/02/invoke-web-service-with-jaggery-with.html
>
>
>
>
> On Tue, Jul 29, 2014 at 6:48 PM, Milinda Perera  wrote:
>
>> Hi Harsha & Tishan,
>>
>> Here is the response header (retrieved using getAllResponseHeaders()):
>>
>> Set-Cookie: JSESSIONID=4DA0D85B59354B71873C6F94BD89053D; Path=/; Secure;
>> HttpOnly
>> Content-Type: text/xml;charset=UTF-8
>> Transfer-Encoding: chunked
>> Date: Tue, 29 Jul 2014 13:07:25 GMT
>> Server: WSO2 Carbon Server
>>
>> It seems reply (+ Content-Type) from the server is fine..
>>
>> could the problem caused due to ""
>> part of the xml response (may be *responseXML *expect response without
>> that part) ??? WDYT?
>>
>> thanks,
>> milinda
>>
>>
>>
>> On Tue, Jul 29, 2014 at 6:39 PM, Harsha Kumara  wrote:
>>
>>> Hi Milinda,
>>> This can be due to content type is not returned as text/xml  by the
>>> server. If you can check the the full response text, you can figure it out.
>>> If it return as text/plain responseText will work and responseXML won't
>>> work.
>>> Thanks,
>>> Harsha
>>>
>>>
>>> On Tue, Jul 29, 2014 at 6:24 PM, Milinda Perera 
>>> wrote:
>>>
 Here is the response which retrieved by *responseText *

 http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns="http://authentication.services.core.carbon.wso2.org
 ">true


 On Tue, Jul 29, 2014 at 6:18 PM, Tishan Dahanayakage 
 wrote:

> Hi Milinda,
> Can you please post the response text?
>
>
> On Tue, Jul 29, 2014 at 5:20 PM, Milinda Perera 
> wrote:
>
>> Hi,
>>   I'm writing jaggery app to retrieve data from a Admin services. I'm
>> getting for *responseXML* of XMLHttpRequest (responseText works
>> perfectly) any problem with my code?
>>
>> var httpAuth = new XMLHttpRequest();
>> var endPoint = '
>> https://10.100.5.92:9443/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/
>> ';
>>
>> httpAuth.open('POST', endPoint, false);
>> httpAuth.setRequestHeader('SOAPAction', 'urn:login');
>> httpAuth.setRequestHeader('Content-Type','text/xml');
>>
>> var payload = 'http://schemas.xmlsoap.org/soap/envelope/"; xmlns:aut="
>> http://authentication.services.core.carbon.wso2.org";>\
>> \
>> \
>> \
>> ' +username
>> +'\
>> ' +password
>> +'\
>> '
>> +remoteAddr +'\
>> \
>> \
>> ';
>>
>> try{
>> httpAuth.send(payload);
>> //var BPSResponse = httpAuth.responseText;
>> var BPSResponse = httpAuth.responseXML;
>> log.info('RESPONSE XML : ' +BPSResponse.toXMLString());
>> log.info('RESPONSE:' +httpAuth.responseText.toString());
>>
>> }catch(e){
>>  log.error(e.toString());
>> }
>>
>> Thanks,
>> Milinda
>>
>> --
>> Milinda Perera
>> Software Engineer;
>> WSO2 Inc. http://wso2.com ,
>> Mobile: (+94) 714 115 032
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Tishan Dahanayakage
> Software Engineer
>  WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender 
> indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>



 --
 Milinda Perera
 Software Engineer;
 WSO2 Inc. http://wso2.com ,
 Mobile: (+94) 714 115 032


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.o

Re: [Dev] [jaggery] responseXML of XMLHttpRequest returns null

2014-07-29 Thread Buddhima Wijeweera
Hi Milinda,

Hope this may help:
http://madhukaudantha.blogspot.com/2013/02/invoke-web-service-with-jaggery-with.html




On Tue, Jul 29, 2014 at 6:48 PM, Milinda Perera  wrote:

> Hi Harsha & Tishan,
>
> Here is the response header (retrieved using getAllResponseHeaders()):
>
> Set-Cookie: JSESSIONID=4DA0D85B59354B71873C6F94BD89053D; Path=/; Secure;
> HttpOnly
> Content-Type: text/xml;charset=UTF-8
> Transfer-Encoding: chunked
> Date: Tue, 29 Jul 2014 13:07:25 GMT
> Server: WSO2 Carbon Server
>
> It seems reply (+ Content-Type) from the server is fine..
>
> could the problem caused due to ""
> part of the xml response (may be *responseXML *expect response without
> that part) ??? WDYT?
>
> thanks,
> milinda
>
>
>
> On Tue, Jul 29, 2014 at 6:39 PM, Harsha Kumara  wrote:
>
>> Hi Milinda,
>> This can be due to content type is not returned as text/xml  by the
>> server. If you can check the the full response text, you can figure it out.
>> If it return as text/plain responseText will work and responseXML won't
>> work.
>> Thanks,
>> Harsha
>>
>>
>> On Tue, Jul 29, 2014 at 6:24 PM, Milinda Perera 
>> wrote:
>>
>>> Here is the response which retrieved by *responseText *
>>>
>>> http://schemas.xmlsoap.org/soap/envelope/";>>> xmlns:ns="http://authentication.services.core.carbon.wso2.org
>>> ">true
>>>
>>>
>>> On Tue, Jul 29, 2014 at 6:18 PM, Tishan Dahanayakage 
>>> wrote:
>>>
 Hi Milinda,
 Can you please post the response text?


 On Tue, Jul 29, 2014 at 5:20 PM, Milinda Perera 
 wrote:

> Hi,
>   I'm writing jaggery app to retrieve data from a Admin services. I'm
> getting for *responseXML* of XMLHttpRequest (responseText works
> perfectly) any problem with my code?
>
> var httpAuth = new XMLHttpRequest();
> var endPoint = '
> https://10.100.5.92:9443/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/
> ';
>
> httpAuth.open('POST', endPoint, false);
> httpAuth.setRequestHeader('SOAPAction', 'urn:login');
> httpAuth.setRequestHeader('Content-Type','text/xml');
>
> var payload = 'http://schemas.xmlsoap.org/soap/envelope/"; xmlns:aut="
> http://authentication.services.core.carbon.wso2.org";>\
> \
> \
> \
> ' +username
> +'\
> ' +password
> +'\
> '
> +remoteAddr +'\
> \
> \
> ';
>
> try{
> httpAuth.send(payload);
> //var BPSResponse = httpAuth.responseText;
> var BPSResponse = httpAuth.responseXML;
> log.info('RESPONSE XML : ' +BPSResponse.toXMLString());
> log.info('RESPONSE:' +httpAuth.responseText.toString());
>
> }catch(e){
>  log.error(e.toString());
> }
>
> Thanks,
> Milinda
>
> --
> Milinda Perera
> Software Engineer;
> WSO2 Inc. http://wso2.com ,
> Mobile: (+94) 714 115 032
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Tishan Dahanayakage
 Software Engineer
  WSO2, Inc.
 Mobile:+94 716481328

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

>>>
>>>
>>>
>>> --
>>> Milinda Perera
>>> Software Engineer;
>>> WSO2 Inc. http://wso2.com ,
>>> Mobile: (+94) 714 115 032
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618
>> Blog:harshcreationz.blogspot.com
>>
>
>
>
> --
> Milinda Perera
> Software Engineer;
> WSO2 Inc. http://wso2.com ,
> Mobile: (+94) 714 115 032
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Email: buddh...@wso

Re: [Dev] [jaggery] responseXML of XMLHttpRequest returns null

2014-07-29 Thread Milinda Perera
Hi Harsha & Tishan,

Here is the response header (retrieved using getAllResponseHeaders()):

Set-Cookie: JSESSIONID=4DA0D85B59354B71873C6F94BD89053D; Path=/; Secure;
HttpOnly
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 29 Jul 2014 13:07:25 GMT
Server: WSO2 Carbon Server

It seems reply (+ Content-Type) from the server is fine..

could the problem caused due to ""
part of the xml response (may be *responseXML *expect response without that
part) ??? WDYT?

thanks,
milinda



On Tue, Jul 29, 2014 at 6:39 PM, Harsha Kumara  wrote:

> Hi Milinda,
> This can be due to content type is not returned as text/xml  by the
> server. If you can check the the full response text, you can figure it out.
> If it return as text/plain responseText will work and responseXML won't
> work.
> Thanks,
> Harsha
>
>
> On Tue, Jul 29, 2014 at 6:24 PM, Milinda Perera  wrote:
>
>> Here is the response which retrieved by *responseText *
>>
>> http://schemas.xmlsoap.org/soap/envelope/";>> xmlns:ns="http://authentication.services.core.carbon.wso2.org
>> ">true
>>
>>
>> On Tue, Jul 29, 2014 at 6:18 PM, Tishan Dahanayakage 
>> wrote:
>>
>>> Hi Milinda,
>>> Can you please post the response text?
>>>
>>>
>>> On Tue, Jul 29, 2014 at 5:20 PM, Milinda Perera 
>>> wrote:
>>>
 Hi,
   I'm writing jaggery app to retrieve data from a Admin services. I'm
 getting for *responseXML* of XMLHttpRequest (responseText works
 perfectly) any problem with my code?

 var httpAuth = new XMLHttpRequest();
 var endPoint = '
 https://10.100.5.92:9443/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/
 ';

 httpAuth.open('POST', endPoint, false);
 httpAuth.setRequestHeader('SOAPAction', 'urn:login');
 httpAuth.setRequestHeader('Content-Type','text/xml');

 var payload = 'http://schemas.xmlsoap.org/soap/envelope/"; xmlns:aut="
 http://authentication.services.core.carbon.wso2.org";>\
 \
 \
 \
 ' +username
 +'\
 ' +password
 +'\
 '
 +remoteAddr +'\
 \
 \
 ';

 try{
 httpAuth.send(payload);
 //var BPSResponse = httpAuth.responseText;
 var BPSResponse = httpAuth.responseXML;
 log.info('RESPONSE XML : ' +BPSResponse.toXMLString());
 log.info('RESPONSE:' +httpAuth.responseText.toString());

 }catch(e){
  log.error(e.toString());
 }

 Thanks,
 Milinda

 --
 Milinda Perera
 Software Engineer;
 WSO2 Inc. http://wso2.com ,
 Mobile: (+94) 714 115 032


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


>>>
>>>
>>> --
>>> Tishan Dahanayakage
>>> Software Engineer
>>>  WSO2, Inc.
>>> Mobile:+94 716481328
>>>
>>> Disclaimer: This communication may contain privileged or other
>>> confidential information and is intended exclusively for the addressee/s.
>>> If you are not the intended recipient/s, or believe that you may have
>>> received this communication in error, please reply to the sender indicating
>>> that fact and delete the copy you received and in addition, you should not
>>> print, copy, re-transmit, disseminate, or otherwise use the information
>>> contained in this communication. Internet communications cannot be
>>> guaranteed to be timely, secure, error or virus-free. The sender does not
>>> accept liability for any errors or omissions.
>>>
>>
>>
>>
>> --
>> Milinda Perera
>> Software Engineer;
>> WSO2 Inc. http://wso2.com ,
>> Mobile: (+94) 714 115 032
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>



-- 
Milinda Perera
Software Engineer;
WSO2 Inc. http://wso2.com ,
Mobile: (+94) 714 115 032
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [jaggery] responseXML of XMLHttpRequest returns null

2014-07-29 Thread Harsha Kumara
Hi Milinda,
This can be due to content type is not returned as text/xml  by the server.
If you can check the the full response text, you can figure it out. If it
return as text/plain responseText will work and responseXML won't work.
Thanks,
Harsha


On Tue, Jul 29, 2014 at 6:24 PM, Milinda Perera  wrote:

> Here is the response which retrieved by *responseText *
>
> http://schemas.xmlsoap.org/soap/envelope/";> xmlns:ns="http://authentication.services.core.carbon.wso2.org
> ">true
>
>
> On Tue, Jul 29, 2014 at 6:18 PM, Tishan Dahanayakage 
> wrote:
>
>> Hi Milinda,
>> Can you please post the response text?
>>
>>
>> On Tue, Jul 29, 2014 at 5:20 PM, Milinda Perera 
>> wrote:
>>
>>> Hi,
>>>   I'm writing jaggery app to retrieve data from a Admin services. I'm
>>> getting for *responseXML* of XMLHttpRequest (responseText works
>>> perfectly) any problem with my code?
>>>
>>> var httpAuth = new XMLHttpRequest();
>>> var endPoint = '
>>> https://10.100.5.92:9443/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/
>>> ';
>>>
>>> httpAuth.open('POST', endPoint, false);
>>> httpAuth.setRequestHeader('SOAPAction', 'urn:login');
>>> httpAuth.setRequestHeader('Content-Type','text/xml');
>>>
>>> var payload = 'http://schemas.xmlsoap.org/soap/envelope/"; xmlns:aut="
>>> http://authentication.services.core.carbon.wso2.org";>\
>>> \
>>> \
>>> \
>>> ' +username
>>> +'\
>>> ' +password
>>> +'\
>>> ' +remoteAddr
>>> +'\
>>> \
>>> \
>>> ';
>>>
>>> try{
>>> httpAuth.send(payload);
>>> //var BPSResponse = httpAuth.responseText;
>>> var BPSResponse = httpAuth.responseXML;
>>> log.info('RESPONSE XML : ' +BPSResponse.toXMLString());
>>> log.info('RESPONSE:' +httpAuth.responseText.toString());
>>>
>>> }catch(e){
>>>  log.error(e.toString());
>>> }
>>>
>>> Thanks,
>>> Milinda
>>>
>>> --
>>> Milinda Perera
>>> Software Engineer;
>>> WSO2 Inc. http://wso2.com ,
>>> Mobile: (+94) 714 115 032
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Tishan Dahanayakage
>> Software Engineer
>>  WSO2, Inc.
>> Mobile:+94 716481328
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, re-transmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>
>
>
> --
> Milinda Perera
> Software Engineer;
> WSO2 Inc. http://wso2.com ,
> Mobile: (+94) 714 115 032
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [jaggery] responseXML of XMLHttpRequest returns null

2014-07-29 Thread Tishan Dahanayakage
AFAIK if response is a valid XML and response headers are set accordingly
responseXML should work.
Here response is a valid XML. So only other point to check is whether
service serves the response as a XML. Can you please check whether
content-type header of your response is set to text/xml?


On Tue, Jul 29, 2014 at 6:24 PM, Milinda Perera  wrote:

> Here is the response which retrieved by *responseText *
>
> http://schemas.xmlsoap.org/soap/envelope/";> xmlns:ns="http://authentication.services.core.carbon.wso2.org
> ">true
>
>
> On Tue, Jul 29, 2014 at 6:18 PM, Tishan Dahanayakage 
> wrote:
>
>> Hi Milinda,
>> Can you please post the response text?
>>
>>
>> On Tue, Jul 29, 2014 at 5:20 PM, Milinda Perera 
>> wrote:
>>
>>> Hi,
>>>   I'm writing jaggery app to retrieve data from a Admin services. I'm
>>> getting for *responseXML* of XMLHttpRequest (responseText works
>>> perfectly) any problem with my code?
>>>
>>> var httpAuth = new XMLHttpRequest();
>>> var endPoint = '
>>> https://10.100.5.92:9443/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/
>>> ';
>>>
>>> httpAuth.open('POST', endPoint, false);
>>> httpAuth.setRequestHeader('SOAPAction', 'urn:login');
>>> httpAuth.setRequestHeader('Content-Type','text/xml');
>>>
>>> var payload = 'http://schemas.xmlsoap.org/soap/envelope/"; xmlns:aut="
>>> http://authentication.services.core.carbon.wso2.org";>\
>>> \
>>> \
>>> \
>>> ' +username
>>> +'\
>>> ' +password
>>> +'\
>>> ' +remoteAddr
>>> +'\
>>> \
>>> \
>>> ';
>>>
>>> try{
>>> httpAuth.send(payload);
>>> //var BPSResponse = httpAuth.responseText;
>>> var BPSResponse = httpAuth.responseXML;
>>> log.info('RESPONSE XML : ' +BPSResponse.toXMLString());
>>> log.info('RESPONSE:' +httpAuth.responseText.toString());
>>>
>>> }catch(e){
>>>  log.error(e.toString());
>>> }
>>>
>>> Thanks,
>>> Milinda
>>>
>>> --
>>> Milinda Perera
>>> Software Engineer;
>>> WSO2 Inc. http://wso2.com ,
>>> Mobile: (+94) 714 115 032
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Tishan Dahanayakage
>> Software Engineer
>>  WSO2, Inc.
>> Mobile:+94 716481328
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, re-transmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>
>
>
> --
> Milinda Perera
> Software Engineer;
> WSO2 Inc. http://wso2.com ,
> Mobile: (+94) 714 115 032
>
>


-- 
Tishan Dahanayakage
Software Engineer
WSO2, Inc.
Mobile:+94 716481328

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


Re: [Dev] How to implement CARBON-14688

2014-07-29 Thread Jayanga Dissanayake
*Jayanga Dissanayake*
Senior Software Engineer
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259


On Tue, Jul 29, 2014 at 5:07 PM, Pubudu Dissanayake 
wrote:

> +1, Restart later flag has to be properly maintain.
>
>
> On Tue, Jul 29, 2014 at 4:48 PM, Sameera Jayasoma 
> wrote:
>
>> +1
>>
>>
>>
>> On Tue, Jul 29, 2014 at 4:44 PM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Why this is private?  Please move to dev.
>>>
>>> -- Sent from mobile --
>>>
>>> On 29 Jul 2014 12:17, "Jayanga Dissanayake"  wrote:
>>> >
>>> > Hi,
>>> >
>>> > I am currently working on [1]. As per the ticket, it wants to restart
>>> the server automatically after installing/uninstalling a feature. As per
>>> our discussion yesterday, we decided to let the user to restart the sever
>>> manually, but to provide him with the options to restart now or restart
>>> later.
>>> >
>>> > Initially the the idea was to give a pop up like interface.
>>> >
>>> > But when I see the steps carried out by the user when installing a
>>> feature. User comes into a page like [2][3]. So instead of having a finish
>>> button, Shall I change it to two buttons  (Restart Now, Restart Later)
>>> >
>>> > If the user clicks on Restart Now, it will restart the server
>>> immediately.
>>> > If the user clicks on Restart later, it will do, what it did when the
>>> finished button  is clicked as per the current implementation
>>> > These two buttons will be place in the [2][3], not in a popup.
>>> >
>>> > So the change become much easier and more convenient to the user as it
>>> becomes a last step in the feature installing.
>>> >
>>> > [1] https://wso2.org/jira/browse/CARBON-14688
>>> > [2] Selection_053.png
>>> > [3] Selection_054.png
>>> >
>>> > Thanks.
>>> > Jayanga Dissanayake
>>> > Senior Software Engineer
>>> > WSO2 Inc. - http://wso2.com/
>>> > lean . enterprise . middleware
>>> > email: jaya...@wso2.com
>>> > mobile: +94772207259
>>>
>>>
>>
>>
>> --
>> Sameera Jayasoma,
>> Software Architect,
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://sameera.adahas.org
>> twitter: https://twitter.com/sameerajayasoma
>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>> Mobile: 0094776364456
>>
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Pubudu Dissanayake*
>  Software Engineer
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Mob: + 94 775 503 304
>
>  Blog: http://geekdetected.wordpress.com/
>  Linkedin: *http://lk.linkedin.com/in/pubududissanayake*
> 
> Flickr : https://www.flickr.com/photos/pubudufx/
> Twitter: https://twitter.com/GeekInAction
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [jaggery] responseXML of XMLHttpRequest returns null

2014-07-29 Thread Milinda Perera
Here is the response which retrieved by *responseText *

http://schemas.xmlsoap.org/soap/envelope/";>http://authentication.services.core.carbon.wso2.org
">true


On Tue, Jul 29, 2014 at 6:18 PM, Tishan Dahanayakage 
wrote:

> Hi Milinda,
> Can you please post the response text?
>
>
> On Tue, Jul 29, 2014 at 5:20 PM, Milinda Perera  wrote:
>
>> Hi,
>>   I'm writing jaggery app to retrieve data from a Admin services. I'm
>> getting for *responseXML* of XMLHttpRequest (responseText works
>> perfectly) any problem with my code?
>>
>> var httpAuth = new XMLHttpRequest();
>> var endPoint = '
>> https://10.100.5.92:9443/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/
>> ';
>>
>> httpAuth.open('POST', endPoint, false);
>> httpAuth.setRequestHeader('SOAPAction', 'urn:login');
>> httpAuth.setRequestHeader('Content-Type','text/xml');
>>
>> var payload = 'http://schemas.xmlsoap.org/soap/envelope/"; xmlns:aut="
>> http://authentication.services.core.carbon.wso2.org";>\
>> \
>> \
>> \
>> ' +username
>> +'\
>> ' +password
>> +'\
>> ' +remoteAddr
>> +'\
>> \
>> \
>> ';
>>
>> try{
>> httpAuth.send(payload);
>> //var BPSResponse = httpAuth.responseText;
>> var BPSResponse = httpAuth.responseXML;
>> log.info('RESPONSE XML : ' +BPSResponse.toXMLString());
>> log.info('RESPONSE:' +httpAuth.responseText.toString());
>>
>> }catch(e){
>>  log.error(e.toString());
>> }
>>
>> Thanks,
>> Milinda
>>
>> --
>> Milinda Perera
>> Software Engineer;
>> WSO2 Inc. http://wso2.com ,
>> Mobile: (+94) 714 115 032
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Tishan Dahanayakage
> Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>



-- 
Milinda Perera
Software Engineer;
WSO2 Inc. http://wso2.com ,
Mobile: (+94) 714 115 032
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [jaggery] responseXML of XMLHttpRequest returns null

2014-07-29 Thread Tishan Dahanayakage
Hi Milinda,
Can you please post the response text?


On Tue, Jul 29, 2014 at 5:20 PM, Milinda Perera  wrote:

> Hi,
>   I'm writing jaggery app to retrieve data from a Admin services. I'm
> getting for *responseXML* of XMLHttpRequest (responseText works
> perfectly) any problem with my code?
>
> var httpAuth = new XMLHttpRequest();
> var endPoint = '
> https://10.100.5.92:9443/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/
> ';
>
> httpAuth.open('POST', endPoint, false);
> httpAuth.setRequestHeader('SOAPAction', 'urn:login');
> httpAuth.setRequestHeader('Content-Type','text/xml');
>
> var payload = 'http://schemas.xmlsoap.org/soap/envelope/"; xmlns:aut="
> http://authentication.services.core.carbon.wso2.org";>\
> \
> \
> \
> ' +username
> +'\
> ' +password
> +'\
> ' +remoteAddr
> +'\
> \
> \
> ';
>
> try{
> httpAuth.send(payload);
> //var BPSResponse = httpAuth.responseText;
> var BPSResponse = httpAuth.responseXML;
> log.info('RESPONSE XML : ' +BPSResponse.toXMLString());
> log.info('RESPONSE:' +httpAuth.responseText.toString());
>
> }catch(e){
>  log.error(e.toString());
> }
>
> Thanks,
> Milinda
>
> --
> Milinda Perera
> Software Engineer;
> WSO2 Inc. http://wso2.com ,
> Mobile: (+94) 714 115 032
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Tishan Dahanayakage
Software Engineer
WSO2, Inc.
Mobile:+94 716481328

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


Re: [Dev] [DSS] Datasource deployer

2014-07-29 Thread Rajith Vitharana
Hi,

I have attached the new diff file for the data source deployer feature. I
have added the password encryption support so the datasource xml files can
have encrypted passwords. Sample car file is also attached here with.
Please review and commit.

Thanks,


On Mon, Jul 28, 2014 at 11:48 AM, Rajith Vitharana  wrote:

> Hi Jasintha,Sohani,
>
> Thanks for the quick response. The "type" defined in "artifact.xml" should
> be "datasource/datasource" for it to be picked up by the datasource
> deployment handler and get deployed. Below is a sample
>
> 
>  serverRole="ApplicationServer">
> DataSource.xml
> 
>
> Thanks,
>
>
> On Mon, Jul 28, 2014 at 11:37 AM, Sohani Weerasinghe 
> wrote:
>
>> Hi,
>>
>> I am working on implementing the Datasource editor in DevS.
>>
>> Thanks,
>> Sohani
>>
>> Sohani Weerasinghe
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>>
>> On Mon, Jul 28, 2014 at 11:04 AM, Jasintha Dasanayake 
>> wrote:
>>
>>> Hi
>>>
>>> We can provide a single page form editor in DevS to edit this config
>>>
>>> Thanks and regards
>>> /Jasintha
>>>
>>>
>>>
>>> On Mon, Jul 28, 2014 at 10:36 AM, Rajith Vitharana 
>>> wrote:
>>>
 Hi Kasun,

 Yes these datasources only provides a read-only view. and they won't be
 saved in the registry. other than that they are same as the datasources
 which we can create using UI.

 Hi Nirmal,

 noted. I'll try out encryption of passwords and to get DevS support

 Thanks,


 On Mon, Jul 28, 2014 at 10:28 AM, Nirmal Fernando 
 wrote:

> Thanks Rajith. Seems like for this feature, we need DevS support (data
> source resource type) before deployed in a production environment. Also,
> this feature should ideally support encryption of passwords.
>
>
> On Mon, Jul 28, 2014 at 10:21 AM, Rajith Vitharana 
> wrote:
>
>> Hi Nirmal,
>>
>> This is a Appdeployment handler which will pickup datasources
>> deployed as carbon application and register them as datasources.
>> since datasource xml file is already in car app this feature wont
>> save it to the registry to avoid duplication.
>> datasources deployed as car apps can't be edited using UI. Editing
>> them should be done by redeploying the car app.
>>
>> Thanks,
>>
>>
>> On Mon, Jul 28, 2014 at 9:49 AM, Nirmal Fernando 
>> wrote:
>>
>>> Hi Rajith,
>>>
>>> Can you please also mention what new improvements this patch brings?
>>>
>>>
>>> On Mon, Jul 28, 2014 at 9:39 AM, Rajith Vitharana 
>>> wrote:
>>>
 Hi,

 Attached here with the diff for datasource deployer feature for
 org.wso2.carbon.ndatasource.core and a sample car file. please review 
 and
 commit

 Thanks,

 --
 Rajith Vitharana

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

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


>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


 --
 Rajith Vitharana

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

>>>
>>>
>>>
>>> --
>>>
>>> *Jasintha Dasanayake *
>>>
>>> *Senior Software EngineerWSO2 Inc. | http://wso2.com 
>>> lean . enterprise . middleware*
>>>
>>>
>>> *mobile :- 0711368118 <0711368118> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Rajith Vitharana
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
>



-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
Index: pom.xml
===
--- pom.xml (revision 204943)
+++ pom.xml (workin

Re: [Dev] Error in using CQL data source for master-datasources.xml

2014-07-29 Thread Udara Rathnayake
Hi Asitha,

Not sure whether you can use this approach or not, previously in ES product
we had following Cassandra data-source[1] definition and able to create
connection using following, But we have used cassandra.cql.jdbc driver here.

CarbonDataSource carbonDataSource =
DataSourceManager.getInstance().getDataSourceRepository().getDataSource("SOCIAL_CASSANDRA_DB");
DataSource dataSource = (DataSource) carbonDataSource.getDSObject();
conn = dataSource.getConnection();

[1]


SOCIAL_CASSANDRA_DB
 The cassandra datasource used for storing social
activities

 
jdbc:cassandra://localhost:9160/EVENT_KS
 admin
admin

org.apache.cassandra.cql.jdbc.CassandraDriver

 


Regards,
UdaraR


On Tue, Jul 29, 2014 at 2:25 PM, Asitha Nanayakkara  wrote:

> Hi,
>
> While trying to integrate CQL data source feature of
> master-datasources.xml to MB I get an error at run time.
>
> I've used the following method to get the connection
>
>> com.datastax.driver.core.Cluster cluster
>> = InitialContext.doLookup("CassandraRepo");
>
>
> Following is the error I get.
>
> [2014-07-29 14:08:57,035] ERROR
> {org.wso2.carbon.ndatasource.core.DataSourceRepository} -  A data source
> reader cannot be found for the type 'CASSANDRA'
> org.wso2.carbon.ndatasource.common.DataSourceException: A data source
> reader cannot be found for the type 'CASSANDRA'
> at
> org.wso2.carbon.ndatasource.core.DataSourceRepository.createDataSourceObject(DataSourceRepository.java:196)
>  at
> org.wso2.carbon.ndatasource.core.DataSourceRepository.registerDataSource(DataSourceRepository.java:359)
> at
> org.wso2.carbon.ndatasource.core.DataSourceRepository.addDataSource(DataSourceRepository.java:473)
>  at
> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:185)
> at
> org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:157)
>  at
> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSystemDataSources(DataSourceServiceComponent.java:191)
> at
> org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setSecretCallbackHandlerService(DataSourceServiceComponent.java:177)
>  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.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:432)
>  at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)
> 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.securevault.internal.SecretManagerInitializerComponent.activate(SecretManagerInitializerComponent.java:48)
> 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.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>  at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> or

Re: [Dev] Reading cluster configuration from axis2.xml

2014-07-29 Thread Ishan Jayawardena
I used the same method and I think this is the correct way.
Thanks,
Ishan.


On Tue, Jul 29, 2014 at 5:29 PM, Malaka Silva  wrote:

> I think Ishan has done similar when Integrating ntask component into ESB.
>
> @Ishan can you share the details?
>
>
> On Tue, Jul 29, 2014 at 5:04 PM, Sewwandi Perera 
> wrote:
>
>> Hi,
>>
>> I want to read axis2.xml to find whether clustering is enabled in the
>> pack.
>>
>> To do that, I use config.context.service, which is exposed as an OSGI
>> service, and do following logic.
>>
>> protected void
>> setConfigurationContextService(ConfigurationContextService
>> configurationContextService) {
>> ClusteringAgent agent =
>> configurationContextService.getServerConfigContext().getAxisConfiguration().getClusteringAgent();
>> this.isClusteringEnabled = (agent != null);
>> }
>>
>> Basically, if ClusteringAgent is null, I consider it as a standalone
>> deployment.
>>
>> Is this the correct approach?
>>
>> Thanks and Regards,
>> Sewwandi
>>
>> --
>> Sewwandi Perera
>> Software Engineer
>>
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
> 
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
Ishan Jayawardena
Senior Software Engineer
Mobile: +94 (77) 408 2330
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Miss-implication logs for Deployment Synchronizor - jira issue CARBON-14723

2014-07-29 Thread Nipuni Perera
No, Manager-node changes it's revision number with updates. (Recent
modifications to dep-sync calls checkout() method inside commit(). Just
checked with kasunG). I didn't have recent update in my local repo and
didn't noticed changes in revision numbers. According to current updates
revision numbers change with updates, in both manager and worker nodes.

Thanks,
Nipuni


On Tue, Jul 29, 2014 at 4:28 PM, Kishanthan Thangarajah  wrote:

> -- Sent from mobile --
>
> On 29 Jul 2014 13:36, "Nipuni Perera"  wrote:
> >
> > Hi,
> >
> > I have updated the above patch with the attachment
> SVNBasedArtifactRepository.patch. When svn is update by a manager-node, svn
> get a new revision number with the update but manager node remains in the
> same revision number. It does not call checkout() or update() methods
> above. If I restart the manger-node, there I can observe two different
> values for newRevisionNumberLog and lastRevisionNumber inside checkout()
> method of manager-node.
>
> Is it the same behaviour without your fixes too? The revision number
> cannot change unless there is a check-in.
>
> >
> > I have sent a pull request for the above fix.
> >
> > Thanks,
> > Nipuni
> >
> >
> > On Mon, Jul 28, 2014 at 11:21 AM, Nipuni Perera  wrote:
> >>
> >> Hi,
> >>
> >> I have update the log messages and methods mentioned earlier. Find the
> attached patch.
> >>
> >> Thanks,
> >> Nipuni
> >>
> >>
> >> On Wed, Jul 9, 2014 at 3:35 PM, Nipuni Perera  wrote:
> >>>
> >>>
> >>> Hi,
> >>>
> >>> I am working on $subject.Three methods below
> >>>
> >>> checkout(int tenantId, String filePath, int depth)
> >>>
> >>> update(int tenantId, String rootPath, String filePathToUpdate, int
> depth)
> >>>
> >>> checkout(int tenantId, String filePath)
> >>>
> >>>  in [1] uses the code,
> >>>
> >>> filesUpdated = svnClient.update(root, SVNRevision.HEAD,Depth.infinity,
> NO_SET_DEPTH,ignoreExternals, forceUpdate);
> >>>
> >>> svnClient.update(..) returns revision number but assigned to
> filesUpdated. The method return value is set to
> >>>
> >>> filesUpdated >1
> >>>
> >>> which is incorrect. According to javadocs[2], methods should return
> true if files were checked out or updates, false otherwise. If files were
> changed, it can be detected comparing revision numbers. Therefore the
> return value would be,
> >>>
> >>>  long lastRevisionNumber =
> svnClient.getInfo(root).getLastChangedRevision();
> >>>  long newRevisionNumber = svnClient.update(root,
> SVNRevision.HEAD,Depth.infinity, NO_SET_DEPTH,ignoreExternals, forceUpdate);
> >>>
> >>>  return newRevisionNumber>lastRevisionNumber;
> >>>
> >>> This gives different values for newRevisionNumberLog and
> lastRevisionNumber, when I debug with a worker node, but gave same value
> for both variables for manager node. What could be the issue here?. Log
> messages should also updated accordingly. Is there any other issue to
> consider?
> >>>
> >>> [1]
> https://github.com/wso2-dev/carbon-commons/blob/master/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java
> >>>
> >>> [2]
> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer/src/main/java/org/wso2/carbon/deployment/synchronizer/ArtifactRepository.java
> >>>
> >>> Thanks,
> >>> Nipuni
> >>> --
> >>> Nipuni Perera
> >>> Software Engineer; WSO2 Inc.; http://wso2.com
> >>> Email: nip...@wso2.com
> >>> Git hub profile: https://github.com/nipuni
> >>> Mobile: +94 (71) 5626680
> >>>
> >>
> >>
> >>
> >> --
> >> Nipuni Perera
> >> Software Engineer; WSO2 Inc.; http://wso2.com
> >> Email: nip...@wso2.com
> >> Git hub profile: https://github.com/nipuni
> >> Mobile: +94 (71) 5626680
> >>
> >
> >
> >
> > --
> > Nipuni Perera
> > Software Engineer; WSO2 Inc.; http://wso2.com
> > Email: nip...@wso2.com
> > Git hub profile: https://github.com/nipuni
> > Mobile: +94 (71) 5626680
> >
>



-- 
Nipuni Perera
Software Engineer; WSO2 Inc.; http://wso2.com
Email: nip...@wso2.com
Git hub profile: https://github.com/nipuni
Mobile: +94 (71) 5626680

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


Re: [Dev] Reading cluster configuration from axis2.xml

2014-07-29 Thread Malaka Silva
I think Ishan has done similar when Integrating ntask component into ESB.

@Ishan can you share the details?


On Tue, Jul 29, 2014 at 5:04 PM, Sewwandi Perera  wrote:

> Hi,
>
> I want to read axis2.xml to find whether clustering is enabled in the pack.
>
> To do that, I use config.context.service, which is exposed as an OSGI
> service, and do following logic.
>
> protected void
> setConfigurationContextService(ConfigurationContextService
> configurationContextService) {
> ClusteringAgent agent =
> configurationContextService.getServerConfigContext().getAxisConfiguration().getClusteringAgent();
> this.isClusteringEnabled = (agent != null);
> }
>
> Basically, if ClusteringAgent is null, I consider it as a standalone
> deployment.
>
> Is this the correct approach?
>
> Thanks and Regards,
> Sewwandi
>
> --
> Sewwandi Perera
> Software Engineer
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/


Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [jaggery] responseXML of XMLHttpRequest returns null

2014-07-29 Thread Milinda Perera
Hi,
  I'm writing jaggery app to retrieve data from a Admin services. I'm
getting for *responseXML* of XMLHttpRequest (responseText works perfectly)
any problem with my code?

var httpAuth = new XMLHttpRequest();
var endPoint = '
https://10.100.5.92:9443/services/AuthenticationAdmin.AuthenticationAdminHttpsSoap11Endpoint/
';

httpAuth.open('POST', endPoint, false);
httpAuth.setRequestHeader('SOAPAction', 'urn:login');
httpAuth.setRequestHeader('Content-Type','text/xml');

var payload = 'http://schemas.xmlsoap.org/soap/envelope/"; xmlns:aut="
http://authentication.services.core.carbon.wso2.org";>\
\
\
\
' +username
+'\
' +password
+'\
' +remoteAddr
+'\
\
\
';

try{
httpAuth.send(payload);
//var BPSResponse = httpAuth.responseText;
var BPSResponse = httpAuth.responseXML;
log.info('RESPONSE XML : ' +BPSResponse.toXMLString());
log.info('RESPONSE:' +httpAuth.responseText.toString());

}catch(e){
 log.error(e.toString());
}

Thanks,
Milinda

-- 
Milinda Perera
Software Engineer;
WSO2 Inc. http://wso2.com ,
Mobile: (+94) 714 115 032
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Is there a direct method to retrieve number of assets from the registry?

2014-07-29 Thread Ayesha Dissanayaka
Hi,

In order to provide pagination via ES-API we need to get the number of
available assets of a given type.

> ex: Registry.ArtifactManager.getCount();
>

If registry provides such direct method, what would be it? If not, is it
possible to provide such method or what would be the best approach?

-- 
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.co

20, Palmgrove Avenue, Colombo 3
E-Mail: aye...@tryso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can you please merge and release https://github.com/wso2/orbit/pull/13

2014-07-29 Thread Maheshika Goonetilleke
Hi Geeth

Done.


On Tue, Jul 29, 2014 at 5:02 PM, Geeth Munasinghe  wrote:

> Hi Maheshika,
>
> I have merged the changes to [1]. Please release that.
>
> [1]
> https://github.com/wso2/orbit/tree/master/spring-framework/3.2.9.wso2v1
>
> Thanks
> Geeth
>
>
>
>
> *G. K. S. Munasinghe *
> *Software Engineer,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ge...@wso2.com
> phone:(+94) 777911226
>
>
> On Tue, Jul 29, 2014 at 4:53 PM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> done
>>
>>
>>
>> On Tue, Jul 29, 2014 at 4:49 PM, Geeth Munasinghe  wrote:
>>
>>> geethkokila
>>>
>>>
>>> *G. K. S. Munasinghe *
>>> *Software Engineer,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: ge...@wso2.com
>>> phone:(+94) 777911226
>>>
>>>
>>> On Tue, Jul 29, 2014 at 4:42 PM, Maheshika Goonetilleke <
>>> mahesh...@wso2.com> wrote:
>>>
 Hi Geeth

 Please provide your GIT id.




 On Tue, Jul 29, 2014 at 4:34 PM, Geeth Munasinghe 
 wrote:

> Hi Maheshika,
>
> Can you please merge [1]  and release  [2] in github orbit/
>
> [1] https://github.com/wso2/orbit/pull/13
> [2]
> https://github.com/wso2/orbit/tree/master/spring-framework/3.2.9.wso2v1
>
> Thanks
> Geeth
>
>
>
>
> *G. K. S. Munasinghe*
> *Software Engineer,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ge...@wso2.com
> phone:(+94) 777911226
>



 --

 Thanks & Best Regards,

 Maheshika Goonetilleke
 Engineering Process Coordinator

 *WSO2 Inc*
 *email   : mahesh...@wso2.com  *
 *mobile : +94 773 596707 <%2B94%20773%20596707>*
 *www: :http://wso2.com  *lean . enterprise .
 middleware





>>>
>>
>>
>> --
>>
>> Thanks & Best Regards,
>>
>> Maheshika Goonetilleke
>> Engineering Process Coordinator
>>
>> *WSO2 Inc*
>> *email   : mahesh...@wso2.com  *
>> *mobile : +94 773 596707 <%2B94%20773%20596707>*
>> *www: :http://wso2.com  *lean . enterprise . middleware
>>
>>
>>
>>
>>
>


-- 

Thanks & Best Regards,

Maheshika Goonetilleke
Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com *
*mobile : +94 773 596707*
*www: :http://wso2.com *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Reading cluster configuration from axis2.xml

2014-07-29 Thread Sewwandi Perera
Hi,

I want to read axis2.xml to find whether clustering is enabled in the pack.

To do that, I use config.context.service, which is exposed as an OSGI
service, and do following logic.

protected void
setConfigurationContextService(ConfigurationContextService
configurationContextService) {
ClusteringAgent agent =
configurationContextService.getServerConfigContext().getAxisConfiguration().getClusteringAgent();
this.isClusteringEnabled = (agent != null);
}

Basically, if ClusteringAgent is null, I consider it as a standalone
deployment.

Is this the correct approach?

Thanks and Regards,
Sewwandi

-- 
Sewwandi Perera
Software Engineer

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


Re: [Dev] Can you please merge and release https://github.com/wso2/orbit/pull/13

2014-07-29 Thread Geeth Munasinghe
Hi Maheshika,

I have merged the changes to [1]. Please release that.

[1] https://github.com/wso2/orbit/tree/master/spring-framework/3.2.9.wso2v1

Thanks
Geeth




*G. K. S. Munasinghe *
*Software Engineer,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: ge...@wso2.com
phone:(+94) 777911226


On Tue, Jul 29, 2014 at 4:53 PM, Maheshika Goonetilleke 
wrote:

> done
>
>
>
> On Tue, Jul 29, 2014 at 4:49 PM, Geeth Munasinghe  wrote:
>
>> geethkokila
>>
>>
>> *G. K. S. Munasinghe *
>> *Software Engineer,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ge...@wso2.com
>> phone:(+94) 777911226
>>
>>
>> On Tue, Jul 29, 2014 at 4:42 PM, Maheshika Goonetilleke <
>> mahesh...@wso2.com> wrote:
>>
>>> Hi Geeth
>>>
>>> Please provide your GIT id.
>>>
>>>
>>>
>>>
>>> On Tue, Jul 29, 2014 at 4:34 PM, Geeth Munasinghe 
>>> wrote:
>>>
 Hi Maheshika,

 Can you please merge [1]  and release  [2] in github orbit/

 [1] https://github.com/wso2/orbit/pull/13
 [2]
 https://github.com/wso2/orbit/tree/master/spring-framework/3.2.9.wso2v1

 Thanks
 Geeth




 *G. K. S. Munasinghe*
 *Software Engineer,*
 *WSO2, Inc. http://wso2.com  *
 *lean.enterprise.middleware.*

 email: ge...@wso2.com
 phone:(+94) 777911226

>>>
>>>
>>>
>>> --
>>>
>>> Thanks & Best Regards,
>>>
>>> Maheshika Goonetilleke
>>> Engineering Process Coordinator
>>>
>>> *WSO2 Inc*
>>> *email   : mahesh...@wso2.com  *
>>> *mobile : +94 773 596707 <%2B94%20773%20596707>*
>>> *www: :http://wso2.com  *lean . enterprise .
>>> middleware
>>>
>>>
>>>
>>>
>>>
>>
>
>
> --
>
> Thanks & Best Regards,
>
> Maheshika Goonetilleke
> Engineering Process Coordinator
>
> *WSO2 Inc*
> *email   : mahesh...@wso2.com  *
> *mobile : +94 773 596707 <%2B94%20773%20596707>*
> *www: :http://wso2.com  *lean . enterprise . middleware
>
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jaggery - Extracting an uploaded .zip file

2014-07-29 Thread Buddhima Wijeweera
Hi Rajith,

Thank you for the explanation. The given solution worked !

It seems zip4j by default locate files relative to server_home.

Thanks!


On Tue, Jul 29, 2014 at 3:28 PM, Rajith Vitharana  wrote:

> Hi Buddhima,
>
> As I have pointed out earlier you can take the server home folder using
> "require('process').getProperty('carbon.home')"
> Using this you can save your zip file to a location of your choice
> then using Zip4j lib in [1] you can extract the content of the zip file to
> any location where you need
> for that copy the "Zip4j.jar" file to
> "SERVER_HOME/repository/component/lib" folder and restart the server
> then use below code in jaggery to extract your zip file
>
> var zipFile = new
> net.lingala.zip4j.core.ZipFile("/wso2ues-1.5.0/hello/ddd.zip");
> zipFile.extractAll("/wso2ues-1.5.0/hello/unzip");
>
> Thanks,
>
>
> [1] - http://www.lingala.net/zip4j/download.php
>
>
> On Tue, Jul 29, 2014 at 2:43 PM, Buddhima Wijeweera 
> wrote:
>
>> Hi,
>>
>> Currently I have developed a Jaggery app which is running on Jaggery
>> server. I was also able to send POST request containing a zip file to that
>> app.
>>
>> So what I need is ; that Jaggery app to extract that uploaded zip file,
>> and put its content in to a folder.
>>
>> Hope this will make my question more clear.
>>
>> Thank You!
>>
>>
>> On Tue, Jul 29, 2014 at 2:36 PM, Dilan Udara Ariyaratne 
>> wrote:
>>
>>> Hi Buddhima,
>>>
>>> Once you have created your jaggery app (let's name the containing folder
>>> as ), select all the files and folders inside
>>> 
>>> and compress the files into a .zip file which you can upload to the
>>> Application server under this path:
>>> Home > Manage > Applications > Add > Jaggery
>>>
>>> If you are simply using the jaggery server to get this done, copy
>>>  with its content to /apps
>>> and start the server.
>>> Now, you should be able to access your application using the following
>>> url:
>>> http://localhost:9763/ by default.
>>>
>>> Cheers...
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. 
>>> Mobile: +94775149066
>>> lean . enterprise . middleware
>>>
>>>
>>> On Tue, Jul 29, 2014 at 2:17 PM, Udara Rathnayake 
>>> wrote:
>>>
 Hi Buddhima,

 If you upload a zip file to any location within
 /repository/deployment/server/jaggeryapps/ , server will
 treat that file as a webapp and unzip it for you.

 You can try this behavior by copying a zip file to a directory inside
 your webapp. But I'm not sure whether this behaviour is correct or not.
 File API[1] might help you further.

 [1] http://jaggeryjs.org/documentation.jag?api=file

 Regards,
 UdaraR


 On Tue, Jul 29, 2014 at 2:05 PM, Buddhima Wijeweera 
 wrote:

> Hi,
>
> I'm currently developing a Jaggery app, which user can upload a zip
> file. After uploading the zip file, Jaggery app should extract that zip
> file & put the content in to a folder (at server-side).
>
> So I would like to know how can I do this or is there any place where
> this is already implemented.
>
> Thank You!
>
> --
> Buddhima Wijeweera
> Software Engineer; WSO2 Inc.; http://wso2.com ,
>
> Email: buddh...@wso2.com
> Blog:   https://buddhimawijeweera.wordpress.com
> GitHub Profile: https://github.com/Buddhima
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Udara Rathnayake*
 Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile : +94 772207239
 Twitter : http://twitter.com/udarakr
 Blog: http://udarakr.blogspot.com


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


>>>
>>
>>
>> --
>> Buddhima Wijeweera
>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>
>> Email: buddh...@wso2.com
>> Blog:   https://buddhimawijeweera.wordpress.com
>> GitHub Profile: https://github.com/Buddhima
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajith Vitharana
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
>



-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can you please merge and release https://github.com/wso2/orbit/pull/13

2014-07-29 Thread Geeth Munasinghe
geethkokila


*G. K. S. Munasinghe*
*Software Engineer,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: ge...@wso2.com
phone:(+94) 777911226


On Tue, Jul 29, 2014 at 4:42 PM, Maheshika Goonetilleke 
wrote:

> Hi Geeth
>
> Please provide your GIT id.
>
>
>
>
> On Tue, Jul 29, 2014 at 4:34 PM, Geeth Munasinghe  wrote:
>
>> Hi Maheshika,
>>
>> Can you please merge [1]  and release  [2] in github orbit/
>>
>> [1] https://github.com/wso2/orbit/pull/13
>> [2]
>> https://github.com/wso2/orbit/tree/master/spring-framework/3.2.9.wso2v1
>>
>> Thanks
>> Geeth
>>
>>
>>
>>
>> *G. K. S. Munasinghe*
>> *Software Engineer,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ge...@wso2.com
>> phone:(+94) 777911226
>>
>
>
>
> --
>
> Thanks & Best Regards,
>
> Maheshika Goonetilleke
> Engineering Process Coordinator
>
> *WSO2 Inc*
> *email   : mahesh...@wso2.com  *
> *mobile : +94 773 596707 <%2B94%20773%20596707>*
> *www: :http://wso2.com  *lean . enterprise . middleware
>
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can you please merge and release https://github.com/wso2/orbit/pull/13

2014-07-29 Thread Maheshika Goonetilleke
done



On Tue, Jul 29, 2014 at 4:49 PM, Geeth Munasinghe  wrote:

> geethkokila
>
>
> *G. K. S. Munasinghe*
> *Software Engineer,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ge...@wso2.com
> phone:(+94) 777911226
>
>
> On Tue, Jul 29, 2014 at 4:42 PM, Maheshika Goonetilleke <
> mahesh...@wso2.com> wrote:
>
>> Hi Geeth
>>
>> Please provide your GIT id.
>>
>>
>>
>>
>> On Tue, Jul 29, 2014 at 4:34 PM, Geeth Munasinghe  wrote:
>>
>>> Hi Maheshika,
>>>
>>> Can you please merge [1]  and release  [2] in github orbit/
>>>
>>> [1] https://github.com/wso2/orbit/pull/13
>>> [2]
>>> https://github.com/wso2/orbit/tree/master/spring-framework/3.2.9.wso2v1
>>>
>>> Thanks
>>> Geeth
>>>
>>>
>>>
>>>
>>> *G. K. S. Munasinghe*
>>> *Software Engineer,*
>>> *WSO2, Inc. http://wso2.com  *
>>> *lean.enterprise.middleware.*
>>>
>>> email: ge...@wso2.com
>>> phone:(+94) 777911226
>>>
>>
>>
>>
>> --
>>
>> Thanks & Best Regards,
>>
>> Maheshika Goonetilleke
>> Engineering Process Coordinator
>>
>> *WSO2 Inc*
>> *email   : mahesh...@wso2.com  *
>> *mobile : +94 773 596707 <%2B94%20773%20596707>*
>> *www: :http://wso2.com  *lean . enterprise . middleware
>>
>>
>>
>>
>>
>


-- 

Thanks & Best Regards,

Maheshika Goonetilleke
Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com *
*mobile : +94 773 596707*
*www: :http://wso2.com *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can you please merge and release https://github.com/wso2/orbit/pull/13

2014-07-29 Thread Maheshika Goonetilleke
Hi Geeth

Please provide your GIT id.




On Tue, Jul 29, 2014 at 4:34 PM, Geeth Munasinghe  wrote:

> Hi Maheshika,
>
> Can you please merge [1]  and release  [2] in github orbit/
>
> [1] https://github.com/wso2/orbit/pull/13
> [2]
> https://github.com/wso2/orbit/tree/master/spring-framework/3.2.9.wso2v1
>
> Thanks
> Geeth
>
>
>
>
> *G. K. S. Munasinghe*
> *Software Engineer,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ge...@wso2.com
> phone:(+94) 777911226
>



-- 

Thanks & Best Regards,

Maheshika Goonetilleke
Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com *
*mobile : +94 773 596707*
*www: :http://wso2.com *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can you please merge and release https://github.com/wso2/orbit/pull/13

2014-07-29 Thread Geeth Munasinghe
Hi Maheshika,

Can you please merge [1]  and release  [2] in github orbit/

[1] https://github.com/wso2/orbit/pull/13
[2] https://github.com/wso2/orbit/tree/master/spring-framework/3.2.9.wso2v1

Thanks
Geeth




*G. K. S. Munasinghe*
*Software Engineer,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: ge...@wso2.com
phone:(+94) 777911226
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Miss-implication logs for Deployment Synchronizor - jira issue CARBON-14723

2014-07-29 Thread Kishanthan Thangarajah
-- Sent from mobile --
On 29 Jul 2014 13:36, "Nipuni Perera"  wrote:
>
> Hi,
>
> I have updated the above patch with the attachment
SVNBasedArtifactRepository.patch. When svn is update by a manager-node, svn
get a new revision number with the update but manager node remains in the
same revision number. It does not call checkout() or update() methods
above. If I restart the manger-node, there I can observe two different
values for newRevisionNumberLog and lastRevisionNumber inside checkout()
method of manager-node.

Is it the same behaviour without your fixes too? The revision number cannot
change unless there is a check-in.

>
> I have sent a pull request for the above fix.
>
> Thanks,
> Nipuni
>
>
> On Mon, Jul 28, 2014 at 11:21 AM, Nipuni Perera  wrote:
>>
>> Hi,
>>
>> I have update the log messages and methods mentioned earlier. Find the
attached patch.
>>
>> Thanks,
>> Nipuni
>>
>>
>> On Wed, Jul 9, 2014 at 3:35 PM, Nipuni Perera  wrote:
>>>
>>>
>>> Hi,
>>>
>>> I am working on $subject.Three methods below
>>>
>>> checkout(int tenantId, String filePath, int depth)
>>>
>>> update(int tenantId, String rootPath, String filePathToUpdate, int
depth)
>>>
>>> checkout(int tenantId, String filePath)
>>>
>>>  in [1] uses the code,
>>>
>>> filesUpdated = svnClient.update(root, SVNRevision.HEAD,Depth.infinity,
NO_SET_DEPTH,ignoreExternals, forceUpdate);
>>>
>>> svnClient.update(..) returns revision number but assigned to
filesUpdated. The method return value is set to
>>>
>>> filesUpdated >1
>>>
>>> which is incorrect. According to javadocs[2], methods should return
true if files were checked out or updates, false otherwise. If files were
changed, it can be detected comparing revision numbers. Therefore the
return value would be,
>>>
>>>  long lastRevisionNumber =
svnClient.getInfo(root).getLastChangedRevision();
>>>  long newRevisionNumber = svnClient.update(root,
SVNRevision.HEAD,Depth.infinity, NO_SET_DEPTH,ignoreExternals, forceUpdate);
>>>
>>>  return newRevisionNumber>lastRevisionNumber;
>>>
>>> This gives different values for newRevisionNumberLog and
lastRevisionNumber, when I debug with a worker node, but gave same value
for both variables for manager node. What could be the issue here?. Log
messages should also updated accordingly. Is there any other issue to
consider?
>>>
>>> [1]
https://github.com/wso2-dev/carbon-commons/blob/master/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java
>>>
>>> [2]
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer/src/main/java/org/wso2/carbon/deployment/synchronizer/ArtifactRepository.java
>>>
>>> Thanks,
>>> Nipuni
>>> --
>>> Nipuni Perera
>>> Software Engineer; WSO2 Inc.; http://wso2.com
>>> Email: nip...@wso2.com
>>> Git hub profile: https://github.com/nipuni
>>> Mobile: +94 (71) 5626680
>>>
>>
>>
>>
>> --
>> Nipuni Perera
>> Software Engineer; WSO2 Inc.; http://wso2.com
>> Email: nip...@wso2.com
>> Git hub profile: https://github.com/nipuni
>> Mobile: +94 (71) 5626680
>>
>
>
>
> --
> Nipuni Perera
> Software Engineer; WSO2 Inc.; http://wso2.com
> Email: nip...@wso2.com
> Git hub profile: https://github.com/nipuni
> Mobile: +94 (71) 5626680
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MB Menagement console cannot be accessed when clustering is enabled

2014-07-29 Thread Kishanthan Thangarajah
-- Sent from mobile --
On 29 Jul 2014 14:50, "Sewwandi Perera"  wrote:
>
> Hi,
>
> We observed that the UI issue has come as a result of below configuration
in axis2.xml.
> false
>
> To check above behavior, we set "AvoidInitiation" property to "false" in
an AS server and found that management console is inaccessible. This is
similar to the issue we observed in MB.
>
> But the next problem is, when I set the AvoidInitiation to 'true', to get
rid of the UI issue, the Hazelcast instance is not exposed through the OSGI
service. ("com.hazelcast.core.HazelcastInstance" was not listed under
services in OSGI console)
>
> In that case, how can I access the Hazelcast instance exposed by Carbon?

Can you try debug HazelcastClusteringAgent's init method by setting
AvoidInitiation to true? That is where the service gets registered.

>
> Thanks and Regards,
> Sewwandi
>
>
>
> On Tue, Jul 29, 2014 at 11:38 AM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:
>>
>> Set AvoidInitiation to 'true' and start again.
>>
>> Also to make sure a server is started properly, you should see the below
logs.
>>
>> [2014-07-29 10:58:43,632]  INFO
{org.wso2.carbon.core.transports.http.HttpsTransportListener} -  HTTPS port
  : 9443
>> [2014-07-29 10:58:43,633]  INFO
{org.wso2.carbon.core.transports.http.HttpTransportListener} -  HTTP port
 : 9763
>>
>> [2014-07-29 10:58:44,060]  INFO
{org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Server
  :  ${product.name}-${product.version}
>> [2014-07-29 10:58:44,061]  INFO
{org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2
Carbon started in 18 sec
>>
>>
>> On Mon, Jul 28, 2014 at 11:31 AM, Sewwandi Perera 
wrote:
>>>
>>> Hi,
>>>
>>> We recently modified WSO2 MB to use Hazelcast for coordination instead
of Apache Zookeeper.
>>>
>>> In clustered mode, we use following configurations in axis2.xml to
enable Clustering;
>>>
>>> >> enable="true">
>>> false
>>> wka
>>> 127.0.0.1
>>> 4000
>>>  
>>> 
>>> 127.0.0.1
>>> 4001
>>> 
>>> 
>>>
>>> In standalone mode, we can access MB management console without any
issue.
>>>
>>> But in clustered mode, even though below log appears, we cannot access
management console using browser.
>>> INFO {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt
Console URL  : https://10.100.5.67:9443/carbon/
>>>
>>> Additionally, we see error traces neither in server side nor in browser.
>>>
>>> What can be the cause behind this issue?
>>>
>>> Thanks and Regards,
>>> Sewwandi
>>>
>>> --
>>> Sewwandi Perera
>>> Software Engineer
>>>
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>
>>
>>
>>
>> --
>> Kishanthan Thangarajah
>> Senior Software Engineer,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - http://kishanthan.wordpress.com
>> Twitter - http://twitter.com/kishanthan
>
>
>
>
> --
> Sewwandi Perera
> Software Engineer
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jaggery - Extracting an uploaded .zip file

2014-07-29 Thread Rajith Vitharana
Hi Buddhima,

As I have pointed out earlier you can take the server home folder using
"require('process').getProperty('carbon.home')"
Using this you can save your zip file to a location of your choice
then using Zip4j lib in [1] you can extract the content of the zip file to
any location where you need
for that copy the "Zip4j.jar" file to
"SERVER_HOME/repository/component/lib" folder and restart the server
then use below code in jaggery to extract your zip file

var zipFile = new
net.lingala.zip4j.core.ZipFile("/wso2ues-1.5.0/hello/ddd.zip");
zipFile.extractAll("/wso2ues-1.5.0/hello/unzip");

Thanks,


[1] - http://www.lingala.net/zip4j/download.php


On Tue, Jul 29, 2014 at 2:43 PM, Buddhima Wijeweera 
wrote:

> Hi,
>
> Currently I have developed a Jaggery app which is running on Jaggery
> server. I was also able to send POST request containing a zip file to that
> app.
>
> So what I need is ; that Jaggery app to extract that uploaded zip file,
> and put its content in to a folder.
>
> Hope this will make my question more clear.
>
> Thank You!
>
>
> On Tue, Jul 29, 2014 at 2:36 PM, Dilan Udara Ariyaratne 
> wrote:
>
>> Hi Buddhima,
>>
>> Once you have created your jaggery app (let's name the containing folder
>> as ), select all the files and folders inside
>> 
>> and compress the files into a .zip file which you can upload to the
>> Application server under this path:
>> Home > Manage > Applications > Add > Jaggery
>>
>> If you are simply using the jaggery server to get this done, copy
>>  with its content to /apps
>> and start the server.
>> Now, you should be able to access your application using the following
>> url:
>> http://localhost:9763/ by default.
>>
>> Cheers...
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>>
>> On Tue, Jul 29, 2014 at 2:17 PM, Udara Rathnayake 
>> wrote:
>>
>>> Hi Buddhima,
>>>
>>> If you upload a zip file to any location within
>>> /repository/deployment/server/jaggeryapps/ , server will
>>> treat that file as a webapp and unzip it for you.
>>>
>>> You can try this behavior by copying a zip file to a directory inside
>>> your webapp. But I'm not sure whether this behaviour is correct or not.
>>> File API[1] might help you further.
>>>
>>> [1] http://jaggeryjs.org/documentation.jag?api=file
>>>
>>> Regards,
>>> UdaraR
>>>
>>>
>>> On Tue, Jul 29, 2014 at 2:05 PM, Buddhima Wijeweera 
>>> wrote:
>>>
 Hi,

 I'm currently developing a Jaggery app, which user can upload a zip
 file. After uploading the zip file, Jaggery app should extract that zip
 file & put the content in to a folder (at server-side).

 So I would like to know how can I do this or is there any place where
 this is already implemented.

 Thank You!

 --
 Buddhima Wijeweera
 Software Engineer; WSO2 Inc.; http://wso2.com ,

 Email: buddh...@wso2.com
 Blog:   https://buddhimawijeweera.wordpress.com
 GitHub Profile: https://github.com/Buddhima

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


>>>
>>>
>>> --
>>> *Udara Rathnayake*
>>> Software Engineer
>>> WSO2 Inc. : http://wso2.com
>>>
>>> Mobile : +94 772207239
>>> Twitter : http://twitter.com/udarakr
>>> Blog: http://udarakr.blogspot.com
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Buddhima Wijeweera
> Software Engineer; WSO2 Inc.; http://wso2.com ,
>
> Email: buddh...@wso2.com
> Blog:   https://buddhimawijeweera.wordpress.com
> GitHub Profile: https://github.com/Buddhima
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Invitation: Code Review: Web Socket Input Adaptor for CEP @ Tue Jul 29, 2014 4pm - 5pm (Dilini Muthumala)

2014-07-29 Thread Dilini Muthumala
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20140729T103000Z
DTEND:20140729T113000Z
DTSTAMP:20140729T094905Z
ORGANIZER;CN=Dilini Muthumala:mailto:dil...@wso2.com
UID:a0mb2jhan4c2eev9e5n32c4...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Tishan Dahanayakage;X-NUM-GUESTS=0:mailto:tis...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Dilini Muthumala;X-NUM-GUESTS=0:mailto:dil...@wso2.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TR
 UE;CN=LK 3rd Floor Meeting Room - Kernel;X-NUM-GUESTS=0:mailto:wso2.com_323
 4323338383134353...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Seshika Fernando;X-NUM-GUESTS=0:mailto:sesh...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Lasantha Fernando;X-NUM-GUESTS=0:mailto:lasan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Mohanadarshan Vivekanandalingam;X-NUM-GUESTS=0:mailto:mo...@wso2.co
 m
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sriskandarajah Suhothayan;X-NUM-GUESTS=0:mailto:s...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sachini Jayasekara;X-NUM-GUESTS=0:mailto:sachi...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sajith Ravindra;X-NUM-GUESTS=0:mailto:saji...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Rajeev Sampath;X-NUM-GUESTS=0:mailto:raje...@wso2.com
CREATED:20140729T094905Z
DESCRIPTION:View your event at http://www.google.com/calendar/event?action=
 VIEW&eid=YTBtYjJqaGFuNGMyZWV2OWU1bjMyYzRtcjQgZGV2QHdzbzIub3Jn&tok=MTUjZGlsa
 W5pQHdzbzIuY29tNmRmNjNhNTExNjJmM2E0MjI1MWU3YWM4MGRlM2FiYzk4N2FhNjY2Mg&ctz=A
 sia/Colombo&hl=en.
LAST-MODIFIED:20140729T094905Z
LOCATION:LK 3rd Floor Meeting Room - Kernel
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Code Review: Web Socket Input Adaptor for CEP 
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


Re: [Dev] Jaggery - Extracting an uploaded .zip file

2014-07-29 Thread Buddhima Wijeweera
Hi,

Currently I have developed a Jaggery app which is running on Jaggery
server. I was also able to send POST request containing a zip file to that
app.

So what I need is ; that Jaggery app to extract that uploaded zip file, and
put its content in to a folder.

Hope this will make my question more clear.

Thank You!


On Tue, Jul 29, 2014 at 2:36 PM, Dilan Udara Ariyaratne 
wrote:

> Hi Buddhima,
>
> Once you have created your jaggery app (let's name the containing folder
> as ), select all the files and folders inside
> 
> and compress the files into a .zip file which you can upload to the
> Application server under this path:
> Home > Manage > Applications > Add > Jaggery
>
> If you are simply using the jaggery server to get this done, copy
>  with its content to /apps
> and start the server.
> Now, you should be able to access your application using the following url:
> http://localhost:9763/ by default.
>
> Cheers...
>
>
>
>
>
>
>
>
>
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94775149066
> lean . enterprise . middleware
>
>
> On Tue, Jul 29, 2014 at 2:17 PM, Udara Rathnayake  wrote:
>
>> Hi Buddhima,
>>
>> If you upload a zip file to any location within
>> /repository/deployment/server/jaggeryapps/ , server will
>> treat that file as a webapp and unzip it for you.
>>
>> You can try this behavior by copying a zip file to a directory inside
>> your webapp. But I'm not sure whether this behaviour is correct or not.
>> File API[1] might help you further.
>>
>> [1] http://jaggeryjs.org/documentation.jag?api=file
>>
>> Regards,
>> UdaraR
>>
>>
>> On Tue, Jul 29, 2014 at 2:05 PM, Buddhima Wijeweera 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm currently developing a Jaggery app, which user can upload a zip
>>> file. After uploading the zip file, Jaggery app should extract that zip
>>> file & put the content in to a folder (at server-side).
>>>
>>> So I would like to know how can I do this or is there any place where
>>> this is already implemented.
>>>
>>> Thank You!
>>>
>>> --
>>> Buddhima Wijeweera
>>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>>
>>> Email: buddh...@wso2.com
>>> Blog:   https://buddhimawijeweera.wordpress.com
>>> GitHub Profile: https://github.com/Buddhima
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Udara Rathnayake*
>> Software Engineer
>> WSO2 Inc. : http://wso2.com
>>
>> Mobile : +94 772207239
>> Twitter : http://twitter.com/udarakr
>> Blog: http://udarakr.blogspot.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MB Menagement console cannot be accessed when clustering is enabled

2014-07-29 Thread Sewwandi Perera
Hi,

We observed that the UI issue has come as a result of below configuration
in axis2.xml.
false

To check above behavior, we set "AvoidInitiation" property to "false" in an
AS server and found that management console is inaccessible. This is
similar to the issue we observed in MB.

But the next problem is, when I set the AvoidInitiation to 'true', to get
rid of the UI issue, the Hazelcast instance is not exposed through the OSGI
service. ("com.hazelcast.core.HazelcastInstance" was not listed under
services in OSGI console)

In that case, how can I access the Hazelcast instance exposed by Carbon?

Thanks and Regards,
Sewwandi



On Tue, Jul 29, 2014 at 11:38 AM, Kishanthan Thangarajah <
kishant...@wso2.com> wrote:

> Set AvoidInitiation to 'true' and start again.
>
> Also to make sure a server is started properly, you should see the below
> logs.
>
> [2014-07-29 10:58:43,632]  INFO
> {org.wso2.carbon.core.transports.http.HttpsTransportListener} -  HTTPS port
>   : 9443
> [2014-07-29 10:58:43,633]  INFO
> {org.wso2.carbon.core.transports.http.HttpTransportListener} -  HTTP port
>  : 9763
>
> [2014-07-29 10:58:44,060]  INFO
> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  Server
>   :  ${product.name}-${product.version}
> [2014-07-29 10:58:44,061]  INFO
> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -  WSO2
> Carbon started in 18 sec
>
>
> On Mon, Jul 28, 2014 at 11:31 AM, Sewwandi Perera 
> wrote:
>
>> Hi,
>>
>> We recently modified WSO2 MB to use Hazelcast for coordination instead of
>> Apache Zookeeper.
>>
>> In clustered mode, we use following configurations in axis2.xml to enable
>> Clustering;
>>
>> > class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent"
>> enable="true">
>> false
>> wka
>> 127.0.0.1
>> 4000
>>  
>> 
>> 127.0.0.1
>> 4001
>> 
>> 
>>
>> In standalone mode, we can access MB management console without any issue.
>>
>> But in clustered mode, even though below log appears, we cannot access
>> management console using browser.
>> INFO {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} -  Mgt
>> Console URL  : https://10.100.5.67:9443/carbon/
>>
>> Additionally, we see error traces neither in server side nor in browser.
>>
>> What can be the cause behind this issue?
>>
>> Thanks and Regards,
>> Sewwandi
>>
>> --
>> Sewwandi Perera
>> Software Engineer
>>
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Senior Software Engineer,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Sewwandi Perera
Software Engineer

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


Re: [Dev] Jaggery - Extracting an uploaded .zip file

2014-07-29 Thread Dakshika Jayathilaka
@udataR: I have tested with jaggery server(standalone pack
jaggery-0.9.0-SNAPSHOT) and seems you can keep Zip files inside app
container without auto extraction.

But it will auto extract on AS. :)

*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911


On Tue, Jul 29, 2014 at 9:06 AM, Dilan Udara Ariyaratne 
wrote:

> Hi Buddhima,
>
> Once you have created your jaggery app (let's name the containing folder
> as ), select all the files and folders inside
> 
> and compress the files into a .zip file which you can upload to the
> Application server under this path:
> Home > Manage > Applications > Add > Jaggery
>
> If you are simply using the jaggery server to get this done, copy
>  with its content to /apps
> and start the server.
> Now, you should be able to access your application using the following url:
> http://localhost:9763/ by default.
>
> Cheers...
>
>
>
>
>
>
>
>
>
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94775149066
> lean . enterprise . middleware
>
>
> On Tue, Jul 29, 2014 at 2:17 PM, Udara Rathnayake  wrote:
>
>> Hi Buddhima,
>>
>> If you upload a zip file to any location within
>> /repository/deployment/server/jaggeryapps/ , server will
>> treat that file as a webapp and unzip it for you.
>>
>> You can try this behavior by copying a zip file to a directory inside
>> your webapp. But I'm not sure whether this behaviour is correct or not.
>> File API[1] might help you further.
>>
>> [1] http://jaggeryjs.org/documentation.jag?api=file
>>
>> Regards,
>> UdaraR
>>
>>
>> On Tue, Jul 29, 2014 at 2:05 PM, Buddhima Wijeweera 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm currently developing a Jaggery app, which user can upload a zip
>>> file. After uploading the zip file, Jaggery app should extract that zip
>>> file & put the content in to a folder (at server-side).
>>>
>>> So I would like to know how can I do this or is there any place where
>>> this is already implemented.
>>>
>>> Thank You!
>>>
>>> --
>>> Buddhima Wijeweera
>>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>>
>>> Email: buddh...@wso2.com
>>> Blog:   https://buddhimawijeweera.wordpress.com
>>> GitHub Profile: https://github.com/Buddhima
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Udara Rathnayake*
>> Software Engineer
>> WSO2 Inc. : http://wso2.com
>>
>> Mobile : +94 772207239
>> Twitter : http://twitter.com/udarakr
>> Blog: http://udarakr.blogspot.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
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppServer] Error in JAX Rest Service

2014-07-29 Thread Jerad Rutnam
Hi Kasun,

Thanks a lot for the info. sure, i'll try that out. I'll give an update
once I check it. Thought to continue with a normal maven web project for
the moment.

Regards,
Jerad


On Tue, Jul 29, 2014 at 12:40 PM, Kasun Gajasinghe  wrote:

> Hi Jerad,
>
> It seems you are trying to write a JAX-RS service using CXF. If that's the
> case, remove the jersey libraries from your system. You shouldn't mix two
> implementations together. You can find the CXF related maven dependencies
> by looking at samples in Application Server 5.2.1. Specifically, the sample
> jaxrs-basic at AS_HOME/samples/Jaxws-Jaxrs/ folder would help.
>
> regards,
> KasunG
>
>
>
> On Tue, Jul 29, 2014 at 11:34 AM, Jerad Rutnam  wrote:
>
>> Hi Abimaran,
>>
>> Thanks a lot for your reply. I have tried updating the jersey version,
>> but it didn't work out. now it gives ClassNotFoundExceptions. See
>> modification below,
>>
>>
>> *1. pom.xml*
>> 
>>
>>
>>
>> 
>>  javax.ws.rs
>> javax.ws.rs-api
>>  2.0
>> compile
>>  
>>
>>  
>> org.glassfish.jersey.core
>>  jersey-server
>> 2.11
>>  
>>
>>  
>> org.glassfish.jersey.core
>>  jersey-common
>> 2.11
>>  
>>
>>  
>> org.glassfish.hk2
>>  hk2-api
>> 2.2.0
>>  
>>
>>  
>> org.glassfish.jersey.media
>>  jersey-media-json-jackson
>> 2.11
>>  
>>
>>  
>> org.glassfish.jersey.media
>>  jersey-media-json-processing
>> 2.11
>>  
>>
>>
>> 
>>  org.json
>> json
>>  20140107
>> 
>>
>> 
>>
>> 
>>
>> *2. Error Log*
>> 
>>
>> ERROR {org.apache.catalina.core.StandardWrapperValve} -
>>  Servlet.service() for servlet [BookStoreService] in context with path
>> [/JAXRS-Service] threw exception [Servlet execution threw an exception]
>> with root cause
>> java.lang.NoClassDefFoundError:
>> org/glassfish/hk2/api/ServiceLocatorFactory$CreatePolicy
>> at
>> org.glassfish.jersey.internal.inject.Injections._createLocator(Injections.java:138)
>>  at
>> org.glassfish.jersey.internal.inject.Injections.createLocator(Injections.java:109)
>> at
>> org.glassfish.jersey.server.internal.RuntimeDelegateImpl.(RuntimeDelegateImpl.java:63)
>>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>  at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>  at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>> at java.lang.Class.newInstance(Class.java:374)
>>  at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:117)
>> at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:165)
>>  at
>> javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:135)
>> at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
>>  at
>> javax.ws.rs.core.Response$ResponseBuilder.newInstance(Response.java:848)
>> at javax.ws.rs.core.Response.status(Response.java:613)
>>  at
>> org.apache.cxf.jaxrs.utils.JAXRSUtils.createResponse(JAXRSUtils.java:566)
>> at
>> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:166)
>>  at
>> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:101)
>>  at
>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
>> at
>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>>  at
>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
>>  at
>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
>>  at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
>> at
>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
>>  at
>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>>  at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
>>  at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
>>  at
>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
>>  at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>  at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>  at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>> at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>  at
>> org.apache.catali

Re: [Dev] Jaggery - Extracting an uploaded .zip file

2014-07-29 Thread Dilan Udara Ariyaratne
Hi Buddhima,

Once you have created your jaggery app (let's name the containing folder as
), select all the files and folders inside

and compress the files into a .zip file which you can upload to the
Application server under this path:
Home > Manage > Applications > Add > Jaggery

If you are simply using the jaggery server to get this done, copy
 with its content to /apps
and start the server.
Now, you should be able to access your application using the following url:
http://localhost:9763/ by default.

Cheers...











*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. 
Mobile: +94775149066
lean . enterprise . middleware


On Tue, Jul 29, 2014 at 2:17 PM, Udara Rathnayake  wrote:

> Hi Buddhima,
>
> If you upload a zip file to any location within
> /repository/deployment/server/jaggeryapps/ , server will
> treat that file as a webapp and unzip it for you.
>
> You can try this behavior by copying a zip file to a directory inside your
> webapp. But I'm not sure whether this behaviour is correct or not.
> File API[1] might help you further.
>
> [1] http://jaggeryjs.org/documentation.jag?api=file
>
> Regards,
> UdaraR
>
>
> On Tue, Jul 29, 2014 at 2:05 PM, Buddhima Wijeweera 
> wrote:
>
>> Hi,
>>
>> I'm currently developing a Jaggery app, which user can upload a zip file.
>> After uploading the zip file, Jaggery app should extract that zip file &
>> put the content in to a folder (at server-side).
>>
>> So I would like to know how can I do this or is there any place where
>> this is already implemented.
>>
>> Thank You!
>>
>> --
>> Buddhima Wijeweera
>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>
>> Email: buddh...@wso2.com
>> Blog:   https://buddhimawijeweera.wordpress.com
>> GitHub Profile: https://github.com/Buddhima
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : +94 772207239
> Twitter : http://twitter.com/udarakr
> Blog: http://udarakr.blogspot.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] [Patch method support for SCIM end points]

2014-07-29 Thread Gayan Gunawardana
Hi All,

Please review and merge [1]

[1] https://github.com/wso2-dev/carbon-deployment/pull/13

Thanks,
Gayan


On Fri, Jul 25, 2014 at 9:54 PM, Prabath Siriwardena 
wrote:

>
>
>
> On Fri, Jul 25, 2014 at 9:52 PM, Sagara Gunathunga 
> wrote:
>
>>
>>
>>
>> On Fri, Jul 25, 2014 at 5:37 PM, Gayan Gunawardana 
>> wrote:
>>
>>> Hi All,
>>>
>>> I have added custom implementation for PATCH as mention in [1]. What is
>>> the package naming convention we can use for this implementation. Will it
>>> be fine something like "org.wso2.identity.annotations" ?
>>>
>>> [1]http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-HTTPMethod
>>>
>>>
>>
>>
>> In case if you want to move this class into cxf.ext[1] component you
>> could use "org.wso2.carbon.webapp.ext.jaxrs.designator" package name,
>> this[2] may help you to write test cases for this.
>>
>
> +1
>
> Thanks & regards,
> -Prabath
>
>
>>
>> [1] -
>> https://github.com/wso2-dev/carbon-deployment/tree/master/components/webapp-mgt/org.wso2.carbon.cxf.ext
>> [2] -
>> https://github.com/wso2-dev/product-as/tree/master/modules/integration/tests-integration/src/test/java/org/wso2/appserver/integration/tests/webapp/classloading
>>
>> Thanks !
>>
>>
>>>
>>>
>>> On Mon, Jul 7, 2014 at 12:22 PM, Gayan Gunawardana 
>>> wrote:
>>>
 Thanks Ishara & Supun.

 Will proceed accordingly.

 Thanks,
 Gayan


 On Mon, Jul 7, 2014 at 12:11 PM, Supun Malinga  wrote:

> yeah. it looks like patch method is not supported OOTB, since as per
> the spec[5] patch method is not specified. So the usual practice seems to
> be implementing it by the user..
>
> [5]
> http://download.oracle.com/otndocs/jcp/jaxrs-2_0-fr-eval-spec/index.html
>
> thanks,
>
>
> On Mon, Jul 7, 2014 at 12:01 PM, Ishara Karunarathna  > wrote:
>
>> Hi Gayan,
>>
>>
>> On Mon, Jul 7, 2014 at 11:46 AM, Gayan Gunawardana 
>> wrote:
>>
>>> Hi All,
>>>
>>> The requirement based on [1]. Since wso2 identity server can act as
>>> a SCIM provider, it exposes  REST end points with standard http methods
>>> (GET, POST, PUT, DELETE). How ever according to [2] http PATCH method 
>>> also
>>> require to do patch operation. The idea of patch operation is, suppose 
>>> we
>>> need to add new user to existing group, with update operation we can 
>>> update
>>> entire list of users in a particular group so we have to send complete 
>>> set
>>> of users. Patch operation supports merging of existing users with new
>>> users.
>>>
>>> The bottleneck to implement patch operation is currently [3] does
>>> not support http PATCH method directly. But according to [4] it allows
>>> custom annotation such as @Update or @Patch.
>>>
>>> WDYT?
>>>
>>
>> +1,
>> You will have to do the custom implementation to get PATCH support.
>>
>>>
>>>
>>> [1] https://wso2.org/jira/browse/IDENTITY-1891
>>>
>>> [2] http://tools.ietf.org/html/draft-ietf-scim-api-02#section-3.3.1
>>>
>>> [3] http://cxf.apache.org/docs/jax-rs.html
>>>
>>> [4]
>>> http://cxf.apache.org/docs/jax-rs-basics.html#JAX-RSBasics-HTTPMethod
>>>
>>> Thanks,
>>> Gayan
>>>
>>>
>>> --
>>> Gayan Gunawardana
>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>> Email: ga...@wso2.com
>>> Mobile: +94 (71) 8020933
>>>
>>
>>
>>
>> --
>> Ishara Karunarathna
>> Senior Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile: +94
>> 718211678
>>
>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com 
> mobile: +94 (0)71 56 91 321
>



 --
 Gayan Gunawardana
 Software Engineer; WSO2 Inc.; http://wso2.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933

>>>
>>>
>>>
>>> --
>>> Gayan Gunawardana
>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>> Email: ga...@wso2.com
>>> Mobile: +94 (71) 8020933
>>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
>> V.P Apache Web Services;http://ws.apache.org/
>> Linkedin; http://www.linkedin.com/in/ssagara
>> Blog ;  http://ssagara.blogspot.com
>>
>>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Twitter : @prabath
> LinkedIn : http://www.linkedin.com/in/prabathsiriwardena
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://blog.api-security.org
>



-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jaggery - Extracting an uploaded .zip file

2014-07-29 Thread Rajith Vitharana
Hi Buddima,

You can get the server home folder path using this
"require('process').getProperty('carbon.home')" in jaggery. don't know
whether that will help or not :)

Thanks,


On Tue, Jul 29, 2014 at 2:17 PM, Udara Rathnayake  wrote:

> Hi Buddhima,
>
> If you upload a zip file to any location within
> /repository/deployment/server/jaggeryapps/ , server will
> treat that file as a webapp and unzip it for you.
>
> You can try this behavior by copying a zip file to a directory inside your
> webapp. But I'm not sure whether this behaviour is correct or not.
> File API[1] might help you further.
>
> [1] http://jaggeryjs.org/documentation.jag?api=file
>
> Regards,
> UdaraR
>
>
> On Tue, Jul 29, 2014 at 2:05 PM, Buddhima Wijeweera 
> wrote:
>
>> Hi,
>>
>> I'm currently developing a Jaggery app, which user can upload a zip file.
>> After uploading the zip file, Jaggery app should extract that zip file &
>> put the content in to a folder (at server-side).
>>
>> So I would like to know how can I do this or is there any place where
>> this is already implemented.
>>
>> Thank You!
>>
>> --
>> Buddhima Wijeweera
>> Software Engineer; WSO2 Inc.; http://wso2.com ,
>>
>> Email: buddh...@wso2.com
>> Blog:   https://buddhimawijeweera.wordpress.com
>> GitHub Profile: https://github.com/Buddhima
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : +94 772207239
> Twitter : http://twitter.com/udarakr
> Blog: http://udarakr.blogspot.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error in using CQL data source for master-datasources.xml

2014-07-29 Thread Asitha Nanayakkara
Hi,

While trying to integrate CQL data source feature of master-datasources.xml
to MB I get an error at run time.

I've used the following method to get the connection

> com.datastax.driver.core.Cluster cluster
> = InitialContext.doLookup("CassandraRepo");


Following is the error I get.

[2014-07-29 14:08:57,035] ERROR
{org.wso2.carbon.ndatasource.core.DataSourceRepository} -  A data source
reader cannot be found for the type 'CASSANDRA'
org.wso2.carbon.ndatasource.common.DataSourceException: A data source
reader cannot be found for the type 'CASSANDRA'
at
org.wso2.carbon.ndatasource.core.DataSourceRepository.createDataSourceObject(DataSourceRepository.java:196)
 at
org.wso2.carbon.ndatasource.core.DataSourceRepository.registerDataSource(DataSourceRepository.java:359)
at
org.wso2.carbon.ndatasource.core.DataSourceRepository.addDataSource(DataSourceRepository.java:473)
 at
org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSource(DataSourceManager.java:185)
at
org.wso2.carbon.ndatasource.core.DataSourceManager.initSystemDataSources(DataSourceManager.java:157)
 at
org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.initSystemDataSources(DataSourceServiceComponent.java:191)
at
org.wso2.carbon.ndatasource.core.internal.DataSourceServiceComponent.setSecretCallbackHandlerService(DataSourceServiceComponent.java:177)
 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.eclipse.equinox.internal.ds.model.ComponentReference.bind(ComponentReference.java:376)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bindReference(ServiceComponentProp.java:432)
 at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.bind(ServiceComponentProp.java:218)
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.securevault.internal.SecretManagerInitializerComponent.activate(SecretManagerInitializerComponent.java:48)
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.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:347)
 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.buildNewlySatisfied(Resolver.java:473)
at
org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
 at
org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
at
org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
 at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
at java.lang.Thread.run(Thread.java:745)

-- 
*Asitha Nanayakkara*
Software Engineer
WSO2, Inc. http://wso2.com/
Mob: + 94 77 85 30 682
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin

Re: [Dev] Jaggery - Extracting an uploaded .zip file

2014-07-29 Thread Udara Rathnayake
Hi Buddhima,

If you upload a zip file to any location within
/repository/deployment/server/jaggeryapps/ , server will
treat that file as a webapp and unzip it for you.

You can try this behavior by copying a zip file to a directory inside your
webapp. But I'm not sure whether this behaviour is correct or not.
File API[1] might help you further.

[1] http://jaggeryjs.org/documentation.jag?api=file

Regards,
UdaraR


On Tue, Jul 29, 2014 at 2:05 PM, Buddhima Wijeweera 
wrote:

> Hi,
>
> I'm currently developing a Jaggery app, which user can upload a zip file.
> After uploading the zip file, Jaggery app should extract that zip file &
> put the content in to a folder (at server-side).
>
> So I would like to know how can I do this or is there any place where this
> is already implemented.
>
> Thank You!
>
> --
> Buddhima Wijeweera
> Software Engineer; WSO2 Inc.; http://wso2.com ,
>
> Email: buddh...@wso2.com
> Blog:   https://buddhimawijeweera.wordpress.com
> GitHub Profile: https://github.com/Buddhima
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [important] API Manager Migration 1.6.0 to 1.7.0 in latest pack

2014-07-29 Thread Vijayaratha Vijayasingam
Hi Evanthika,
We need to copy the Ant script to root folder if we are doing migration in
windows OS, since there is an Ant bug .
We will document this clearly in our 1.7.1 doc..
We have plan not to ship migration scripts with distribution rather will
host them in svn..(we will discuss about this come up with a proper plan
for our next major release..)
Thanks.



On 29 July 2014 09:58, Evanthika Amarasiri  wrote:

> Hi Ratha,
>
> Could you kindly look into this issue? Seems like these fixes are not
> included in the 1.7.1 packs. The migration works only when you copy the
> Main.java & build.xml given in the JIRA it seems.
>
> Regards,
> Evanthika
>
>
> On Mon, Jul 28, 2014 at 3:49 PM, Chalitha Waldeniyage 
> wrote:
>
>> Hi,
>>
>>
>> While Migrating API manager 1.6.0 to 1.7.0 following issues have been
>> found.
>>
>> 1) You need to apply main.java and build.xml with reference [1] for it to
>> work correctly.It should be shipped as built in for API manager 1.7.1.
>>
>> 2) In case lot of tenants are there (ex: 100) , you need to update the
>> rxts for each tenant manually .In addtion to that you need to run swagger
>> and resource migration for each tenant.
>>
>> For the latter it can be scripted but for the scenario where you update
>> the rxt, do we expect the user to do this manually or should we provide
>> them with the script?
>>
>>
>>
>>
>> [1] - https://wso2.org/jira/browse/APIMANAGER-2529
>>
>>
>>
>>
>>
>>
>> Thanks,
>>  --
>> *Chalitha Maheshwari*
>> Software Engineer-QA,
>> WSO2 Inc.
>>
>> *E-mail:* chali...@wso2.com
>> *Mobile: *+94710 411 112
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
-Ratha
mobile: (+94)755906608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Jaggery - Extracting an uploaded .zip file

2014-07-29 Thread Buddhima Wijeweera
Hi,

I'm currently developing a Jaggery app, which user can upload a zip file.
After uploading the zip file, Jaggery app should extract that zip file &
put the content in to a folder (at server-side).

So I would like to know how can I do this or is there any place where this
is already implemented.

Thank You!

-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB 4.8.1 Build issue

2014-07-29 Thread Harsha Kumara
Hi Prassana,

Try by doing mvn clean install -U option. Please refer [1] to more details.

[1]-
http://stackoverflow.com/questions/2529218/maven-downloads-have-lastupdated-as-extension

Thanks,
Harsha


On Tue, Jul 29, 2014 at 1:43 PM, Prasanna Dangalla 
wrote:

> Hi
>
> When I'm building ESB using chink 07 referring this link (
> https://docs.wso2.com/display/ESB480/Building+from+Source ) the following
> error occurred.
>
> Failed to execute goal on project org.wso2.esb.integration.core: Could not
> resolve dependencies for project
> org.wso2.esb:org.wso2.esb.integration.core:jar:4.8.1: Could not find
> artifact org.apache.ws.security:wss4j:jar:1.5.11-wso2v6 in wso2-nexus (
> http://maven.wso2.org/nexus/content/groups/wso2-public/) -> [Help 1]
>
> Then I build the following manually by checking it out
>
>
> http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0002/dependencies/wss4j/1.5.11-wso2v6/
>
> Then it worked and ESB 4.8.1 was build successfully. :D
>
> I figure out in my maven repository inside
> org/apache/ws/security/wss4j/1.5.11-wso2v6/ only the following file were
> there when the ESB build error occured
>
>
>1. wss4j-1.5.11.wso2v6.pom
>2. wss4j-1.5.11-wso2v6.pom.lastUpdated
>3. wss4j-1.5.11-wso2v6.jar.lastUpdated
>
>
> Then I Removed them and build 1.5.11-wso2v6
>
> Afterwords in org/apache/ws/security/wss4j/1.5.11-wso2v6/ the following
> files were present and ESB build was successful.
>
>
>1. wss4j-1.5.11-wso2v6.pom
>2. _maven.repositories
>3. wss4j-1.5.11-wso2v6.jar
>
> Do I have done a mistake when building ESB ?
>
> I'm using jdk version 1.6.0_65 and maven version 3.0.5
>
> Thanks
> Prasanna Dangalla
> Software Engineer, WSO2, Inc.; http://wso2.com/
> lean.enterprise.middleware
>
> cell: +94 777 55 80 30 | +94 718 11 27 51
> twitter: @prasa77
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB 4.8.1 Build issue

2014-07-29 Thread Prasanna Dangalla
Hi

When I'm building ESB using chink 07 referring this link (
https://docs.wso2.com/display/ESB480/Building+from+Source ) the following
error occurred.

Failed to execute goal on project org.wso2.esb.integration.core: Could not
resolve dependencies for project
org.wso2.esb:org.wso2.esb.integration.core:jar:4.8.1: Could not find
artifact org.apache.ws.security:wss4j:jar:1.5.11-wso2v6 in wso2-nexus (
http://maven.wso2.org/nexus/content/groups/wso2-public/) -> [Help 1]

Then I build the following manually by checking it out

http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0002/dependencies/wss4j/1.5.11-wso2v6/

Then it worked and ESB 4.8.1 was build successfully. :D

I figure out in my maven repository inside
org/apache/ws/security/wss4j/1.5.11-wso2v6/ only the following file were
there when the ESB build error occured


   1. wss4j-1.5.11.wso2v6.pom
   2. wss4j-1.5.11-wso2v6.pom.lastUpdated
   3. wss4j-1.5.11-wso2v6.jar.lastUpdated


Then I Removed them and build 1.5.11-wso2v6

Afterwords in org/apache/ws/security/wss4j/1.5.11-wso2v6/ the following
files were present and ESB build was successful.


   1. wss4j-1.5.11-wso2v6.pom
   2. _maven.repositories
   3. wss4j-1.5.11-wso2v6.jar

Do I have done a mistake when building ESB ?

I'm using jdk version 1.6.0_65 and maven version 3.0.5

Thanks
Prasanna Dangalla
Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware

cell: +94 777 55 80 30 | +94 718 11 27 51
twitter: @prasa77
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Miss-implication logs for Deployment Synchronizor - jira issue CARBON-14723

2014-07-29 Thread Nipuni Perera
Hi,

I have updated the above patch with the attachment
SVNBasedArtifactRepository.patch. When svn is update by a manager-node, svn
get a new revision number with the update but manager node remains in the
same revision number. It does not call checkout() or update() methods
above. If I restart the manger-node, there I can observe two different
values for newRevisionNumberLog and lastRevisionNumber inside checkout()
method of manager-node.

I have sent a pull request for the above fix.

Thanks,
Nipuni


On Mon, Jul 28, 2014 at 11:21 AM, Nipuni Perera  wrote:

> Hi,
>
> I have update the log messages and methods mentioned earlier. Find the
> attached patch.
>
> Thanks,
> Nipuni
>
>
> On Wed, Jul 9, 2014 at 3:35 PM, Nipuni Perera  wrote:
>
>>
>> Hi,
>>
>> I am working on $subject.Three methods below
>>
>>1.
>>
>>checkout(int tenantId, String filePath, int depth)
>>
>>2.
>>
>>update(int tenantId, String rootPath, String filePathToUpdate, int depth)
>>
>>3.
>>
>>checkout(int tenantId, String filePath)
>>
>>
>>  in [1] uses the code,
>>
>> filesUpdated = svnClient.update(root, SVNRevision.HEAD,Depth.infinity,
>> NO_SET_DEPTH,ignoreExternals, forceUpdate);
>>
>> svnClient.update(..) returns revision number but assigned to
>> filesUpdated. The method return value is set to
>>
>> filesUpdated >1
>>
>> which is incorrect. According to javadocs[2], methods should return true
>> if files were checked out or updates, false otherwise. If files were
>> changed, it can be detected comparing revision numbers. Therefore the
>> return value would be,
>>
>>  long lastRevisionNumber =
>> svnClient.getInfo(root).getLastChangedRevision();
>>  long newRevisionNumber = svnClient.update(root,
>> SVNRevision.HEAD,Depth.infinity, NO_SET_DEPTH,ignoreExternals, forceUpdate)
>> ;
>>
>>  return newRevisionNumber>lastRevisionNumber;
>>
>> This gives different values for newRevisionNumberLog and
>> lastRevisionNumber, when I debug with a worker node, but gave same value
>> for both variables for manager node. What could be the issue here?. Log 
>> messages
>> should also updated accordingly. Is there any other issue to consider?
>>
>> [1]
>> https://github.com/wso2-dev/carbon-commons/blob/master/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java
>>
>> [2]
>> https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer/src/main/java/org/wso2/carbon/deployment/synchronizer/ArtifactRepository.java
>>
>> Thanks,
>> Nipuni
>> --
>> Nipuni Perera
>> Software Engineer; WSO2 Inc.; http://wso2.com
>> Email: nip...@wso2.com
>> Git hub profile: https://github.com/nipuni
>> Mobile: +94 (71) 5626680
>>
>>
>
>
> --
> Nipuni Perera
> Software Engineer; WSO2 Inc.; http://wso2.com
> Email: nip...@wso2.com
> Git hub profile: https://github.com/nipuni
> Mobile: +94 (71) 5626680
> 
>
>


-- 
Nipuni Perera
Software Engineer; WSO2 Inc.; http://wso2.com
Email: nip...@wso2.com
Git hub profile: https://github.com/nipuni
Mobile: +94 (71) 5626680

diff --git a/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/pom.xml b/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/pom.xml
index 7a2cf80..2288291 100644
--- a/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/pom.xml
+++ b/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/pom.xml
@@ -73,6 +73,11 @@
 org.wso2.carbon
 org.wso2.carbon.utils
 
+
+org.wso2.carbon
+org.wso2.carbon.tomcat
+4.3.0-SNAPSHOT
+
 
 
 
diff --git a/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java b/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java
index f4e7547..f73dfea 100644
--- a/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java
+++ b/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java
@@ -432,14 +432,14 @@ public class SVNBasedArtifactRepository implements ArtifactRepository {
 tries++;
 if (svnClient instanceof CmdLineClientAdapter) {
 // CmdLineClientAdapter does not support all the options
-lastRevisionNumber = svnClie

Re: [Dev] Jaggery integration test module - Code coverage true Exception

2014-07-29 Thread Dimuthu De Lanerolle
Hi Krishantha,

Please find the TA Jira created on this https://wso2.org/jira/browse/TA-878

Regards,



On Tue, Jul 29, 2014 at 1:16 PM, Krishantha Samaraweera  wrote:

> Hi Dimuthu,
>
> Can you create a TA jira for this.
>
> Seems like one of the jars instrumented by Emma causing this problem. Need
> to find out which jar is it. I will have a look.
>
> Thanks,
> Krishantha.
>
>
> On Thu, Jul 17, 2014 at 7:34 AM, Dimuthu De Lanerolle 
> wrote:
>
>> Hi Krishantha,
>>
>> I am getting the following error while trying to run Jaggery integration
>> tests after enabling code coverage feature.(true).
>> (Note that I have already updated filters.txt and instrumentation.txt file
>> with the latest entries for jaggery). However I am still getting this
>> exception. Seems like after instrumentation of jars only we are getting
>> this error. How can we fix this?
>>
>> [2014-07-17 15:48:15,134]  INFO
>> {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} -  Carbon
>> UserStoreMgtDSComponent activated successfully.
>>
>> [2014-07-17 15:49:57,321]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
>> delayed due to the following unsatisfied items:
>> [2014-07-17 15:49:57,322]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
>> OSGiAxis2Service: org.jaggeryjs.jaggery.app.mgt-0.9.0.SNAPSHOT
>> [2014-07-17 15:50:57,321]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
>> delayed due to the following unsatisfied items:
>> [2014-07-17 15:50:57,321]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
>> OSGiAxis2Service: org.jaggeryjs.jaggery.app.mgt-0.9.0.SNAPSHOT
>> [2014-07-17 15:51:57,322]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
>> delayed due to the following unsatisfied items:
>> [2014-07-17 15:51:57,322]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
>> OSGiAxis2Service: org.jaggeryjs.jaggery.app.mgt-0.9.0.SNAPSHOT
>> [2014-07-17 15:52:57,321]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
>> delayed due to the following unsatisfied items:
>> [2014-07-17 15:52:57,321]  WARN
>> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
>> OSGiAxis2Service: org.jaggeryjs.jaggery.app.mgt-0.9.0.SNAPSHOT
>> Fail to start carbon server
>> java.lang.RuntimeException: Port 9763 is not open
>> at
>> org.wso2.carbon.integration.common.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:101)
>>  at
>> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:134)
>> at
>> org.wso2.carbon.integration.common.extensions.carbonserver.TestServerManager.startServer(TestServerManager.java:102)
>>  at
>> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:49)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>  at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:73)
>>  at
>> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47)
>> at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
>>  at org.testng.TestNG.run(TestNG.java:983)
>> at
>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:177)
>>  at
>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
>> at
>> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:105)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>  at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>>  at
>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>>  at
>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
>>  at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)Jaggery
>> integration test module - Code coverage true Exception
>>
>> Regards
>> --
>> Dimuthu De Lanerolle
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middlewear.
>> http://wso2.com/
>> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dim

Re: [Dev] [DEV] - Carbon - Build failure on orbit/trunk

2014-07-29 Thread Aruna Karunarathna
Hi all,

I think I have put the wrong repo link. Try the link [1] as  Kasung has
suggested.


Regards,
Aruna



On Tue, Jul 29, 2014 at 12:56 PM, Kasun Gajasinghe  wrote:

> Hi,
>
> Not sure why it suggests you to build orbit trunk. If you need to build
> Carbon 4.2.0, then you should build Orbit 4.2.0 branch [1]
>
> [1] https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.2.0
>
>
> On Tue, Jul 29, 2014 at 12:45 PM, Chamila De Alwis 
> wrote:
>
>> Hi Kasun,
>>
>> I checked out the orbit bundles from the SVN repository[1]. I'm following
>> this tutorial[2].
>>
>> And here is the folder structure I have.
>>
>> .
>> ├── kernel
>> │   └── 4.2.0
>> │   ├── core
>> │   ├── dependencies
>> │   ├── distribution
>> │   ├── features
>> │   ├── parent
>> │   ├── patches
>> │   ├── samples
>> │   ├── service-packs
>> │   └── service-stubs
>> ├── orbit
>> │   └── trunk
>> │   ├── cassandra-jdbc
>> │   ├── cglib
>> │   ├── cors-filter
>> │   ├── hazelcast
>> │   ├── httpcore
>> │   ├── java-property-utils
>> │   ├── jdbc-pool
>> │   ├── js
>> │   ├── jstl
>> │   ├── poi
>> │   ├── poi-ooxml
>> │   ├── poi-scratchpad
>> │   ├── rabbit-mq
>> │   ├── saxon
>> │   ├── spring-framework
>> │   ├── tribes
>> │   └── wadl-core
>> └── platform
>> └── turing
>> ├── build
>> ├── components
>> ├── dependencies
>> ├── features
>> ├── parent
>> ├── platform-integration
>> ├── product-releases
>> ├── products
>> ├── samples
>> └── service-stubs
>>
>> [1] - https://svn.wso2.org/repos/wso2/carbon/orbit/trunk/
>> [2] - http://java.dzone.com/articles/how-build-wso2-carbon-420
>>
>>
>>
>> On Tue, Jul 29, 2014 at 12:31 PM, Kasun Gajasinghe 
>> wrote:
>>
>>> Hi Chamila,
>>>
>>> What's the svn location of this jdbc-pool bundle? Your folder structure
>>> doesn't look like the standard structure we have. The parent of this orbit
>>> bundle should rather be the orbit parent.
>>>
>>> KasunG
>>>
>>>
>>> On Tue, Jul 29, 2014 at 11:34 AM, Chamila De Alwis 
>>> wrote:
>>>
 Hi,

 I was trying to build carbon with the following folder structure.

 .
 ├── kernel
 │   └── 4.2.0
 ├── orbit
 │   └── trunk
 └── platform
 └── turing

 However when a build was started on orbit/trunk the following error
 occurred.

 [ERROR] The build could not read 1 project -> [Help 1]
 [ERROR]
 [ERROR]   The project
 org.apache.tomcat.wso2:jdbc-pool:${jdbc.pool.version}.wso2v1
 (/home/chamilad/dev/source/carbon/orbit/trunk/jdbc-pool/pom.xml) has 1 
 error
 [ERROR] Non-resolvable parent POM: Could not find artifact
 org.wso2.carbon:carbon-dependents:pom:4.0.0 in central (
 http://repo.maven.apache.org/maven2) and 'parent.relativePath' points
 at wrong local POM @ line 22, column 13 -> [Help 2]
 [ERROR]


 I was able to fix this by changing the relativePath to the
 carbon-dependents pom.


 Index: jdbc-pool/pom.xml
 ===
 --- jdbc-pool/pom.xml(revision 206122)
 +++ jdbc-pool/pom.xml(working copy)
 @@ -22,8 +22,8 @@
  
  org.wso2.carbon
  carbon-dependents
 -4.0.0
 -../../../pom.xml
 +4.2.0
 +
 ../../../platform/turing/dependencies/pom.xml
 

  4.0.0



 --

 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



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


>>>
>>>
>>> --
>>>
>>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>>> email: kasung AT spamfree wso2.com
>>> linked-in: http://lk.linkedin.com/in/gajasinghe
>>> blog: http://kasunbg.org
>>>
>>>
>>>
>>
>>
>>
>> --
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 

*Aruna Sujith Karunarathna* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jaggery integration test module - Code coverage true Exception

2014-07-29 Thread Krishantha Samaraweera
Hi Dimuthu,

Can you create a TA jira for this.

Seems like one of the jars instrumented by Emma causing this problem. Need
to find out which jar is it. I will have a look.

Thanks,
Krishantha.


On Thu, Jul 17, 2014 at 7:34 AM, Dimuthu De Lanerolle 
wrote:

> Hi Krishantha,
>
> I am getting the following error while trying to run Jaggery integration
> tests after enabling code coverage feature.(true).
> (Note that I have already updated filters.txt and instrumentation.txt file
> with the latest entries for jaggery). However I am still getting this
> exception. Seems like after instrumentation of jars only we are getting
> this error. How can we fix this?
>
> [2014-07-17 15:48:15,134]  INFO
> {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} -  Carbon
> UserStoreMgtDSComponent activated successfully.
>
> [2014-07-17 15:49:57,321]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
> delayed due to the following unsatisfied items:
> [2014-07-17 15:49:57,322]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
> OSGiAxis2Service: org.jaggeryjs.jaggery.app.mgt-0.9.0.SNAPSHOT
> [2014-07-17 15:50:57,321]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
> delayed due to the following unsatisfied items:
> [2014-07-17 15:50:57,321]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
> OSGiAxis2Service: org.jaggeryjs.jaggery.app.mgt-0.9.0.SNAPSHOT
> [2014-07-17 15:51:57,322]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
> delayed due to the following unsatisfied items:
> [2014-07-17 15:51:57,322]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
> OSGiAxis2Service: org.jaggeryjs.jaggery.app.mgt-0.9.0.SNAPSHOT
> [2014-07-17 15:52:57,321]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
> delayed due to the following unsatisfied items:
> [2014-07-17 15:52:57,321]  WARN
> {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
> OSGiAxis2Service: org.jaggeryjs.jaggery.app.mgt-0.9.0.SNAPSHOT
> Fail to start carbon server
> java.lang.RuntimeException: Port 9763 is not open
> at
> org.wso2.carbon.integration.common.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:101)
>  at
> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:134)
> at
> org.wso2.carbon.integration.common.extensions.carbonserver.TestServerManager.startServer(TestServerManager.java:102)
>  at
> org.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension.onExecutionStart(CarbonServerExtension.java:49)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.executeExtensible(TestNGExtensionExecutor.java:73)
>  at
> org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:47)
> at org.testng.TestNG.runExecutionListeners(TestNG.java:1032)
>  at org.testng.TestNG.run(TestNG.java:983)
> at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:177)
>  at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
> at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:105)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
>  at
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>  at
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
>  at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)Jaggery
> integration test module - Code coverage true Exception
>
> Regards
> --
> Dimuthu De Lanerolle
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middlewear.
> http://wso2.com/
> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com
>
>


-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/l

Re: [Dev] [DEV] - Carbon - Build failure on orbit/trunk

2014-07-29 Thread Kasun Gajasinghe
Hi,

Not sure why it suggests you to build orbit trunk. If you need to build
Carbon 4.2.0, then you should build Orbit 4.2.0 branch [1]

[1] https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.2.0


On Tue, Jul 29, 2014 at 12:45 PM, Chamila De Alwis 
wrote:

> Hi Kasun,
>
> I checked out the orbit bundles from the SVN repository[1]. I'm following
> this tutorial[2].
>
> And here is the folder structure I have.
>
> .
> ├── kernel
> │   └── 4.2.0
> │   ├── core
> │   ├── dependencies
> │   ├── distribution
> │   ├── features
> │   ├── parent
> │   ├── patches
> │   ├── samples
> │   ├── service-packs
> │   └── service-stubs
> ├── orbit
> │   └── trunk
> │   ├── cassandra-jdbc
> │   ├── cglib
> │   ├── cors-filter
> │   ├── hazelcast
> │   ├── httpcore
> │   ├── java-property-utils
> │   ├── jdbc-pool
> │   ├── js
> │   ├── jstl
> │   ├── poi
> │   ├── poi-ooxml
> │   ├── poi-scratchpad
> │   ├── rabbit-mq
> │   ├── saxon
> │   ├── spring-framework
> │   ├── tribes
> │   └── wadl-core
> └── platform
> └── turing
> ├── build
> ├── components
> ├── dependencies
> ├── features
> ├── parent
> ├── platform-integration
> ├── product-releases
> ├── products
> ├── samples
> └── service-stubs
>
> [1] - https://svn.wso2.org/repos/wso2/carbon/orbit/trunk/
> [2] - http://java.dzone.com/articles/how-build-wso2-carbon-420
>
>
>
> On Tue, Jul 29, 2014 at 12:31 PM, Kasun Gajasinghe 
> wrote:
>
>> Hi Chamila,
>>
>> What's the svn location of this jdbc-pool bundle? Your folder structure
>> doesn't look like the standard structure we have. The parent of this orbit
>> bundle should rather be the orbit parent.
>>
>> KasunG
>>
>>
>> On Tue, Jul 29, 2014 at 11:34 AM, Chamila De Alwis 
>> wrote:
>>
>>> Hi,
>>>
>>> I was trying to build carbon with the following folder structure.
>>>
>>> .
>>> ├── kernel
>>> │   └── 4.2.0
>>> ├── orbit
>>> │   └── trunk
>>> └── platform
>>> └── turing
>>>
>>> However when a build was started on orbit/trunk the following error
>>> occurred.
>>>
>>> [ERROR] The build could not read 1 project -> [Help 1]
>>> [ERROR]
>>> [ERROR]   The project
>>> org.apache.tomcat.wso2:jdbc-pool:${jdbc.pool.version}.wso2v1
>>> (/home/chamilad/dev/source/carbon/orbit/trunk/jdbc-pool/pom.xml) has 1 error
>>> [ERROR] Non-resolvable parent POM: Could not find artifact
>>> org.wso2.carbon:carbon-dependents:pom:4.0.0 in central (
>>> http://repo.maven.apache.org/maven2) and 'parent.relativePath' points
>>> at wrong local POM @ line 22, column 13 -> [Help 2]
>>> [ERROR]
>>>
>>>
>>> I was able to fix this by changing the relativePath to the
>>> carbon-dependents pom.
>>>
>>>
>>> Index: jdbc-pool/pom.xml
>>> ===
>>> --- jdbc-pool/pom.xml(revision 206122)
>>> +++ jdbc-pool/pom.xml(working copy)
>>> @@ -22,8 +22,8 @@
>>>  
>>>  org.wso2.carbon
>>>  carbon-dependents
>>> -4.0.0
>>> -../../../pom.xml
>>> +4.2.0
>>> +
>>> ../../../platform/turing/dependencies/pom.xml
>>> 
>>>
>>>  4.0.0
>>>
>>>
>>>
>>> --
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
>> email: kasung AT spamfree wso2.com
>> linked-in: http://lk.linkedin.com/in/gajasinghe
>> blog: http://kasunbg.org
>>
>>
>>
>
>
>
> --
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>


-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AS - UI tests failures

2014-07-29 Thread Krishantha Samaraweera
Hi Dimuthu,

I've migrated AS UI integration test to verify a Jenkins plugin sometime
back and used the integration-test-utils module to keep Page Object
classes, however didn't come across such an issue.

Can you please check your default Firefox version and path of the firefox
binary. Even you can try with -Dfirefox.driver.bin property and set to
firefox bin path explicitly.

Thanks,
Krishantha.

On Mon, Jul 28, 2014 at 8:32 AM, Dimuthu De Lanerolle 
wrote:

> I am getting the below test failures as I move the page objects
> to tests-common/integration-test-utils module. However we will not
> encounter these test failures if we add the same page objects to tests-ui
> module. Currently I am looking into fixing this.
>
> JavaScript error: resource://unity/unity-global-property-initializer.js,
> line 368: NS_ERROR_XPC_SECURITY_MANAGER_VETO: Component returned failure
> code: 0x80570027 (NS_ERROR_XPC_SECURITY_MANAGER_VETO) [nsIDOMWindow.window]
> JavaScript error: chrome://browser/content/urlbarBindings.xml, line 650:
> aUrl is undefined
>
> at
> org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:95)
>  at
> org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:149)
> at
> org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:75)
>  at
> org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:128)
> at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:79)
>  at
> org.wso2.carbon.automation.extensions.selenium.BrowserManager.getDriver(BrowserManager.java:65)
> at
> org.wso2.carbon.automation.extensions.selenium.BrowserManager.getWebDriver(BrowserManager.java:57)
>  at
> org.wso2.carbon.integration.test.ui.webapp.WebAppSeleniumTestCase.setUp(WebAppSeleniumTestCase.java:40)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
>  at
> org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)
> at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
>  at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
> at
> org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:173)
>  at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)
> at org.testng.TestRunner.runWorkers(TestRunner.java:1178)
>  at org.testng.TestRunner.privateRun(TestRunner.java:757)
> at org.testng.TestRunner.run(TestRunner.java:608)
>  at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
>  at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
>  at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
>  at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
> at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
>  at org.testng.TestNG.run(TestNG.java:999)
> at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:122)
>  at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
> at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:101)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
>  at
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
> at
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
>  at
> org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
> at
> org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
>  at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
> Jul 28, 2014 5:32:47 PM
> org.wso2.carbon.automation.engine.testlisteners.TestManagerListener
> onTestStart
> INFO: Running the test method ---
> org.wso2.carbon.integration.test.ui.webapp.WebAppSeleniumTestCase.testHelloWorldExample
> 
> Jul 28, 2014 5:32:47 PM
> org.wso2.carbon.automation.engine.testlisteners.TestManagerListener
> onTestSkipped
> INFO: On test skipped...
> Jul 28, 2014 5:32:47 PM
> org.wso2.carbon.automation.engine.testlisteners.TestManagerListener
> onTestStart
> INFO: Running the test method ---
> org.wso2.carbon.integration.test.ui.webapp.WebAppSeleniumTestCase.testRequestInfoExample
> 
> J

Re: [Dev] [DEV] - Carbon - Build failure on orbit/trunk

2014-07-29 Thread Chamila De Alwis
Hi Kasun,

I checked out the orbit bundles from the SVN repository[1]. I'm following
this tutorial[2].

And here is the folder structure I have.

.
├── kernel
│   └── 4.2.0
│   ├── core
│   ├── dependencies
│   ├── distribution
│   ├── features
│   ├── parent
│   ├── patches
│   ├── samples
│   ├── service-packs
│   └── service-stubs
├── orbit
│   └── trunk
│   ├── cassandra-jdbc
│   ├── cglib
│   ├── cors-filter
│   ├── hazelcast
│   ├── httpcore
│   ├── java-property-utils
│   ├── jdbc-pool
│   ├── js
│   ├── jstl
│   ├── poi
│   ├── poi-ooxml
│   ├── poi-scratchpad
│   ├── rabbit-mq
│   ├── saxon
│   ├── spring-framework
│   ├── tribes
│   └── wadl-core
└── platform
└── turing
├── build
├── components
├── dependencies
├── features
├── parent
├── platform-integration
├── product-releases
├── products
├── samples
└── service-stubs

[1] - https://svn.wso2.org/repos/wso2/carbon/orbit/trunk/
[2] - http://java.dzone.com/articles/how-build-wso2-carbon-420



On Tue, Jul 29, 2014 at 12:31 PM, Kasun Gajasinghe  wrote:

> Hi Chamila,
>
> What's the svn location of this jdbc-pool bundle? Your folder structure
> doesn't look like the standard structure we have. The parent of this orbit
> bundle should rather be the orbit parent.
>
> KasunG
>
>
> On Tue, Jul 29, 2014 at 11:34 AM, Chamila De Alwis 
> wrote:
>
>> Hi,
>>
>> I was trying to build carbon with the following folder structure.
>>
>> .
>> ├── kernel
>> │   └── 4.2.0
>> ├── orbit
>> │   └── trunk
>> └── platform
>> └── turing
>>
>> However when a build was started on orbit/trunk the following error
>> occurred.
>>
>> [ERROR] The build could not read 1 project -> [Help 1]
>> [ERROR]
>> [ERROR]   The project
>> org.apache.tomcat.wso2:jdbc-pool:${jdbc.pool.version}.wso2v1
>> (/home/chamilad/dev/source/carbon/orbit/trunk/jdbc-pool/pom.xml) has 1 error
>> [ERROR] Non-resolvable parent POM: Could not find artifact
>> org.wso2.carbon:carbon-dependents:pom:4.0.0 in central (
>> http://repo.maven.apache.org/maven2) and 'parent.relativePath' points at
>> wrong local POM @ line 22, column 13 -> [Help 2]
>> [ERROR]
>>
>>
>> I was able to fix this by changing the relativePath to the
>> carbon-dependents pom.
>>
>>
>> Index: jdbc-pool/pom.xml
>> ===
>> --- jdbc-pool/pom.xml(revision 206122)
>> +++ jdbc-pool/pom.xml(working copy)
>> @@ -22,8 +22,8 @@
>>  
>>  org.wso2.carbon
>>  carbon-dependents
>> -4.0.0
>> -../../../pom.xml
>> +4.2.0
>> +
>> ../../../platform/turing/dependencies/pom.xml
>> 
>>
>>  4.0.0
>>
>>
>>
>> --
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
> email: kasung AT spamfree wso2.com
> linked-in: http://lk.linkedin.com/in/gajasinghe
> blog: http://kasunbg.org
>
>
>



-- 

Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppServer] Error in JAX Rest Service

2014-07-29 Thread Kasun Gajasinghe
Hi Jerad,

It seems you are trying to write a JAX-RS service using CXF. If that's the
case, remove the jersey libraries from your system. You shouldn't mix two
implementations together. You can find the CXF related maven dependencies
by looking at samples in Application Server 5.2.1. Specifically, the sample
jaxrs-basic at AS_HOME/samples/Jaxws-Jaxrs/ folder would help.

regards,
KasunG



On Tue, Jul 29, 2014 at 11:34 AM, Jerad Rutnam  wrote:

> Hi Abimaran,
>
> Thanks a lot for your reply. I have tried updating the jersey version, but
> it didn't work out. now it gives ClassNotFoundExceptions. See
> modification below,
>
>
> *1. pom.xml*
> 
>
>
>
> 
>  javax.ws.rs
> javax.ws.rs-api
>  2.0
> compile
>  
>
>  
> org.glassfish.jersey.core
>  jersey-server
> 2.11
>  
>
>  
> org.glassfish.jersey.core
>  jersey-common
> 2.11
>  
>
>  
> org.glassfish.hk2
>  hk2-api
> 2.2.0
>  
>
>  
> org.glassfish.jersey.media
>  jersey-media-json-jackson
> 2.11
>  
>
>  
> org.glassfish.jersey.media
>  jersey-media-json-processing
> 2.11
>  
>
>
> 
>  org.json
> json
>  20140107
> 
>
> 
>
> 
>
> *2. Error Log*
> 
>
> ERROR {org.apache.catalina.core.StandardWrapperValve} -  Servlet.service()
> for servlet [BookStoreService] in context with path [/JAXRS-Service] threw
> exception [Servlet execution threw an exception] with root cause
> java.lang.NoClassDefFoundError:
> org/glassfish/hk2/api/ServiceLocatorFactory$CreatePolicy
> at
> org.glassfish.jersey.internal.inject.Injections._createLocator(Injections.java:138)
>  at
> org.glassfish.jersey.internal.inject.Injections.createLocator(Injections.java:109)
> at
> org.glassfish.jersey.server.internal.RuntimeDelegateImpl.(RuntimeDelegateImpl.java:63)
>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>  at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> at java.lang.Class.newInstance(Class.java:374)
>  at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:117)
> at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:165)
>  at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:135)
> at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
>  at
> javax.ws.rs.core.Response$ResponseBuilder.newInstance(Response.java:848)
> at javax.ws.rs.core.Response.status(Response.java:613)
>  at
> org.apache.cxf.jaxrs.utils.JAXRSUtils.createResponse(JAXRSUtils.java:566)
> at
> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:166)
>  at
> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:101)
>  at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>  at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
>  at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
>  at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
> at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
>  at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>  at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
>  at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:735)
>  at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>  at
> org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:43)
>  at
> org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)
>  at
> org.wso2.carbon.t

Re: [Dev] Why This Error In Building The ESB Version at Turing-chunk07

2014-07-29 Thread Udara Liyanage
Hi Dilan,

Could you please delete the mentioned jars only and try again.


On Tue, Jul 29, 2014 at 10:22 AM, Dilan Udara Ariyaratne 
wrote:

> Hi Folks,
>
> Thanks for the quick replies and I am currently working on what you have
> mentioned.
> Will give my feedback on this ASAP.
>
> Thanks.
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94775149066
> lean . enterprise . middleware
>
>
> On Tue, Jul 29, 2014 at 9:57 AM, Darshana Akalanka Pagoda Arachchi <
> darsha...@wso2.com> wrote:
>
>> Hi Rajitha,
>>
>> Yes true. Replacing jars is not the solution to the real problem.
>>
>> Thanks,
>>
>>
>> On Tue, Jul 29, 2014 at 9:48 AM, Rajith Vitharana 
>> wrote:
>>
>>> Hi Darshana,
>>>
>>> IMO that wont be feasible if there are so many corrupted jars :)
>>>
>>> Thanks
>>>
>>>
>>> On Tue, Jul 29, 2014 at 9:41 AM, Darshana Akalanka Pagoda Arachchi <
>>> darsha...@wso2.com> wrote:
>>>
 I also had the same issue and thought this was an issue in my machine.
 The jars do download into these locations. But when tried to open using the
 file browser is says that the jar is corrupted. However, the jar files in
 the repository opens without any errors if downloaded manually.

 *Deleting maven local repo did not solve this issue.*
 *jdk - 1.7*
 *maven - 3.0.5*

 What I had done was deleted these corrupted jars from the maven local
 repository and downloaded them manually and copied to those locations from
 the referenced repository.

 Thanks,


 On Tue, Jul 29, 2014 at 8:25 AM, Rajith Vitharana 
 wrote:

> Hi Dilan,
>
> Try cleaning your local m2 repo and try again. (just delete the 
> "/home/dilan/.m2/repository/"
> folder and try mvn clean install)
> what is the jdk version you are using? and maven version?
>
> Thanks,
>
>
> On Tue, Jul 29, 2014 at 7:22 AM, Dilan Udara Ariyaratne <
> dil...@wso2.com> wrote:
>
>> Hi Everyone,
>>
>> I would like to inquire your view on the following issue.
>>
>> When trying to build ESB, downloaded from the following SVN Link:
>> https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk07,
>> an error pops up as follows
>> at the terminal (used command: mvn clean install
>> -Dmaven.test.skip=true)
>>
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 01:18 min
>> [INFO] Finished at: 2014-07-28T22:11:17+05:30
>> [INFO] Final Memory: 244M/1416M
>> [INFO]
>> 
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
>> (default-compile) on project ode-axis2: Compilation failure: Compilation
>> failure:
>> [ERROR] error: error reading
>> /home/dilan/.m2/repository/org/apache/axis2/mex/1.6.1-wso2v2/mex-1.6.1-wso2v2-impl.jar;
>> error in opening zip file
>> [ERROR] error: error reading
>> /home/dilan/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.6.1-wso2v2/axis2-mtompolicy-1.6.1-wso2v2.jar;
>> error in opening zip file
>> [ERROR] error: error reading
>> /home/dilan/.m2/repository/org/apache/ws/security/wss4j/1.5.11-wso2v2/wss4j-1.5.11-wso2v2.jar;
>> error in opening zip file
>> [ERROR] error: error reading
>> /home/dilan/.m2/repository/org/apache/xalan/xalan/2.7.1/xalan-2.7.1.jar;
>> error in opening zip file
>> [ERROR] error: error reading
>> /home/dilan/.m2/repository/org/apache/santuario/xmlsec/1.4.2/xmlsec-1.4.2.jar;
>> error in opening zip file
>> [ERROR] error: error reading
>> /home/dilan/.m2/repository/org/opensaml/opensaml1/1.1/opensaml1-1.1.jar;
>> error in opening zip file
>> [ERROR] error: error reading
>> /home/dilan/.m2/repository/org/opensaml/opensaml/2.2.3/opensaml-2.2.3.jar;
>> error in opening zip file
>> [ERROR] error: error reading
>> /home/dilan/.m2/repository/org/slf4j/slf4j-jdk14/1.5.2/slf4j-jdk14-1.5.2.jar;
>> error in opening zip file
>> [ERROR] error: error reading
>> /home/dilan/.m2/repository/bouncycastle/bcprov-jdk14/140/bcprov-jdk14-140.jar;
>> error in opening zip file
>> [ERROR] -> [Help 1]
>>
>> Highly appreciate any feedback on this issue.
>>
>> Thanks...
>>
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajith Vitharana
>
> Software Engineer,
> WSO2 Inc. : wso2.com

Re: [Dev] [DEV] - Carbon - Build failure on orbit/trunk

2014-07-29 Thread Kasun Gajasinghe
Hi Chamila,

What's the svn location of this jdbc-pool bundle? Your folder structure
doesn't look like the standard structure we have. The parent of this orbit
bundle should rather be the orbit parent.

KasunG


On Tue, Jul 29, 2014 at 11:34 AM, Chamila De Alwis 
wrote:

> Hi,
>
> I was trying to build carbon with the following folder structure.
>
> .
> ├── kernel
> │   └── 4.2.0
> ├── orbit
> │   └── trunk
> └── platform
> └── turing
>
> However when a build was started on orbit/trunk the following error
> occurred.
>
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR]   The project
> org.apache.tomcat.wso2:jdbc-pool:${jdbc.pool.version}.wso2v1
> (/home/chamilad/dev/source/carbon/orbit/trunk/jdbc-pool/pom.xml) has 1 error
> [ERROR] Non-resolvable parent POM: Could not find artifact
> org.wso2.carbon:carbon-dependents:pom:4.0.0 in central (
> http://repo.maven.apache.org/maven2) and 'parent.relativePath' points at
> wrong local POM @ line 22, column 13 -> [Help 2]
> [ERROR]
>
>
> I was able to fix this by changing the relativePath to the
> carbon-dependents pom.
>
>
> Index: jdbc-pool/pom.xml
> ===
> --- jdbc-pool/pom.xml(revision 206122)
> +++ jdbc-pool/pom.xml(working copy)
> @@ -22,8 +22,8 @@
>  
>  org.wso2.carbon
>  carbon-dependents
> -4.0.0
> -../../../pom.xml
> +4.2.0
> +
> ../../../platform/turing/dependencies/pom.xml
> 
>
>  4.0.0
>
>
>
> --
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev