Re: [Dev] Using OSGI "Configuration Property Types" - for interpretation of configurations

2016-02-11 Thread Pamod Sylvester
We were evaluating the possibility of using this to pull out fields in the
configurations we define

 i.e when we introduce a transport module we could have transport related
configs/fields being identified and populated through this.

On Thu, Feb 11, 2016 at 9:51 AM, Kishanthan Thangarajah  wrote:

> We can use this and this used within a DS component in a dynamic manner.
> Can you tell me the exact use case you are trying out?
>
> On Wed, Feb 10, 2016 at 11:54 AM, Pamod Sylvester  wrote:
>
>> Hi All,
>>
>> DS 1.3 provides the capability of defining custom types for
>> configurations. This might be a cleaner approach we could use to interpret
>> our configurations. using @interface annotation.
>>
>> WDYT ?
>>
>> [1] http://njbartlett.name/2015/08/17/osgir6-declarative-services.html
>>
>> Thanks,
>> Pamod
>>
>> --
>> *Pamod Sylvester *
>>
>> *WSO2 Inc.; http://wso2.com *
>> cell: +94 77 7779495
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Associate Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
*Pamod Sylvester *

*WSO2 Inc.; http://wso2.com *
cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to insert persisted stream data to a separate table

2016-02-11 Thread Thusitha Thilina Dayaratne
Hi,

I've setup ESB 4.8.1 along with DAS 3.0.1 and published some proxy invoking
stats to the DAS according to the [1]
I can see the data on the data explorer window for
the BAM_MEDIATION_STATS_DATA_PUBLISHER

Then I executed following query to create a new table through the batch
analytic console in DAS

> CREATE TEMPORARY TABLE tmpTable
> USING CarbonAnalytics
> OPTIONS (TABLENAME "TMP_DATA", schema "timestamp LONG,
>   resource_id STRING,
>   stats_type STRING,
>   max_processing_time LONG,
>   avg_processing_time LONG");


Now I'm trying to insert the already published data to the newly created
table as with below query

INSERT INTO TABLE tmpTable select timestamp, resource_id, stats_type,
> max_processing_time, avg_processing_time from
> BAM_MEDIATION_STATS_DATA_PUBLISHER;


But when I execute this query I'm getting below exception

​It says BAM_MEDIATION_STATS_DATA_PUBLISHER table doesn't exist.

Did I missed anything? Or how should I insert the persisted stream data to
a separate table?

[1] -
https://docs.wso2.com/display/BAM250/Setting+up+Mediation+Stat+Data+Agent

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

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Carbon-Kernel 4.2.0] Compilation Error while building

2016-02-11 Thread Madhawa Perera
Hi,

I'm getting following compilation error when building the Carbon Kernel
4.2.0 from source. I'm using apache maven 3.3.9 and jdk 1.7.0_80

The error that I'm getting is as follows

[ERROR] COMPILATION ERROR :
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.1:compile
(default-compile) on project wss4j: Compilation failure: Compilation
failure:
[ERROR]
/home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[10,24]
EncryptionKey is internal proprietary API and may be removed in a future
release

Further it gives following warnings as well .

[INFO] --- maven-pmd-plugin:2.5:pmd (pmd) @ wss4j ---
[WARNING] File encoding has not been set, using platform encoding UTF-8,
i.e. build is platform dependent!

[WARNING] Error while parsing
/home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/KerberosTokenPrincipal.java:
Can't use annotations when running in JDK 1.4 mode!

[WARNING] Error while parsing
/home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbSessionCache.java:
Can't use generics unless running in JDK 1.5 mode!

Is this a problem with maven and jdk versions? The prerequisites
documentation suggests maven 3.0.x and has mentioned that jdk 1.7 is
compatible.

Thank you
Regards,

-- 
Madhawa Perera
*Software Engineer*
Mobile : +94 (0) 773655496
<%2B94%20%280%29%20773%20451194>
madha...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to insert persisted stream data to a separate table

2016-02-11 Thread Sachith Withana
Hi Thusitha,

You have to create another temporary table in spark for the
BAM_MEDIATION_STATS_DATA_PUBLISHER table as well.

ex: create temporary table BAM_MEDIATION_STATS_DATA_PUBLISHER using
CarbonAnalytics options (tableName "BAM_MEDIATION_STATS_DATA_PUBLISHER")

And then execute the Insert into query.

Cheers,
Sachith

On Thu, Feb 11, 2016 at 2:56 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi,
>
> I've setup ESB 4.8.1 along with DAS 3.0.1 and published some proxy
> invoking stats to the DAS according to the [1]
> I can see the data on the data explorer window for
> the BAM_MEDIATION_STATS_DATA_PUBLISHER
>
> Then I executed following query to create a new table through the batch
> analytic console in DAS
>
>> CREATE TEMPORARY TABLE tmpTable
>> USING CarbonAnalytics
>> OPTIONS (TABLENAME "TMP_DATA", schema "timestamp LONG,
>>   resource_id STRING,
>>   stats_type STRING,
>>   max_processing_time LONG,
>>   avg_processing_time LONG");
>
>
> Now I'm trying to insert the already published data to the newly created
> table as with below query
>
> INSERT INTO TABLE tmpTable select timestamp, resource_id, stats_type,
>> max_processing_time, avg_processing_time from
>> BAM_MEDIATION_STATS_DATA_PUBLISHER;
>
>
> But when I execute this query I'm getting below exception
>
> ​It says BAM_MEDIATION_STATS_DATA_PUBLISHER table doesn't exist.
>
> Did I missed anything? Or how should I insert the persisted stream data to
> a separate table?
>
> [1] -
> https://docs.wso2.com/display/BAM250/Setting+up+Mediation+Stat+Data+Agent
>
> Thanks
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sachith Withana
Software Engineer; WSO2 Inc.; http://wso2.com
E-mail: sachith AT wso2.com
M: +94715518127
Linked-In: https://lk.linkedin.com/in/sachithwithana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Jayanga Kaushalya

2016-02-11 Thread Johann Nallathamby
Hi All,

It's my pleasure to announce Jayanga Kaushalya as a WSO2 Committer.
Jayanga has been
a valuable contributor for WSO2 Identity Server product, and in recognition
of his contribution to WSO2, he has been voted as a WSO2 Committer.

Jayanga, congratulations and keep up the good work!

Thanks & Regards.

-- 

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

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Adding H2 Driver as a Dependency only for the Destribution

2016-02-11 Thread Akalanka Pagoda Arachchi
Hi Niranjan,

Yes, we could have avoided adding h2-database-engine as a dependency in
4.4.x Andes.

If we add the h2 driver to the datasource feature, it would mean whenever
datasource feature is used h2 driver will be copied. Will that be OK? My
opinion is if the H2 driver is not a dependency for the feature, it should
not be contained in the feature. When we create a distribution from that
feature, if H2 DB is used as the default DB configuration, we should
provide the H2 driver with the distribution.

WDYT?

Thanks,
Akalanka.

On Fri, Feb 12, 2016 at 11:05 AM, Niranjan Karunanandham 
wrote:

> Hi Akalanka / all
>
> On Fri, Feb 12, 2016 at 10:46 AM, Akalanka Pagoda Arachchi <
> darsha...@wso2.com> wrote:
>
>> Hi All,
>>
>> In the previous distributions, we had H2 database driver as a dependency
>> for our features so that it will be copied to the plugins folder when the
>> pack is created.However, in this scenario, H2 database driver is not
>> exactly a dependency of the Andes Core feature since it is not using the H2
>> driver.
>>
> Are you referring to the h2-database-engine jar? This was there in the
> plugins folder of kernel core zip in 4.4.x. If so, then why is andes core
> feature also packing this?
>
>
>> Therefore, my suggestion is to avoid adding H2 database driver as a
>> dependency for the Andes Core feature, but rather add it as a dependency
>> for product distribution module so that when the distribution pack is
>> created, the H2 driver, which is required for default database
>> configurations is copied to the plugins folder.
>>
>> This will be useful in reducing the Andes Core feature bundle size as
>> well.
>>
>> If any product is to install Andes Core feature, they will have to copy
>> the relevant jar file to the dropins folder if they don't already have it.
>>
>> WDYT?
>>
>> If we're to go ahead with this approach we need a way to install osgi
>> bundles to the distribution that are not available in the features or
>> create a new feature containing H2 database driver.
>>
> If we require a default DB, then I would suggest to have it with database
> core feature. WDYT?
>
>
>>
>> Please provide your thoughts.
>>
>> Thanks,
>> Akalanka.
>>
>> --
>> *Darshana Akalanka Pagoda Arachchi,*
>> *Software Engineer*
>> *078-4721791*
>>
>
> Regards,
> Nira
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



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


Re: [Dev] [MB] Adding H2 Driver as a Dependency only for the Destribution

2016-02-11 Thread Niranjan Karunanandham
Hi Akalanka,

On Fri, Feb 12, 2016 at 11:37 AM, Akalanka Pagoda Arachchi <
darsha...@wso2.com> wrote:

> Hi Niranjan,
>
> Yes, we could have avoided adding h2-database-engine as a dependency in
> 4.4.x Andes.
>
> If we add the h2 driver to the datasource feature, it would mean whenever
> datasource feature is used h2 driver will be copied. Will that be OK? My
> opinion is if the H2 driver is not a dependency for the feature, it should
> not be contained in the feature. When we create a distribution from that
> feature, if H2 DB is used as the default DB configuration, we should
> provide the H2 driver with the distribution.
>
Sorry about it. I was under the impression that the datasource core for C5
supports by default is for H2 DB like in C4. This is why I suggested that
we define it at the datasource core feature.


> WDYT?
>
> Thanks,
> Akalanka.
>
> On Fri, Feb 12, 2016 at 11:05 AM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Akalanka / all
>>
>> On Fri, Feb 12, 2016 at 10:46 AM, Akalanka Pagoda Arachchi <
>> darsha...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> In the previous distributions, we had H2 database driver as a dependency
>>> for our features so that it will be copied to the plugins folder when the
>>> pack is created.However, in this scenario, H2 database driver is not
>>> exactly a dependency of the Andes Core feature since it is not using the H2
>>> driver.
>>>
>> Are you referring to the h2-database-engine jar? This was there in the
>> plugins folder of kernel core zip in 4.4.x. If so, then why is andes core
>> feature also packing this?
>>
>>
>>> Therefore, my suggestion is to avoid adding H2 database driver as a
>>> dependency for the Andes Core feature, but rather add it as a dependency
>>> for product distribution module so that when the distribution pack is
>>> created, the H2 driver, which is required for default database
>>> configurations is copied to the plugins folder.
>>>
>>> This will be useful in reducing the Andes Core feature bundle size as
>>> well.
>>>
>>> If any product is to install Andes Core feature, they will have to copy
>>> the relevant jar file to the dropins folder if they don't already have it.
>>>
>>> WDYT?
>>>
>>> If we're to go ahead with this approach we need a way to install osgi
>>> bundles to the distribution that are not available in the features or
>>> create a new feature containing H2 database driver.
>>>
>> If we require a default DB, then I would suggest to have it with database
>> core feature. WDYT?
>>
>>
>>>
>>> Please provide your thoughts.
>>>
>>> Thanks,
>>> Akalanka.
>>>
>>> --
>>> *Darshana Akalanka Pagoda Arachchi,*
>>> *Software Engineer*
>>> *078-4721791*
>>>
>>
>> Regards,
>> Nira
>>
>> --
>>
>> *Niranjan Karunanandham*
>> Senior Software Engineer - WSO2 Inc.
>> WSO2 Inc.: http://www.wso2.com
>>
>
>
>
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Software Engineer*
> *078-4721791*
>

Regards,
Nira

-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Synapse-2.1.7-wso2v1 Released

2016-02-11 Thread Vijitha Ekanayake
Hi,

Please note $subject.

org.apache.synapse
Apache-Synapse
2.1.7-wso2v1

Thanks.

-- 
Vijitha Ekanayake
Software Engineer*, *WSO2, Inc.; http://wso2.com/
Mobile : +94 777 24 73 39 | +94 718 74 44 08
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Populate configuration files when a feature is deployed

2016-02-11 Thread Niranjan Karunanandham
Hi Asitha,

As an example, you can check out the cipher-tool p2.inf [1].

[1] -
https://github.com/wso2/cipher-tool/blob/master/features/org.wso2.ciphertool.feature/resources/p2.inf

Regards,
Nira

On Fri, Feb 12, 2016 at 11:07 AM, Niranjan Karunanandham 
wrote:

> Hi Asitha,
>
>
> On Fri, Feb 12, 2016 at 10:54 AM, Asitha Nanayakkara 
> wrote:
>
>> Hi all,
>>
>> At the moment, all the configuration files that are relevant to a
>> specific feature need to be added at the distribution packaging phase using
>> maven assembly plugin.
>>
>> Therefore when a feature is installed to a carbon server the relevant
>> configuration files are not copied. Either needs to be added manually or
>> add the specific files using assembly plugin when building the product.
>>
> You can use the p2.inf file to copy config files to specific location when
> installing features. We have being using this when installing features in
> kernel 4.4.x based features.
>
>
>>
>> For instance when an MB feature is installed on ESB all the configuration
>> files need to be manually copied.
>>
>
>> Are there any plans on implementing this capability for feature
>> deployments in hamming release?
>>
>> Regards,
>> Asitha
>> --
>> *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/mailman/listinfo/dev
>>
>>
> Regards,
> Nira
>
> --
>
> *Niranjan Karunanandham*
> Senior Software Engineer - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>



-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deploying a Dashboard for Web Application Statistics Monitoring for AS

2016-02-11 Thread Lochana Ranaweera
Hi all,

The issue was fixed with the modified script.

Thank you.

On Fri, Feb 12, 2016 at 9:26 AM, Jayanga Dissanayake 
wrote:

> Hi Lochana,
>
> This error is due to your mySql table are not having the "tenantId"
> column.
> This will be solved by modifying the Hive script to have the tenantId in
> all the mySql tables.
>
> "tenantId" was added with the latest updates. It seems the tenantId is
> missing in the hive script.
>  Please find the modified hive script attached here with.
>
> Thanks,
> Jayanga.
>
> *Jayanga Dissanayake*
> Senior Software Engineer
> WSO2 Inc. - http://wso2.com/
> lean . enterprise . middleware
> email: jaya...@wso2.com
> mobile: +94772207259
>
> On Fri, Feb 12, 2016 at 9:02 AM, Lochana Ranaweera 
> wrote:
>
>> Hi Kalpa,
>>
>> Please find the toolbox here
>> https://drive.google.com/a/wso2.com/file/d/0B2SWP2RvcxJjUFNYVHpvazhFSU0/view?usp=sharing
>>
>> I will do so and update this thread.
>>
>>
>> On Fri, Feb 12, 2016 at 1:20 AM, Kalpa Welivitigoda 
>> wrote:
>>
>>> Hi Lochana,
>>>
>>> Would you please share the toolbox? It seems that there is a mismatch
>>> between the fields in the SQL query with those in the db.
>>>
>>> The exception is thrown from db.jag and it is a common place where all
>>> the SQL statements are executed. Shall we isolate the request that fails
>>> (you can do so by loading the dashboard with developer tools and see what
>>> request to as-data.jag fails)?
>>>
>>>
>>> On Thu, Feb 11, 2016 at 4:42 PM, Lochana Ranaweera 
>>> wrote:
>>>
 Adding Jayanga and KalpaW

 On Thu, Feb 11, 2016 at 3:37 PM, Lochana Ranaweera 
 wrote:

> Adding dev
>
> On Thu, Feb 11, 2016 at 3:35 PM, Lochana Ranaweera 
> wrote:
>
>> Hi all,
>>
>> When going through the previous implementation of the AS Statistics
>> Monitoring feature in [1] which is applicable for AS 5.3.0 and BAM
>> 2.5.0,  it was noted that regardless of the stream definition given 
>> through
>> the toolbox, the events are published to the BAM following a specific
>> stream definition at every instance. The events thus published to BAM are
>> analyzed through a hive script which summarizes results at a mysql
>> database. Since the events published to the BAM are incomplete and 
>> missing
>> a number of fields, several tables in the database do not get populated 
>> as
>> expected. Because of this reason, in order to deploy the HTTP monitoring
>> dashboard, I manually populated the database with test data as required.
>>
>> Although I have created the tables with the relevant descriptions to
>> exactly match the hive script included in the tool box attached herewith,
>> I'm getting the error given below.
>>
>> ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>>  org.mozilla.javascript.WrappedException: Wrapped
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column
>> 'tenantId' in 'where clause' (/webapp-analytics/api/db.jag#47)
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.WrappedException: Wrapped
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column
>> 'tenantId' in 'where clause' (/webapp-analytics/api/db.jag#47)
>>
>> Appreciate your ideas as regarding this issue.
>>
>> [1]
>> https://github.com/jsdjayanga/carbon-deployment/tree/as_analytics/components/analytics
>>
>> Thanks and regards,
>>
>> Lochana Ranaweera
>> Intern Software Engineer
>> WSO2 Inc: http://wso2.com
>> Blog: https://lochanaranaweera.wordpress.com/
>> Mobile: +94716487055 
>>
>>
>
>
> --
> Lochana Ranaweera
> Intern Software Engineer
> WSO2 Inc: http://wso2.com
> Blog: https://lochanaranaweera.wordpress.com/
> Mobile: +94716487055 
>
>


 --
 Lochana Ranaweera
 Intern Software Engineer
 WSO2 Inc: http://wso2.com
 Blog: https://lochanaranaweera.wordpress.com/
 Mobile: +94716487055 


>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> Kalpa Welivitigoda
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> Email: kal...@wso2.com
>>> Mobile: +94776509215
>>>
>>
>>
>>
>> --
>> Lochana Ranaweera
>> Intern Software Engineer
>> WSO2 Inc: http://wso2.com
>> Blog: https://lochanaranaweera.wordpress.com/
>> Mobile: +94716487055 
>>
>>
>


-- 
Lochana Ranaweera
Intern Software Engineer
WSO2 Inc: http://wso2.com
Blog: https://lochanaranaweera.wordpress.com/
Mobile: +94716487055 
___
Dev mailing list

Re: [Dev] Error while creating init for 4.10

2016-02-11 Thread Nadeeshaan Gunasinghe
Hi Malaka,

As you mentioned I tried the dynamic name instead of conf:/Resource/foo .

http://ws.apache.org/ns/synapse; name="testproxy"
transports="https,http" statistics="disable" trace="disable"
startOnLoad="true">
   
  
 
 
 

 
 
 
 
  
  
 
 
  
   
   proxy
   

If we try to invoke the above proxy we can identify that the first log
shows the following

*INFO - LogMediator $ctx:test2 = TESTVAL *instead of *INFO - LogMediator
TESTNAME = TESTVAL*

Therefore basically we cannot use dynamic naming for the name parameter,
according to my understanding. Due to this reason we cannot use the

in a similar manner. Therefore can only use the dynamic naming for
expression.

Thanks.

*Nadeeshaan Gunasinghe*
Software Engineer, WSO2 Inc. http://wso2.com
+94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe <#>

  

Get a signature like this: Click here!


On Thu, Feb 11, 2016 at 7:22 PM, Malaka Silva  wrote:

> conf:/Resource/foo should be dynamic.
>
> On Thu, Feb 11, 2016 at 7:02 PM, Nadeeshaan Gunasinghe <
> nadeesh...@wso2.com> wrote:
>
>> Hi Malaka,
>>
>> I tried the scenario with this proxy configuration. This works fine as
>> expected
>>
>> http://ws.apache.org/ns/synapse; name="testProxy"
>>  transports="https,http" statistics="disable" trace="disable"
>> startOnLoad="true">
>>
>>   
>>  
>>  > scope="registry"/>
>>  
>>   
>>   
>>  
>>  
>>   
>>
>>proxy
>>
>> 
>>
>> Regards
>>
>> On Mon, Feb 8, 2016 at 4:43 PM, Malaka Silva  wrote:
>>
>>> Hi,
>>>
>>> I guess it does not support dynamic names (expression) when persiting.If
>>> do go ahead with script mediator.
>>>
>>> @Nadeeshaan - Can you please confirm.
>>>
>>> -- Forwarded message --
>>> From: Hariprasath Thanarajah 
>>> Date: Mon, Feb 8, 2016 at 4:30 PM
>>> Subject: Error while creating init for 4.10
>>> To: Malaka Silva 
>>> Cc: Keerthika Mahendralingam , Kesavan Yogarajah <
>>> kesav...@wso2.com>
>>>
>>>
>>> Hi Malaka,
>>>
>>> IMHO we can create the salesforce REST connector will support all the
>>> ESB versions. Since there are no difference in performance while we are
>>> using script or property mediator.
>>> Is there any particular reason to create Salesforce REST for 4.10 only
>>> by using property mediator?
>>>
>>> I have an issue in use the user defined path to store the values in
>>> registry using property mediator.
>>>
>>> This is how i used to store the value in Registry.
>>> >>   expression="$ctx:systemTime" scope="registry"/>
>>>
>>> Here the value is store in $ctx:uei.var.timeRegistryPath
>>>
>>> and
>>>
>>> If i using this,
>>>
>>> >>   expression="$ctx:systemTime" scope="registry"/>
>>>
>>>  i got the below error,
>>>
>>> ERROR - WSO2Registry Error while saving a resource at
>>> get-property('uri.var.timeRegistryPath')
>>> org.wso2.carbon.registry.core.exceptions.RegistryException: The path
>>> '/_system/governance/get-property('uri.var.timeRegistryPath')' contains one
>>> or more illegal characters (~!@#;%^*()+={}|\<>"',)
>>> at
>>> org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:262)
>>> at
>>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:709)
>>> at
>>> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:508)
>>> at
>>> org.wso2.carbon.registry.core.session.UserRegistry.putInternal(UserRegistry.java:824)
>>> at
>>> org.wso2.carbon.registry.core.session.UserRegistry.access$1000(UserRegistry.java:60)
>>> at
>>> org.wso2.carbon.registry.core.session.UserRegistry$11.run(UserRegistry.java:800)
>>> at
>>> org.wso2.carbon.registry.core.session.UserRegistry$11.run(UserRegistry.java:797)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>> org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:797)
>>> at
>>> org.wso2.carbon.mediation.registry.WSO2Registry.newNonEmptyResource(WSO2Registry.java:360)
>>> at
>>> org.apache.synapse.mediators.builtin.PropertyMediator.mediate(PropertyMediator.java:193)
>>> at
>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>>> at
>>> org.apache.synapse.mediators.filters.FilterMediator.mediate(FilterMediator.java:236)
>>> at
>>> 

Re: [Dev] Populate configuration files when a feature is deployed

2016-02-11 Thread Niranjan Karunanandham
Hi Asitha,


On Fri, Feb 12, 2016 at 10:54 AM, Asitha Nanayakkara 
wrote:

> Hi all,
>
> At the moment, all the configuration files that are relevant to a specific
> feature need to be added at the distribution packaging phase using maven
> assembly plugin.
>
> Therefore when a feature is installed to a carbon server the relevant
> configuration files are not copied. Either needs to be added manually or
> add the specific files using assembly plugin when building the product.
>
You can use the p2.inf file to copy config files to specific location when
installing features. We have being using this when installing features in
kernel 4.4.x based features.


>
> For instance when an MB feature is installed on ESB all the configuration
> files need to be manually copied.
>

> Are there any plans on implementing this capability for feature
> deployments in hamming release?
>
> Regards,
> Asitha
> --
> *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/mailman/listinfo/dev
>
>
Regards,
Nira

-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MB] Adding H2 Driver as a Dependency only for the Destribution

2016-02-11 Thread Akalanka Pagoda Arachchi
Hi All,

In the previous distributions, we had H2 database driver as a dependency
for our features so that it will be copied to the plugins folder when the
pack is created.However, in this scenario, H2 database driver is not
exactly a dependency of the Andes Core feature since it is not using the H2
driver.

Therefore, my suggestion is to avoid adding H2 database driver as a
dependency for the Andes Core feature, but rather add it as a dependency
for product distribution module so that when the distribution pack is
created, the H2 driver, which is required for default database
configurations is copied to the plugins folder.

This will be useful in reducing the Andes Core feature bundle size as well.

If any product is to install Andes Core feature, they will have to copy the
relevant jar file to the dropins folder if they don't already have it.

WDYT?

If we're to go ahead with this approach we need a way to install osgi
bundles to the distribution that are not available in the features or
create a new feature containing H2 database driver.

Please provide your thoughts.

Thanks,
Akalanka.

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


[Dev] Carbon-mediation-4.6.1-ALPHA released

2016-02-11 Thread Viraj Senevirathne
Hi All,

Carbon-mediation-4.6.1-ALPHA released.

org.wso2.carbon.mediation
carbon-mediation
4.6.1-ALPHA

Thanks.

-- 
Viraj Senevirathne
Software Engineer; WSO2, Inc.

Mobile : +94 71 958 0269
Email : vir...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Adding H2 Driver as a Dependency only for the Destribution

2016-02-11 Thread Ramith Jayasinghe
I suppose at minimum, BPS, GREG needs a database by default to be packed.
Therefore any thoughts?

On Fri, Feb 12, 2016 at 10:46 AM, Akalanka Pagoda Arachchi
 wrote:
> Hi All,
>
> In the previous distributions, we had H2 database driver as a dependency for
> our features so that it will be copied to the plugins folder when the pack
> is created.However, in this scenario, H2 database driver is not exactly a
> dependency of the Andes Core feature since it is not using the H2 driver.
>
> Therefore, my suggestion is to avoid adding H2 database driver as a
> dependency for the Andes Core feature, but rather add it as a dependency for
> product distribution module so that when the distribution pack is created,
> the H2 driver, which is required for default database configurations is
> copied to the plugins folder.
>
> This will be useful in reducing the Andes Core feature bundle size as well.
>
> If any product is to install Andes Core feature, they will have to copy the
> relevant jar file to the dropins folder if they don't already have it.
>
> WDYT?
>
> If we're to go ahead with this approach we need a way to install osgi
> bundles to the distribution that are not available in the features or create
> a new feature containing H2 database driver.
>
> Please provide your thoughts.
>
> Thanks,
> Akalanka.
>
> --
> Darshana Akalanka Pagoda Arachchi,
> Software Engineer
> 078-4721791



-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Adding H2 Driver as a Dependency only for the Destribution

2016-02-11 Thread Niranjan Karunanandham
Hi Akalanka / all

On Fri, Feb 12, 2016 at 10:46 AM, Akalanka Pagoda Arachchi <
darsha...@wso2.com> wrote:

> Hi All,
>
> In the previous distributions, we had H2 database driver as a dependency
> for our features so that it will be copied to the plugins folder when the
> pack is created.However, in this scenario, H2 database driver is not
> exactly a dependency of the Andes Core feature since it is not using the H2
> driver.
>
Are you referring to the h2-database-engine jar? This was there in the
plugins folder of kernel core zip in 4.4.x. If so, then why is andes core
feature also packing this?


> Therefore, my suggestion is to avoid adding H2 database driver as a
> dependency for the Andes Core feature, but rather add it as a dependency
> for product distribution module so that when the distribution pack is
> created, the H2 driver, which is required for default database
> configurations is copied to the plugins folder.
>
> This will be useful in reducing the Andes Core feature bundle size as well.
>
> If any product is to install Andes Core feature, they will have to copy
> the relevant jar file to the dropins folder if they don't already have it.
>
> WDYT?
>
> If we're to go ahead with this approach we need a way to install osgi
> bundles to the distribution that are not available in the features or
> create a new feature containing H2 database driver.
>
If we require a default DB, then I would suggest to have it with database
core feature. WDYT?


>
> Please provide your thoughts.
>
> Thanks,
> Akalanka.
>
> --
> *Darshana Akalanka Pagoda Arachchi,*
> *Software Engineer*
> *078-4721791*
>

Regards,
Nira

-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon-Kernel 4.2.0] Compilation Error while building

2016-02-11 Thread Madhawa Perera
Hi Tharindu & Chathurika,

It works fine. I used maven 3.0.5 and jdk 1.6.
Thank you for the help.

Best Regards,
Madhawa



On Thu, Feb 11, 2016 at 3:27 PM, Chathurika De Silva 
wrote:

> Hi Madhawa
>
> This blog might be a help as well [1]
>
> [1] https://dzone.com/articles/how-build-wso2-carbon-420
>
> Regards
> Erandi
>
> On Thu, Feb 11, 2016 at 3:24 PM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Madhawa,
>>
>> Can you try to build with some maven 3.0.x version ? According to [1]
>> that's the recommendation. I've been able to build the kernel with 3.0.4
>> version.
>>
>> [1] https://docs.wso2.com/display/Carbon420/Installation+Prerequisites
>>
>> Regards,
>> TharinduE
>>
>> On Thu, Feb 11, 2016 at 3:18 PM, Madhawa Perera 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm getting following compilation error when building the Carbon Kernel
>>> 4.2.0 from source. I'm using apache maven 3.3.9 and jdk 1.7.0_80
>>>
>>> The error that I'm getting is as follows
>>>
>>> [ERROR] COMPILATION ERROR :
>>> [INFO]
>>> 
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-compiler-plugin:2.1:compile
>>> (default-compile) on project wss4j: Compilation failure: Compilation
>>> failure:
>>> [ERROR]
>>> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[10,24]
>>> EncryptionKey is internal proprietary API and may be removed in a future
>>> release
>>>
>>> Further it gives following warnings as well .
>>>
>>> [INFO] --- maven-pmd-plugin:2.5:pmd (pmd) @ wss4j ---
>>> [WARNING] File encoding has not been set, using platform encoding UTF-8,
>>> i.e. build is platform dependent!
>>>
>>> [WARNING] Error while parsing
>>> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/KerberosTokenPrincipal.java:
>>> Can't use annotations when running in JDK 1.4 mode!
>>>
>>> [WARNING] Error while parsing
>>> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbSessionCache.java:
>>> Can't use generics unless running in JDK 1.5 mode!
>>>
>>> Is this a problem with maven and jdk versions? The prerequisites
>>> documentation suggests maven 3.0.x and has mentioned that jdk 1.7 is
>>> compatible.
>>>
>>> Thank you
>>> Regards,
>>>
>>> --
>>> Madhawa Perera
>>> *Software Engineer*
>>> Mobile : +94 (0) 773655496
>>> <%2B94%20%280%29%20773%20451194>
>>> madha...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Tharindu Edirisinghe
>> Software Engineer | WSO2 Inc
>> Platform Security Team
>> Blog : tharindue.blogspot.com
>> mobile : +94 775181586
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Chathurika Erandi*
> Software Engineer,
> WSO2 Inc.
>
> *E-mail:* chathuri...@wso2.com
> *Mobile: *+94714 328 612
> *Blog*: chathurikaerandi.blogspot.com
>



-- 
Madhawa Perera
*Software Engineer*
Mobile : +94 (0) 773655496
<%2B94%20%280%29%20773%20451194>
madha...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS][3.0.1] -Dsetup startup error

2016-02-11 Thread Shashika Ubhayaratne


I was able to reproduce this issue by just starting DAS 301 fresh pack with
-Dsetup.

This pack does not contain dbscripts/Identity folder and scripts.

Regards,
Shashika


Shashika Ubhayaratne
Associate Technical Lead - QA
WSO2 Inc: http://www.wso2.com/
Mobile: *+94773383831*

On Fri, Feb 12, 2016 at 2:53 AM, Udara Rathnayake  wrote:

> Hi,
>
> I have configured a DAS 3.0.1 instance with mssql. Added registry and
> usermgt datasource configurations to the master-datasources.xml and default
> carbon datasource is untouched(pointing to the default h2).
>
> Then configured analytics-datasources.xml by pointing to MSSQL DBs.
>
> While starting DAS node with -Dsetup noticed following[1].
>
> Then just to verify, I have started(-Dsetup) a fresh DAS pack after
> clearing wso2das-3.0.1/repository/database directory. Noticed the same
> error and we don't have a sql script under the highlighted directory.
>
> Do we need to configure a separate identity DB and modify identity.xml
> datasource config?
>
> 
>> 
>> jdbc/WSO2CarbonDB
>> 
>>
>
>
> [1]
>
> [2016-02-11 15:40:51,306] ERROR
>> {org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent} -
>> Error occurred while populating identity configuration properties
>> org.wso2.carbon.identity.base.IdentityRuntimeException: Error occurred
>> while executing SQL script for creating identity database
>> at
>> org.wso2.carbon.identity.base.IdentityRuntimeException.error(IdentityRuntimeException.java:162)
>> at
>> org.wso2.carbon.identity.core.persistence.IdentityDBInitializer.executeSQLScript(IdentityDBInitializer.java:273)
>> at
>> org.wso2.carbon.identity.core.persistence.IdentityDBInitializer.createIdentityDatabase(IdentityDBInitializer.java:141)
>> at
>> org.wso2.carbon.identity.core.persistence.JDBCPersistenceManager.initializeDatabase(JDBCPersistenceManager.java:112)
>> at
>> org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent.activate(IdentityCoreServiceComponent.java:101)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:497)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
>> at
>> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
>> at
>> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
>> at
>> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
>> at
>> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
>> at
>> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>> at
>> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
>> at
>> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
>> at
>> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:514)
>> at
>> org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:290)
>> at
>> org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
>> at
>> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
>> at
>> 

[Dev] Populate configuration files when a feature is deployed

2016-02-11 Thread Asitha Nanayakkara
Hi all,

At the moment, all the configuration files that are relevant to a specific
feature need to be added at the distribution packaging phase using maven
assembly plugin.

Therefore when a feature is installed to a carbon server the relevant
configuration files are not copied. Either needs to be added manually or
add the specific files using assembly plugin when building the product.

For instance when an MB feature is installed on ESB all the configuration
files need to be manually copied.

Are there any plans on implementing this capability for feature deployments
in hamming release?

Regards,
Asitha
-- 
*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/mailman/listinfo/dev


Re: [Dev] [Carbon-Kernel 4.2.0] Compilation Error while building

2016-02-11 Thread Tharindu Edirisinghe
Try switching the JDK to 1.6 and it should work.

Regards,
TharinduE

On Thu, Feb 11, 2016 at 3:34 PM, Yashothara Shanmugarajah <
yashoth...@wso2.com> wrote:

> Hi,
>
> I have tried with 3.0.4. However I too got the following errors when
> attempting to build. I have built carbon 4.2.0.
>
>
> [ERROR]
> [ERROR]
> /home/yasho/yashothara/CarbonClone/Carbon-kernel-4.2.0/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[12,33]
> Ticket is internal proprietary API and may be removed in a future release
> [ERROR]
>
> Best Regards,
> Yashothara.S
>
> Software Engineer
> WSO2
>
>
> On Thu, Feb 11, 2016 at 3:27 PM, Chathurika De Silva  > wrote:
>
>> Hi Madhawa
>>
>> This blog might be a help as well [1]
>>
>> [1] https://dzone.com/articles/how-build-wso2-carbon-420
>>
>> Regards
>> Erandi
>>
>> On Thu, Feb 11, 2016 at 3:24 PM, Tharindu Edirisinghe > > wrote:
>>
>>> Hi Madhawa,
>>>
>>> Can you try to build with some maven 3.0.x version ? According to [1]
>>> that's the recommendation. I've been able to build the kernel with 3.0.4
>>> version.
>>>
>>> [1] https://docs.wso2.com/display/Carbon420/Installation+Prerequisites
>>>
>>> Regards,
>>> TharinduE
>>>
>>> On Thu, Feb 11, 2016 at 3:18 PM, Madhawa Perera 
>>> wrote:
>>>
 Hi,

 I'm getting following compilation error when building the Carbon Kernel
 4.2.0 from source. I'm using apache maven 3.3.9 and jdk 1.7.0_80

 The error that I'm getting is as follows

 [ERROR] COMPILATION ERROR :
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.1:compile
 (default-compile) on project wss4j: Compilation failure: Compilation
 failure:
 [ERROR]
 /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[10,24]
 EncryptionKey is internal proprietary API and may be removed in a future
 release

 Further it gives following warnings as well .

 [INFO] --- maven-pmd-plugin:2.5:pmd (pmd) @ wss4j ---
 [WARNING] File encoding has not been set, using platform encoding
 UTF-8, i.e. build is platform dependent!

 [WARNING] Error while parsing
 /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/KerberosTokenPrincipal.java:
 Can't use annotations when running in JDK 1.4 mode!

 [WARNING] Error while parsing
 /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbSessionCache.java:
 Can't use generics unless running in JDK 1.5 mode!

 Is this a problem with maven and jdk versions? The prerequisites
 documentation suggests maven 3.0.x and has mentioned that jdk 1.7 is
 compatible.

 Thank you
 Regards,

 --
 Madhawa Perera
 *Software Engineer*
 Mobile : +94 (0) 773655496
 <%2B94%20%280%29%20773%20451194>
 madha...@wso2.com

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


>>>
>>>
>>> --
>>>
>>> Tharindu Edirisinghe
>>> Software Engineer | WSO2 Inc
>>> Platform Security Team
>>> Blog : tharindue.blogspot.com
>>> mobile : +94 775181586
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Chathurika Erandi*
>> Software Engineer,
>> WSO2 Inc.
>>
>> *E-mail:* chathuri...@wso2.com
>> *Mobile: *+94714 328 612
>> *Blog*: chathurikaerandi.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
>
>


-- 

Tharindu Edirisinghe
Software Engineer | WSO2 Inc
Platform Security Team
Blog : tharindue.blogspot.com
mobile : +94 775181586
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 ESB 5.0.0 - Milestone 1 Released!

2016-02-11 Thread Viraj Senevirathne
*WSO2 ESB 5.0.0-Milestone 1 Released*

ESB Team is pleased to announce the WSO2 ESB 5.0.0 - Milestone 1 Release.
It contains following new features and bug fixes.

New Features Added in this Release

   - WebSockets Connectivity - Adding websockets support for WSO2 ESB.
   - Message Flow Tracing - Comprehensive message flow tracing with the
   Data Analytics Server (DAS) integration.
   - Message Flow Statistics - Advanced application level statistics
   (Proxy, API, Sequence, Mediator).
   - Mediation Flow Debugger - Adding debugging capability to ESB mediation
   flows from the WSO2 Developer Studio tool.
   - JMS 2.0 support - Adding JMS 2.0 specification support for existing
   JMS messaging features.
   - Updating Smooks - To achieve better performance, Smooks bundle has
   been updated to latest stable released version 1.5.1.


Bug

   - [ESBJAVA-4387 ] - Mediation
   debugger failed to set breakpoints for Aggregate mediator inlined sequence.
   - [ESBJAVA-4397 ] - The
   display name get distorted when a description is added to the endpoint
   - [ESBJAVA-4398 ] - When
   separate listener is used in endpoint, the request is not sent to the
   endpoint
   - [ESBJAVA-4399 ] -
   WS-Security is not executable when associated with a WSDL endpoint
   - [ESBJAVA-4400 ] - Default
   endpoint does not work as expected

Improvement

   - [ESBJAVA-4372 ] - Mediation
   debugging support for mediators which have inlined sequences.

New Feature

   - [ESBJAVA-1999 ] - Add
   websocket support to the ESB



The distribution is available to download at [1].

[1]
https://svn.wso2.org/repos/wso2/scratch/ESB/packs/5.0.0-Releases/5.0.0-M1/

- WSO2 ESB Team -

-- 
Viraj Senevirathne
Software Engineer; WSO2, Inc.

Mobile : +94 71 958 0269
Email : vir...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deploying a Dashboard for Web Application Statistics Monitoring for AS

2016-02-11 Thread Kalpa Welivitigoda
Hi Lochana,

Would you please share the toolbox? It seems that there is a mismatch
between the fields in the SQL query with those in the db.

The exception is thrown from db.jag and it is a common place where all the
SQL statements are executed. Shall we isolate the request that fails (you
can do so by loading the dashboard with developer tools and see what
request to as-data.jag fails)?


On Thu, Feb 11, 2016 at 4:42 PM, Lochana Ranaweera 
wrote:

> Adding Jayanga and KalpaW
>
> On Thu, Feb 11, 2016 at 3:37 PM, Lochana Ranaweera 
> wrote:
>
>> Adding dev
>>
>> On Thu, Feb 11, 2016 at 3:35 PM, Lochana Ranaweera 
>> wrote:
>>
>>> Hi all,
>>>
>>> When going through the previous implementation of the AS Statistics
>>> Monitoring feature in [1] which is applicable for AS 5.3.0 and BAM
>>> 2.5.0,  it was noted that regardless of the stream definition given through
>>> the toolbox, the events are published to the BAM following a specific
>>> stream definition at every instance. The events thus published to BAM are
>>> analyzed through a hive script which summarizes results at a mysql
>>> database. Since the events published to the BAM are incomplete and missing
>>> a number of fields, several tables in the database do not get populated as
>>> expected. Because of this reason, in order to deploy the HTTP monitoring
>>> dashboard, I manually populated the database with test data as required.
>>>
>>> Although I have created the tables with the relevant descriptions to
>>> exactly match the hive script included in the tool box attached herewith,
>>> I'm getting the error given below.
>>>
>>> ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>>>  org.mozilla.javascript.WrappedException: Wrapped
>>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>>> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column
>>> 'tenantId' in 'where clause' (/webapp-analytics/api/db.jag#47)
>>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>>> org.mozilla.javascript.WrappedException: Wrapped
>>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>>> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column
>>> 'tenantId' in 'where clause' (/webapp-analytics/api/db.jag#47)
>>>
>>> Appreciate your ideas as regarding this issue.
>>>
>>> [1]
>>> https://github.com/jsdjayanga/carbon-deployment/tree/as_analytics/components/analytics
>>>
>>> Thanks and regards,
>>>
>>> Lochana Ranaweera
>>> Intern Software Engineer
>>> WSO2 Inc: http://wso2.com
>>> Blog: https://lochanaranaweera.wordpress.com/
>>> Mobile: +94716487055 
>>>
>>>
>>
>>
>> --
>> Lochana Ranaweera
>> Intern Software Engineer
>> WSO2 Inc: http://wso2.com
>> Blog: https://lochanaranaweera.wordpress.com/
>> Mobile: +94716487055 
>>
>>
>
>
> --
> Lochana Ranaweera
> Intern Software Engineer
> WSO2 Inc: http://wso2.com
> Blog: https://lochanaranaweera.wordpress.com/
> Mobile: +94716487055 
>
>


-- 
Best Regards,

Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: kal...@wso2.com
Mobile: +94776509215
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon-Kernel 4.2.0] Compilation Error while building

2016-02-11 Thread Tharindu Edirisinghe
The reason is [1] is failing when trying to build with JDK 1.7. You'll have
to use JDK 1.6.

[1]
https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/dependencies/wss4j/1.5.11-wso2v6/

Regards,
TharinduE

On Thu, Feb 11, 2016 at 3:36 PM, Tharindu Edirisinghe 
wrote:

> Try switching the JDK to 1.6 and it should work.
>
> Regards,
> TharinduE
>
> On Thu, Feb 11, 2016 at 3:34 PM, Yashothara Shanmugarajah <
> yashoth...@wso2.com> wrote:
>
>> Hi,
>>
>> I have tried with 3.0.4. However I too got the following errors when
>> attempting to build. I have built carbon 4.2.0.
>>
>>
>> [ERROR]
>> [ERROR]
>> /home/yasho/yashothara/CarbonClone/Carbon-kernel-4.2.0/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[12,33]
>> Ticket is internal proprietary API and may be removed in a future release
>> [ERROR]
>>
>> Best Regards,
>> Yashothara.S
>>
>> Software Engineer
>> WSO2
>>
>>
>> On Thu, Feb 11, 2016 at 3:27 PM, Chathurika De Silva <
>> chathuri...@wso2.com> wrote:
>>
>>> Hi Madhawa
>>>
>>> This blog might be a help as well [1]
>>>
>>> [1] https://dzone.com/articles/how-build-wso2-carbon-420
>>>
>>> Regards
>>> Erandi
>>>
>>> On Thu, Feb 11, 2016 at 3:24 PM, Tharindu Edirisinghe <
>>> tharin...@wso2.com> wrote:
>>>
 Hi Madhawa,

 Can you try to build with some maven 3.0.x version ? According to [1]
 that's the recommendation. I've been able to build the kernel with 3.0.4
 version.

 [1] https://docs.wso2.com/display/Carbon420/Installation+Prerequisites

 Regards,
 TharinduE

 On Thu, Feb 11, 2016 at 3:18 PM, Madhawa Perera 
 wrote:

> Hi,
>
> I'm getting following compilation error when building the Carbon
> Kernel 4.2.0 from source. I'm using apache maven 3.3.9 and jdk 1.7.0_80
>
> The error that I'm getting is as follows
>
> [ERROR] COMPILATION ERROR :
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.1:compile
> (default-compile) on project wss4j: Compilation failure: Compilation
> failure:
> [ERROR]
> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[10,24]
> EncryptionKey is internal proprietary API and may be removed in a future
> release
>
> Further it gives following warnings as well .
>
> [INFO] --- maven-pmd-plugin:2.5:pmd (pmd) @ wss4j ---
> [WARNING] File encoding has not been set, using platform encoding
> UTF-8, i.e. build is platform dependent!
>
> [WARNING] Error while parsing
> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/KerberosTokenPrincipal.java:
> Can't use annotations when running in JDK 1.4 mode!
>
> [WARNING] Error while parsing
> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbSessionCache.java:
> Can't use generics unless running in JDK 1.5 mode!
>
> Is this a problem with maven and jdk versions? The prerequisites
> documentation suggests maven 3.0.x and has mentioned that jdk 1.7 is
> compatible.
>
> Thank you
> Regards,
>
> --
> Madhawa Perera
> *Software Engineer*
> Mobile : +94 (0) 773655496
> <%2B94%20%280%29%20773%20451194>
> madha...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 Tharindu Edirisinghe
 Software Engineer | WSO2 Inc
 Platform Security Team
 Blog : tharindue.blogspot.com
 mobile : +94 775181586

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


>>>
>>>
>>> --
>>> *Chathurika Erandi*
>>> Software Engineer,
>>> WSO2 Inc.
>>>
>>> *E-mail:* chathuri...@wso2.com
>>> *Mobile: *+94714 328 612
>>> *Blog*: chathurikaerandi.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
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>



-- 

Tharindu Edirisinghe
Software Engineer | WSO2 Inc
Platform Security Team
Blog : tharindue.blogspot.com
mobile : +94 775181586
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deploying a Dashboard for Web Application Statistics Monitoring for AS

2016-02-11 Thread Lochana Ranaweera
Adding dev

On Thu, Feb 11, 2016 at 3:35 PM, Lochana Ranaweera 
wrote:

> Hi all,
>
> When going through the previous implementation of the AS Statistics
> Monitoring feature in [1] which is applicable for AS 5.3.0 and BAM 2.5.0,
>  it was noted that regardless of the stream definition given through the
> toolbox, the events are published to the BAM following a specific stream
> definition at every instance. The events thus published to BAM are analyzed
> through a hive script which summarizes results at a mysql database. Since
> the events published to the BAM are incomplete and missing a number of
> fields, several tables in the database do not get populated as expected.
> Because of this reason, in order to deploy the HTTP monitoring dashboard, I
> manually populated the database with test data as required.
>
> Although I have created the tables with the relevant descriptions to
> exactly match the hive script included in the tool box attached herewith,
> I'm getting the error given below.
>
> ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>  org.mozilla.javascript.WrappedException: Wrapped
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column
> 'tenantId' in 'where clause' (/webapp-analytics/api/db.jag#47)
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.WrappedException: Wrapped
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column
> 'tenantId' in 'where clause' (/webapp-analytics/api/db.jag#47)
>
> Appreciate your ideas as regarding this issue.
>
> [1]
> https://github.com/jsdjayanga/carbon-deployment/tree/as_analytics/components/analytics
>
> Thanks and regards,
>
> Lochana Ranaweera
> Intern Software Engineer
> WSO2 Inc: http://wso2.com
> Blog: https://lochanaranaweera.wordpress.com/
> Mobile: +94716487055 
>
>


-- 
Lochana Ranaweera
Intern Software Engineer
WSO2 Inc: http://wso2.com
Blog: https://lochanaranaweera.wordpress.com/
Mobile: +94716487055 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon-Kernel 4.2.0] Compilation Error while building

2016-02-11 Thread Chathurika De Silva
Hi Madhawa

This blog might be a help as well [1]

[1] https://dzone.com/articles/how-build-wso2-carbon-420

Regards
Erandi

On Thu, Feb 11, 2016 at 3:24 PM, Tharindu Edirisinghe 
wrote:

> Hi Madhawa,
>
> Can you try to build with some maven 3.0.x version ? According to [1]
> that's the recommendation. I've been able to build the kernel with 3.0.4
> version.
>
> [1] https://docs.wso2.com/display/Carbon420/Installation+Prerequisites
>
> Regards,
> TharinduE
>
> On Thu, Feb 11, 2016 at 3:18 PM, Madhawa Perera  wrote:
>
>> Hi,
>>
>> I'm getting following compilation error when building the Carbon Kernel
>> 4.2.0 from source. I'm using apache maven 3.3.9 and jdk 1.7.0_80
>>
>> The error that I'm getting is as follows
>>
>> [ERROR] COMPILATION ERROR :
>> [INFO]
>> 
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:2.1:compile
>> (default-compile) on project wss4j: Compilation failure: Compilation
>> failure:
>> [ERROR]
>> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[10,24]
>> EncryptionKey is internal proprietary API and may be removed in a future
>> release
>>
>> Further it gives following warnings as well .
>>
>> [INFO] --- maven-pmd-plugin:2.5:pmd (pmd) @ wss4j ---
>> [WARNING] File encoding has not been set, using platform encoding UTF-8,
>> i.e. build is platform dependent!
>>
>> [WARNING] Error while parsing
>> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/KerberosTokenPrincipal.java:
>> Can't use annotations when running in JDK 1.4 mode!
>>
>> [WARNING] Error while parsing
>> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbSessionCache.java:
>> Can't use generics unless running in JDK 1.5 mode!
>>
>> Is this a problem with maven and jdk versions? The prerequisites
>> documentation suggests maven 3.0.x and has mentioned that jdk 1.7 is
>> compatible.
>>
>> Thank you
>> Regards,
>>
>> --
>> Madhawa Perera
>> *Software Engineer*
>> Mobile : +94 (0) 773655496
>> <%2B94%20%280%29%20773%20451194>
>> madha...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chathurika Erandi*
Software Engineer,
WSO2 Inc.

*E-mail:* chathuri...@wso2.com
*Mobile: *+94714 328 612
*Blog*: chathurikaerandi.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deploying a Dashboard for Web Application Statistics Monitoring for AS

2016-02-11 Thread Lochana Ranaweera
Adding Jayanga and KalpaW

On Thu, Feb 11, 2016 at 3:37 PM, Lochana Ranaweera 
wrote:

> Adding dev
>
> On Thu, Feb 11, 2016 at 3:35 PM, Lochana Ranaweera 
> wrote:
>
>> Hi all,
>>
>> When going through the previous implementation of the AS Statistics
>> Monitoring feature in [1] which is applicable for AS 5.3.0 and BAM
>> 2.5.0,  it was noted that regardless of the stream definition given through
>> the toolbox, the events are published to the BAM following a specific
>> stream definition at every instance. The events thus published to BAM are
>> analyzed through a hive script which summarizes results at a mysql
>> database. Since the events published to the BAM are incomplete and missing
>> a number of fields, several tables in the database do not get populated as
>> expected. Because of this reason, in order to deploy the HTTP monitoring
>> dashboard, I manually populated the database with test data as required.
>>
>> Although I have created the tables with the relevant descriptions to
>> exactly match the hive script included in the tool box attached herewith,
>> I'm getting the error given below.
>>
>> ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>>  org.mozilla.javascript.WrappedException: Wrapped
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column
>> 'tenantId' in 'where clause' (/webapp-analytics/api/db.jag#47)
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.WrappedException: Wrapped
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column
>> 'tenantId' in 'where clause' (/webapp-analytics/api/db.jag#47)
>>
>> Appreciate your ideas as regarding this issue.
>>
>> [1]
>> https://github.com/jsdjayanga/carbon-deployment/tree/as_analytics/components/analytics
>>
>> Thanks and regards,
>>
>> Lochana Ranaweera
>> Intern Software Engineer
>> WSO2 Inc: http://wso2.com
>> Blog: https://lochanaranaweera.wordpress.com/
>> Mobile: +94716487055 
>>
>>
>
>
> --
> Lochana Ranaweera
> Intern Software Engineer
> WSO2 Inc: http://wso2.com
> Blog: https://lochanaranaweera.wordpress.com/
> Mobile: +94716487055 
>
>


-- 
Lochana Ranaweera
Intern Software Engineer
WSO2 Inc: http://wso2.com
Blog: https://lochanaranaweera.wordpress.com/
Mobile: +94716487055 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Effects of removing the already installed features from the "features" folder of a Product-Pack?

2016-02-11 Thread Shabir Mohamed
Hi,

As per an offline discussion with SameeraJ and Niranjan
, I was informed $subject has no significant impact and
that is the how it has been done in WSO2-AS [1]

.
We have followed the same approach in the WSO2-IoTServer pack.

[1]
https://github.com/wso2/product-as/blob/master/modules/distribution/src/assembly/dist.xml#L35

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

On Wed, Jan 20, 2016 at 1:29 PM, Shabir Mohamed  wrote:

> Hi Chamara,
>
> Yes, I am aware that uninstalling of features needs to be done from the UI
> and cannot be done by just deleting them from the features folder.
>
> However, what i want to clarify is "what is the purpose of having the
> already installed features inside the features-folder in a product"??
>
> Doesn't it only contribute to increasing the pack size?? Or is there any
> other purpose I am missing??
>
> Thanks...
>
> -
> *Shabir Mohamed*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> Email: sha...@wso2.com 
> Mobile: +94 77 3516019 | +94 71 6583393
>
> On Tue, Jan 19, 2016 at 7:59 PM, Chamara Philips 
> wrote:
>
>> Deleting the folders from "repository/components/features" folder will
>> not uninstall the feature properly. If you need to reinstall a feature the
>> best way to do is to uninstall it from the UI and then reinstall it.
>>
>> Thanks.
>>
>> On Tue, Jan 19, 2016 at 4:49 PM, Shabir Mohamed  wrote:
>>
>>> Hi,
>>>
>>> No. I just want to know what happens if I delete the features copied
>>> into the "repository/components/features" folder during the p2-profile-gen
>>> goal of the p2 pom after they have been installed?
>>>
>>> After the features have been installed, is it required for these
>>> features to still be there inside the features folder in the pack?
>>>
>>> Well one scenario which I could think of for it to be there is if
>>> someone wants to install a feature that he/she already uninstalled.
>>>
>>> Thanks
>>>
>>> -
>>> *Shabir Mohamed*
>>> *Software Engineer*
>>> WSO2 Inc.; http://wso2.com
>>> Email: sha...@wso2.com 
>>> Mobile: +94 77 3516019 | +94 71 6583393
>>>
>>> On Tue, Jan 19, 2016 at 3:58 PM, Irham Iqbal  wrote:
>>>
 Hi Shabir,

 Do you want to remove a installed feature from a product ?.

 Thanks,
 Iqbal

 On Tue, Jan 19, 2016 at 9:54 AM, Shabir Mohamed 
 wrote:

> Hi All,
>
> What could be the implications of $subject?
>
> Thanks
> -
> *Shabir Mohamed*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> Email: sha...@wso2.com 
> Mobile: +94 77 3516019 | +94 71 6583393
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Irham Iqbal
 Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware
 phone: +94 777888452

>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Hareendra Chamara Philips
>> *Software  Engineer*
>> Mobile : +94 (0) 767 184161 <%2B94%20%280%29%20773%20451194>
>> chama...@wso2.com 
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Committers += Chamara Philips

2016-02-11 Thread Johann Nallathamby
Hi All,

It's my pleasure to announce Chamara Philips as a WSO2 Committer.
Chamara has been
a valuable contributor for WSO2 Identity Server product, and in recognition
of his contribution to WSO2, he has been voted as a WSO2 Committer.

Chamara, congratulations and keep up the good work!

Thanks & Regards.

-- 

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

Mobile - *+9476950*
Blog - *http://nallaa.wordpress.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon-Kernel 4.2.0] Compilation Error while building

2016-02-11 Thread Tharindu Edirisinghe
Hi Madhawa,

Can you try to build with some maven 3.0.x version ? According to [1]
that's the recommendation. I've been able to build the kernel with 3.0.4
version.

[1] https://docs.wso2.com/display/Carbon420/Installation+Prerequisites

Regards,
TharinduE

On Thu, Feb 11, 2016 at 3:18 PM, Madhawa Perera  wrote:

> Hi,
>
> I'm getting following compilation error when building the Carbon Kernel
> 4.2.0 from source. I'm using apache maven 3.3.9 and jdk 1.7.0_80
>
> The error that I'm getting is as follows
>
> [ERROR] COMPILATION ERROR :
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.1:compile
> (default-compile) on project wss4j: Compilation failure: Compilation
> failure:
> [ERROR]
> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[10,24]
> EncryptionKey is internal proprietary API and may be removed in a future
> release
>
> Further it gives following warnings as well .
>
> [INFO] --- maven-pmd-plugin:2.5:pmd (pmd) @ wss4j ---
> [WARNING] File encoding has not been set, using platform encoding UTF-8,
> i.e. build is platform dependent!
>
> [WARNING] Error while parsing
> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/KerberosTokenPrincipal.java:
> Can't use annotations when running in JDK 1.4 mode!
>
> [WARNING] Error while parsing
> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbSessionCache.java:
> Can't use generics unless running in JDK 1.5 mode!
>
> Is this a problem with maven and jdk versions? The prerequisites
> documentation suggests maven 3.0.x and has mentioned that jdk 1.7 is
> compatible.
>
> Thank you
> Regards,
>
> --
> Madhawa Perera
> *Software Engineer*
> Mobile : +94 (0) 773655496
> <%2B94%20%280%29%20773%20451194>
> madha...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Tharindu Edirisinghe
Software Engineer | WSO2 Inc
Platform Security Team
Blog : tharindue.blogspot.com
mobile : +94 775181586
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon-Kernel 4.2.0] Compilation Error while building

2016-02-11 Thread Yashothara Shanmugarajah
Hi,

I have tried with 3.0.4. However I too got the following errors when
attempting to build. I have built carbon 4.2.0.


[ERROR]
[ERROR]
/home/yasho/yashothara/CarbonClone/Carbon-kernel-4.2.0/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[12,33]
Ticket is internal proprietary API and may be removed in a future release
[ERROR]

Best Regards,
Yashothara.S

Software Engineer
WSO2


On Thu, Feb 11, 2016 at 3:27 PM, Chathurika De Silva 
wrote:

> Hi Madhawa
>
> This blog might be a help as well [1]
>
> [1] https://dzone.com/articles/how-build-wso2-carbon-420
>
> Regards
> Erandi
>
> On Thu, Feb 11, 2016 at 3:24 PM, Tharindu Edirisinghe 
> wrote:
>
>> Hi Madhawa,
>>
>> Can you try to build with some maven 3.0.x version ? According to [1]
>> that's the recommendation. I've been able to build the kernel with 3.0.4
>> version.
>>
>> [1] https://docs.wso2.com/display/Carbon420/Installation+Prerequisites
>>
>> Regards,
>> TharinduE
>>
>> On Thu, Feb 11, 2016 at 3:18 PM, Madhawa Perera 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm getting following compilation error when building the Carbon Kernel
>>> 4.2.0 from source. I'm using apache maven 3.3.9 and jdk 1.7.0_80
>>>
>>> The error that I'm getting is as follows
>>>
>>> [ERROR] COMPILATION ERROR :
>>> [INFO]
>>> 
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-compiler-plugin:2.1:compile
>>> (default-compile) on project wss4j: Compilation failure: Compilation
>>> failure:
>>> [ERROR]
>>> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbTicketDecoder.java:[10,24]
>>> EncryptionKey is internal proprietary API and may be removed in a future
>>> release
>>>
>>> Further it gives following warnings as well .
>>>
>>> [INFO] --- maven-pmd-plugin:2.5:pmd (pmd) @ wss4j ---
>>> [WARNING] File encoding has not been set, using platform encoding UTF-8,
>>> i.e. build is platform dependent!
>>>
>>> [WARNING] Error while parsing
>>> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/KerberosTokenPrincipal.java:
>>> Can't use annotations when running in JDK 1.4 mode!
>>>
>>> [WARNING] Error while parsing
>>> /home/madhawap/wso2carbon-kernel/dependencies/wss4j/1.5.11-wso2v6/src/org/apache/ws/security/kerberos/KrbSessionCache.java:
>>> Can't use generics unless running in JDK 1.5 mode!
>>>
>>> Is this a problem with maven and jdk versions? The prerequisites
>>> documentation suggests maven 3.0.x and has mentioned that jdk 1.7 is
>>> compatible.
>>>
>>> Thank you
>>> Regards,
>>>
>>> --
>>> Madhawa Perera
>>> *Software Engineer*
>>> Mobile : +94 (0) 773655496
>>> <%2B94%20%280%29%20773%20451194>
>>> madha...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Tharindu Edirisinghe
>> Software Engineer | WSO2 Inc
>> Platform Security Team
>> Blog : tharindue.blogspot.com
>> mobile : +94 775181586
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Chathurika Erandi*
> Software Engineer,
> WSO2 Inc.
>
> *E-mail:* chathuri...@wso2.com
> *Mobile: *+94714 328 612
> *Blog*: chathurikaerandi.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] Native inbound and connector for IBM MQ 7.5

2016-02-11 Thread Malaka Silva
Yes sometimes there are issues when installing on​ linux based system. Go
ahead and try on Windows.

​You can call me Malaka :)

On Thu, Feb 11, 2016 at 7:28 PM, Riyafa Abdul Hameed <
riyafa...@cse.mrt.ac.lk> wrote:

> Dear sir,
>
> I failed to install IBM MQ 7.5 on my Ubuntu machine. It seemed to be
> because of attempting to install rpm files. I will try to install it in a
> windows machine or in a redhat or fedora version of linux. Then I will try
> connection as a consumer and producer from a java client. I shall report
> progress every week.
>
> Thank you.
>
> Yours sincerely,
> Riyafa
>
> On 11 February 2016 at 06:38, Malaka Silva  wrote:
>
>> Hi Riyafa,​
>>
>> Please post the progress weekly or once in two weeks.​
>>
>> On Wed, Feb 10, 2016 at 10:31 PM, Riyafa Abdul Hameed <
>> riyafa...@cse.mrt.ac.lk> wrote:
>>
>>> Hi,
>>>
>>> I shall do that and report once done or if I have any problem.
>>>
>>> Thank you.
>>>
>>> Yours sincerely,
>>> Riyafa
>>>
>>> On 10 February 2016 at 12:38, Malaka Silva  wrote:
>>>
 Hi Riyafa,

 First you should install IBM MQ 7.5.

 Then try connection as consumer and producer from a java client. Using
 IBM MQ client.

 This need to add consumer functionality to custom inbound endpoint and
 producer to a connector.

 On Wed, Feb 10, 2016 at 7:16 AM, Riyafa Abdul Hameed <
 riyafa...@cse.mrt.ac.lk> wrote:

> Dear sir,
>
> I am a third year Computer Science and Engineering undergraduate at
> University of Moratuwa. I would like to take part in GSoC 2016 with the
> open source community of WSO2.
>
> I am quite familiar with the ESB-Connectors of WSO2. I have previously
> worked with the saleforce, google-spreadsheet and the peopleHR connectors
> on a project that involved automating the filling of a google spreadsheet
> with details from salesforce. I am also quite familiar working with the
> WSO2 ESB and have prior experience of writing proxy services. And I am a
> quick learner.
>
> I have also contributed to the peopleHR connector of WSO2 [1].
>
> Being quite familiar with the WSO2 connector development, I consider
> doing the project "Native inbound and connector for IBM MQ 7.5" with the
> WSO2 community for GSoC this year.
>
> Please kindly make any suggestions on how I could proceed.
>
>
> [1] https://github.com/wso2/esb-connectors/pull/419
>
> Thank you.
>
> Yours sincerely,
> Riyafa
>
> --
> Riyafa Abdul Hameed
> Undergraduate, University of Moratuwa
>
> Email: riyafa...@cse.mrt.ac.lk
> Website: https://riyafa.wordpress.com/ 
>   
> 
>



 --

 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/
 
 https://store.wso2.com/store/

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

>>>
>>>
>>>
>>> --
>>> Riyafa Abdul Hameed
>>> Undergraduate, University of Moratuwa
>>>
>>> Email: riyafa...@cse.mrt.ac.lk
>>> Website: https://riyafa.wordpress.com/ 
>>>   
>>> 
>>>
>>
>>
>>
>> --
>>
>> 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/
>> 
>> https://store.wso2.com/store/
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>
>
>
> --
> Riyafa Abdul Hameed
> Undergraduate, University of Moratuwa
>
> Email: riyafa...@cse.mrt.ac.lk
> Website: https://riyafa.wordpress.com/ 
>   
> 
>



-- 

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, 

Re: [Dev] Error while creating init for 4.10

2016-02-11 Thread Malaka Silva
conf:/Resource/foo should be dynamic.

On Thu, Feb 11, 2016 at 7:02 PM, Nadeeshaan Gunasinghe 
wrote:

> Hi Malaka,
>
> I tried the scenario with this proxy configuration. This works fine as
> expected
>
> http://ws.apache.org/ns/synapse; name="testProxy"
>  transports="https,http" statistics="disable" trace="disable"
> startOnLoad="true">
>
>   
>  
>   scope="registry"/>
>  
>   
>   
>  
>  
>   
>
>proxy
>
> 
>
> Regards
>
> On Mon, Feb 8, 2016 at 4:43 PM, Malaka Silva  wrote:
>
>> Hi,
>>
>> I guess it does not support dynamic names (expression) when persiting.If
>> do go ahead with script mediator.
>>
>> @Nadeeshaan - Can you please confirm.
>>
>> -- Forwarded message --
>> From: Hariprasath Thanarajah 
>> Date: Mon, Feb 8, 2016 at 4:30 PM
>> Subject: Error while creating init for 4.10
>> To: Malaka Silva 
>> Cc: Keerthika Mahendralingam , Kesavan Yogarajah <
>> kesav...@wso2.com>
>>
>>
>> Hi Malaka,
>>
>> IMHO we can create the salesforce REST connector will support all the ESB
>> versions. Since there are no difference in performance while we are using
>> script or property mediator.
>> Is there any particular reason to create Salesforce REST for 4.10 only by
>> using property mediator?
>>
>> I have an issue in use the user defined path to store the values in
>> registry using property mediator.
>>
>> This is how i used to store the value in Registry.
>> >   expression="$ctx:systemTime" scope="registry"/>
>>
>> Here the value is store in $ctx:uei.var.timeRegistryPath
>>
>> and
>>
>> If i using this,
>>
>> >   expression="$ctx:systemTime" scope="registry"/>
>>
>>  i got the below error,
>>
>> ERROR - WSO2Registry Error while saving a resource at
>> get-property('uri.var.timeRegistryPath')
>> org.wso2.carbon.registry.core.exceptions.RegistryException: The path
>> '/_system/governance/get-property('uri.var.timeRegistryPath')' contains one
>> or more illegal characters (~!@#;%^*()+={}|\<>"',)
>> at
>> org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:262)
>> at
>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:709)
>> at
>> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:508)
>> at
>> org.wso2.carbon.registry.core.session.UserRegistry.putInternal(UserRegistry.java:824)
>> at
>> org.wso2.carbon.registry.core.session.UserRegistry.access$1000(UserRegistry.java:60)
>> at
>> org.wso2.carbon.registry.core.session.UserRegistry$11.run(UserRegistry.java:800)
>> at
>> org.wso2.carbon.registry.core.session.UserRegistry$11.run(UserRegistry.java:797)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:797)
>> at
>> org.wso2.carbon.mediation.registry.WSO2Registry.newNonEmptyResource(WSO2Registry.java:360)
>> at
>> org.apache.synapse.mediators.builtin.PropertyMediator.mediate(PropertyMediator.java:193)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>> at
>> org.apache.synapse.mediators.filters.FilterMediator.mediate(FilterMediator.java:236)
>> at
>> org.apache.synapse.mediators.filters.FilterMediator.mediate(FilterMediator.java:240)
>> at
>> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:169)
>> at
>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:273)
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:728)
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:273)
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
>> at
>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:251)
>> at
>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> [2016-02-08 16:01:03,099]  INFO - LogMediator To:
>> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction:
>> , MessageID: urn:uuid:24c7cbf4-5793-45b1-8cfa-0e8cbee6fd3e, Direction:
>> request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0,
>> ERROR_MESSAGE = Error while saving a resource at

Re: [Dev] Native inbound and connector for IBM MQ 7.5

2016-02-11 Thread Riyafa Abdul Hameed
Dear sir,

I failed to install IBM MQ 7.5 on my Ubuntu machine. It seemed to be
because of attempting to install rpm files. I will try to install it in a
windows machine or in a redhat or fedora version of linux. Then I will try
connection as a consumer and producer from a java client. I shall report
progress every week.

Thank you.

Yours sincerely,
Riyafa

On 11 February 2016 at 06:38, Malaka Silva  wrote:

> Hi Riyafa,​
>
> Please post the progress weekly or once in two weeks.​
>
> On Wed, Feb 10, 2016 at 10:31 PM, Riyafa Abdul Hameed <
> riyafa...@cse.mrt.ac.lk> wrote:
>
>> Hi,
>>
>> I shall do that and report once done or if I have any problem.
>>
>> Thank you.
>>
>> Yours sincerely,
>> Riyafa
>>
>> On 10 February 2016 at 12:38, Malaka Silva  wrote:
>>
>>> Hi Riyafa,
>>>
>>> First you should install IBM MQ 7.5.
>>>
>>> Then try connection as consumer and producer from a java client. Using
>>> IBM MQ client.
>>>
>>> This need to add consumer functionality to custom inbound endpoint and
>>> producer to a connector.
>>>
>>> On Wed, Feb 10, 2016 at 7:16 AM, Riyafa Abdul Hameed <
>>> riyafa...@cse.mrt.ac.lk> wrote:
>>>
 Dear sir,

 I am a third year Computer Science and Engineering undergraduate at
 University of Moratuwa. I would like to take part in GSoC 2016 with the
 open source community of WSO2.

 I am quite familiar with the ESB-Connectors of WSO2. I have previously
 worked with the saleforce, google-spreadsheet and the peopleHR connectors
 on a project that involved automating the filling of a google spreadsheet
 with details from salesforce. I am also quite familiar working with the
 WSO2 ESB and have prior experience of writing proxy services. And I am a
 quick learner.

 I have also contributed to the peopleHR connector of WSO2 [1].

 Being quite familiar with the WSO2 connector development, I consider
 doing the project "Native inbound and connector for IBM MQ 7.5" with the
 WSO2 community for GSoC this year.

 Please kindly make any suggestions on how I could proceed.


 [1] https://github.com/wso2/esb-connectors/pull/419

 Thank you.

 Yours sincerely,
 Riyafa

 --
 Riyafa Abdul Hameed
 Undergraduate, University of Moratuwa

 Email: riyafa...@cse.mrt.ac.lk
 Website: https://riyafa.wordpress.com/ 
   
 

>>>
>>>
>>>
>>> --
>>>
>>> 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/
>>> 
>>> https://store.wso2.com/store/
>>>
>>> Save a tree -Conserve nature & Save the world for your future. Print
>>> this email only if it is absolutely necessary.
>>>
>>
>>
>>
>> --
>> Riyafa Abdul Hameed
>> Undergraduate, University of Moratuwa
>>
>> Email: riyafa...@cse.mrt.ac.lk
>> Website: https://riyafa.wordpress.com/ 
>>   
>> 
>>
>
>
>
> --
>
> 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/
> 
> https://store.wso2.com/store/
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
Riyafa Abdul Hameed
Undergraduate, University of Moratuwa

Email: riyafa...@cse.mrt.ac.lk
Website: https://riyafa.wordpress.com/ 
  

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


[Dev] Getting tenant domain from tenant id

2016-02-11 Thread Lahiru Manohara
Hi All,

I am writing a web application for AppCloud and i need to get tenant domain
from tenant id. The application in super tenant.

Thanks!

-- 
Best regards,

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


[Dev] Fault sequence with different behaviour in wso2 4.8.1 and 4.9.0

2016-02-11 Thread Jorge
Hi all.
In WSO2 ESB 4.8.1 in a fault sequence the use of payloadmediator   not
working, but If you move the same proxy to ESB 4.9.0,  work. Why?

How can we create a custom response message inside fault sequence?


Can you check this:
http://stackoverflow.com/questions/35297380/different-behaviors-between-esb-4-9-0-and-4-8-1

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


Re: [Dev] Error while creating init for 4.10

2016-02-11 Thread Nadeeshaan Gunasinghe
Hi Malaka,

I tried the scenario with this proxy configuration. This works fine as
expected

http://ws.apache.org/ns/synapse; name="testProxy"
 transports="https,http" statistics="disable" trace="disable"
startOnLoad="true">
   
  
 
 
 
  
  
 
 
  
   
   proxy
   


Regards

On Mon, Feb 8, 2016 at 4:43 PM, Malaka Silva  wrote:

> Hi,
>
> I guess it does not support dynamic names (expression) when persiting.If
> do go ahead with script mediator.
>
> @Nadeeshaan - Can you please confirm.
>
> -- Forwarded message --
> From: Hariprasath Thanarajah 
> Date: Mon, Feb 8, 2016 at 4:30 PM
> Subject: Error while creating init for 4.10
> To: Malaka Silva 
> Cc: Keerthika Mahendralingam , Kesavan Yogarajah <
> kesav...@wso2.com>
>
>
> Hi Malaka,
>
> IMHO we can create the salesforce REST connector will support all the ESB
> versions. Since there are no difference in performance while we are using
> script or property mediator.
> Is there any particular reason to create Salesforce REST for 4.10 only by
> using property mediator?
>
> I have an issue in use the user defined path to store the values in
> registry using property mediator.
>
> This is how i used to store the value in Registry.
>expression="$ctx:systemTime" scope="registry"/>
>
> Here the value is store in $ctx:uei.var.timeRegistryPath
>
> and
>
> If i using this,
>
>expression="$ctx:systemTime" scope="registry"/>
>
>  i got the below error,
>
> ERROR - WSO2Registry Error while saving a resource at
> get-property('uri.var.timeRegistryPath')
> org.wso2.carbon.registry.core.exceptions.RegistryException: The path
> '/_system/governance/get-property('uri.var.timeRegistryPath')' contains one
> or more illegal characters (~!@#;%^*()+={}|\<>"',)
> at
> org.wso2.carbon.registry.core.jdbc.Repository.put(Repository.java:262)
> at
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.put(EmbeddedRegistry.java:709)
> at
> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.put(CacheBackedRegistry.java:508)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.putInternal(UserRegistry.java:824)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.access$1000(UserRegistry.java:60)
> at
> org.wso2.carbon.registry.core.session.UserRegistry$11.run(UserRegistry.java:800)
> at
> org.wso2.carbon.registry.core.session.UserRegistry$11.run(UserRegistry.java:797)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.wso2.carbon.registry.core.session.UserRegistry.put(UserRegistry.java:797)
> at
> org.wso2.carbon.mediation.registry.WSO2Registry.newNonEmptyResource(WSO2Registry.java:360)
> at
> org.apache.synapse.mediators.builtin.PropertyMediator.mediate(PropertyMediator.java:193)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
> at
> org.apache.synapse.mediators.filters.FilterMediator.mediate(FilterMediator.java:236)
> at
> org.apache.synapse.mediators.filters.FilterMediator.mediate(FilterMediator.java:240)
> at
> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:169)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:273)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediateFromContinuationStateStack(Axis2SynapseEnvironment.java:728)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:273)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
> at
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:251)
> at
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> [2016-02-08 16:01:03,099]  INFO - LogMediator To:
> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
> MessageID: urn:uuid:24c7cbf4-5793-45b1-8cfa-0e8cbee6fd3e, Direction:
> request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0,
> ERROR_MESSAGE = Error while saving a resource at
> get-property('uri.var.timeRegistryPath'), Payload:
> {"access_token":"00D28017q6q!AQoAQElnJSR6Y3gtxVfqDa_OJl38YmOGJscq6iDCZ.6lfkWSCsmmWp9d669_vWAmL9wnWdbuogXNpDMB_MHQCAjDOWHuRZdL","signature":"9XnwazD8C9igR3rEc9y4BNpea60J5z1e3ABj72r6BuY=","scope":"visualforce
> refresh_token wave_api web 

Re: [Dev] Getting tenant domain from tenant id

2016-02-11 Thread Amalka Subasinghe
UserRealmService realmService =
(UserRealmService)
PrivilegedCarbonContext.getThreadLocalCarbonContext()
.getOSGiService(UserRealmService.class);
String tenantDomain = realmService.getTenantManager().getDomain(tenantId);

Amalka Subasinghe
Senior Software Engineer
WSO2 Inc.
Mobile: +94 77 9401267

On Thu, Feb 11, 2016 at 7:32 PM, Lahiru Manohara  wrote:

> Hi All,
>
> I am writing a web application for AppCloud and i need to get tenant
> domain from tenant id. The application in super tenant.
>
> Thanks!
>
> --
> Best regards,
>
> *Lahiru Manohara*
> *Software Engineer*
> Mobile: +94716561576
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fault sequence with different behaviour in wso2 4.8.1 and 4.9.0

2016-02-11 Thread Vijitha Ekanayake
Hi John,

Can you try replacing entire SOAPEnvelope at the PayloadFactory format as
[1] inside the fault sequence.


[1].

  
 http://schemas.xmlsoap.org/soap/envelope/;>

   
  Custom message
   

 
  
  
   


Thanks.

On Thu, Feb 11, 2016 at 7:53 PM, Jorge  wrote:

> Hi all.
> In WSO2 ESB 4.8.1 in a fault sequence the use of payloadmediator   not
> working, but If you move the same proxy to ESB 4.9.0,  work. Why?
>
> How can we create a custom response message inside fault sequence?
>
>
> Can you check this:
> http://stackoverflow.com/questions/35297380/different-behaviors-between-esb-4-9-0-and-4-8-1
>
> Regards,
>  Jorge.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vijitha Ekanayake
Software Engineer*, *WSO2, Inc.; http://wso2.com/
Mobile : +94 777 24 73 39 | +94 718 74 44 08
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS-3.0.0] Unable to retrieve matching records via JS API

2016-02-11 Thread Udara Rathnayake
Hi,

Another small update, We have start and count parameters within
following[1]. I think these two parameters are misleading as we are
retrieving total count(number of matching records)

curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic
YWRtaW46YWRtaW4=" -v https://localhost:9443/analytics/search_count -d
'{"tableName":"ORG_WSO2_DAS_SAMPLE_SMART_HOME_DATA",
"query":"state:Texas", "start":0,
"count":3}' -k


[1]
https://docs.wso2.com/display/DAS301/Retrieving+the+Number+of+Records+Matching+the+Given+Search+Query+via+REST+API

On Sun, Dec 27, 2015 at 4:31 PM, Udara Rathnayake  wrote:

> Hi Team,
>
> One more thing, within the example code snippet we are not using proper
> quotation mark(U+0022). For me it looks we are using double prime
> character(U+02BA). Check the highlighted portion.
> If someone try to copy and paste the exact same, this can cause issues.
> Better if we can update this also.
>
> var queryInfo = {
> tableName : “TEST”, //table being queried
> query : "column1:value1", //lucene query to search the records
> start : 0, //starting index of the matching record set
> count : 100 //page size for pagination
> };
> client.search(queryInfo, function(data) {
>   console.log (data[“message”]);
> }, function(error) {
>   console.log(“error occured: ” + error[“message”]);
> });
> “error occured: ” + error[“message”]
>
> This anomaly exists on most of the analytic JS API docs. Sorry for the
> trouble guys.
>
> On Sun, Dec 27, 2015 at 12:17 PM, Anjana Fernando  wrote:
>
>> Hi Gimantha,
>>
>> I think you've access to the docs wiki. Please change it directly.
>>
>> Cheers,
>> Anjana.
>>
>> On Sun, Dec 27, 2015 at 9:47 PM, Gimantha Bandara 
>> wrote:
>>
>>> Hi Udara,
>>>
>>> Yes, your way of calling search API is the correct way. Documentation
>>> needs to be updated. Thank you for pointing it out.
>>>
>>> @Rukshani, can you please replace the example with the following content?
>>>
>>> var queryInfo = {
>>>
>>> tableName : “TEST”, //table being queried
>>>
>>> searchParams : {
>>>
>>> query : "column1:value1", //lucene query to search the records
>>>
>>> start : 0, //starting index of the matching record set
>>>
>>> count : 100 //page size for pagination
>>>
>>>  }
>>>
>>> };
>>>
>>>
>>> client.search(queryInfo, function(data) {
>>>
>>> console.log (data[“message”]);
>>>
>>> }, function(error) {
>>>
>>> console.log(“error occured: ” + error[“message”]);
>>>
>>> });
>>>
>>>
>>> Highlighted text is missing in the current Docs.
>>>
>>> Thanks,
>>>
>>>
>>> On Sunday, December 27, 2015, Anjana Fernando  wrote:
>>>
 @Gimantha, please check.

 Cheers,
 Anjana.

 On Sat, Dec 26, 2015 at 8:52 PM, Udara Rathnayake 
 wrote:

> Hi,
>
> I tried following doc[1] to retrieve records using a simple lucene
> query(userId:udarakr) via JS API.But noticed an error, when I use the same
> query within data explorer it works perfectly.
>
> Then did some debugging on portal/controllers/apis/analytics.jag &
> portal/js/carbon-analytics.js,  found we are expecting queryInfo object in
> a different format than in the doc[1].
>
> portal/js/carbon-analytics.js - LINE 473
>
> this.search = function (queryInfo, callback, error) {
> jQuery.ajax({
> url: this.serverUrl + "?type=" + TYPE_SEARCH +
> "=" + queryInfo["tableName"],
> data:
> JSON.stringify(queryInfo["searchParams"]),
> type: HTTP_POST,
> success: function (data) {
> callback(data);
> },
> error: function (msg) {
> error(msg[RESPONSE_ELEMENT]);
> }
> });
> };
>
>
> As per above we need to provide queryInfo Object like,
>
> Eg:-
> var queryInfo={
> tableName:"LOCATION",
> searchParams : {
> query:"userId:udarakr",
> start:0,
> count:100
> }
> };
>
> If this is the correct way, Shall we update the docs?
>
> [1]
> https://docs.wso2.com/display/DAS300/Retrieving+All+Records+Matching+the+Given+Search+Query+via+JS+API
>
> --
> Regards,
> UdaraR
> ​​
>
>


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

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

[Dev] [DAS][3.0.1] -Dsetup startup error

2016-02-11 Thread Udara Rathnayake
Hi,

I have configured a DAS 3.0.1 instance with mssql. Added registry and
usermgt datasource configurations to the master-datasources.xml and default
carbon datasource is untouched(pointing to the default h2).

Then configured analytics-datasources.xml by pointing to MSSQL DBs.

While starting DAS node with -Dsetup noticed following[1].

Then just to verify, I have started(-Dsetup) a fresh DAS pack after
clearing wso2das-3.0.1/repository/database directory. Noticed the same
error and we don't have a sql script under the highlighted directory.

Do we need to configure a separate identity DB and modify identity.xml
datasource config?


> 
> jdbc/WSO2CarbonDB
> 
>


[1]

[2016-02-11 15:40:51,306] ERROR
> {org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent} -
> Error occurred while populating identity configuration properties
> org.wso2.carbon.identity.base.IdentityRuntimeException: Error occurred
> while executing SQL script for creating identity database
> at
> org.wso2.carbon.identity.base.IdentityRuntimeException.error(IdentityRuntimeException.java:162)
> at
> org.wso2.carbon.identity.core.persistence.IdentityDBInitializer.executeSQLScript(IdentityDBInitializer.java:273)
> at
> org.wso2.carbon.identity.core.persistence.IdentityDBInitializer.createIdentityDatabase(IdentityDBInitializer.java:141)
> at
> org.wso2.carbon.identity.core.persistence.JDBCPersistenceManager.initializeDatabase(JDBCPersistenceManager.java:112)
> at
> org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent.activate(IdentityCoreServiceComponent.java:101)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:497)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
> at
> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at
> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at
> org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at
> org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
> at
> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:514)
> at
> org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:290)
> at
> org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleChanged(PreAxis2ConfigItemListener.java:118)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:847)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
> *Caused by: java.io.FileNotFoundException:
> /carbon/wso2/das/wso2das-3.0.1/dbscripts/identity/h2.sql* (No such file
> or directory)
> at java.io.FileInputStream.open0(Native Method)
> at java.io.FileInputStream.open(FileInputStream.java:195)
> at java.io.FileInputStream.(FileInputStream.java:138)
> at java.io.FileInputStream.(FileInputStream.java:93)
> at
> 

Re: [Dev] Deploying a Dashboard for Web Application Statistics Monitoring for AS

2016-02-11 Thread Lochana Ranaweera
Hi Kalpa,

Please find the toolbox here
https://drive.google.com/a/wso2.com/file/d/0B2SWP2RvcxJjUFNYVHpvazhFSU0/view?usp=sharing

I will do so and update this thread.


On Fri, Feb 12, 2016 at 1:20 AM, Kalpa Welivitigoda  wrote:

> Hi Lochana,
>
> Would you please share the toolbox? It seems that there is a mismatch
> between the fields in the SQL query with those in the db.
>
> The exception is thrown from db.jag and it is a common place where all the
> SQL statements are executed. Shall we isolate the request that fails (you
> can do so by loading the dashboard with developer tools and see what
> request to as-data.jag fails)?
>
>
> On Thu, Feb 11, 2016 at 4:42 PM, Lochana Ranaweera 
> wrote:
>
>> Adding Jayanga and KalpaW
>>
>> On Thu, Feb 11, 2016 at 3:37 PM, Lochana Ranaweera 
>> wrote:
>>
>>> Adding dev
>>>
>>> On Thu, Feb 11, 2016 at 3:35 PM, Lochana Ranaweera 
>>> wrote:
>>>
 Hi all,

 When going through the previous implementation of the AS Statistics
 Monitoring feature in [1] which is applicable for AS 5.3.0 and BAM
 2.5.0,  it was noted that regardless of the stream definition given through
 the toolbox, the events are published to the BAM following a specific
 stream definition at every instance. The events thus published to BAM are
 analyzed through a hive script which summarizes results at a mysql
 database. Since the events published to the BAM are incomplete and missing
 a number of fields, several tables in the database do not get populated as
 expected. Because of this reason, in order to deploy the HTTP monitoring
 dashboard, I manually populated the database with test data as required.

 Although I have created the tables with the relevant descriptions to
 exactly match the hive script included in the tool box attached herewith,
 I'm getting the error given below.

 ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
  org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column
 'tenantId' in 'where clause' (/webapp-analytics/api/db.jag#47)
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.WrappedException: Wrapped
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column
 'tenantId' in 'where clause' (/webapp-analytics/api/db.jag#47)

 Appreciate your ideas as regarding this issue.

 [1]
 https://github.com/jsdjayanga/carbon-deployment/tree/as_analytics/components/analytics

 Thanks and regards,

 Lochana Ranaweera
 Intern Software Engineer
 WSO2 Inc: http://wso2.com
 Blog: https://lochanaranaweera.wordpress.com/
 Mobile: +94716487055 


>>>
>>>
>>> --
>>> Lochana Ranaweera
>>> Intern Software Engineer
>>> WSO2 Inc: http://wso2.com
>>> Blog: https://lochanaranaweera.wordpress.com/
>>> Mobile: +94716487055 
>>>
>>>
>>
>>
>> --
>> Lochana Ranaweera
>> Intern Software Engineer
>> WSO2 Inc: http://wso2.com
>> Blog: https://lochanaranaweera.wordpress.com/
>> Mobile: +94716487055 
>>
>>
>
>
> --
> Best Regards,
>
> Kalpa Welivitigoda
> Software Engineer, WSO2 Inc. http://wso2.com
> Email: kal...@wso2.com
> Mobile: +94776509215
>



-- 
Lochana Ranaweera
Intern Software Engineer
WSO2 Inc: http://wso2.com
Blog: https://lochanaranaweera.wordpress.com/
Mobile: +94716487055 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Deploying a Dashboard for Web Application Statistics Monitoring for AS

2016-02-11 Thread Jayanga Dissanayake
Hi Lochana,

This error is due to your mySql table are not having the "tenantId" column.
This will be solved by modifying the Hive script to have the tenantId in
all the mySql tables.

"tenantId" was added with the latest updates. It seems the tenantId is
missing in the hive script.
 Please find the modified hive script attached here with.

Thanks,
Jayanga.

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

On Fri, Feb 12, 2016 at 9:02 AM, Lochana Ranaweera 
wrote:

> Hi Kalpa,
>
> Please find the toolbox here
> https://drive.google.com/a/wso2.com/file/d/0B2SWP2RvcxJjUFNYVHpvazhFSU0/view?usp=sharing
>
> I will do so and update this thread.
>
>
> On Fri, Feb 12, 2016 at 1:20 AM, Kalpa Welivitigoda 
> wrote:
>
>> Hi Lochana,
>>
>> Would you please share the toolbox? It seems that there is a mismatch
>> between the fields in the SQL query with those in the db.
>>
>> The exception is thrown from db.jag and it is a common place where all
>> the SQL statements are executed. Shall we isolate the request that fails
>> (you can do so by loading the dashboard with developer tools and see what
>> request to as-data.jag fails)?
>>
>>
>> On Thu, Feb 11, 2016 at 4:42 PM, Lochana Ranaweera 
>> wrote:
>>
>>> Adding Jayanga and KalpaW
>>>
>>> On Thu, Feb 11, 2016 at 3:37 PM, Lochana Ranaweera 
>>> wrote:
>>>
 Adding dev

 On Thu, Feb 11, 2016 at 3:35 PM, Lochana Ranaweera 
 wrote:

> Hi all,
>
> When going through the previous implementation of the AS Statistics
> Monitoring feature in [1] which is applicable for AS 5.3.0 and BAM
> 2.5.0,  it was noted that regardless of the stream definition given 
> through
> the toolbox, the events are published to the BAM following a specific
> stream definition at every instance. The events thus published to BAM are
> analyzed through a hive script which summarizes results at a mysql
> database. Since the events published to the BAM are incomplete and missing
> a number of fields, several tables in the database do not get populated as
> expected. Because of this reason, in order to deploy the HTTP monitoring
> dashboard, I manually populated the database with test data as required.
>
> Although I have created the tables with the relevant descriptions to
> exactly match the hive script included in the tool box attached herewith,
> I'm getting the error given below.
>
> ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
>  org.mozilla.javascript.WrappedException: Wrapped
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column
> 'tenantId' in 'where clause' (/webapp-analytics/api/db.jag#47)
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> org.mozilla.javascript.WrappedException: Wrapped
> org.jaggeryjs.scriptengine.exceptions.ScriptException:
> com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column
> 'tenantId' in 'where clause' (/webapp-analytics/api/db.jag#47)
>
> Appreciate your ideas as regarding this issue.
>
> [1]
> https://github.com/jsdjayanga/carbon-deployment/tree/as_analytics/components/analytics
>
> Thanks and regards,
>
> Lochana Ranaweera
> Intern Software Engineer
> WSO2 Inc: http://wso2.com
> Blog: https://lochanaranaweera.wordpress.com/
> Mobile: +94716487055 
>
>


 --
 Lochana Ranaweera
 Intern Software Engineer
 WSO2 Inc: http://wso2.com
 Blog: https://lochanaranaweera.wordpress.com/
 Mobile: +94716487055 


>>>
>>>
>>> --
>>> Lochana Ranaweera
>>> Intern Software Engineer
>>> WSO2 Inc: http://wso2.com
>>> Blog: https://lochanaranaweera.wordpress.com/
>>> Mobile: +94716487055 
>>>
>>>
>>
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Software Engineer, WSO2 Inc. http://wso2.com
>> Email: kal...@wso2.com
>> Mobile: +94776509215
>>
>
>
>
> --
> Lochana Ranaweera
> Intern Software Engineer
> WSO2 Inc: http://wso2.com
> Blog: https://lochanaranaweera.wordpress.com/
> Mobile: +94716487055 
>
>
CREATE EXTERNAL TABLE IF NOT EXISTS AsHttpStat(key STRING, webappName STRING, 
webappType STRING, serverName STRING, requestTimestamp BIGINT, responseTime 
BIGINT, responseHttpStatusCode INT, requestSizeBytes BIGINT, responseSizeBytes 
BIGINT, contentType STRING, responseContentType STRING, country STRING, 
userAgentFamily STRING, operatingSystem STRING, language STRING, deviceCategory 
STRING, sessionId STRING, referrer STRING, webappContext STRING, 
webappDisplayName STRING, tenantId INT) STORED BY
'org.apache.hadoop.hive.cassandra.CassandraStorageHandler' 

Re: [Dev] [ESB Connectors] Connectors with Refresh token support

2016-02-11 Thread Thulasika Vijayanathan
Hi Kasun,

We have automated init method to avoid the access token expiration and
applied  it for the following connectors:

   -  Google Prediction
   -  Google Task
   -  Google Spreadsheet
   -  SalesforceREST


Thank you

On Wed, Feb 10, 2016 at 10:49 AM, Kesavan Yogarajah 
wrote:

> Hi Kasun,
>
> Please find progress in mail thread [1].
>
> [1] - [Architecture] Fully automate cloud to cloud (iPaaS) use cases
>
> Thanks
>
> Kesavan Yogarajah
> Associate Software Engineer
> Mobile :+94 (0) 779 758021
> kesav...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
>
> On Wed, Feb 10, 2016 at 10:35 AM, Kasun Indrasiri  wrote:
>
>> Have we upgraded connectors to support refresh token persisting mechanism
>> in the latest ESB?
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.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
>
>


-- 
Thulasika
Associate Software Engineer
Mobile:0778014295
email: thulas...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Improving APIM test coverage and Writing new Test cases

2016-02-11 Thread Bhathiya Jayasekara
Hi Rukshan,

AFAIK there's something (may be a base class) Chamin implemented which can
be used to write tests cases for new REST API. Hope we can use the same.

@Chamin: Could you please explain how to use it?

Thanks,
Bhathiya

On Fri, Feb 12, 2016 at 10:13 AM, Rukshan Premathunga 
wrote:

> Hi all,
>
> We are planning to improve the Test coverage of the APIM by improving
> current Test cases and adding new test cases.
> Existing Test cases have used APIM jaggery API. But currently we have new
> REST API and we can use that as well.
>
> If we are used new REST API we may need some base classes
> (APIPublisherClient, APIStoreClient etc) which contain the common APIM
> functionalities ( addAPI(), publishAPI(), Subscribe() etc).
>
> here are the concern when we starting to write new test cases.
>
>
>1. What would be the better way to implement such a base class using
>new REST API?
>2. What is the possibilities to generate REST API Client using swagger?
>3. Possibilities to write base class by improving current REST API
>test cases which is Data Driven Test?
>
>
> Any suggestions and thoughts are highly appreciated.
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
>



-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Puppet Modules 1.0.0 Released!

2016-02-11 Thread Isuru Haththotuwa
WSO2 Private PaaS team is pleased to announce the release of WSO2 Puppet
Modules 1.0.0.

Main features of this release:


   -

   A consistent set of Puppet Modules for the following WSO2 products:
   -

  WSO2 API Manager 1.9.1
  -

  WSO2 Application Server 5.3.0
  -

  WSO2 Business Process Server 3.5.0
  -

  WSO2 Business Rules Server 2.1.0, 2.2.0
  -

  WSO2 Complex Event Processor 4.0.0
  -

  WSO2 Data Analytics Server 3.0.0
  -

  WSO2 Data Services Server 3.5.0
  -

  WSO2 Enterprise Store 2.0.0
  -

  WSO2 Enterprise Service Bus 4.9.0
  -

  WSO2 Governance Registry 4.6.0, 5.1.0
  -

  WSO2 Identity Server 5.0.0, 5.1.0
  -

  WSO2 Message Broker 3.0.0
  -

  WSO2 Private PaaS 4.1.0, 4.1.1
  -

   Separation of Module Data and Configuration using HieraPrivate PaaS 4.1.1
   -

   A Base Puppet module for executing common commands for configuring any
   WSO2 product
   -

   Reduction of the complexity of writing new puppet modules with well
   defined module structures, abstractions & best practices


Release artifacts:

https://github.com/wso2/puppet-modules/releases/tag/v1.0.0

Documentation:

https://github.com/wso2/puppet-modules/wiki

How you can contribute:

https://github.com/wso2/puppet-modules/wiki/Creating-a-Puppet-Module-for-a-WSO2-Product


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