[Dev] [DAS] MySQL Database and Table creation when using carbonJDBC option in spark environment

2015-09-30 Thread Thanuja Uruththirakodeeswaran
Hi All,

When we create temporary tables in spark environment using carbonJDBC
option as explained in [1], we are using a datasource and tableName from
which spark environment temporary table will get data as follow:
CREATE TEMPORARY TABLE  using CarbonJDBC options
(dataSource "", tableName "");

I've used a mysql database (sample_datasource) for datasource and used
mysql tables created in that database for tableName (sample_table) as
follow:
CREATE TEMPORARY TABLE sample using CarbonJDBC options (dataSource "
sample_datasource", tableName "sample_table");

But I'm creating the mysql database and tables by executing sql statements
manually. Is there a way in DAS that we can add these sql statements inside
a script and create the database and tables when we start the server?

[1]. https://docs.wso2.com/display/DAS300/Spark+Query+Language

Thanks.

-- 
Thanuja Uruththirakodeeswaran
Software Engineer
WSO2 Inc.;http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] [IS] [DEV] Getting "localhost" as the saml2:Issuer in SAML authentication response

2015-09-30 Thread Rajith Vitharana
Hi Nadeesha,

As I remember you need to change the issuer in ResidentIDP config for this
to work.

Thanks,

On Wed, Sep 30, 2015 at 11:48 AM, Nadeesha Meegoda 
wrote:

> Hi IS team,
>
> I have configured a SAML SSO service provider (travelocity.com) in tenant
> mode (ymc.com). My IS is running in cluster environment it's
> https://mgt.is.wso2.com. When I was signing in to travelocity.com in the
> SAML AuthnRequest the samlp:issuer is as follows :
>
> 
> travelocity@ymc.com
>
> However in the SAML Response to the authentication request the
> saml2:issuer is as follows:
>
>xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
>   >localhost
>
> May I know why the saml2:Issuer is localhost here? Do I need to do more
> configurations to get it right? Can anyone explain please?
>
> I have attached the full authentication request and response with the mail.
>
>
> Thanks
>
> --
> *Nadeesha Meegoda*
> Software Engineer - QA
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> email : nadees...@wso2.com
> mobile: +94783639540
> <%2B94%2077%202273555>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Vitharana

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


Re: [Dev] [IS] [DEV] Getting "localhost" as the saml2:Issuer in SAML authentication response

2015-09-30 Thread Pushpalanka Jayawardhana
Hi Nadeesha,

This issuer value implies which party issues the SAML request or the
response. If you look at the SAML flow, Authentation request is issued by
the service provider who is requesting the authentication of an entity from
the IDP. SAML Response is issued by the IDP in response to this
authentication request received from SP. Hence the issuer of SAML Response
is the IDP entity ID. In WSO2 Identity Server you can configure this value
under Resident Identity Provider.

For more information refer the SAML2 specification[1], 2.2.5 Element
.

[1] - https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf

Thanks,
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


On Wed, Sep 30, 2015 at 11:48 AM, Nadeesha Meegoda 
wrote:

> Hi IS team,
>
> I have configured a SAML SSO service provider (travelocity.com) in tenant
> mode (ymc.com). My IS is running in cluster environment it's
> https://mgt.is.wso2.com. When I was signing in to travelocity.com in the
> SAML AuthnRequest the samlp:issuer is as follows :
>
> 
> travelocity@ymc.com
>
> However in the SAML Response to the authentication request the
> saml2:issuer is as follows:
>
>xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
>   >localhost
>
> May I know why the saml2:Issuer is localhost here? Do I need to do more
> configurations to get it right? Can anyone explain please?
>
> I have attached the full authentication request and response with the mail.
>
>
> Thanks
>
> --
> *Nadeesha Meegoda*
> Software Engineer - QA
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> email : nadees...@wso2.com
> mobile: +94783639540
> <%2B94%2077%202273555>
>
> ___
> 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] [IS] [DEV] Getting "localhost" as the saml2:Issuer in SAML authentication response

2015-09-30 Thread Ishara Karunarathna
Hi Nadeesha,

In you cluster nodes what are the MgtHostName and HostName values ?



On Wed, Sep 30, 2015 at 11:53 AM, Rajith Vitharana  wrote:

> Hi Nadeesha,
>
> As I remember you need to change the issuer in ResidentIDP config for this
> to work.
>
> Thanks,
>
> On Wed, Sep 30, 2015 at 11:48 AM, Nadeesha Meegoda 
> wrote:
>
>> Hi IS team,
>>
>> I have configured a SAML SSO service provider (travelocity.com) in
>> tenant mode (ymc.com). My IS is running in cluster environment it's
>> https://mgt.is.wso2.com. When I was signing in to travelocity.com in the
>> SAML AuthnRequest the samlp:issuer is as follows :
>>
>> 
>> travelocity@ymc.com
>>
>> However in the SAML Response to the authentication request the
>> saml2:issuer is as follows:
>>
>> >   xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
>>   >localhost
>>
>> May I know why the saml2:Issuer is localhost here? Do I need to do more
>> configurations to get it right? Can anyone explain please?
>>
>> I have attached the full authentication request and response with the
>> mail.
>>
>>
>> Thanks
>>
>> --
>> *Nadeesha Meegoda*
>> Software Engineer - QA
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> email : nadees...@wso2.com
>> mobile: +94783639540
>> <%2B94%2077%202273555>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Rajith Vitharana
>
> Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
+94717996791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] [DEV] Getting "localhost" as the saml2:Issuer in SAML authentication response

2015-09-30 Thread Nadeesha Meegoda
Hi Ishara,

These are the values.

mgt.is.wso2.com

mgt.is.wso2.com

I changed the Resident Identity Provider  "mgt.is.wso2.com" but still
getting localhost in response


On Wed, Sep 30, 2015 at 11:58 AM, Ishara Karunarathna 
wrote:

> Hi Nadeesha,
>
> In you cluster nodes what are the MgtHostName and HostName values ?
>
>
>
> On Wed, Sep 30, 2015 at 11:53 AM, Rajith Vitharana 
> wrote:
>
>> Hi Nadeesha,
>>
>> As I remember you need to change the issuer in ResidentIDP config for
>> this to work.
>>
>> Thanks,
>>
>> On Wed, Sep 30, 2015 at 11:48 AM, Nadeesha Meegoda 
>> wrote:
>>
>>> Hi IS team,
>>>
>>> I have configured a SAML SSO service provider (travelocity.com) in
>>> tenant mode (ymc.com). My IS is running in cluster environment it's
>>> https://mgt.is.wso2.com. When I was signing in to travelocity.com in
>>> the SAML AuthnRequest the samlp:issuer is as follows :
>>>
>>> 
>>> travelocity@ymc.com
>>>
>>> However in the SAML Response to the authentication request the
>>> saml2:issuer is as follows:
>>>
>>> >>   xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
>>>   >localhost
>>>
>>> May I know why the saml2:Issuer is localhost here? Do I need to do more
>>> configurations to get it right? Can anyone explain please?
>>>
>>> I have attached the full authentication request and response with the
>>> mail.
>>>
>>>
>>> Thanks
>>>
>>> --
>>> *Nadeesha Meegoda*
>>> Software Engineer - QA
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>> email : nadees...@wso2.com
>>> mobile: +94783639540
>>> <%2B94%2077%202273555>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ishara Karunarathna
> Senior Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
> +94717996791
>



-- 
*Nadeesha Meegoda*
Software Engineer - QA
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
email : nadees...@wso2.com
mobile: +94783639540
<%2B94%2077%202273555>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] DepSync url doesn't get updated after carbon.xml is updated

2015-09-30 Thread Chamila De Alwis
Hi Dinesh,

Thanks for the tip on the .svn folder. I deleted it under the
repository/deployment/server and the new value was successfully applied.


Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Wed, Sep 30, 2015 at 11:30 AM, Chamila De Alwis 
wrote:

> Hi Dinesh,
>
> The SVN server is accessible without any issue, as I can browse it through
> HTTP. Before using SVNKit the error message also showed the URL it was
> trying to reach, and it was the older URL. So the issue is with the
> DeploymentSynchronization as it doesn't seem to pickup the updated URL.
>
>
> Regards,
> Chamila de Alwis
> Committer and PMC Member - Apache Stratos
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> On Wed, Sep 30, 2015 at 9:25 AM, Dinesh J Weerakkody 
> wrote:
>
>> Hi Chamila,
>> It seems like that your new SVN server url cannot be resolved from the
>> client. See the error message "java.net.NoRouteToHostException: No route to
>> host". Can you try to check whether you can reach the SVN server using ping
>> or tracert.
>>
>> Thanks
>>
>> *Dinesh J. Weerakkody*
>> Software Engineer
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
>>
>> On Tue, Sep 29, 2015 at 3:27 PM, Chamila De Alwis 
>> wrote:
>>
>>> Hi,
>>>
>>> I've setup an ESB (4.9.0) cluster with one manager and two workers, with
>>> SVN DepSync. This was working initially, however after changing the SVN url
>>> to a different one, the deployment synchronization task fails when the
>>> server is started. The SVN url it's using is still the old one. The SVN
>>> server is up and running, since I can access it via HTTP.
>>>
>>> I've copied the SVNKit jars to repository/components/dropins and
>>> repository/components/lib as mentioned in [1].
>>>
>>> [2015-09-29 15:20:08,289] ERROR - SVNBasedArtifactRepository Error while
>>> checking out or updating artifacts from the SVN repository
>>> org.tigris.subversion.svnclientadapter.SVNClientException:
>>> org.apache.subversion.javahl.ClientException: svn: E175002: No route to host
>>> svn: E175002: OPTIONS request failed on '/svn/SampleProject/-1234'
>>> at
>>> org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.update(AbstractJhlClientAdapter.java:1132)
>>> at
>>> org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository.checkout(SVNBasedArtifactRepository.java:498)
>>> at
>>> org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizer.checkout(DeploymentSynchronizer.java:178)
>>> at
>>> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerServiceImpl.update(DeploymentSynchronizerServiceImpl.java:96)
>>> at
>>> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.deploymentSyncUpdate(CarbonDeploymentSchedulerTask.java:179)
>>> at
>>> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:137)
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>>> at
>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>> at java.lang.Thread.run(Thread.java:745)
>>> Caused by: org.apache.subversion.javahl.ClientException: svn: E175002:
>>> No route to host
>>> svn: E175002: OPTIONS request failed on '/svn/SampleProject/-1234'
>>> at
>>> org.apache.subversion.javahl.ClientException.fromException(ClientException.java:68)
>>> at
>>> org.tmatesoft.svn.core.javahl17.SVNClientImpl.getClientException(SVNClientImpl.java:1492)
>>> at
>>> org.tmatesoft.svn.core.javahl17.SVNClientImpl.update(SVNClientImpl.java:498)
>>> at
>>> org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.update(AbstractJhlClientAdapter.java:1127)
>>> ... 12 more
>>> Caused by: org.tmatesoft.svn.core.SVNException: svn: E175002: No route
>>> to host
>>> svn: E175002: OPTIONS request failed on '/svn/SampleProject/-1234'
>>> at
>>> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:106)
>>> at
>>> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:90)
>>> at
>>> org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:775)
>>> at
>>> org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:375)
>>> at
>>> org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:363)
>>> at
>>> 

Re: [Dev] [ES][Doc] Adding a new sample Artifact of an Asset Type(RXT) in Enterprise Store

2015-09-30 Thread Shabir Mohamed
Hi,

Looks Good :D. Cheers and Thanks to you too

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

On Wed, Sep 30, 2015 at 11:49 AM, Mariangela Hills 
wrote:

> Hi Shabir,
>
> Please note that I have updated [1] based on the feedback in this thread
> and also based on the points we came up with after testing this tutorial
> in-depth. Thanks, for all the help!
>
> [1]
> https://docs.wso2.com/display/ES200/Adding+a+Sample+Asset+for+a+New+Asset+Type+at+Server+Startup
>
> Regards,
> Mariangela
>
>
> *Mariangela Hills*
> Senior Technical Writer - WSO2, Inc. http://wso2.com
> Committer and PMC member - Apache Stratos
> email:mariang...@wso2.com | mobile: +94 773 500185
>
> On Wed, Sep 16, 2015 at 10:27 AM, Mariangela Hills 
> wrote:
>
>> *@Shabir*
>> Sorry, for the late reply! I will add these common mistakes as tips in
>> the ES wiki docs.
>>
>> *@Jackie*
>> Jackie, thanks for your feedback! Yes, I too think that adding this
>> information in a "Tips" macro will be useful to the user. In addition, I
>> will do the other corrections that you mentioned.
>>
>> Regards,
>> Mariangela
>>
>>
>> *Mariangela Hills*
>> Senior Technical Writer - WSO2, Inc. http://wso2.com
>> Committer and PMC member - Apache Stratos
>> email:mariang...@wso2.com | mobile: +94 773 500185
>>
>> On Wed, Sep 16, 2015 at 5:22 AM, Jackie Wheeler  wrote:
>>
>>> I think we can add a "Tips" section at the bottom and have a bulleted
>>> list of these items, such as "Be sure to add the lifecycle definition to
>>> the path."
>>>
>>> Mari, the note in the middle of the page is missing content in the
>>> second sentence. Currently it says:
>>>
>>> You need to define the latter mentioned asset specific attributes in a
>>> JSON file, which has the same name as the asset type RXT (e.g.,
>>> RXT_NAME.json). In this case
>>>
>>> Also, at the end of the page, the last sentence is missing a word:
>>>
>>> In this tutorial, as we have set the lifecycle status to  the artifact
>>> is visible in the Store.
>>>
>>> Cheers,
>>> Jackie
>>>
>>>
>>> On Mon, Sep 14, 2015 at 7:44 AM, Shabir Mohamed  wrote:
>>>
 Hi Mariangela,

 I thought the "Common Mistakes"would also be useful for someone who
 reads the documentation.

 Isn't it within our documentation guidelines to add something like
 that??? If so that's fine :D

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

 On Mon, Sep 14, 2015 at 8:09 PM, Shabir Mohamed 
 wrote:

> Hi,
>
> Thanks a lot:D
>
> Regards
>
> -
> *Shabir Mohamed*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> Email: sha...@wso2.com 
> Mobile: +94 77 3516019 | +94 71 6583393
>
> On Mon, Sep 14, 2015 at 6:45 PM, Mariangela Hills  > wrote:
>
>> Hi Shabir,
>> I have documented this in [1].
>>
>> [1]
>> https://docs.wso2.com/display/ES200/Adding+a+New+Sample+Asset+for+an+Asset+Type+at+Server+Startup
>>
>> Regards,
>> Mariangela
>>
>>
>> *Mariangela Hills*
>> Senior Technical Writer - WSO2, Inc. http://wso2.com
>> Committer and PMC member - Apache Stratos
>> email:mariang...@wso2.com | mobile: +94 773 500185
>>
>> On Fri, Sep 11, 2015 at 3:32 PM, Mariangela Hills <
>> mariang...@wso2.com> wrote:
>>
>>> I created a JIRA [1] to track this task.
>>>
>>> [1] https://wso2.org/jira/browse/DOCUMENTATION-2366
>>>
>>> Regards,
>>> Mariangela
>>>
>>>
>>> *Mariangela Hills*
>>> Senior Technical Writer - WSO2, Inc. http://wso2.com
>>> Committer and PMC member - Apache Stratos
>>> email:mariang...@wso2.com | mobile: +94 773 500185
>>>
>>> On Fri, Sep 11, 2015 at 10:25 AM, Mariangela Hills <
>>> mariang...@wso2.com> wrote:
>>>
 Thanks, Shabir! I will add this to the docs!

 Regards,
 Mariangela


 *Mariangela Hills*
 Senior Technical Writer - WSO2, Inc. http://wso2.com
 Committer and PMC member - Apache Stratos
 email:mariang...@wso2.com | mobile: +94 773 500185

 On Thu, Sep 10, 2015 at 10:47 PM, Shabir Mohamed 
 wrote:

> Also to be added to *Common Mistakes:*
>
>
>- The *"name" *attribute and the *"overview_name"* attribute,
>both needs to have the same Value, (Ex: 'RaspberryPi' & 'Raspberry 
> Pi' will
>not work). *"name"* is the Artifact-Name and 

[Dev] [DEV][DevStudio][Connector] Correct place to read Connector Operation name from a imported connector file

2015-09-30 Thread Nuwan Pallewela
Current implementation in Developer Studio reads the connector operation
names from component.xml files in the imported files.
Is this the correct position to read it?
Do we have to read it from specific component xml file?

I found that in salesforce connector, getUserInformation component have
different names in component.xml (name - getUserInformation) file and
getUserInformation.xml (name-getUserInfo) file.

Thanks,
Nuwan

-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *http://wso2.com
*lean . enterprise . middleware*

Email   *nuw...@wso2.com *
Mobile  *+94719079739*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS] Bulk BPEL event handler execution

2015-09-30 Thread Hasitha Aravinda
Hi Praminda,

No, In your scenario, you have to send separate soap request for each value
in the list. In ODE, correlation set is calculated per request.

Thanks,
Hasitha.

On Wed, Sep 30, 2015 at 9:54 AM, Praminda Jayawardana 
wrote:

> Hi,
>
> Is it possible to execute event handler's of several BPEL processes with
> matching correlation properties in list?
>
> Thanks,
> Praminda
>
> --
> *Praminda Jayawardana*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> Mobile : +94 (0) 716 590818
>



-- 
--
Hasitha Aravinda,
Senior Software Engineer,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile : +94 718 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] UES - Changing Gadget/widget's UserPref settings from dashboard view page

2015-09-30 Thread Ayesha Dissanayaka
Hi all,

The $Subject is available in *WSO2 UES 2.0.0 Milestone 3 *onwards.

Users can change user-preps of a gadget by clicking the settings toggle
button next each gadget.


​
Once the toggle button is clicked for the second time changes will be saved
to the registry and gadget will be updated accordingly.

For the users who have only dashboard view permissions, a customized copy
of original dashboard will be maintained. They are given the rest option to
to view the latest version of original dashboard.

Further, gadget authors are given the ability to extend this toggle buttons
behavior to change the gadget's view. For gadgets which have defined a
Content view with the name 'settings", instead of default *UserPref* option
discussed above, defined view(settings) will be rendered into the
gadget.This extension is to be further improved.
Thanks!
-Ayesha

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

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


Re: [Dev] [DEV][DevStudio][Connector] Correct place to read Connector Operation name from a imported connector file

2015-09-30 Thread Rajjaz Mohammed
Hi Nuwan,
it's ok for salesforce connector because all available methods are in one
component xml file but like Gmail Connector you need to read every
components xml file added as dependency in Connector xml File.

[image: Inline image 1]

On Wed, Sep 30, 2015 at 12:58 PM, Nuwan Pallewela  wrote:

> Current implementation in Developer Studio reads the connector operation
> names from component.xml files in the imported files.
> Is this the correct position to read it?
> Do we have to read it from specific component xml file?
>
> I found that in salesforce connector, getUserInformation component have
> different names in component.xml (name - getUserInformation) file and
> getUserInformation.xml (name-getUserInfo) file.
>
> Thanks,
> Nuwan
>
> --
> --
>
> *Nuwan Chamara Pallewela*
>
>
> *Software Engineer*
>
> *WSO2, Inc. *http://wso2.com
> *lean . enterprise . middleware*
>
> Email   *nuw...@wso2.com *
> Mobile  *+94719079739 <%2B94719079739>*
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thank you
Best Regards

*Rajjaz HM*
Associate Software Engineer
WSO2 Inc. 
lean | enterprise | middleware
Mobile | +94752833834
Email   | raj...@wso2.com
LinkedIn | Blogger | WSO2 Profile

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


Re: [Dev] [DEV] DepSync url doesn't get updated after carbon.xml is updated

2015-09-30 Thread Chamila De Alwis
Hi Dinesh,

The SVN server is accessible without any issue, as I can browse it through
HTTP. Before using SVNKit the error message also showed the URL it was
trying to reach, and it was the older URL. So the issue is with the
DeploymentSynchronization as it doesn't seem to pickup the updated URL.


Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Wed, Sep 30, 2015 at 9:25 AM, Dinesh J Weerakkody 
wrote:

> Hi Chamila,
> It seems like that your new SVN server url cannot be resolved from the
> client. See the error message "java.net.NoRouteToHostException: No route to
> host". Can you try to check whether you can reach the SVN server using ping
> or tracert.
>
> Thanks
>
> *Dinesh J. Weerakkody*
> Software Engineer
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
>
> On Tue, Sep 29, 2015 at 3:27 PM, Chamila De Alwis 
> wrote:
>
>> Hi,
>>
>> I've setup an ESB (4.9.0) cluster with one manager and two workers, with
>> SVN DepSync. This was working initially, however after changing the SVN url
>> to a different one, the deployment synchronization task fails when the
>> server is started. The SVN url it's using is still the old one. The SVN
>> server is up and running, since I can access it via HTTP.
>>
>> I've copied the SVNKit jars to repository/components/dropins and
>> repository/components/lib as mentioned in [1].
>>
>> [2015-09-29 15:20:08,289] ERROR - SVNBasedArtifactRepository Error while
>> checking out or updating artifacts from the SVN repository
>> org.tigris.subversion.svnclientadapter.SVNClientException:
>> org.apache.subversion.javahl.ClientException: svn: E175002: No route to host
>> svn: E175002: OPTIONS request failed on '/svn/SampleProject/-1234'
>> at
>> org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.update(AbstractJhlClientAdapter.java:1132)
>> at
>> org.wso2.carbon.deployment.synchronizer.subversion.SVNBasedArtifactRepository.checkout(SVNBasedArtifactRepository.java:498)
>> at
>> org.wso2.carbon.deployment.synchronizer.DeploymentSynchronizer.checkout(DeploymentSynchronizer.java:178)
>> at
>> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerServiceImpl.update(DeploymentSynchronizerServiceImpl.java:96)
>> at
>> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.deploymentSyncUpdate(CarbonDeploymentSchedulerTask.java:179)
>> at
>> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:137)
>> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
>> at
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
>> at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> at java.lang.Thread.run(Thread.java:745)
>> Caused by: org.apache.subversion.javahl.ClientException: svn: E175002: No
>> route to host
>> svn: E175002: OPTIONS request failed on '/svn/SampleProject/-1234'
>> at
>> org.apache.subversion.javahl.ClientException.fromException(ClientException.java:68)
>> at
>> org.tmatesoft.svn.core.javahl17.SVNClientImpl.getClientException(SVNClientImpl.java:1492)
>> at
>> org.tmatesoft.svn.core.javahl17.SVNClientImpl.update(SVNClientImpl.java:498)
>> at
>> org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.update(AbstractJhlClientAdapter.java:1127)
>> ... 12 more
>> Caused by: org.tmatesoft.svn.core.SVNException: svn: E175002: No route to
>> host
>> svn: E175002: OPTIONS request failed on '/svn/SampleProject/-1234'
>> at
>> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:106)
>> at
>> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:90)
>> at
>> org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:775)
>> at
>> org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:375)
>> at
>> org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:363)
>> at
>> org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:710)
>> at
>> org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:627)
>> at
>> org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:102)
>> at
>> org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1032)
>> at
>> org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getRepositoryUUID(DAVRepository.java:143)
>> at
>> 

[Dev] [IS] [DEV] Getting "localhost" as the saml2:Issuer in SAML authentication response

2015-09-30 Thread Nadeesha Meegoda
Hi IS team,

I have configured a SAML SSO service provider (travelocity.com) in tenant
mode (ymc.com). My IS is running in cluster environment it's
https://mgt.is.wso2.com. When I was signing in to travelocity.com in the
SAML AuthnRequest the samlp:issuer is as follows :


travelocity@ymc.com

However in the SAML Response to the authentication request the saml2:issuer
is as follows:

localhost

May I know why the saml2:Issuer is localhost here? Do I need to do more
configurations to get it right? Can anyone explain please?

I have attached the full authentication request and response with the mail.


Thanks

-- 
*Nadeesha Meegoda*
Software Engineer - QA
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
email : nadees...@wso2.com
mobile: +94783639540
<%2B94%2077%202273555>
http://10.100.7.57:8080/travelocity.com/home.jsp;
Destination="https://mgt.is.wso2.com/samlsso;
ForceAuthn="false"
ID="0"
IsPassive="true"
IssueInstant="2015-09-30T05:06:21.512Z"

ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
Version="2.0"
>
travelocity@ymc.com


urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport



===

http://10.100.7.57:8080/travelocity.com/home.jsp;
 ID="gfghoadfnhdhbcomgmpjilgmmboadnmdaecdlefj"
 InResponseTo="0"
 IssueInstant="2015-09-30T05:06:44.293Z"
 Version="2.0"
 xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol"
 >
localhost
http://www.w3.org/2000/09/xmldsig#;>

http://www.w3.org/2001/10/xml-exc-c14n#; />
http://www.w3.org/2000/09/xmldsig#rsa-sha1; />


http://www.w3.org/2000/09/xmldsig#enveloped-signature; />
http://www.w3.org/2001/10/xml-exc-c14n#; />

http://www.w3.org/2000/09/xmldsig#sha1; />
tKX0VEZnBftZJ33SMNutpd/RBsw=



IdoxIs9L5S/cWI7PZ5vqiCFEbxd8298UkcBKs6/xWJm9JYCZblcdeWTzuf7W5/aKnMqAnjlqN7ryrEri9WDmi6dINsQQqzyBWoOuczpMsuKIcR0pw3i/DkzycLcLwdoij1oMZAtaA1a8211xcpSEAQpePOmAqLV4ujydLJi/zqI=



MIICAzCCAWygAwIBAgIEb38jDjANBgkqhkiG9w0BAQQFADBGMRAwDgYDVQQDEwd5bWMuY29tMQ0wCwYDVQQLEwROb25lMRQwEgYDVQQKEwtOb25lIEw9Tm9uZTENMAsGA1UEBhMETm9uZTAeFw0xNTA4MjkwNjIxNDJaFw0yNTA5MjUwNjIxNDJaMEYxEDAOBgNVBAMTB3ltYy5jb20xDTALBgNVBAsTBE5vbmUxFDASBgNVBAoTC05vbmUgTD1Ob25lMQ0wCwYDVQQGEwROb25lMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCPWrZjdgaHwd8FDZaOm57wz2fxSW4umTuyw8E8PnNwCkZqIGpxkJGqfEOzXhP38A84a7fwXUfCZuwetgvkU4vfqhHieqI5OiA02pZpBzWkYjpg8By6YeJyK4Vy4hB6yq1gTCaerqffeAfXWI0ILog9iwJtbAgfJUDqU9j5XEnMxQIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAE8GmwMaydEFMb8hzvXjkX2pdjZto4S5AqaERjigR5OCsvcnuqNPspuAMyy7AC6xRCkKOfhFEfFcAHhExpqCfqFcuEhfqc3tL89eDyf1sxfnaoCPSWjgo/TirWSaaxcT2JAcWfGh74S77CHC/m9rZ9ozaTJRhzNw5RYEbWNKJEqc







http://www.w3.org/2001/04/xmlenc#Element;
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#;
>
http://www.w3.org/2001/04/xmlenc#aes256-cbc;
   
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#;
   />
http://www.w3.org/2000/09/xmldsig#;>
http://www.w3.org/2001/04/xmlenc#;
   >
http://www.w3.org/2001/04/xmlenc#rsa-1_5;
   
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#;
   />
http://www.w3.org/2001/04/xmlenc#;>

PUQ83Wj/kkZY3BcfRgsNEfMmmwlKiLWTakhhJWxZ1VsHqmKofgRq5/dYrvPWjV1ygXC2+XLoSjIoHj4d1i3xepFDPH1RryP9Ikis4JBdPCP8NUaI9+9hwmaG34KMedcBL9J20RkI7RodJWMjf9Pvt43C9K7F50Nzx6/fJG5BWgI=



http://www.w3.org/2001/04/xmlenc#;>


Re: [Dev] [ES][Doc] Adding a new sample Artifact of an Asset Type(RXT) in Enterprise Store

2015-09-30 Thread Mariangela Hills
Hi Shabir,

Please note that I have updated [1] based on the feedback in this thread
and also based on the points we came up with after testing this tutorial
in-depth. Thanks, for all the help!

[1]
https://docs.wso2.com/display/ES200/Adding+a+Sample+Asset+for+a+New+Asset+Type+at+Server+Startup

Regards,
Mariangela


*Mariangela Hills*
Senior Technical Writer - WSO2, Inc. http://wso2.com
Committer and PMC member - Apache Stratos
email:mariang...@wso2.com | mobile: +94 773 500185

On Wed, Sep 16, 2015 at 10:27 AM, Mariangela Hills 
wrote:

> *@Shabir*
> Sorry, for the late reply! I will add these common mistakes as tips in the
> ES wiki docs.
>
> *@Jackie*
> Jackie, thanks for your feedback! Yes, I too think that adding this
> information in a "Tips" macro will be useful to the user. In addition, I
> will do the other corrections that you mentioned.
>
> Regards,
> Mariangela
>
>
> *Mariangela Hills*
> Senior Technical Writer - WSO2, Inc. http://wso2.com
> Committer and PMC member - Apache Stratos
> email:mariang...@wso2.com | mobile: +94 773 500185
>
> On Wed, Sep 16, 2015 at 5:22 AM, Jackie Wheeler  wrote:
>
>> I think we can add a "Tips" section at the bottom and have a bulleted
>> list of these items, such as "Be sure to add the lifecycle definition to
>> the path."
>>
>> Mari, the note in the middle of the page is missing content in the second
>> sentence. Currently it says:
>>
>> You need to define the latter mentioned asset specific attributes in a
>> JSON file, which has the same name as the asset type RXT (e.g.,
>> RXT_NAME.json). In this case
>>
>> Also, at the end of the page, the last sentence is missing a word:
>>
>> In this tutorial, as we have set the lifecycle status to  the artifact
>> is visible in the Store.
>>
>> Cheers,
>> Jackie
>>
>>
>> On Mon, Sep 14, 2015 at 7:44 AM, Shabir Mohamed  wrote:
>>
>>> Hi Mariangela,
>>>
>>> I thought the "Common Mistakes"would also be useful for someone who
>>> reads the documentation.
>>>
>>> Isn't it within our documentation guidelines to add something like
>>> that??? If so that's fine :D
>>>
>>> -
>>> *Shabir Mohamed*
>>> *Software Engineer*
>>> WSO2 Inc.; http://wso2.com
>>> Email: sha...@wso2.com 
>>> Mobile: +94 77 3516019 | +94 71 6583393
>>>
>>> On Mon, Sep 14, 2015 at 8:09 PM, Shabir Mohamed  wrote:
>>>
 Hi,

 Thanks a lot:D

 Regards

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

 On Mon, Sep 14, 2015 at 6:45 PM, Mariangela Hills 
 wrote:

> Hi Shabir,
> I have documented this in [1].
>
> [1]
> https://docs.wso2.com/display/ES200/Adding+a+New+Sample+Asset+for+an+Asset+Type+at+Server+Startup
>
> Regards,
> Mariangela
>
>
> *Mariangela Hills*
> Senior Technical Writer - WSO2, Inc. http://wso2.com
> Committer and PMC member - Apache Stratos
> email:mariang...@wso2.com | mobile: +94 773 500185
>
> On Fri, Sep 11, 2015 at 3:32 PM, Mariangela Hills  > wrote:
>
>> I created a JIRA [1] to track this task.
>>
>> [1] https://wso2.org/jira/browse/DOCUMENTATION-2366
>>
>> Regards,
>> Mariangela
>>
>>
>> *Mariangela Hills*
>> Senior Technical Writer - WSO2, Inc. http://wso2.com
>> Committer and PMC member - Apache Stratos
>> email:mariang...@wso2.com | mobile: +94 773 500185
>>
>> On Fri, Sep 11, 2015 at 10:25 AM, Mariangela Hills <
>> mariang...@wso2.com> wrote:
>>
>>> Thanks, Shabir! I will add this to the docs!
>>>
>>> Regards,
>>> Mariangela
>>>
>>>
>>> *Mariangela Hills*
>>> Senior Technical Writer - WSO2, Inc. http://wso2.com
>>> Committer and PMC member - Apache Stratos
>>> email:mariang...@wso2.com | mobile: +94 773 500185
>>>
>>> On Thu, Sep 10, 2015 at 10:47 PM, Shabir Mohamed 
>>> wrote:
>>>
 Also to be added to *Common Mistakes:*


- The *"name" *attribute and the *"overview_name"* attribute,
both needs to have the same Value, (Ex: 'RaspberryPi' & 'Raspberry 
 Pi' will
not work). *"name"* is the Artifact-Name and "*overview_name*"
is the value used when creating the resource path in the registry.


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

 On Thu, Sep 10, 2015 at 9:10 PM, Shabir Mohamed 
 wrote:

> Hi,
>
> I 

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

2015-09-30 Thread Bhanuka Dissanayake
Hi,

sorry about that , I managed to apply the fix correctly and got it working.
the stop command is now working properly.
Thanks to Aruna.


On Tue, Sep 29, 2015 at 10:36 PM, Bhanuka Dissanayake 
wrote:

> I started the server with "sh wso2server.sh start" or "./wso2server.sh
> start" command(s) and tried stopping with "sh wso2server.sh stop" or
> "./wso2server.sh stop"
>
> On Tue, Sep 29, 2015 at 10:28 PM, Aruna Karunarathna 
> wrote:
>
>>
>>
>> On Tue, Sep 29, 2015 at 10:22 PM, Bhanuka Dissanayake 
>> wrote:
>>
>>> Hi ,
>>>
>>> Yes I tried adding the fix on branch 5.0.X and master both are not
>>> effective.
>>>
>>
>> Can you elaborate more on the commands you've used to start and stop the
>> server?..
>>
>>>
>>> On Tue, Sep 29, 2015 at 8:36 PM, Aruna Karunarathna 
>>> wrote:
>>>


 On Tue, Sep 29, 2015 at 8:07 PM, Bhanuka Dissanayake 
 wrote:

> Hi Aruna,
>
> The fix is not making any effect on the issue , I've tried building
> the server but the problem is still the same , can you please look into 
> it?
>

 What repository did you build?.. BTW PR is not still merged. Did you
 build adding the fix?..

>
> Thank You.
>
> On Thu, Sep 24, 2015 at 2:42 PM, Kasun Indrasiri 
> wrote:
>
>> Thanks a lor Anura.
>>
>> @Bhanuka : Can we please test this.
>>
>> On Wed, Sep 23, 2015 at 12:36 PM, Aruna Karunarathna 
>> wrote:
>>
>>> @Kasun
>>>
>>> This is fixed with [1].
>>>
>>> [1]. https://github.com/wso2/carbon4-kernel/pull/504
>>>
>>>
>>> On Wed, Sep 23, 2015 at 10:01 AM, Aruna Karunarathna >> > wrote:
>>>


 On Wed, Sep 23, 2015 at 9:51 AM, Supun Malinga 
 wrote:

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

 Nope. It's added through code[1]. And its being read by the
 wso2server.sh.. :)

 @Kasun. I went through the code. We will be able to add a fix for
 this soon.

 [1].
 https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.server/src/main/java/org/wso2/carbon/server/Main.java#L168


>
>
>
>> Until finding a proper solution what you can do is, after
>> starting the server create a wso2carbon.pid file in the root folder 
>> and add
>> the carbon process id.
>> You can get the carbon process id by jps command. Not sure this
>> is a feasible workaround for your perf-testing scenario,
>>
>> Regards,
>> Aruna
>>
>>>
>>> Thanks,
>>> Kasun.
>>>
>>> On Tue, Sep 22, 2015 at 10:37 AM, Aruna Karunarathna <
>>> ar...@wso2.com> wrote:
>>>
 Hi Bhanuka,

 Yes I was able to reproduce the same. Can you create a jira for
 this?..

 Regards,
 Aruna

 On Tue, Sep 22, 2015 at 10:32 AM, Bhanuka Dissanayake <
 bhan...@wso2.com> wrote:

> Hi,
>
> I am using the "wso2carbon-kernel-5.0.0-SNAPSHOT" pack , and
> have tried to start and stop the server demonically. The start 
> command is
> working but the stop command gives the following error.
>
> cat:
> /home/boauser/wso2gw/perf/wso2carbon-kernel-5.0.0-SNAPSHOT/wso2carbon.pid:
> No such file or directory
> ./wso2server.sh: 188: kill: Usage: kill [-s sigspec | -signum
> | -sigspec] [pid | job]... or
> kill -l [exitstatus]
>
> --
> *Bhanuka Dissanayake*
> *Software Engineer* *Intern; WSO2, Inc.; http://www.wso2.com
> *
> Mobile : +94 777 669508
> Tel  : +94 112 793214
> lean.enterprise.middleware

Re: [Dev] Identity "application-mgt" related database scripts are not available

2015-09-30 Thread Prasad Tissera
Hi Prabath,

All the identity related scripts have been moved to dbscripts/identity and
merged into a single script. Those are comming with
identity.core.server.feature. Thanks.

Regards,
Prasad.

On Wed, Sep 30, 2015 at 3:47 PM, Prabath Abeysekera 
wrote:

> Hi Johann/IS team,
>
> I can't locate any of the identity application-mgt related database
> scripts as part of the corresponding feature definitions. Have we
> removed/re-located them for some reason? If so, from where can I find those?
>
> Cheers,
> Prabath
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] RXT clarification

2015-09-30 Thread Rajith Roshan
Hi Chalitha,

This is a known issue and reported in jira [1]. This will be fixed in 5.0.1
patch release.

[1] - https://wso2.org/jira/browse/REGISTRY-2956

Thanks!
Rajith

On Wed, Sep 30, 2015 at 5:03 PM, Chalitha Waldeniyage 
wrote:

> Hi Team,
>
> I have created a rxt file (attached with the mail) and deployed in Greg
> 5.0.0.
> I was able to work with this rxt via management console without a problem.
> But when i'm accessing this via Greg publisher, It doesn't allow to add
> data and backend says following error in [1].
>
> When it comes to greg publisher,  Do i need to do any additional
> configurations?
>
>
> [1] ERROR {asset_api_endpoints} -  Error while creating asset for the
> request due to overview_version is not provided. Please provide a value for
> overview_version since it is a required field.
>
>
> Thank you,
> Chalitha.
> --
> *Chalitha Maheshwari*
> Software Engineer-QA,
> WSO2 Inc.
>
> *E-mail:* chali...@wso2.com
> *Mobile: *+94710 411 112
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Rajith Roshan
Software Engineer, WSO2 Inc.
Mobile: +94-72-642-8350 <%2B94-71-554-8430>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Identity "application-mgt" related database scripts are not available

2015-09-30 Thread Prabath Abeysekera
Hi Johann/IS team,

I can't locate any of the identity application-mgt related database scripts
as part of the corresponding feature definitions. Have we
removed/re-located them for some reason? If so, from where can I find those?

Cheers,
Prabath
-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Get Absolute Path Of File In App Cloud

2015-09-30 Thread Lasantha Dharmakeerthi
Hi
Devs

I have created jaggery app and deployed it in wso2 app cloud. I have method
to read a certificate file and certificate is in the jaggery app.

In local Aplication Server I used file path like wise “
repository/deployment/server/jaggeryapps/Parkingapp
/resources/wso2defaultpub.cer”

So how can I get path to my certificate file in WSO2 App Cloud? Is it same
structure?

Thanks
Lasantha.

-- 
Dharmakeerthi Lasantha
Software Engineer Trainee, WSO2
Mobile 0774928852
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get Absolute Path Of File In App Cloud

2015-09-30 Thread Sajith Ariyarathna
Hi Lasantha,

Assuming,

You are reading the certificate file using Jaggery.

In your Jaggery app, certificate file is in '*resources/wso2defaultpub.cer*'
path

You can read your file using Jaggery File [1] object. Refer following
code snippet.

var certFile = new File("/resources/wso2defaultpub.cer");
var content = certFile.readAll();

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

Thanks.

On Wed, Sep 30, 2015 at 3:11 PM, Lasantha Dharmakeerthi 
wrote:

> Hi
> Devs
>
> I have created jaggery app and deployed it in wso2 app cloud. I have
> method to read a certificate file and certificate is in the jaggery app.
>
> In local Aplication Server I used file path like wise “
> repository/deployment/server/jaggeryapps/Parkingapp
> /resources/wso2defaultpub.cer”
>
> So how can I get path to my certificate file in WSO2 App Cloud? Is it same
> structure?
>
> Thanks
> Lasantha.
>
> --
> Dharmakeerthi Lasantha
> Software Engineer Trainee, WSO2
> Mobile 0774928852
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sajith Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/
mobile: +94 77 6602284, +94 71 3951048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 BPS 3.5.0 RC2

2015-09-30 Thread Vinod Kavinda
Hi,
I tested the HumanTask and BPEL functionalities.

[x] Stable - go ahead and release

Regards,
Vinod

On Wed, Sep 30, 2015 at 11:03 AM, Firzhan Naqash  wrote:

>
> Hi Devs,
>
> *WSO2 BPS 3.5.0 RC2 Release Vote*
>
> This release fixes the following issues:
> https://wso2.org/jira/browse/BPS-604?filter=12415
>
> Please download BPS 3.5.0 RC2 and test the functionality and vote. Vote
> will be open for 72 hours or as needed.
>
> Binary distribution at:
> http://svn.wso2.org/repos/wso2/people/firzhan/packs/bps/3.5.0/RC2/
>
> Maven staging repository:
> http://maven.wso2.org/nexus/content/repositories/orgwso2bps-158/
>
> The tag to be voted upon :
> https://github.com/wso2/product-bps/releases/tag/v3.5.0-RC2
>
>
> [-] Broken - do not release (explain why)
> [+] Stable - go ahead and release
>
> Thanks and Regards,
> WSO2 BPS Team
>
>
>
> Regards,
> Firzhan
>
>
> --
> *Firzhan Naqash*
> Senior Software Engineer - Integration Platform Team
> WSO2 Inc. http://wso2.com
>
> email: firz...@wso2.com 
> mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
> blog: http://firzhanblogger.blogspot.com/
>   *
> *twitter: https://twitter.com/firzhan007
>  | linked-in: 
> **https://www.linkedin.com/in/firzhan
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get Absolute Path Of File In App Cloud

2015-09-30 Thread Dimuthu Leelarathne
Hi,

Use getResourceAsStream method.

thanks,
dimuthu


On Wed, Sep 30, 2015 at 3:11 PM, Lasantha Dharmakeerthi 
wrote:

> Hi
> Devs
>
> I have created jaggery app and deployed it in wso2 app cloud. I have
> method to read a certificate file and certificate is in the jaggery app.
>
> In local Aplication Server I used file path like wise “
> repository/deployment/server/jaggeryapps/Parkingapp
> /resources/wso2defaultpub.cer”
>
> So how can I get path to my certificate file in WSO2 App Cloud? Is it same
> structure?
>
> Thanks
> Lasantha.
>
> --
> Dharmakeerthi Lasantha
> Software Engineer Trainee, WSO2
> Mobile 0774928852
>



-- 
Dimuthu Leelarathne
Director

WSO2, Inc. (http://wso2.com)
email: dimut...@wso2.com
Mobile : 0773661935

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


[Dev] RXT clarification

2015-09-30 Thread Chalitha Waldeniyage
Hi Team,

I have created a rxt file (attached with the mail) and deployed in Greg
5.0.0.
I was able to work with this rxt via management console without a problem.
But when i'm accessing this via Greg publisher, It doesn't allow to add
data and backend says following error in [1].

When it comes to greg publisher,  Do i need to do any additional
configurations?


[1] ERROR {asset_api_endpoints} -  Error while creating asset for the
request due to overview_version is not provided. Please provide a value for
overview_version since it is a required field.


Thank you,
Chalitha.
-- 
*Chalitha Maheshwari*
Software Engineer-QA,
WSO2 Inc.

*E-mail:* chali...@wso2.com
*Mobile: *+94710 411 112


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


[Dev] [DEV][DAS][ESB] Failed to initialise synapse after installing DAS features

2015-09-30 Thread Ayyoob Hamza
Hi All,
When we install DAS features to CDMF(This already have the APIM features),
found a weird fatal exception which failed to start the synapse.

[2015-09-30 18:23:51,439]  INFO
{org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Starting
ESB...
[2015-09-30 18:23:51,459]  INFO
{org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -
 Initializing Apache Synapse...
[2015-09-30 18:23:51,474] FATAL
{org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Failed to
initialize ESB due to a fatal error
java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:

org/apache/synapse/config/SynapseConfigUtils.getURLConnection(Ljava/net/URL;)Ljava/net/URLConnection;
@289: invokevirtual
  Reason:
Type 'java/lang/Object' (current frame, stack[0]) is not assignable to
'java/net/URLConnection'
  Current Frame:
bci: @289
flags: { }
locals: { 'java/net/URL', 'java/lang/Object', 'java/util/Properties',
'java/lang/String', 'java/lang/String', 'java/util/List',
'java/lang/String', 'java/lang/String', 'java/lang/String', '[B',
'java/lang/String' }
stack: { 'java/lang/Object', 'java/lang/String', 'java/lang/String' }
  Bytecode:
000: 2ac7 001a b200 01b9 0020 0100 9900 0db2

So when digged through the cause of this exception, I was able re-produce
this error by only installing the analytics-core feature[1]. Further I was
able find that the below bundle caused this exception.
org.wso2.orbit.org.ow2.asm:asm-all[2]

This can also be produced on the ESB 4.9.0 by installing the analytics-core
feature.

The above exception was solved  by deleting the above (asm-all) dependency
on the pack.

I wonder why this dependency is causing the synapse failure ?. Any thoughts
on this would be helpful.

[1]
https://github.com/wso2/carbon-analytics/blob/master/features/analytics-core/org.wso2.carbon.analytics.core.server.feature/pom.xml
[2] https://github.com/wso2/orbit/blob/master/asm/4.1.0.wso2v1/pom.xml


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


Re: [Dev] [Private PaaS] Moving cartridges to a new Git repository

2015-09-30 Thread Imesh Gunaratne
Hi Gayan,

Great work on moving the cartridges to the new repository. Shall we bring
them to the root folder. IMO since the git repository name contains the
word "cartridges" may be we do not need a folder called "cartridges"
inside. WDYT?

Thanks

On Tue, Sep 29, 2015 at 3:27 PM, Imesh Gunaratne  wrote:

> Cartridges git repository is now available:
> https://github.com/wso2/private-paas-cartridges
>
> On Tue, Sep 29, 2015 at 3:26 PM, Imesh Gunaratne  wrote:
>
>> On Tue, Sep 29, 2015 at 1:36 PM, Sajith Kariyawasam 
>>  wrote:
>>
>>>
>>> Will there be separate cartridge releases thereafter?
>>>
>>
>> Yes we can do separate releases for cartridges afterwards. That was the
>> idea.
>>
>>>
>>>  How do we handle cartridge compatibility with Private PaaS version?
>>>
>>
>> A very good question! May we for each cartridge we can mention the
>> Private PaaS version its compatible with.
>>
>> On Tue, Sep 29, 2015 at 1:36 PM, Sajith Kariyawasam 
>> wrote:
>>
>>> Hi Imesh,
>>>
>>> Will there be separate cartridge releases thereafter? How do we handle
>>> cartridge compatibility with Private PaaS version?
>>> For eg, Cartridge A version 1.0 may be compatible with PPaaS 4.1.0. If
>>> Cartridge A is improved it may not compatible with PPaaS 4.1.0, so need to
>>> version it to version 2.0
>>>  That way, I think we need to do cartridge releases (tags)
>>> for each Private PaaS release, and need to track the compatibility. Am I
>>> right?
>>>
>>> On Tue, Sep 29, 2015 at 12:31 PM, Imesh Gunaratne 
>>> wrote:
>>>
 Hi Devs,

 Currently we have all the cartridges in the Private PaaS product
 repository. As a result whenever we introduce a new cartridge we need to do
 a Private PaaS release.

 After a discussion with Shankar and the team we thought of introducing
 a new Git repository for cartridges. Please share your thoughts on this.

 Thanks

 --
 *Imesh Gunaratne*
 Senior Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


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


>>>
>>>
>>> --
>>> Sajith Kariyawasam
>>> *Committer and PMC member, Apache Stratos, *
>>> *WSO2 Inc.; http://wso2.com *
>>> *Mobile: 0772269575*
>>>
>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


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


Re: [Dev] Pull request has not merged into the current development branch of APIM

2015-09-30 Thread Nuwan Dias
Hi Harshan,

The PR [1] has been sent to the master branch and it has been merged. I
don't see any pending PRs related to this on the release_1.10.x branch.

[1] - https://github.com/wso2/carbon-apimgt/pull/10

Thanks,
NuwanD.

On Wed, Sep 30, 2015 at 6:28 PM, Harshan Liyanage  wrote:

> Hi,
>
> It seems like the following pull request [1] is not merged into the latest
> master branch & 1.10.x branches of carbon-apimgt repo. But it is available
> in release-1.4.0 branch [2]. Is there any specific reason to not to merge
> this into the latest branches?
>
> [1]. https://github.com/wso2/carbon-apimgt/pull/10
> [2].
> https://github.com/wso2/carbon-apimgt/tree/release-1.4.0/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl
>
> Thanks,
>
> Harshan Liyanage
> Software Engineer
> Mobile: *+94724423048*
> Email: hars...@wso2.com
> Blog : http://harshanliyanage.blogspot.com/
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>



-- 
Nuwan Dias

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


[Dev] Pull request has not merged into the current development branch of APIM

2015-09-30 Thread Harshan Liyanage
Hi,

It seems like the following pull request [1] is not merged into the latest
master branch & 1.10.x branches of carbon-apimgt repo. But it is available
in release-1.4.0 branch [2]. Is there any specific reason to not to merge
this into the latest branches?

[1]. https://github.com/wso2/carbon-apimgt/pull/10
[2].
https://github.com/wso2/carbon-apimgt/tree/release-1.4.0/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl

Thanks,

Harshan Liyanage
Software Engineer
Mobile: *+94724423048*
Email: hars...@wso2.com
Blog : http://harshanliyanage.blogspot.com/
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Private PaaS] Moving cartridges to a new Git repository

2015-09-30 Thread Gayan Gunarathne
Hi Imesh,

I think we need to refine the structure of the ppaas-cartridges
repository.We can have a separate folder for each cartridges.Then we can
release the each cartridge separately.We can have the samples for each
product itself.

Thanks,
Gayan







On Wed, Sep 30, 2015 at 6:01 PM, Imesh Gunaratne  wrote:

> Hi Gayan,
>
> Great work on moving the cartridges to the new repository. Shall we bring
> them to the root folder. IMO since the git repository name contains the
> word "cartridges" may be we do not need a folder called "cartridges"
> inside. WDYT?
>
> Thanks
>
> On Tue, Sep 29, 2015 at 3:27 PM, Imesh Gunaratne  wrote:
>
>> Cartridges git repository is now available:
>> https://github.com/wso2/private-paas-cartridges
>>
>> On Tue, Sep 29, 2015 at 3:26 PM, Imesh Gunaratne  wrote:
>>
>>> On Tue, Sep 29, 2015 at 1:36 PM, Sajith Kariyawasam 
>>>  wrote:
>>>

 Will there be separate cartridge releases thereafter?

>>>
>>> Yes we can do separate releases for cartridges afterwards. That was the
>>> idea.
>>>

  How do we handle cartridge compatibility with Private PaaS version?

>>>
>>> A very good question! May we for each cartridge we can mention the
>>> Private PaaS version its compatible with.
>>>
>>> On Tue, Sep 29, 2015 at 1:36 PM, Sajith Kariyawasam 
>>> wrote:
>>>
 Hi Imesh,

 Will there be separate cartridge releases thereafter? How do we handle
 cartridge compatibility with Private PaaS version?
 For eg, Cartridge A version 1.0 may be compatible with PPaaS 4.1.0. If
 Cartridge A is improved it may not compatible with PPaaS 4.1.0, so need to
 version it to version 2.0
  That way, I think we need to do cartridge releases (tags)
 for each Private PaaS release, and need to track the compatibility. Am I
 right?

 On Tue, Sep 29, 2015 at 12:31 PM, Imesh Gunaratne 
 wrote:

> Hi Devs,
>
> Currently we have all the cartridges in the Private PaaS product
> repository. As a result whenever we introduce a new cartridge we need to 
> do
> a Private PaaS release.
>
> After a discussion with Shankar and the team we thought of introducing
> a new Git repository for cartridges. Please share your thoughts on this.
>
> Thanks
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Sajith Kariyawasam
 *Committer and PMC member, Apache Stratos, *
 *WSO2 Inc.; http://wso2.com *
 *Mobile: 0772269575*

>>>
>>>
>>>
>>> --
>>> *Imesh Gunaratne*
>>> Senior Technical Lead
>>> WSO2 Inc: http://wso2.com
>>> T: +94 11 214 5345 M: +94 77 374 2057
>>> W: http://imesh.gunaratne.org
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 

Gayan Gunarathne
Technical Lead, WSO2 Inc. (http://wso2.com)
Committer & PMC Member, Apache Stratos
email : gay...@wso2.com  | mobile : +94 775030545 <%2B94%20766819985>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB 4.9.0 - NPE occurs in tenant APIs with same context and different versions

2015-09-30 Thread Nuwan Dias
Hi,

I have a scenario on the ESB where I have created two APIs with the same
context in the tenant space. The first API doesn't have a version and the
second API has a version. The first API receives the request and forwards
to the second API. See illustration below.

Client (/twitter) --> Twitter_API (/twitter/1.0.0) --> Twitter_API_v1.0.0

This scenario however causes the following [1] NPE on the first request
that's sent to the server. The subsequent requests pass until a server
restart happens.

I tried logging into the management console of the ESB using tenant
credentials to check whether it was related to tenant loading. The first
request still failed with the same error. Any idea why this is happening?
This issue first occurred to me in API Manager after migrating to the
latest released version of Synapse. And is causing test failures in the
product. It worked fine in the older versions of Synapse (2.1.2- version
range).

[1]

[2015-10-01 04:41:39,519] ERROR - PassThroughHttpSender Failed to submit
the response
java.lang.NullPointerException
at
org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)
at
org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)
at
org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.wso2.carbon.core.multitenancy.transports.TenantTransportSender.invoke(TenantTransportSender.java:231)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
at
org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
at org.apache.synapse.rest.Resource.process(Resource.java:297)
at org.apache.synapse.rest.API.process(API.java:335)
at
org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:97)
at
org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:52)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:266)
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.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.processResponse(MultitenantMessageReceiver.java:166)
at
org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.receive(MultitenantMessageReceiver.java:82)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
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)
[2015-10-01 04:41:39,521] ERROR - Axis2Sender
Access-Control-Allow-Credentials:true,Access-Control-Allow-Methods:GET,
POST,Access-Control-Allow-Origin:*,Content-Type:application/json;
charset=utf-8,X-Source:redis,http://www.w3.org/2003/05/soap-envelope;>
Unexpected error sending message back
org.apache.axis2.AxisFault: Failed to submit the response
at
org.apache.synapse.transport.passthru.PassThroughHttpSender.handleException(PassThroughHttpSender.java:610)
at
org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:269)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.wso2.carbon.core.multitenancy.transports.TenantTransportSender.invoke(TenantTransportSender.java:231)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
at
org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
at org.apache.synapse.rest.Resource.process(Resource.java:297)
at org.apache.synapse.rest.API.process(API.java:335)
at

Re: [Dev] Get Absolute Path Of File In App Cloud

2015-09-30 Thread Lasantha Dharmakeerthi
Hi
All

I use java inside my jaggery app to read certificate file and get public
key.

*code*
inputStream = new Packages.java.io.FileInputStream(certificatePath);
var key =
Packages.java.security.cert.CertificateFactory.getInstance("X.509").generateCertificate(inputStream).getPublicKey();

As sajith said can read certificate file using Jaggery File object. But is
there a way to get public key from that way??

Can't I read certificate file in my application context by giving path
likewise in my local app ?

If it is possible to read file as in local app how can I get absolute path
to my certificate file in cloud app??

*url*
https://appserver.dev.cloud.wso2.com/t/dlpds3331/jaggeryapps/wso2parkingapp-default-SNAPSHOT

Thanks
Lasantha.




On Wed, Sep 30, 2015 at 7:50 PM, Sajith Ariyarathna 
wrote:

> Hi Lasantha,
>
> Jaggery server runs on top of Carbon. So Java libraries which are added to
> Carbon are also available in Jaggery. External Java libraries can be added
> to Carbon by dropping them into 
> /repository/components/lib directory (more details [1]). Don't forget to
> restart the server.
>
> [1]
> http://wso2.com/library/knowledgebase/add-external-jar-libraries-wso2-carbon-based-products/
>
>
> On Wed, Sep 30, 2015 at 4:40 PM, Lasantha Dharmakeerthi <
> lasant...@wso2.com> wrote:
>
>> hi
>> Sajitha
>>
>> I use some .jar files and I have included them into components/lib
>> folder. Can I add those .jar files inside the jagerry app and use to get
>> same functionalities?
>>
>> Above code is working well when I give absolute path.
>>
>> Thanks
>>
>> Lasantha
>>
>> On Wed, Sep 30, 2015 at 4:38 PM, Lasantha Dharmakeerthi <
>> lasant...@wso2.com> wrote:
>>
>>> Hi
>>> Sajith
>>>
>>> Can I get public key of certificate using this way. I tried this one but
>>> couldn't get public key.
>>>
>>> this is the my code
>>>
>>>   function getPublicKey(certificatePath){
>>>
>>> var inputStream = null;
>>>
>>> try{
>>>
>>>   log.debug("Reading certificate from ");
>>>   inputStream = new
>>> Packages.java.io.FileInputStream(certificatePath);
>>>
>>>   var key =
>>> Packages.java.security.cert.CertificateFactory.getInstance("X.509").generateCertificate(inputStream).getPublicKey();
>>>
>>>   return key;
>>> }catch(e){
>>>   log.error("Error while getting the public key. " + e);
>>>   throw e;
>>> }finally{
>>>
>>>   if(inputStream){
>>> inputStream.close();
>>>   }
>>> }
>>>
>>> return null;
>>>
>>>   }
>>>
>>> Thanks
>>> Lasantha
>>>
>>> On Wed, Sep 30, 2015 at 4:23 PM, Sajith Ariyarathna 
>>> wrote:
>>>
 Hi Lasantha,

 Assuming,

 You are reading the certificate file using Jaggery.

 In your Jaggery app, certificate file is in '
 *resources/wso2defaultpub.cer*' path

 You can read your file using Jaggery File [1] object. Refer following
 code snippet.

 var certFile = new File("/resources/wso2defaultpub.cer");
 var content = certFile.readAll();

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

 Thanks.

 On Wed, Sep 30, 2015 at 3:11 PM, Lasantha Dharmakeerthi <
 lasant...@wso2.com> wrote:

> Hi
> Devs
>
> I have created jaggery app and deployed it in wso2 app cloud. I have
> method to read a certificate file and certificate is in the jaggery
>  app.
>
> In local Aplication Server I used file path like wise “
> repository/deployment/server/jaggeryapps/Parkingapp
> /resources/wso2defaultpub.cer”
>
> So how can I get path to my certificate file in WSO2 App Cloud? Is it
> same structure?
>
> Thanks
> Lasantha.
>
> --
> Dharmakeerthi Lasantha
> Software Engineer Trainee, WSO2
> Mobile 0774928852
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Sajith Ariyarathna
 Software Engineer; WSO2, Inc.;  http://wso2.com/
 mobile: +94 77 6602284, +94 71 3951048

>>>
>>>
>>>
>>> --
>>> Dharmakeerthi Lasantha
>>> Software Engineer Trainee, WSO2
>>> Mobile 0774928852
>>>
>>
>>
>>
>> --
>> Dharmakeerthi Lasantha
>> Software Engineer Trainee, WSO2
>> Mobile 0774928852
>>
>
>
>
> --
> Sajith Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
> mobile: +94 77 6602284, +94 71 3951048
>



-- 
Dharmakeerthi Lasantha
Software Engineer Trainee, WSO2
Mobile 0774928852
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][DAS][ESB] Failed to initialise synapse after installing DAS features

2015-09-30 Thread Ruwan Abeykoon
Hi Ruwan
see [1] "A wrong argument is passed to a method".

[1]
http://examples.javacodegeeks.com/java-basics/exceptions/java-lang-verifyerror-how-to-solve-verifyerror/

Cheers,
Ruwan

On Thu, Oct 1, 2015 at 9:28 AM, Ruwan Abeykoon  wrote:

> Hi Ruwan,
>
> "Bad type on operand stack" typically means a jar which has super type
> (interface or super class) has been incompatible due to method/class
> signature change. see [1] "A wrong argument is passed to a method".
>
> Cheers,
> Ruwan
>
> On Thu, Oct 1, 2015 at 8:28 AM, Ruwan Yatawara  wrote:
>
>> The error "java.lang.VerifyError: Bad type on operand stack" can pop up,
>> when all jars are not compiled from a one particular major version of the
>> language.
>>
>> As seen below, the released version of ASM has been compiled with java 6.
>> I am not sure as to how this is the case, as the bundle seems to have been
>> released on top of GIT.
>>
>> ./asm-all_4.1.0.wso2v1.jar.unzip/META-INF/MANIFEST.MF:Build-Jdk: 1.6.0_33
>>
>> ESB does not use the jar, but IOT does. However, when going through the
>> versions with which all jars have been compiled with, ASM is not the only
>> one that has been compiled with JAVA 6. So, i am not sure as to why this
>> particular jar is giving this problem.
>>
>> Thanks and Regards,
>>
>> Ruwan Yatawara
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>>
>> email : ruw...@wso2.com
>> mobile : +94 77 9110413
>> blog : http://ruwansrants.blogspot.com/
>> www: :http://wso2.com
>>
>>
>> On Wed, Sep 30, 2015 at 6:47 PM, Ayyoob Hamza  wrote:
>>
>>> Hi All,
>>> When we install DAS features to CDMF(This already have the APIM
>>> features), found a weird fatal exception which failed to start the synapse.
>>>
>>> [2015-09-30 18:23:51,439]  INFO
>>> {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Starting
>>> ESB...
>>> [2015-09-30 18:23:51,459]  INFO
>>> {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -
>>>  Initializing Apache Synapse...
>>> [2015-09-30 18:23:51,474] FATAL
>>> {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Failed to
>>> initialize ESB due to a fatal error
>>> java.lang.VerifyError: Bad type on operand stack
>>> Exception Details:
>>>   Location:
>>>
>>> org/apache/synapse/config/SynapseConfigUtils.getURLConnection(Ljava/net/URL;)Ljava/net/URLConnection;
>>> @289: invokevirtual
>>>   Reason:
>>> Type 'java/lang/Object' (current frame, stack[0]) is not assignable
>>> to 'java/net/URLConnection'
>>>   Current Frame:
>>> bci: @289
>>> flags: { }
>>> locals: { 'java/net/URL', 'java/lang/Object',
>>> 'java/util/Properties', 'java/lang/String', 'java/lang/String',
>>> 'java/util/List', 'java/lang/String', 'java/lang/String',
>>> 'java/lang/String', '[B', 'java/lang/String' }
>>> stack: { 'java/lang/Object', 'java/lang/String', 'java/lang/String' }
>>>   Bytecode:
>>> 000: 2ac7 001a b200 01b9 0020 0100 9900 0db2
>>>
>>> So when digged through the cause of this exception, I was able
>>> re-produce this error by only installing the analytics-core feature[1].
>>> Further I was able find that the below bundle caused this exception.
>>> org.wso2.orbit.org.ow2.asm:asm-all[2]
>>>
>>> This can also be produced on the ESB 4.9.0 by installing the
>>> analytics-core feature.
>>>
>>> The above exception was solved  by deleting the above (asm-all)
>>> dependency on the pack.
>>>
>>> I wonder why this dependency is causing the synapse failure ?. Any
>>> thoughts on this would be helpful.
>>>
>>> [1]
>>> https://github.com/wso2/carbon-analytics/blob/master/features/analytics-core/org.wso2.carbon.analytics.core.server.feature/pom.xml
>>> [2] https://github.com/wso2/orbit/blob/master/asm/4.1.0.wso2v1/pom.xml
>>>
>>>
>>> Thanks
>>> *Ayyoob Hamza*
>>> *Software Engineer*
>>> WSO2 Inc.; http://wso2.com
>>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Ruwan Abeykoon*
> *Architect,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: ruw...@wso2.com
>



-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

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


Re: [Dev] [Patch Automation] Can we deploy a war file programmatically?

2015-09-30 Thread Abimaran Kugathasan
Thanks a lot NuwanW and Thusitha! I will use it.

On Thu, Oct 1, 2015 at 10:25 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Abimaran,
> In product-as we are using WebappAdminClient[1] to deploy war files. I
> think you can refer to the same
> [1] -
> https://github.com/wso2/product-as/blob/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/appserver/integration/common/clients/WebAppAdminClient.java
>
> Thanks
> /Thusitha
> On Thu, Oct 1, 2015 at 10:11 AM, Abimaran Kugathasan 
> wrote:
>
>> Hi,
>>
>>
>> We can deploy aar files using ServiceAdminClient into a product. Can we
>> do the same for war file. Does our automation framework support it?
>>
>> If so, can anybody please point me the Class or module name?
>>
>> --
>> Thanks
>> Abimaran Kugathasan
>>
>> Software Engineer | WSO2 Inc
>> Data & APIs Technologies Team
>> Mobile : +94 773922820
>>
>> 
>> 
>>   
>> 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
>
>


-- 
Thanks
Abimaran Kugathasan

Software Engineer | WSO2 Inc
Data & APIs Technologies Team
Mobile : +94 773922820


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


Re: [Dev] [DAS] MySQL Database and Table creation when using carbonJDBC option in spark environment

2015-09-30 Thread Imesh Gunaratne
Hi Thanuja,

Can you please explain the purpose of these temporary tables?

Thanks

On Wed, Sep 30, 2015 at 11:53 PM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:

> Hi All,
>
> When we create temporary tables in spark environment using carbonJDBC
> option as explained in [1], we are using a datasource and tableName from
> which spark environment temporary table will get data as follow:
> CREATE TEMPORARY TABLE  using CarbonJDBC options (dataSource 
> " name>", tableName "");
>
> I've used a mysql database (sample_datasource) for datasource and used
> mysql tables created in that database for tableName (sample_table) as
> follow:
> CREATE TEMPORARY TABLE sample using CarbonJDBC options (dataSource "
> sample_datasource", tableName "sample_table");
>
> But I'm creating the mysql database and tables by executing sql statements
> manually. Is there a way in DAS that we can add these sql statements inside
> a script and create the database and tables when we start the server?
>
> [1]. https://docs.wso2.com/display/DAS300/Spark+Query+Language
>
> Thanks.
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


Re: [Dev] [Patch Automation] Can we deploy a war file programmatically?

2015-09-30 Thread Nuwan Wimalasekara
Hi Abimaran,

WebappAdmin service can be used deploy a war file. WebAppAdminClient is
already implemented and you can reuse the client.

Thanks,
Nuwanw

On Thu, Oct 1, 2015 at 10:11 AM, Abimaran Kugathasan 
wrote:

> Hi,
>
>
> We can deploy aar files using ServiceAdminClient into a product. Can we do
> the same for war file. Does our automation framework support it?
>
> If so, can anybody please point me the Class or module name?
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>


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

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


[Dev] Failing test after business process version upgrade

2015-09-30 Thread Shazni Nazeer
Hi,

We have a test case failure [1] which was passing with previous versions of
business process. We updated the business process version to 4.4.3 as we
needed to move to latest versions of some other repos for our release.

This seems to be a permission issue.

Any idea why could this happen?

[1]
https://wso2.org/jenkins/job/product-greg/org.wso2.greg$org.wso2.carbon.registry.test.lifecycle.service/844/testReport/org.wso2.carbon.registry.lifecycle.test/LCTransitionNotificationTestCase/testLCApprovalNeededNotification/

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


Re: [Dev] [DAS] MySQL Database and Table creation when using carbonJDBC option in spark environment

2015-09-30 Thread Thanuja Uruththirakodeeswaran
Hi Imesh,

If we take the above scenario, I need to insert the analyzed/aggregated
data which is obtained as result after spark sql processing, to my mysql
table (sample_table). In order to do that, first we need to create a
temporary table using the corresponding mysql database (sample_datasource)
and table(sample_table) in spark environment and then only by inserting
data to this temporary table in spark environment, we can update our mysql
table.

In DAS spark environment, we can't directly insert the analyzed data to our
mysql table. We should create a temporary table using our datasources to
manipulate them. I think that's why they named it as '*temporary*' table.

@Niranda Please correct me if I'm wrong.

Thanks.

On Thu, Oct 1, 2015 at 7:00 AM, Imesh Gunaratne  wrote:

> Hi Thanuja,
>
> Can you please explain the purpose of these temporary tables?
>
> Thanks
>
> On Wed, Sep 30, 2015 at 11:53 PM, Thanuja Uruththirakodeeswaran <
> thanu...@wso2.com> wrote:
>
>> Hi All,
>>
>> When we create temporary tables in spark environment using carbonJDBC
>> option as explained in [1], we are using a datasource and tableName from
>> which spark environment temporary table will get data as follow:
>> CREATE TEMPORARY TABLE  using CarbonJDBC options (dataSource 
>> "> name>", tableName "");
>>
>> I've used a mysql database (sample_datasource) for datasource and used
>> mysql tables created in that database for tableName (sample_table) as
>> follow:
>> CREATE TEMPORARY TABLE sample using CarbonJDBC options (dataSource "
>> sample_datasource", tableName "sample_table");
>>
>> But I'm creating the mysql database and tables by executing sql
>> statements manually. Is there a way in DAS that we can add these sql
>> statements inside a script and create the database and tables when we start
>> the server?
>>
>> [1]. https://docs.wso2.com/display/DAS300/Spark+Query+Language
>>
>> Thanks.
>>
>> --
>> Thanuja Uruththirakodeeswaran
>> Software Engineer
>> WSO2 Inc.;http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 774363167
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Imesh Gunaratne*
> Senior Technical Lead
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: http://imesh.gunaratne.org
> Lean . Enterprise . Middleware
>
>


-- 
Thanuja Uruththirakodeeswaran
Software Engineer
WSO2 Inc.;http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] Identity "application-mgt" related database scripts are not available

2015-09-30 Thread Prasad Tissera
Yes it has the above mentioned drawback. But now application-mgt feature
and also almost all the identity features depends on identity.core.server
feature. We added this dependency because otherwise we will have to bundle
identity.core component with all the identity features.

Regards,
Prasad.

On Wed, Sep 30, 2015 at 7:50 PM, Prabath Abeysekera 
wrote:

> Thanks for the info Prasad. So, I believe, what that means is, we can't
> selectively grab and install only the most relevant schemas anymore. Is
> that the right thing to do? For example, say I only need "application-mgt"
> bits in my product. There, I wouldn't want to ship anything outside the
> scope of application management installed into the default datasource
> that's configured with the identity components. Can we do that now without
> having to maintain a separate schema at the product level only containing
> what's absolutely required?
>
> Cheers,
> Prabath
>
> On Wed, Sep 30, 2015 at 3:55 PM, Prasad Tissera  wrote:
>
>> Hi Prabath,
>>
>> All the identity related scripts have been moved to dbscripts/identity
>> and merged into a single script. Those are comming with
>> identity.core.server.feature. Thanks.
>>
>> Regards,
>> Prasad.
>>
>> On Wed, Sep 30, 2015 at 3:47 PM, Prabath Abeysekera 
>> wrote:
>>
>>> Hi Johann/IS team,
>>>
>>> I can't locate any of the identity application-mgt related database
>>> scripts as part of the corresponding feature definitions. Have we
>>> removed/re-located them for some reason? If so, from where can I find those?
>>>
>>> Cheers,
>>> Prabath
>>> --
>>> Prabath Abeysekara
>>> Technical Lead
>>> WSO2 Inc.
>>> Email: praba...@wso2.com
>>> Mobile: +94774171471
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Prasad Tissera
>> Software Engineer.
>> Mobile : +94777223444
>>
>
>
>
> --
> Prabath Abeysekara
> Technical Lead
> WSO2 Inc.
> Email: praba...@wso2.com
> Mobile: +94774171471
>



-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS] MySQL Database and Table creation when using carbonJDBC option in spark environment

2015-09-30 Thread Imesh Gunaratne
On Thu, Oct 1, 2015 at 9:53 AM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:
>
>
> In DAS spark environment, we can't directly insert the analyzed data to
> our mysql table. We should create a temporary table using our datasources
> to manipulate them.
>

Yes, can you please explain the reasons? What does this analysis do? Why we
cannot directly insert them to the RDBMS?

Thanks

On Thu, Oct 1, 2015 at 9:53 AM, Thanuja Uruththirakodeeswaran <
thanu...@wso2.com> wrote:

> Hi Imesh,
>
> If we take the above scenario, I need to insert the analyzed/aggregated
> data which is obtained as result after spark sql processing, to my mysql
> table (sample_table). In order to do that, first we need to create a
> temporary table using the corresponding mysql database (sample_datasource)
> and table(sample_table) in spark environment and then only by inserting
> data to this temporary table in spark environment, we can update our mysql
> table.
>
> In DAS spark environment, we can't directly insert the analyzed data to
> our mysql table. We should create a temporary table using our datasources
> to manipulate them. I think that's why they named it as '*temporary*'
> table.
>
> @Niranda Please correct me if I'm wrong.
>
> Thanks.
>
> On Thu, Oct 1, 2015 at 7:00 AM, Imesh Gunaratne  wrote:
>
>> Hi Thanuja,
>>
>> Can you please explain the purpose of these temporary tables?
>>
>> Thanks
>>
>> On Wed, Sep 30, 2015 at 11:53 PM, Thanuja Uruththirakodeeswaran <
>> thanu...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> When we create temporary tables in spark environment using carbonJDBC
>>> option as explained in [1], we are using a datasource and tableName from
>>> which spark environment temporary table will get data as follow:
>>> CREATE TEMPORARY TABLE  using CarbonJDBC options
>>> (dataSource "", tableName "");
>>>
>>> I've used a mysql database (sample_datasource) for datasource and used
>>> mysql tables created in that database for tableName (sample_table) as
>>> follow:
>>> CREATE TEMPORARY TABLE sample using CarbonJDBC options (dataSource "
>>> sample_datasource", tableName "sample_table");
>>>
>>> But I'm creating the mysql database and tables by executing sql
>>> statements manually. Is there a way in DAS that we can add these sql
>>> statements inside a script and create the database and tables when we start
>>> the server?
>>>
>>> [1]. https://docs.wso2.com/display/DAS300/Spark+Query+Language
>>>
>>> Thanks.
>>>
>>> --
>>> Thanuja Uruththirakodeeswaran
>>> Software Engineer
>>> WSO2 Inc.;http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 774363167
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Senior Technical Lead
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057
>> W: http://imesh.gunaratne.org
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Thanuja Uruththirakodeeswaran
> Software Engineer
> WSO2 Inc.;http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 774363167
>



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


[Dev] [Patch Automation] Can we deploy a war file programmatically?

2015-09-30 Thread Abimaran Kugathasan
Hi,


We can deploy aar files using ServiceAdminClient into a product. Can we do
the same for war file. Does our automation framework support it?

If so, can anybody please point me the Class or module name?

-- 
Thanks
Abimaran Kugathasan

Software Engineer | WSO2 Inc
Data & APIs Technologies Team
Mobile : +94 773922820


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


Re: [Dev] [Patch Automation] Can we deploy a war file programmatically?

2015-09-30 Thread Thusitha Thilina Dayaratne
Hi Abimaran,
In product-as we are using WebappAdminClient[1] to deploy war files. I
think you can refer to the same
[1] -
https://github.com/wso2/product-as/blob/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/appserver/integration/common/clients/WebAppAdminClient.java

Thanks
/Thusitha
On Thu, Oct 1, 2015 at 10:11 AM, Abimaran Kugathasan 
wrote:

> Hi,
>
>
> We can deploy aar files using ServiceAdminClient into a product. Can we do
> the same for war file. Does our automation framework support it?
>
> If so, can anybody please point me the Class or module name?
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


Re: [Dev] About Edge Analytics Service-Mobile IOT

2015-09-30 Thread Srinath Perera
Can we have an update today 1.30pm @Trace?

--Srinath

On Sat, Aug 29, 2015 at 12:26 AM, Lasantha Fernando 
wrote:

> That's great!...
>
> On 28 August 2015 at 18:25, Lakini Senanayaka  wrote:
>
>> Hi Lasantha,
>>
>> I have corrected the issue you mentioned above.Now the events are
>> processing correctly.
>>
>> Thank you.
>>
>> On Tue, Aug 25, 2015 at 11:38 PM, Lasantha Fernando 
>> wrote:
>>
>>> Hi Lakini,
>>>
>>> I earlier assumed that you would be using the latest Siddhi-3.0.0 which
>>> has the concept of different ExecutionPlanRuntimes. But looking at the
>>> code, it seems you are using Siddhi-2.1.0.wso2v1. In that case, my
>>> explanation about ExecutionPlanRuntime would be incorrect since
>>> Siddhi-2.1.0 did not have ExecutionPlanRuntimes. For Siddhi-2.1.0,
>>>
>>> 1. Multi-threading when sending events would work. But Siddhi itself
>>> would not streamline the events coming from different threads and handover
>>> the work to Siddhi's own threads. i.e. the thread that sends the event
>>> would be involved in processing and send the output event (unless
>>> siddhi-windows were involved). The Siddhi engine itself was not
>>> multithreaded, but it can handle events coming in from multiple threads. It
>>> is thread-safe.
>>>
>>> 2. When modifying queries using multiple threads, the queries were
>>> tracked by the query-id which involved a generated UUID. So if you added
>>> similar queries to the same SiddhiManager instance, it would be added as
>>> two different queries. To edit a query, you would have to remove the old
>>> query first using its query id and add the modified query.
>>>
>>> But looking at your code, it seems the two client apps are calling the
>>> IEdgeAnalyticsService.Stub.getService() method and in that method you are
>>> creating a new CEP instance each time, which in turn creates a new Siddhi
>>> manager. Given that, your two client apps would deploy their queries on two
>>> different Siddhi instances.
>>>
>>> However, if there is only one instance of the service itself, calling
>>> the RemoteService.getService() method simply creates a new CEP instance and
>>> assigns that to the instance variable. i.e. the second call would overwrite
>>> the reference to the CEP instance created by the first call. So definitely
>>> when you call the RemoteService.sendData() method, it would send those
>>> events to the CEP/Siddhi instance that was created by the second call, even
>>> if it is the first client that is sending the events.
>>>
>>> I think there is an issue in simply assigning a new instance to the
>>> 'cep' variable
>>> in com.example.lakini.edgeanalyticsservice.EdgeAnalyticsService
>>> IEdgeAnalyticsService.Stub.getService() method.
>>>
>>> Can you please correct this issue and see whether events are being
>>> processed correctly?
>>>
>>> Thanks,
>>> Lasantha
>>>
>>> On 25 August 2015 at 18:53, Lakini Senanayaka  wrote:
>>>
 Hi all,

 As per request I have shared my source code.You can find my sample
 project [1] from this link and I have point out the place[2][3][4] it will
 be easier to you to understand.

 [1] - sample edgeAnalyticsService
 
 [2] - EdgeAnalyticsService
 
 [3] - ClientApp1
 
 [4] -ClientApp2
 

 Thank you.

 On Tue, Aug 25, 2015 at 4:30 PM, Lasantha Fernando 
 wrote:

> Hi Srinath, Lakini,
>
> Siddhi is thread safe when sending events. You can send events via
> multiple threads without any issue.
>
> When changing queries via multiple threads, the execution plan runtime
> of the previous query would have to be shutdown manually. Looking at the
> current code, it seems that an ExecutionPlanRuntime instance would be
> created after the query is parsed and that would be put to a
> ConcurrentHashMap with the execution plan name (specified via annotations)
> as the key. So if you do not shutdown that old runtime, it will still keep
> running. But if you shutdown the execution plan from the client code, you
> should not encounter any issue. @Suho, please correct if my understanding
> is incorrect on this.
>
> @Lakini, if you are having two execution plans with different names
> and still it seems that one query is overriding the other, that is wrong.
> Can you share the execution plan syntax you are using for the two 

Re: [Dev] [DEV][DAS][ESB] Failed to initialise synapse after installing DAS features

2015-09-30 Thread Ruwan Yatawara
The error "java.lang.VerifyError: Bad type on operand stack" can pop up,
when all jars are not compiled from a one particular major version of the
language.

As seen below, the released version of ASM has been compiled with java 6. I
am not sure as to how this is the case, as the bundle seems to have been
released on top of GIT.

./asm-all_4.1.0.wso2v1.jar.unzip/META-INF/MANIFEST.MF:Build-Jdk: 1.6.0_33

ESB does not use the jar, but IOT does. However, when going through the
versions with which all jars have been compiled with, ASM is not the only
one that has been compiled with JAVA 6. So, i am not sure as to why this
particular jar is giving this problem.

Thanks and Regards,

Ruwan Yatawara

Senior Software Engineer,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://ruwansrants.blogspot.com/
www: :http://wso2.com


On Wed, Sep 30, 2015 at 6:47 PM, Ayyoob Hamza  wrote:

> Hi All,
> When we install DAS features to CDMF(This already have the APIM features),
> found a weird fatal exception which failed to start the synapse.
>
> [2015-09-30 18:23:51,439]  INFO
> {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Starting
> ESB...
> [2015-09-30 18:23:51,459]  INFO
> {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -
>  Initializing Apache Synapse...
> [2015-09-30 18:23:51,474] FATAL
> {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Failed to
> initialize ESB due to a fatal error
> java.lang.VerifyError: Bad type on operand stack
> Exception Details:
>   Location:
>
> org/apache/synapse/config/SynapseConfigUtils.getURLConnection(Ljava/net/URL;)Ljava/net/URLConnection;
> @289: invokevirtual
>   Reason:
> Type 'java/lang/Object' (current frame, stack[0]) is not assignable to
> 'java/net/URLConnection'
>   Current Frame:
> bci: @289
> flags: { }
> locals: { 'java/net/URL', 'java/lang/Object', 'java/util/Properties',
> 'java/lang/String', 'java/lang/String', 'java/util/List',
> 'java/lang/String', 'java/lang/String', 'java/lang/String', '[B',
> 'java/lang/String' }
> stack: { 'java/lang/Object', 'java/lang/String', 'java/lang/String' }
>   Bytecode:
> 000: 2ac7 001a b200 01b9 0020 0100 9900 0db2
>
> So when digged through the cause of this exception, I was able re-produce
> this error by only installing the analytics-core feature[1]. Further I was
> able find that the below bundle caused this exception.
> org.wso2.orbit.org.ow2.asm:asm-all[2]
>
> This can also be produced on the ESB 4.9.0 by installing the
> analytics-core feature.
>
> The above exception was solved  by deleting the above (asm-all) dependency
> on the pack.
>
> I wonder why this dependency is causing the synapse failure ?. Any
> thoughts on this would be helpful.
>
> [1]
> https://github.com/wso2/carbon-analytics/blob/master/features/analytics-core/org.wso2.carbon.analytics.core.server.feature/pom.xml
> [2] https://github.com/wso2/orbit/blob/master/asm/4.1.0.wso2v1/pom.xml
>
>
> Thanks
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][DAS][ESB] Failed to initialise synapse after installing DAS features

2015-09-30 Thread Ruwan Abeykoon
Hi Ruwan,

"Bad type on operand stack" typically means a jar which has super type
(interface or super class) has been incompatible due to method/class
signature change. see [1] "A wrong argument is passed to a method".

Cheers,
Ruwan

On Thu, Oct 1, 2015 at 8:28 AM, Ruwan Yatawara  wrote:

> The error "java.lang.VerifyError: Bad type on operand stack" can pop up,
> when all jars are not compiled from a one particular major version of the
> language.
>
> As seen below, the released version of ASM has been compiled with java 6.
> I am not sure as to how this is the case, as the bundle seems to have been
> released on top of GIT.
>
> ./asm-all_4.1.0.wso2v1.jar.unzip/META-INF/MANIFEST.MF:Build-Jdk: 1.6.0_33
>
> ESB does not use the jar, but IOT does. However, when going through the
> versions with which all jars have been compiled with, ASM is not the only
> one that has been compiled with JAVA 6. So, i am not sure as to why this
> particular jar is giving this problem.
>
> Thanks and Regards,
>
> Ruwan Yatawara
>
> Senior Software Engineer,
> WSO2 Inc.
>
> email : ruw...@wso2.com
> mobile : +94 77 9110413
> blog : http://ruwansrants.blogspot.com/
> www: :http://wso2.com
>
>
> On Wed, Sep 30, 2015 at 6:47 PM, Ayyoob Hamza  wrote:
>
>> Hi All,
>> When we install DAS features to CDMF(This already have the APIM
>> features), found a weird fatal exception which failed to start the synapse.
>>
>> [2015-09-30 18:23:51,439]  INFO
>> {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Starting
>> ESB...
>> [2015-09-30 18:23:51,459]  INFO
>> {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -
>>  Initializing Apache Synapse...
>> [2015-09-30 18:23:51,474] FATAL
>> {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Failed to
>> initialize ESB due to a fatal error
>> java.lang.VerifyError: Bad type on operand stack
>> Exception Details:
>>   Location:
>>
>> org/apache/synapse/config/SynapseConfigUtils.getURLConnection(Ljava/net/URL;)Ljava/net/URLConnection;
>> @289: invokevirtual
>>   Reason:
>> Type 'java/lang/Object' (current frame, stack[0]) is not assignable
>> to 'java/net/URLConnection'
>>   Current Frame:
>> bci: @289
>> flags: { }
>> locals: { 'java/net/URL', 'java/lang/Object', 'java/util/Properties',
>> 'java/lang/String', 'java/lang/String', 'java/util/List',
>> 'java/lang/String', 'java/lang/String', 'java/lang/String', '[B',
>> 'java/lang/String' }
>> stack: { 'java/lang/Object', 'java/lang/String', 'java/lang/String' }
>>   Bytecode:
>> 000: 2ac7 001a b200 01b9 0020 0100 9900 0db2
>>
>> So when digged through the cause of this exception, I was able re-produce
>> this error by only installing the analytics-core feature[1]. Further I was
>> able find that the below bundle caused this exception.
>> org.wso2.orbit.org.ow2.asm:asm-all[2]
>>
>> This can also be produced on the ESB 4.9.0 by installing the
>> analytics-core feature.
>>
>> The above exception was solved  by deleting the above (asm-all)
>> dependency on the pack.
>>
>> I wonder why this dependency is causing the synapse failure ?. Any
>> thoughts on this would be helpful.
>>
>> [1]
>> https://github.com/wso2/carbon-analytics/blob/master/features/analytics-core/org.wso2.carbon.analytics.core.server.feature/pom.xml
>> [2] https://github.com/wso2/orbit/blob/master/asm/4.1.0.wso2v1/pom.xml
>>
>>
>> Thanks
>> *Ayyoob Hamza*
>> *Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Ruwan Abeykoon*
*Architect,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

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


Re: [Dev] [DEV][DAS][ESB] Failed to initialise synapse after installing DAS features

2015-09-30 Thread Ruwan Yatawara
Yes Ruwan, thanks for the clarification, I guess what is happening here is
that. Somewhere there is an interface mismatch, due to all dependencies
concerned not being compiled in one go. So, we need to figure out which jar
with the mis-aligned interface is the culprit then.

Thanks and Regards,

Ruwan Yatawara

Senior Software Engineer,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://ruwansrants.blogspot.com/
www: :http://wso2.com


On Thu, Oct 1, 2015 at 9:42 AM, Ruwan Abeykoon  wrote:

> Hi Ruwan
> see [1] "A wrong argument is passed to a method".
>
> [1]
> http://examples.javacodegeeks.com/java-basics/exceptions/java-lang-verifyerror-how-to-solve-verifyerror/
>
> Cheers,
> Ruwan
>
> On Thu, Oct 1, 2015 at 9:28 AM, Ruwan Abeykoon  wrote:
>
>> Hi Ruwan,
>>
>> "Bad type on operand stack" typically means a jar which has super type
>> (interface or super class) has been incompatible due to method/class
>> signature change. see [1] "A wrong argument is passed to a method".
>>
>> Cheers,
>> Ruwan
>>
>> On Thu, Oct 1, 2015 at 8:28 AM, Ruwan Yatawara  wrote:
>>
>>> The error "java.lang.VerifyError: Bad type on operand stack" can pop
>>> up, when all jars are not compiled from a one particular major version of
>>> the language.
>>>
>>> As seen below, the released version of ASM has been compiled with java
>>> 6. I am not sure as to how this is the case, as the bundle seems to have
>>> been released on top of GIT.
>>>
>>> ./asm-all_4.1.0.wso2v1.jar.unzip/META-INF/MANIFEST.MF:Build-Jdk: 1.6.0_33
>>>
>>> ESB does not use the jar, but IOT does. However, when going through the
>>> versions with which all jars have been compiled with, ASM is not the only
>>> one that has been compiled with JAVA 6. So, i am not sure as to why this
>>> particular jar is giving this problem.
>>>
>>> Thanks and Regards,
>>>
>>> Ruwan Yatawara
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc.
>>>
>>> email : ruw...@wso2.com
>>> mobile : +94 77 9110413
>>> blog : http://ruwansrants.blogspot.com/
>>> www: :http://wso2.com
>>>
>>>
>>> On Wed, Sep 30, 2015 at 6:47 PM, Ayyoob Hamza  wrote:
>>>
 Hi All,
 When we install DAS features to CDMF(This already have the APIM
 features), found a weird fatal exception which failed to start the synapse.

 [2015-09-30 18:23:51,439]  INFO
 {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Starting
 ESB...
 [2015-09-30 18:23:51,459]  INFO
 {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -
  Initializing Apache Synapse...
 [2015-09-30 18:23:51,474] FATAL
 {org.wso2.carbon.mediation.initializer.ServiceBusInitializer} -  Failed to
 initialize ESB due to a fatal error
 java.lang.VerifyError: Bad type on operand stack
 Exception Details:
   Location:

 org/apache/synapse/config/SynapseConfigUtils.getURLConnection(Ljava/net/URL;)Ljava/net/URLConnection;
 @289: invokevirtual
   Reason:
 Type 'java/lang/Object' (current frame, stack[0]) is not assignable
 to 'java/net/URLConnection'
   Current Frame:
 bci: @289
 flags: { }
 locals: { 'java/net/URL', 'java/lang/Object',
 'java/util/Properties', 'java/lang/String', 'java/lang/String',
 'java/util/List', 'java/lang/String', 'java/lang/String',
 'java/lang/String', '[B', 'java/lang/String' }
 stack: { 'java/lang/Object', 'java/lang/String', 'java/lang/String'
 }
   Bytecode:
 000: 2ac7 001a b200 01b9 0020 0100 9900 0db2

 So when digged through the cause of this exception, I was able
 re-produce this error by only installing the analytics-core feature[1].
 Further I was able find that the below bundle caused this exception.
 org.wso2.orbit.org.ow2.asm:asm-all[2]

 This can also be produced on the ESB 4.9.0 by installing the
 analytics-core feature.

 The above exception was solved  by deleting the above (asm-all)
 dependency on the pack.

 I wonder why this dependency is causing the synapse failure ?. Any
 thoughts on this would be helpful.

 [1]
 https://github.com/wso2/carbon-analytics/blob/master/features/analytics-core/org.wso2.carbon.analytics.core.server.feature/pom.xml
 [2] https://github.com/wso2/orbit/blob/master/asm/4.1.0.wso2v1/pom.xml


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

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


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Ruwan Abeykoon*
>> *Architect,*
>> *WSO2, Inc. http://wso2.com  *
>> 

[Dev] Private PaaS 4.1.0 Beta Release Preparation

2015-09-30 Thread Imesh Gunaratne
Hi Devs,

I think we are now few steps away from doing $subject. Apache Stratos 4.1.3
was released few days back. The idea is to release Private PaaS 4.1.0-Beta
with Stratos 4.1.3.

We now have a separate git repository for cartridges. Once we move ESB,
API-M, IS and AS cartridges there and update JIRA I think we can go ahead
with $subject. Please update this thread with what you are currently
working on.

Thanks

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


Re: [Dev] [PPaaS] private-paas-cartridges repository structure

2015-09-30 Thread Gayan Gunarathne
Adding to the Dev list

On Thu, Oct 1, 2015 at 7:05 AM, Imesh Gunaratne  wrote:

> Shall we move this discussion to Dev?
>
> Thanks
>
> On Wed, Sep 30, 2015 at 11:02 PM, Gayan Gunarathne 
> wrote:
>
>> As puppet,init-scripts,base image are common for all the cartridges,shall
>> we group them under common?
>> Also what about the configurator?I can see two options
>> One option will be move the configurator to the private-paas repository
>> and release it with the private paas.Other option will be we can do the
>> separate release for the configurator.Seems it is better to have a separate
>> release for the configurator. WDYT?
>>
>> Thanks,
>> Gayan
>>
>> On Wed, Sep 30, 2015 at 10:44 PM, Gayan Gunarathne 
>> wrote:
>>
>>> Hi,
>>>
>>> On Wed, Sep 30, 2015 at 9:48 PM, Akila Ravihansa Perera <
>>> raviha...@wso2.com> wrote:
>>>
 +1 for having a simple folder structure. I think we can move the
 contents in /common/ folder to root folder. One can easily identify the
 important files available and easy to navigate as well.

 What should be the Maven groupId for this repo? How about
 "org.wso2.ppaas.cartridges" or "org.wso2.cartridges" ?

>>> We can use org.wso2.ppaas.cartridges as groupId
>>>
>>> Thanks,
>>> Gayan
>>>
>>>

>>>
 On Wed, Sep 30, 2015 at 9:24 PM, Imesh Gunaratne 
 wrote:

>  I would like to reduce the complexity of the folder structure and
> make it much simple. Shall we have some thing like below:
>
> private-paas-cartridges/
> |--/common/
>|--/configurator/
>|--/puppet/
>   |--/wso2-installer/
>|--/scripts/
>   |---/ec2/init.sh
>   |---/openstack/init.sh
>
> |--/wso2esb/4.9.0/
>|-/template-module/
>|-/cartridge-agent-plugins/
>|-/application/
>|-/docker/
>
> Thanks
>
> On Wed, Sep 30, 2015 at 9:13 PM, Imesh Gunaratne 
> wrote:
>
>> May be we can have this discussion in Dev, I cannot see any reason to
>> take this private.
>>
>> Thanks
>>
>> On Wed, Sep 30, 2015 at 6:26 PM, Gayan Gunarathne 
>> wrote:
>>
>>> Adding Engineering group
>>>
>>>
>>> -- Forwarded message --
>>> From: Gayan Gunarathne 
>>> Date: Wed, Sep 30, 2015 at 6:26 PM
>>> Subject: [PPaaS] private-paas-cartridges repository structure
>>> To: Imesh Gunaratne , Reka Thirunavukkarasu <
>>> r...@wso2.com>, Udara Liyanage , Lahiru Sandaruwan <
>>> lahi...@wso2.com>, Rajkumar Rajaratnam , Sajith
>>> Kariyawasam , Isuru Haththotuwa ,
>>> Lasindu Charith , Akila Ravihansa Perera <
>>> raviha...@wso2.com>, Chamila De Alwis , Vishanth
>>> Balasubramaniam , Dinithi De Silva <
>>> dinit...@wso2.com>, Anuruddha Liyanarachchi ,
>>> Pubudu Gunatilaka , Thanuja Uruththirakodeeswaran
>>> 
>>>
>>>
>>> Hi All,
>>>
>>> Shall we have the following structure with
>>> the private-paas-cartridges[1] repository
>>>
>>> 1. Maintain the separate directory for each cartridge
>>>
>>> Suggested directory structure as following
>>>
>>> .
>>>
>>> ├── base-image
>>>
>>> │   └── docker
>>>
>>> │   └── scripts
>>>
>>> │   └── start-agent.sh
>>>
>>> ├── vm
>>>
>>> │   ├── init-scripts
>>>
>>> │   │
>>>
>>> │   ├── puppet
>>>
>>> │   │
>>>
>>> │   └── README.md
>>>
>>> ├── wso2_product
>>>
>>>   ├──  Version
>>>
>>> │   ├── docker
>>>
>>> │   │
>>>
>>> │   ├── plugins
>>>
>>> │   │
>>>
>>> │   ├── templates-modules
>>>
>>> │   │
>>>
>>> │   ├── Samples
>>>
>>> │   └── README.md
>>>
>>>
>>>
>>> Also we can move the samples to the related product folder. Then as
>>> a best practice we need to have a separate sample for each cartridge.
>>>
>>> Advantage of this structure is we will be able to release the
>>> cartridges separately. We don't need to wait for a PPaaS cartridges
>>> repository release for release the cartridge.
>>>
>>> 2. Move the configurator to the private-paas repo or other repo as
>>> the responsibility of the configurator is to generate the products
>>> configurations based on the 

Re: [Dev] UES build failure after updating to identity 4.6.0.alpha

2015-09-30 Thread Udara Rathnayake
Thanks for the quick update. Will do the UES m4 release with this.

On Wed, Sep 30, 2015 at 7:43 PM, Maduranga Siriwardena 
wrote:

> Hi Udara,
>
> We now pack slf4j-api and slf4j-log4j12 with the features that pack oltu.
> And we have removed the dependency to 
> org.wso2.carbon.identity.provider.server.feature
> from org.wso2.carbon.identity.oauth.feature. So there is no need for 
> net.sf.ehcache
> package. Changes will be available in carbon-identity 4.5.6-beta release.
>
> You will have to remove org.wso2.carbon.identity.provider.server.feature
> from product-ues (as you have added 
> org.wso2.carbon.identity.provider.server.feature
> to product-ues as there is a importFeatureDef to it
> from org.wso2.carbon.identity.oauth.server.feature)
>
> Thanks,
> Maduranga.
>
> On Tue, Sep 29, 2015 at 11:22 AM, Udara Rathnayake 
> wrote:
>
>> Hi Maduranga,
>>
>> Please have a look at Identity Provider Server Feature[1] as well. As a
>> temporary workaround to get UES m3 out we have added following to one of
>> our features(which is wrong). P.lease update this thread once you release
>> beta with relevant fixes.
>> Created jira[2]
>>
>> org.slf4j:slf4j-log4j12
>> org.slf4j:slf4j-api
>> net.sf.ehcache.wso2:ehcache
>>
>> [1]
>> Cannot complete the install because one or more required items could not
>> be found.
>>  Software being installed: Identity Provider Server Feature 4.6.0.alpha
>> (org.wso2.carbon.identity.provider.server.feature.group 4.6.0.alpha)
>>  Missing requirement: openid4java 1.0.0.wso2v1 (openid4java 1.0.0.wso2v1)
>> requires 'package net.sf.ehcache [1.5.0,1.6.0)' but it could not be found
>>  Cannot satisfy dependency:
>>   From: Identity Provider Server Feature 4.6.0.alpha
>> (org.wso2.carbon.identity.provider.server.feature.group 4.6.0.alpha)
>>   To: openid4java [1.0.0.wso2v1]
>> Application failed, log file location:
>> /tmp/m2-ues2/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1443504549355.log
>>
>> [INFO]
>> 
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] WSO2 User Engagement Server ... SUCCESS
>> [0.913s]
>> [INFO] UES Server - UI styles  SUCCESS
>> [1.275s]
>> [INFO] WSO2 Carbon - User Engagement Server Feature Module  SUCCESS
>> [0.025s]
>> [INFO] WSO2 Carbon - UES feature . SUCCESS
>> [0.580s]
>> [INFO] UES - Profile Generation .. FAILURE
>> [11.781s]
>> [INFO] WSO2 User Engagement Server - Distribution  SKIPPED
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 15.412s
>> [INFO] Finished at: Tue Sep 29 10:59:13 IST 2015
>> [INFO] Final Memory: 23M/329M
>> [INFO]
>> 
>>
>> [2] https://wso2.org/jira/browse/IDENTITY-3672
>>
>>
>> On Mon, Sep 28, 2015 at 7:21 PM, Maduranga Siriwardena <
>> madura...@wso2.com> wrote:
>>
>>> Hi Udara,
>>>
>>> We are planing to release carbon-identity beta 15th of October.
>>>
>>> Thanks,
>>> Maduranga
>>>
>>> On Mon, Sep 28, 2015 at 7:18 PM, Udara Rathnayake 
>>> wrote:
>>>
 Hi Maduraga,

 When are you planning to do the 4.6.0 beta release?

 On Mon, Sep 28, 2015 at 3:21 PM, Maduranga Siriwardena <
 madura...@wso2.com> wrote:

> Hi Udara,
>
> We have created a new orbit bundle for oltu (which is previously known
> as amber) to remove forked amber repository. oltu is packed from OAuth
> feature and seems like this feature installation causes issues due to the
> absence of slf4j new version. We haven't encountered any issues with this
> feature installation since we pack this version of slf4j from some other
> features.  We will pack it from Oauth feature in carbon-identity beta
> release.
>
> Meanwhile if you are packing slf4j, can please upgrade your slf4j
> version to 1.6.1.
>
> Thanks,
> Maduranga
>
> On Mon, Sep 28, 2015 at 1:36 PM, Udara Rathnayake 
> wrote:
>
>> Hi Identity team,
>>
>> Getting following build failure. Any idea about this?
>> Do we need to add org.slf4j as a dependency?
>>
>> Software being installed: OAuth Feature 4.6.0.alpha
>> (org.wso2.carbon.identity.oauth.feature.group 4.6.0.alpha)
>>  Missing requirement: oltu 1.0.0.wso2v1 (oltu 1.0.0.wso2v1) requires
>> 'package org.slf4j [1.6.1,1.7.0)' but it could not be found
>>  Cannot satisfy dependency:
>>   From: WSO2 Carbon - OAuth Common 4.6.0.alpha
>> (org.wso2.carbon.identity.oauth.common 4.6.0.alpha)
>>   To: package org.apache.oltu.oauth2.common.validators [1.0.0,1.1.0)
>>  Cannot satisfy dependency:
>>   From: Identity OAuth 

[Dev] Getting PKIX path building failed

2015-09-30 Thread Sriashalya Srivathsan
Hi

Getting the following error while adding the keystore to IS which is
provided by the API.

javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target

I've added the certificate to java cacerts and wso2 IS.


-- 
Regards
S.Sriashalya,
WSO2 *Inc*.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB 4.9.0 - NPE occurs in tenant APIs with same context and different versions

2015-09-30 Thread Chanaka Fernando
Hi All,

We are looking into this issue.

On Thu, Oct 1, 2015 at 10:37 AM, Sandapa Handakumbura 
wrote:

> Hi Nuwan,
>
> I faced a similar issue during ESB 4.9.0 release testing. First request
> for proxy services (after tenant unloading/ server restart) failed in
> tenant mode [1]. Unfortunately ESB team could not reproduce it and I could
> not identify the exact steps to reproduce it either.
>
> Hope the team will look in to this since you have identified steps to
> reproduce the issue.
>
> [1] https://wso2.org/jira/browse/ESBJAVA-4142
>
> Thanks,
> Sandapa
>
>
> On Thu, Oct 1, 2015 at 4:47 AM, Nuwan Dias  wrote:
>
>> Hi,
>>
>> I have a scenario on the ESB where I have created two APIs with the same
>> context in the tenant space. The first API doesn't have a version and the
>> second API has a version. The first API receives the request and forwards
>> to the second API. See illustration below.
>>
>> Client (/twitter) --> Twitter_API (/twitter/1.0.0) --> Twitter_API_v1.0.0
>>
>> This scenario however causes the following [1] NPE on the first request
>> that's sent to the server. The subsequent requests pass until a server
>> restart happens.
>>
>> I tried logging into the management console of the ESB using tenant
>> credentials to check whether it was related to tenant loading. The first
>> request still failed with the same error. Any idea why this is happening?
>> This issue first occurred to me in API Manager after migrating to the
>> latest released version of Synapse. And is causing test failures in the
>> product. It worked fine in the older versions of Synapse (2.1.2- version
>> range).
>>
>> [1]
>>
>> [2015-10-01 04:41:39,519] ERROR - PassThroughHttpSender Failed to submit
>> the response
>> java.lang.NullPointerException
>> at
>> org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)
>> at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)
>> at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at
>> org.wso2.carbon.core.multitenancy.transports.TenantTransportSender.invoke(TenantTransportSender.java:231)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>> at
>> org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
>> at
>> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
>> at
>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
>> at
>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
>> at org.apache.synapse.rest.Resource.process(Resource.java:297)
>> at org.apache.synapse.rest.API.process(API.java:335)
>> at
>> org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:97)
>> at
>> org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:52)
>> at
>> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:266)
>> 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.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.processResponse(MultitenantMessageReceiver.java:166)
>> at
>> org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.receive(MultitenantMessageReceiver.java:82)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>> at
>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
>> 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)
>> [2015-10-01 04:41:39,521] ERROR - Axis2Sender
>> Access-Control-Allow-Credentials:true,Access-Control-Allow-Methods:GET,
>> POST,Access-Control-Allow-Origin:*,Content-Type:application/json;
>> charset=utf-8,X-Source:redis,> encoding='utf-8'?>http://www.w3.org/2003/05/soap-envelope;>
>> Unexpected error sending message back
>> org.apache.axis2.AxisFault: Failed to submit the response
>> at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.handleException(PassThroughHttpSender.java:610)
>> at
>> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:269)
>> at 

Re: [Dev] Getting PKIX path building failed

2015-09-30 Thread Malintha Adikari
Hi Sriashalya,

Are you getting this error while sending requests to IS ? When you install
new keystore to wso2 product you have to configure it in carbon.xml also.




${carbon.home}/repository/resources/security/wso2carbon.jks

JKS

wso2carbon

wso2carbon

wso2carbon


Regards,
Malintha

On Thu, Oct 1, 2015 at 10:35 AM, Sriashalya Srivathsan 
wrote:

> Hi
>
> Getting the following error while adding the keystore to IS which is
> provided by the API.
>
> javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
>
> I've added the certificate to java cacerts and wso2 IS.
>
>
> --
> Regards
> S.Sriashalya,
> WSO2 *Inc*.
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

Mobile: +94 71 2312958
Blog:http://malinthas.blogspot.com
Page:   http://about.me/malintha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [CEP] Integrating ML extension in CEP distributed mode setup

2015-09-30 Thread Sashika Wijesinghe
Hi All,

I have setup the environment according to the instructions given in Doc
[1]. To test the scenario I have setup the CEP cluster in local machine and
connected to the storm cluster setup in QA cloud and installed ml features
in both manager node and worker node.

When I started worker node with -DworkerNode=true property "*Caused by:
org.wso2.siddhi.query.api.exception.ExecutionPlanValidationException: No
extension exist for StreamFunctionExtension{namespace='ml'}  in execution
plan "ExecutionPlanML*" observed in worker node. Reported a JIRA [2] for
this issue (test artifacts are attached with the issue).

Since there was an exception when starting with -DworkerNode=true property,
I have started the worker node without that property. And send events to
worker node. Then I observed "*java.lang.RuntimeException:
org.wso2.siddhi.query.api.exception.ExecutionPlanValidationException: No
extension exist for StreamFunctionExtension*
*{namespace='ml'}*" exception in Storm UI.

May I know the reason for above error? Do I need to refer ml features in
storm as well?

[1]
https://docs.wso2.com/display/CEP400/Predictive+Analytics+with+WSO2+Machine+Learner
[2] https://wso2.org/jira/browse/CEP-1405

Any help is highly appreciated.

On Fri, Sep 18, 2015 at 10:49 AM, Manorama Perera  wrote:

> Hi Sashika,
>
> The doc [1] is now updated with the steps to update the storm dependency
> jar.
>
> [1]
> https://docs.wso2.com/display/CEP400/Predictive+Analytics+with+WSO2+Machine+Learner
>
> Thanks.
>
> On Thu, Sep 17, 2015 at 11:10 PM, Nirmal Fernando  wrote:
>
>> Hi Suho,
>>
>> Mano started to work on a document on this.
>>
>> On Thu, Sep 17, 2015 at 11:06 PM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>>
>>>
>>> On Thu, Sep 17, 2015 at 8:55 PM, Sashika Wijesinghe 
>>> wrote:
>>>
 Hi All,

 I want to test how ML extension can be integrated with CEP storm
 distributed cluster. So for that I have set up CEP with a manager node and
 a worker node. And installed ML features using p2-repository in manager
 node. Then deployed an event flow in CEP manager node and send events to
 the receiver in worker node. Then I observed " No extension exist for
 StreamFunctionExtension{namespace='ml'}  in execution plan
 "ExecutionPlanML" in worker node.

>>>
 To overcome this issue, I have started worker node without
 "-DworkerNode=true" argument and installed ML features in worker node as
 well. Then restart the entire cluster (worker started with
 -DworkerNode=true) and send events to the worker node. But events are not
 logged in worker node (logger publisher is used).

 Further I have tested the same flow in standalone CEP pack according to
 the instructions given in [1]
 
 , and it works as expected.
 [1]
 https://docs.wso2.com/display/CEP400/Predictive+Analytics+with+WSO2+Machine+Learner


 Please help me to clarify below issues

 1) When we setup a storm distributed cluster and installed a feature in
 manager node, isn't there any way of synchronizing that feature details
 with worker node rather than installing the same features in worker node?

 No this is not supported in WSO2 Servers, need to install in all nodes.
>>>
>>>
 2) Even after I installed the feature in worker node I didn't get any
 events. What can be the possible reasons for that?

 Since there are no documentation on how to set up the ML extension in
 CEP storm distribute cluster , it would be better to update the documents
 with relevant details.

 We have to also update the storm dependency jar, @ML forks can you
>>> update the docs with the storm story too?
>>>
>>> Regards
>>> Suho
>>>
>>>
 Appreciate your help on this matter.

 Thanks

 --

 *Sashika WijesingheSoftware Engineer - QA Team*
 Mobile : +94 (0) 774537487
 sash...@wso2.com

>>>
>>>
>>>
>>> --
>>>
>>> *S. Suhothayan*
>>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>> *WSO2 Inc. *http://wso2.com
>>> * *
>>> lean . enterprise . middleware
>>>
>>>
>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>>> http://suhothayan.blogspot.com/ twitter:
>>> http://twitter.com/suhothayan  | linked-in:
>>> http://lk.linkedin.com/in/suhothayan *
>>>
>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Team Lead - WSO2 Machine Learner
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
> Manorama Perera
> Software Engineer
> WSO2, Inc.;  http://wso2.com/
> Mobile : +94716436216
>



-- 

*Sashika WijesingheSoftware Engineer - QA 

Re: [Dev] ESB 4.9.0 - NPE occurs in tenant APIs with same context and different versions

2015-09-30 Thread Sandapa Handakumbura
Hi Nuwan,

I faced a similar issue during ESB 4.9.0 release testing. First request for
proxy services (after tenant unloading/ server restart) failed in tenant
mode [1]. Unfortunately ESB team could not reproduce it and I could not
identify the exact steps to reproduce it either.

Hope the team will look in to this since you have identified steps to
reproduce the issue.

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

Thanks,
Sandapa


On Thu, Oct 1, 2015 at 4:47 AM, Nuwan Dias  wrote:

> Hi,
>
> I have a scenario on the ESB where I have created two APIs with the same
> context in the tenant space. The first API doesn't have a version and the
> second API has a version. The first API receives the request and forwards
> to the second API. See illustration below.
>
> Client (/twitter) --> Twitter_API (/twitter/1.0.0) --> Twitter_API_v1.0.0
>
> This scenario however causes the following [1] NPE on the first request
> that's sent to the server. The subsequent requests pass until a server
> restart happens.
>
> I tried logging into the management console of the ESB using tenant
> credentials to check whether it was related to tenant loading. The first
> request still failed with the same error. Any idea why this is happening?
> This issue first occurred to me in API Manager after migrating to the
> latest released version of Synapse. And is causing test failures in the
> product. It worked fine in the older versions of Synapse (2.1.2- version
> range).
>
> [1]
>
> [2015-10-01 04:41:39,519] ERROR - PassThroughHttpSender Failed to submit
> the response
> java.lang.NullPointerException
> at
> org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:64)
> at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.submitResponse(PassThroughHttpSender.java:462)
> at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:267)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
> org.wso2.carbon.core.multitenancy.transports.TenantTransportSender.invoke(TenantTransportSender.java:231)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:212)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:444)
> at
> org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:102)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
> at
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
> at
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
> at org.apache.synapse.rest.Resource.process(Resource.java:297)
> at org.apache.synapse.rest.API.process(API.java:335)
> at
> org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:97)
> at
> org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:52)
> at
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:266)
> 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.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.processResponse(MultitenantMessageReceiver.java:166)
> at
> org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.receive(MultitenantMessageReceiver.java:82)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:247)
> 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)
> [2015-10-01 04:41:39,521] ERROR - Axis2Sender
> Access-Control-Allow-Credentials:true,Access-Control-Allow-Methods:GET,
> POST,Access-Control-Allow-Origin:*,Content-Type:application/json;
> charset=utf-8,X-Source:redis, encoding='utf-8'?>http://www.w3.org/2003/05/soap-envelope;>
> Unexpected error sending message back
> org.apache.axis2.AxisFault: Failed to submit the response
> at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.handleException(PassThroughHttpSender.java:610)
> at
> org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(PassThroughHttpSender.java:269)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at
> org.wso2.carbon.core.multitenancy.transports.TenantTransportSender.invoke(TenantTransportSender.java:231)
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
> at 

Re: [Dev] Get Absolute Path Of File In App Cloud

2015-09-30 Thread Sajith Ariyarathna
Hi Lasantha,

Please find my comments inline.


> As sajith said can read certificate file using Jaggery File object. But
> is there a way to get public key from that way??
>
You cannot get the public key using Jaggery File object since File object
represent a file, not a security certificate.

*code*
> inputStream = new Packages.java.io.FileInputStream(certificatePath);
> var key =
> Packages.java.security.cert.CertificateFactory.getInstance("X.509").generateCertificate(inputStream).getPublicKey();
>
This Java code should work. Set certificatePath =
"/repository/deployment/server/jaggeryapps/Parkingapp/resources/wso2defaultpub.ce"
.

Thanks.

On Thu, Oct 1, 2015 at 7:29 AM, Lasantha Dharmakeerthi 
wrote:

> Hi
> All
>
> I use java inside my jaggery app to read certificate file and get public
> key.
>
> *code*
> inputStream = new Packages.java.io.FileInputStream(certificatePath);
> var key =
> Packages.java.security.cert.CertificateFactory.getInstance("X.509").generateCertificate(inputStream).getPublicKey();
>
> As sajith said can read certificate file using Jaggery File object. But
> is there a way to get public key from that way??
>
> Can't I read certificate file in my application context by giving path
> likewise in my local app ?
>
> If it is possible to read file as in local app how can I get absolute path
> to my certificate file in cloud app??
>
> *url*
>
> https://appserver.dev.cloud.wso2.com/t/dlpds3331/jaggeryapps/wso2parkingapp-default-SNAPSHOT
>
> Thanks
> Lasantha.
>
>
>
>
> On Wed, Sep 30, 2015 at 7:50 PM, Sajith Ariyarathna 
> wrote:
>
>> Hi Lasantha,
>>
>> Jaggery server runs on top of Carbon. So Java libraries which are added
>> to Carbon are also available in Jaggery. External Java libraries can be
>> added to Carbon by dropping them into 
>> /repository/components/lib directory (more details [1]). Don't forget to
>> restart the server.
>>
>> [1]
>> http://wso2.com/library/knowledgebase/add-external-jar-libraries-wso2-carbon-based-products/
>>
>>
>> On Wed, Sep 30, 2015 at 4:40 PM, Lasantha Dharmakeerthi <
>> lasant...@wso2.com> wrote:
>>
>>> hi
>>> Sajitha
>>>
>>> I use some .jar files and I have included them into components/lib
>>> folder. Can I add those .jar files inside the jagerry app and use to get
>>> same functionalities?
>>>
>>> Above code is working well when I give absolute path.
>>>
>>> Thanks
>>>
>>> Lasantha
>>>
>>> On Wed, Sep 30, 2015 at 4:38 PM, Lasantha Dharmakeerthi <
>>> lasant...@wso2.com> wrote:
>>>
 Hi
 Sajith

 Can I get public key of certificate using this way. I tried this one
 but couldn't get public key.

 this is the my code

   function getPublicKey(certificatePath){

 var inputStream = null;

 try{

   log.debug("Reading certificate from ");
   inputStream = new
 Packages.java.io.FileInputStream(certificatePath);

   var key =
 Packages.java.security.cert.CertificateFactory.getInstance("X.509").generateCertificate(inputStream).getPublicKey();

   return key;
 }catch(e){
   log.error("Error while getting the public key. " + e);
   throw e;
 }finally{

   if(inputStream){
 inputStream.close();
   }
 }

 return null;

   }

 Thanks
 Lasantha

 On Wed, Sep 30, 2015 at 4:23 PM, Sajith Ariyarathna 
 wrote:

> Hi Lasantha,
>
> Assuming,
>
> You are reading the certificate file using Jaggery.
>
> In your Jaggery app, certificate file is in '
> *resources/wso2defaultpub.cer*' path
>
> You can read your file using Jaggery File [1] object. Refer following
> code snippet.
>
> var certFile = new File("/resources/wso2defaultpub.cer");
> var content = certFile.readAll();
>
> [1] http://jaggeryjs.org/documentation.jag?api=file
>
> Thanks.
>
> On Wed, Sep 30, 2015 at 3:11 PM, Lasantha Dharmakeerthi <
> lasant...@wso2.com> wrote:
>
>> Hi
>> Devs
>>
>> I have created jaggery app and deployed it in wso2 app cloud. I have
>> method to read a certificate file and certificate is in the jaggery
>>  app.
>>
>> In local Aplication Server I used file path like wise “
>> repository/deployment/server/jaggeryapps/Parkingapp
>> /resources/wso2defaultpub.cer”
>>
>> So how can I get path to my certificate file in WSO2 App Cloud? Is it
>> same structure?
>>
>> Thanks
>> Lasantha.
>>
>> --
>> Dharmakeerthi Lasantha
>> Software Engineer Trainee, WSO2
>> Mobile 0774928852
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sajith Ariyarathna
> Software Engineer; WSO2, Inc.;  

Re: [Dev] Getting PKIX path building failed

2015-09-30 Thread Sriashalya Srivathsan
Thanx Malintha, I'll check on that

On Thu, Oct 1, 2015 at 10:49 AM, Malintha Adikari  wrote:

> Hi Sriashalya,
>
> Are you getting this error while sending requests to IS ? When you install
> new keystore to wso2 product you have to configure it in carbon.xml also.
>
> 
> 
>
> ${carbon.home}/repository/resources/security/wso2carbon.jks
> 
> JKS
> 
> wso2carbon
> 
> wso2carbon
> 
> wso2carbon
> 
>
> Regards,
> Malintha
>
> On Thu, Oct 1, 2015 at 10:35 AM, Sriashalya Srivathsan 
> wrote:
>
>> Hi
>>
>> Getting the following error while adding the keystore to IS which is
>> provided by the API.
>>
>> javax.net.ssl.SSLHandshakeException:
>> sun.security.validator.ValidatorException: PKIX path building failed:
>> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
>> valid certification path to requested target
>>
>> I've added the certificate to java cacerts and wso2 IS.
>>
>>
>> --
>> Regards
>> S.Sriashalya,
>> WSO2 *Inc*.
>> lean . enterprise . middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Malintha Adikari*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile: +94 71 2312958
> Blog:http://malinthas.blogspot.com
> Page:   http://about.me/malintha
>



-- 
Regards
S.Sriashalya,
WSO2 *Inc*.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Registry] Registry java.sql.SQLException: Lock wait timeout exceeded

2015-09-30 Thread Malith Munasinghe
Hi All,

Recently on app cloud we faced an locked timeout exceeded issue on
registry. This kept application creation down for a while. Is there any
suggestions on how to keep these kind of issues from occurring.

Attached is the error log that was observed.

Regards,
Malith.

-- 
Malith Munasinghe | Software Engineer
M: +94 (071) 9401122
E: mali...@wso2.com
W: http://wso2.com


TID: [0] [AF] [2015-09-30 18:54:48,271] ERROR {org
Description: Binary data
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get Absolute Path Of File In App Cloud

2015-09-30 Thread Sajith Ariyarathna
Hi Lasantha,

For Jaggery, working directory is your app directory which is in
/repository/deployment/server/jaggeryapps/ .
However if you are using Java inside Jaggery, for those Java codes working
directory is carbon product directory .

Hence variable certificatePath should be
repository/deployment/server/jaggeryapps/Parkingapp/resources/wso2defaultpub.ce

Thanks.

On Wed, Sep 30, 2015 at 4:38 PM, Lasantha Dharmakeerthi 
wrote:

> Hi
> Sajith
>
> Can I get public key of certificate using this way. I tried this one but
> couldn't get public key.
>
> this is the my code
>
>   function getPublicKey(certificatePath){
>
> var inputStream = null;
>
> try{
>
>   log.debug("Reading certificate from ");
>   inputStream = new Packages.java.io.FileInputStream(certificatePath);
>
>   var key =
> Packages.java.security.cert.CertificateFactory.getInstance("X.509").generateCertificate(inputStream).getPublicKey();
>
>   return key;
> }catch(e){
>   log.error("Error while getting the public key. " + e);
>   throw e;
> }finally{
>
>   if(inputStream){
> inputStream.close();
>   }
> }
>
> return null;
>
>   }
>
> Thanks
> Lasantha
>
> On Wed, Sep 30, 2015 at 4:23 PM, Sajith Ariyarathna 
> wrote:
>
>> Hi Lasantha,
>>
>> Assuming,
>>
>> You are reading the certificate file using Jaggery.
>>
>> In your Jaggery app, certificate file is in '
>> *resources/wso2defaultpub.cer*' path
>>
>> You can read your file using Jaggery File [1] object. Refer following
>> code snippet.
>>
>> var certFile = new File("/resources/wso2defaultpub.cer");
>> var content = certFile.readAll();
>>
>> [1] http://jaggeryjs.org/documentation.jag?api=file
>>
>> Thanks.
>>
>> On Wed, Sep 30, 2015 at 3:11 PM, Lasantha Dharmakeerthi <
>> lasant...@wso2.com> wrote:
>>
>>> Hi
>>> Devs
>>>
>>> I have created jaggery app and deployed it in wso2 app cloud. I have
>>> method to read a certificate file and certificate is in the jaggery app.
>>>
>>> In local Aplication Server I used file path like wise “
>>> repository/deployment/server/jaggeryapps/Parkingapp
>>> /resources/wso2defaultpub.cer”
>>>
>>> So how can I get path to my certificate file in WSO2 App Cloud? Is it
>>> same structure?
>>>
>>> Thanks
>>> Lasantha.
>>>
>>> --
>>> Dharmakeerthi Lasantha
>>> Software Engineer Trainee, WSO2
>>> Mobile 0774928852
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sajith Ariyarathna
>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>> mobile: +94 77 6602284, +94 71 3951048
>>
>
>
>
> --
> Dharmakeerthi Lasantha
> Software Engineer Trainee, WSO2
> Mobile 0774928852
>



-- 
Sajith Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/
mobile: +94 77 6602284, +94 71 3951048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Suppression file not found - carbon-transports

2015-09-30 Thread Afkham Azeez
The location has been changed to
https://github.com/wso2/code-quality-tools/tree/master/checkstyle

I have updated the carbon-kernel 5.0.x branch, carbon-transports &
product-gw

On Mon, Sep 28, 2015 at 12:02 PM, Afkham Azeez  wrote:

> We need to create a GitHub repo called code-quality-tools and then copy
> these scripts & config files to that repo.
>
> On Mon, Sep 28, 2015 at 10:34 AM, Kasun Indrasiri  wrote:
>
>> Fixed with the suggested approach.
>>
>> On Mon, Sep 28, 2015 at 9:56 AM, Sameera Jayasoma 
>> wrote:
>>
>>> Hi All,
>>>
>>> This suppressions.xml file was hard coded in the codebase. Fix is
>>> available with the following commit.
>>>
>>>
>>> https://github.com/wso2/carbon-kernel/commit/cc292e9a941f54c41141a24abe1743daf57ba6b6
>>>
>>> We need to find a better solution to this.
>>>
>>> Thanks,
>>> Sameera.
>>>
>>> On Sun, Sep 27, 2015 at 11:14 PM, Afkham Azeez  wrote:
>>>
 This would have got affected after the recent repo merge of Carbon 4
 and Carbon 5.

 On Sun, Sep 27, 2015 at 9:25 PM, Dulitha Wijewantha 
 wrote:

> Hi guys,
> I am trying to build the repo carbon-transports but it gives me the
> below error
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check (validate) on
> project org.wso2.carbon.transport.http.netty: Failed during checkstyle
> execution: Unable to find suppressions file at location:
> https://raw.githubusercontent.com/wso2/carbon-kernel/master/suppressions.xml:
> Could not find resource '
> https://raw.githubusercontent.com/wso2/carbon-kernel/master/suppressions.xml'.
> -> [Help 1]
>
> After checking - I found out that the suppressions.xml file is not in
> the master branch but in 5.0.x [1] branch. Any reason for not changing
> this?
>
> Also there seems to be no build for it in jenkins.
>
> [1] -
> https://raw.githubusercontent.com/wso2/carbon-kernel/5.0.x/suppressions.xml
>
> Cheers~
>
> --
> Dulitha Wijewantha (Chan)
> Software Engineer - Mobile Development
> WSO2 Inc
> Lean.Enterprise.Middleware
>  * ~Email   duli...@wso2.com *
> *  ~Mobile +94712112165 <%2B94712112165>*
> *  ~Website   dulitha.me *
> *  ~Twitter @dulitharw *
>   *~Github @dulichan *
>   *~SO @chan *
>



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

 *Lean . Enterprise . Middleware*

>>>
>>>
>>>
>>> --
>>> Sameera Jayasoma,
>>> Software Architect,
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://blog.sameera.org
>>> twitter: https://twitter.com/sameerajayasoma
>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>> Mobile: 0094776364456
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Kasun Indrasiri
>> Software Architect
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 77 556 5206
>> Blog : http://kasunpanorama.blogspot.com/
>>
>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* *
*email: **az...@wso2.com* 
* cell: +94 77 3320919blog: **http://blog.afkham.org*

*twitter: **http://twitter.com/afkham_azeez*

*linked-in: **http://lk.linkedin.com/in/afkhamazeez
*

*Lean . Enterprise . Middleware*
___
Dev 

Re: [Dev] UES build failure after updating to identity 4.6.0.alpha

2015-09-30 Thread Maduranga Siriwardena
Hi Udara,

We now pack slf4j-api and slf4j-log4j12 with the features that pack oltu.
And we have removed the dependency to
org.wso2.carbon.identity.provider.server.feature
from org.wso2.carbon.identity.oauth.feature. So there is no need for
net.sf.ehcache
package. Changes will be available in carbon-identity 4.5.6-beta release.

You will have to remove org.wso2.carbon.identity.provider.server.feature
from product-ues (as you have added
org.wso2.carbon.identity.provider.server.feature
to product-ues as there is a importFeatureDef to it
from org.wso2.carbon.identity.oauth.server.feature)

Thanks,
Maduranga.

On Tue, Sep 29, 2015 at 11:22 AM, Udara Rathnayake  wrote:

> Hi Maduranga,
>
> Please have a look at Identity Provider Server Feature[1] as well. As a
> temporary workaround to get UES m3 out we have added following to one of
> our features(which is wrong). P.lease update this thread once you release
> beta with relevant fixes.
> Created jira[2]
>
> org.slf4j:slf4j-log4j12
> org.slf4j:slf4j-api
> net.sf.ehcache.wso2:ehcache
>
> [1]
> Cannot complete the install because one or more required items could not
> be found.
>  Software being installed: Identity Provider Server Feature 4.6.0.alpha
> (org.wso2.carbon.identity.provider.server.feature.group 4.6.0.alpha)
>  Missing requirement: openid4java 1.0.0.wso2v1 (openid4java 1.0.0.wso2v1)
> requires 'package net.sf.ehcache [1.5.0,1.6.0)' but it could not be found
>  Cannot satisfy dependency:
>   From: Identity Provider Server Feature 4.6.0.alpha
> (org.wso2.carbon.identity.provider.server.feature.group 4.6.0.alpha)
>   To: openid4java [1.0.0.wso2v1]
> Application failed, log file location:
> /tmp/m2-ues2/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1443504549355.log
>
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 User Engagement Server ... SUCCESS [0.913s]
> [INFO] UES Server - UI styles  SUCCESS [1.275s]
> [INFO] WSO2 Carbon - User Engagement Server Feature Module  SUCCESS
> [0.025s]
> [INFO] WSO2 Carbon - UES feature . SUCCESS [0.580s]
> [INFO] UES - Profile Generation .. FAILURE
> [11.781s]
> [INFO] WSO2 User Engagement Server - Distribution  SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 15.412s
> [INFO] Finished at: Tue Sep 29 10:59:13 IST 2015
> [INFO] Final Memory: 23M/329M
> [INFO]
> 
>
> [2] https://wso2.org/jira/browse/IDENTITY-3672
>
>
> On Mon, Sep 28, 2015 at 7:21 PM, Maduranga Siriwardena  > wrote:
>
>> Hi Udara,
>>
>> We are planing to release carbon-identity beta 15th of October.
>>
>> Thanks,
>> Maduranga
>>
>> On Mon, Sep 28, 2015 at 7:18 PM, Udara Rathnayake 
>> wrote:
>>
>>> Hi Maduraga,
>>>
>>> When are you planning to do the 4.6.0 beta release?
>>>
>>> On Mon, Sep 28, 2015 at 3:21 PM, Maduranga Siriwardena <
>>> madura...@wso2.com> wrote:
>>>
 Hi Udara,

 We have created a new orbit bundle for oltu (which is previously known
 as amber) to remove forked amber repository. oltu is packed from OAuth
 feature and seems like this feature installation causes issues due to the
 absence of slf4j new version. We haven't encountered any issues with this
 feature installation since we pack this version of slf4j from some other
 features.  We will pack it from Oauth feature in carbon-identity beta
 release.

 Meanwhile if you are packing slf4j, can please upgrade your slf4j
 version to 1.6.1.

 Thanks,
 Maduranga

 On Mon, Sep 28, 2015 at 1:36 PM, Udara Rathnayake 
 wrote:

> Hi Identity team,
>
> Getting following build failure. Any idea about this?
> Do we need to add org.slf4j as a dependency?
>
> Software being installed: OAuth Feature 4.6.0.alpha
> (org.wso2.carbon.identity.oauth.feature.group 4.6.0.alpha)
>  Missing requirement: oltu 1.0.0.wso2v1 (oltu 1.0.0.wso2v1) requires
> 'package org.slf4j [1.6.1,1.7.0)' but it could not be found
>  Cannot satisfy dependency:
>   From: WSO2 Carbon - OAuth Common 4.6.0.alpha
> (org.wso2.carbon.identity.oauth.common 4.6.0.alpha)
>   To: package org.apache.oltu.oauth2.common.validators [1.0.0,1.1.0)
>  Cannot satisfy dependency:
>   From: Identity OAuth Common Feature 4.6.0.alpha
> (org.wso2.carbon.identity.oauth.common.feature.group 4.6.0.alpha)
>   To: org.wso2.carbon.identity.oauth.common [4.6.0.alpha]
>  Cannot satisfy dependency:
>   From: OAuth Feature 4.6.0.alpha
> (org.wso2.carbon.identity.oauth.feature.group 4.6.0.alpha)
> 

Re: [Dev] Identity "application-mgt" related database scripts are not available

2015-09-30 Thread Prabath Abeysekera
Thanks for the info Prasad. So, I believe, what that means is, we can't
selectively grab and install only the most relevant schemas anymore. Is
that the right thing to do? For example, say I only need "application-mgt"
bits in my product. There, I wouldn't want to ship anything outside the
scope of application management installed into the default datasource
that's configured with the identity components. Can we do that now without
having to maintain a separate schema at the product level only containing
what's absolutely required?

Cheers,
Prabath

On Wed, Sep 30, 2015 at 3:55 PM, Prasad Tissera  wrote:

> Hi Prabath,
>
> All the identity related scripts have been moved to dbscripts/identity and
> merged into a single script. Those are comming with
> identity.core.server.feature. Thanks.
>
> Regards,
> Prasad.
>
> On Wed, Sep 30, 2015 at 3:47 PM, Prabath Abeysekera 
> wrote:
>
>> Hi Johann/IS team,
>>
>> I can't locate any of the identity application-mgt related database
>> scripts as part of the corresponding feature definitions. Have we
>> removed/re-located them for some reason? If so, from where can I find those?
>>
>> Cheers,
>> Prabath
>> --
>> Prabath Abeysekara
>> Technical Lead
>> WSO2 Inc.
>> Email: praba...@wso2.com
>> Mobile: +94774171471
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Prasad Tissera
> Software Engineer.
> Mobile : +94777223444
>



-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get Absolute Path Of File In App Cloud

2015-09-30 Thread Sajith Ariyarathna
Hi Lasantha,

Jaggery server runs on top of Carbon. So Java libraries which are added to
Carbon are also available in Jaggery. External Java libraries can be added
to Carbon by dropping them into 
/repository/components/lib directory (more details [1]). Don't forget to
restart the server.

[1]
http://wso2.com/library/knowledgebase/add-external-jar-libraries-wso2-carbon-based-products/


On Wed, Sep 30, 2015 at 4:40 PM, Lasantha Dharmakeerthi 
wrote:

> hi
> Sajitha
>
> I use some .jar files and I have included them into components/lib folder.
> Can I add those .jar files inside the jagerry app and use to get same
> functionalities?
>
> Above code is working well when I give absolute path.
>
> Thanks
>
> Lasantha
>
> On Wed, Sep 30, 2015 at 4:38 PM, Lasantha Dharmakeerthi <
> lasant...@wso2.com> wrote:
>
>> Hi
>> Sajith
>>
>> Can I get public key of certificate using this way. I tried this one but
>> couldn't get public key.
>>
>> this is the my code
>>
>>   function getPublicKey(certificatePath){
>>
>> var inputStream = null;
>>
>> try{
>>
>>   log.debug("Reading certificate from ");
>>   inputStream = new Packages.java.io.FileInputStream(certificatePath);
>>
>>   var key =
>> Packages.java.security.cert.CertificateFactory.getInstance("X.509").generateCertificate(inputStream).getPublicKey();
>>
>>   return key;
>> }catch(e){
>>   log.error("Error while getting the public key. " + e);
>>   throw e;
>> }finally{
>>
>>   if(inputStream){
>> inputStream.close();
>>   }
>> }
>>
>> return null;
>>
>>   }
>>
>> Thanks
>> Lasantha
>>
>> On Wed, Sep 30, 2015 at 4:23 PM, Sajith Ariyarathna 
>> wrote:
>>
>>> Hi Lasantha,
>>>
>>> Assuming,
>>>
>>> You are reading the certificate file using Jaggery.
>>>
>>> In your Jaggery app, certificate file is in '
>>> *resources/wso2defaultpub.cer*' path
>>>
>>> You can read your file using Jaggery File [1] object. Refer following
>>> code snippet.
>>>
>>> var certFile = new File("/resources/wso2defaultpub.cer");
>>> var content = certFile.readAll();
>>>
>>> [1] http://jaggeryjs.org/documentation.jag?api=file
>>>
>>> Thanks.
>>>
>>> On Wed, Sep 30, 2015 at 3:11 PM, Lasantha Dharmakeerthi <
>>> lasant...@wso2.com> wrote:
>>>
 Hi
 Devs

 I have created jaggery app and deployed it in wso2 app cloud. I have
 method to read a certificate file and certificate is in the jaggery
  app.

 In local Aplication Server I used file path like wise “
 repository/deployment/server/jaggeryapps/Parkingapp
 /resources/wso2defaultpub.cer”

 So how can I get path to my certificate file in WSO2 App Cloud? Is it
 same structure?

 Thanks
 Lasantha.

 --
 Dharmakeerthi Lasantha
 Software Engineer Trainee, WSO2
 Mobile 0774928852

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


>>>
>>>
>>> --
>>> Sajith Ariyarathna
>>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>>> mobile: +94 77 6602284, +94 71 3951048
>>>
>>
>>
>>
>> --
>> Dharmakeerthi Lasantha
>> Software Engineer Trainee, WSO2
>> Mobile 0774928852
>>
>
>
>
> --
> Dharmakeerthi Lasantha
> Software Engineer Trainee, WSO2
> Mobile 0774928852
>



-- 
Sajith Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/
mobile: +94 77 6602284, +94 71 3951048
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pull request has not merged into the current development branch of APIM

2015-09-30 Thread Nuwan Dias
Hi Harshan,

I think this is due to the fact that the 1.10.x branch was branched out
from the 1.9.x branches and not from master. The master branch was used for
parallel development work related to API Manager 2.0.0.

Thanks,
NuwanD.

On Wed, Sep 30, 2015 at 7:16 PM, Harshan Liyanage  wrote:

> Hi Nuwan,
>
> I don't see the following component [1] in the master branch. It is the
> refactored version of Authorization manager implementation. But as I've
> mentioned earlier it is there in the release-1.4.0 branch. Could you please
> verify it?
>
> [1].
> https://github.com/wso2/carbon-apimgt/tree/release-1.4.0/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/auth/manager
> [2].
> https://github.com/wso2/carbon-apimgt/tree/master/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl
>
> Thanks,
>
> Harshan Liyanage
> Software Engineer
> Mobile: *+94724423048*
> Email: hars...@wso2.com
> Blog : http://harshanliyanage.blogspot.com/
> *WSO2, Inc. :** wso2.com *
> lean.enterprise.middleware.
>
> On Wed, Sep 30, 2015 at 7:06 PM, Nuwan Dias  wrote:
>
>> Hi Harshan,
>>
>> The PR [1] has been sent to the master branch and it has been merged. I
>> don't see any pending PRs related to this on the release_1.10.x branch.
>>
>> [1] - https://github.com/wso2/carbon-apimgt/pull/10
>>
>> Thanks,
>> NuwanD.
>>
>> On Wed, Sep 30, 2015 at 6:28 PM, Harshan Liyanage 
>> wrote:
>>
>>> Hi,
>>>
>>> It seems like the following pull request [1] is not merged into the
>>> latest master branch & 1.10.x branches of carbon-apimgt repo. But it is
>>> available in release-1.4.0 branch [2]. Is there any specific reason to not
>>> to merge this into the latest branches?
>>>
>>> [1]. https://github.com/wso2/carbon-apimgt/pull/10
>>> [2].
>>> https://github.com/wso2/carbon-apimgt/tree/release-1.4.0/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl
>>>
>>> Thanks,
>>>
>>> Harshan Liyanage
>>> Software Engineer
>>> Mobile: *+94724423048*
>>> Email: hars...@wso2.com
>>> Blog : http://harshanliyanage.blogspot.com/
>>> *WSO2, Inc. :** wso2.com *
>>> lean.enterprise.middleware.
>>>
>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Technical Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>


-- 
Nuwan Dias

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


[Dev] Should mysql database scripts work with old mysql versions.

2015-09-30 Thread Ishara Karunarathna
Hi all,

For example In mysql version 5.6.4 (released on February 5, 2013 ) onwards
[1] it support for
fractional seconds for TIMESTAMP values, with up to microseconds (6 digits)

But if we write scripts to get that features it won't work with older
versions.
So can we write scripts to work only with mysql version 5.6.4 and latest or
should we support for old versions ?.

Thanks,
Ishara

[1]
http://dev.mysql.com/doc/refman/5.6/en/mysql-nutshell.html#mysql-nutshell-additions
-- 
Ishara Karunarathna
Senior Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
+94717996791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev