Re: [Dev] [Architecture] API Manager 1.9.0 Milestone 1 Released

2015-02-20 Thread Samisa Abeysinghe
Where can I find the docs for this release?

Also, what is the IS version for KM that should be used against this
version of API-M?

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Delivery

WSO2 Inc.
http://wso2.com


On Fri, Feb 20, 2015 at 8:08 PM, Lalaji Sureshika  wrote:

> *API Manager 1.9.0 Milestone 1 Released!*
>
> WSO2 API Manager team is pleased to announce the 1st Milestone release of
> WSO2 API Manager 1.9.0.
> The distribution is available to download at [1].
> This release includes following features,improvements and bug fixes.
> Bug
>
>- [APIMANAGER-932 ] -
>Integration tests for TokenParser should add to api configuration by
>default.
>- [APIMANAGER-966 ] -
>RESTClient 'Response Headers' section doesn't show additional Header fields
>(Eg: 'Allow:' Header field that is returned for OPTIONS).
>- [APIMANAGER-1336 ] -
>Billing Sample data is not accurate and java.lang.ClassCastException thrown
>when refreshing the page or when no data is available
>- [APIMANAGER-1387 ] -
>Issues with billing sample
>- [APIMANAGER-1787 ] -
>[GREG-APIM] StringIndexOutOfBoundsException occurs when launch Endpoint URL
>of "resource" in API list
>- [APIMANAGER-2015 ] -
>Statistics in API Manager gives an error when EnableBillingAndUsage is set
>to true
>- [APIMANAGER-2019 ] -
>Input after double quote in the description of an application gets lost
>- [APIMANAGER-2037 ] -
>When adding an API, and when the API name contains special characters, the
>API addition fails, but the appeared UI message is not descriptive enough
>for the user to identify what went wrong.
>- [APIMANAGER-2087 ] -
>'Test Endpoint button' says valid for some invalid endpoints
>- [APIMANAGER-2233 ] -
>Tenant user name format in publisher statistics pages
>- [APIMANAGER-2704 ] -
>Blocked subscriptions can be unblocked by re-subscribing to an API
>- [APIMANAGER-2780 ] -
>APIM Test URI functionality in the API implementation section and the
>Google Analytics Publishing are not proxy aware
>- [APIMANAGER-2821 ] -
>WorkFlows: Eventhough the subscription pending for approval is deleted from
>store, it still exists in workflow admin.
>- [APIMANAGER-2965 ] -
>Application Name showed as null in all store statistics pages when token
>encryption enabled
>- [APIMANAGER-3010 ] -
>Issue in displaying the number of APIs displayed in the API Store
>- [APIMANAGER-3161 ] -
>Endpoints are not shown on the UI when an API is created by invoking the
>REST API
>- [APIMANAGER-3204 ] -
>AM1.7-BAM2.4.1 Metering & Billing page always shows the rate 0.00 as cost
>- [APIMANAGER-3206 ] -
>Issue in the Document Summary field
>- [APIMANAGER-3218 ] -
>fixing stats showing in borwser even when APIUsageTracking is disabled
>- [APIMANAGER-3219 ] -
>Issue in the API creation Design page Context field
>- [APIMANAGER-3220 ] -
>In APIM Publisher faulty invocation graph Y-axis do not start with 0
>- [APIMANAGER-3225 ] -
>The Popup error message doesn't showing up in the second time when
>uploading a file name exceeds a certain length
>- [APIMANAGER-3228 ] -
>First request in tenant erroneously sent to HTTP proxy
>- [APIMANAGER-3243 ] -
>Workflows: admin-dashboard does not display the Approval Tasks sometimes
>even without login out
>- [APIMANAGER-3250 ] -
>My subscriptions load issue when there are cross tenant subscriptions
>- [APIMANAGER-3253 ] -
>Cannot browse APIs
>- [APIMANAGER-3254 ] -
>Cannot create APIs
>- [APIMANAGER-3257 ] -
>In APIM Store

Re: [Dev] [ESB] Building from source Fails

2015-02-20 Thread Hasanthi Purnima Dissanayake
Hi chathura,
Thank you for the response. But I skipped the unit test cases when
building.

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com 
M :0718407133| http://wso2.com 

On Fri, Feb 20, 2015 at 6:44 PM, Chathura Priyankara 
wrote:

> Hi Hasanthi,
>
> Try to build it without running unit test cases using following command.
>
> mvn clean install -Dmaven.test.skip=true
>
> Thanks!
> Best Regards,
>
> On Fri, Feb 20, 2015 at 2:54 PM, Hasanthi Purnima Dissanayake <
> hasan...@wso2.com> wrote:
>
>> Hi Manorama,
>> I built all the patches in kernel that you have mentioned in [1]. As I
>> said earlier all the orbit, kernel and platform built successfully. But I
>> can't build the ESB product.
>>
>> [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/
>>
>> Thanks.
>>
>> Hasanthi Dissanayake
>>
>> Software Engineer | WSO2
>>
>> E: hasan...@wso2.com 
>> M :0718407133| http://wso2.com 
>>
>> On Fri, Feb 20, 2015 at 2:42 PM, Manorama Perera 
>> wrote:
>>
>>> Hi Hasanthi,
>>>
>>> Before building the product you have build the respective kernal patches
>>> for the particular chunk in which the product is released.
>>> You can checkout the kernel patches from here[1].
>>> You can refer [2] to find out the patches that need to be built for a
>>> given chunk.
>>>
>>> [1]
>>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/
>>> [2] http://wso2.com/products/carbon/release-matrix/
>>>
>>> Thanks
>>>
>>> On Fri, Feb 20, 2015 at 2:25 PM, Hasanthi Purnima Dissanayake <
>>> hasan...@wso2.com> wrote:
>>>
 Hi All,
 I need to build ESB from source. I checked out orbit , kernel and
 platform from [1],[2] and [3] and built them as mentioned order. All the
 three directories built successfully. But when I'm building the ESB product
 inside ~/Platform/products/esb/4.8.1 it fails with below error.

 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 ESB - Aggregator Module .. SUCCESS
 [0.286s]
 [INFO] WSO2 ESB - Styles Parent .. SUCCESS
 [0.022s]
 [INFO] WSO2 ESB - Styles . SUCCESS
 [1.551s]
 [INFO] WSO2 Stratos ESB - Styles . SUCCESS
 [0.323s]
 [INFO] WSO2 ESB - Samples Parent . SUCCESS
 [0.287s]
 [INFO] WSO2 ESB - Samples  FAILURE
 [1.123s]
 [INFO] WSO2 Stratos ESB - Samples  SKIPPED
 [INFO] WSO2 ESB - Features Parent  SKIPPED
 [INFO] WSO2 ESB - Features Aggregator Module . SKIPPED
 [INFO] WSO2 ESB - Styles Features  SKIPPED
 [INFO] WSO2 ESB - Samples Features ... SKIPPED
 [INFO] WSO2 Stratos ESB - Login User Interface ... SKIPPED
 [INFO] WSO2 Stratos ESB - Features Aggregator Module . SKIPPED
 [INFO] WSO2 Stratos ESB - Login UI Feature ... SKIPPED
 [INFO] WSO2 Stratos ESB - Styles Features  SKIPPED
 [INFO] WSO2 Stratos ESB - Samples Features ... SKIPPED
 [INFO] WSO2 ESB - P2 Profile Generation .. SKIPPED
 [INFO] WSO2 ESB - Distribution ... SKIPPED
 [INFO] WSO2 ESB - Integration Parent . SKIPPED
 [INFO] ESB Test Service Module ... SKIPPED
 [INFO] Integration Commons Module - ESB test Module .. SKIPPED
 [INFO] WSO2 ESB Integration Test Core  SKIPPED
 [INFO] ESB Mediators Test Module - 1 . SKIPPED
 [INFO] ESB Mediators Test Module - 2 . SKIPPED
 [INFO] ESB test Module - Sample .. SKIPPED
 [INFO] ESB test Module-Transport . SKIPPED
 [INFO] ESB test Module-Other . SKIPPED
 [INFO] ESB test Module-Service ... SKIPPED
 [INFO] ESB UI Test Module  SKIPPED
 [INFO] Integration Test Reporting  SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 5.404s
 [INFO] Finished at: Fri Feb 20 12:18:07 IST 2015
 [INFO] Final Memory: 18M/204M
 [INFO]
 
 [ERROR] Failed to execute goal on project org.wso2.esb.samples: Could
 not resolve dependencies for project
 org.wso2.esb:org.wso2.esb.samples:bundle:4.8.1: Failed to collect
 dependencies for [org.apache.synapse:synapse-core:jar:2.1.2-wso2v1
 (compile), org.apache.synapse:synapse-commons:jar:2.1.2-wso2v1 (compile),
 org.apache.ws.security.wso2:ws

[Dev] [APIM] [IDENTITY] [EMM] Overlapping DB Table Definitions on both APIM & IDENTITY DB Scripts

2015-02-20 Thread Dilan Udara Ariyaratne
Hi Folks,

While checking the database scripts of both API Manager and IDENTITY
modules inside EMM 1.1.0,
it has been found out that there are some DB Table definitions of IDENTITY
repeated inside APIM DB Scripts
as follows.

IDN_BASE_TABLE
IDN_OAUTH_CONSUMER_APPS
IDN_OAUTH1A_REQUEST_TOKEN
IDN_OAUTH1A_ACCESS_TOKEN
IDN_OAUTH2_AUTHORIZATION_CODE
IDN_OAUTH2_ACCESS_TOKEN
IDN_OPENID_USER_RPS
IDN_THRIFT_SESSION

Do we have any valid reasons to have such duplication of these table
definitions inside
both APIM and IDENTITY DB Scripts?

Appreciate your feedback on this.

Thanks.

*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. 
Mobile: +94775149066
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Handling Throwable in catch block

2015-02-20 Thread Gayan Gunawardana
On Fri, Feb 20, 2015 at 5:51 PM, Johann Nallathamby  wrote:

> Good catch :) . Gayan can you please look into such type of errors inside
> user.core component.
>
 Noted.


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


Re: [Dev] [IS] Client authentication for SAML2 Bearer Assertion Profiles

2015-02-20 Thread Nuwandi Wickramasinghe
+1

Thanks Dulanja and Asela

On Fri, Feb 20, 2015 at 6:53 PM, Asela Pathberiya  wrote:

> On Fri, Feb 20, 2015 at 3:55 PM, Dulanja Liyanage 
> wrote:
> > IMO we should have a config like "strictClientCredentialValidation".
> >
> > true: must validate the credentials,
> > false: validate only when credentials are available in the request.
> >
> > And this check should be done before hitting the
> BasicAuthClientAuthHandler,
> > at the authentication manager level.
> >
> > We can start from there and then think about integration to the UI, which
> > would be required especially because for mutitenancy scenarios.
>
> +1  Sometimes we may need to enable/disable it based on the client
> application...
>
> Thanks,
> Asela.
>
> >
> > On Fri, Feb 20, 2015 at 3:04 PM, Nuwandi Wickramasinghe <
> nuwan...@wso2.com>
> > wrote:
> >>
> >> Hi,
> >>
> >> I have some concerns regarding JIRA issue [1]
> >>
> >> If client credentials are unavailable, is it ok to skip client
> >> authentication process in issue() method
> >> (org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer) for SAML2
> bearer
> >> type ?
> >>
> >> Also should we give an option for user to select whether client
> >> credentials are optional or not? And fail authentication if no
> credentials
> >> are available and user says it's mandatory?
> >>
> >> [1] https://wso2.org/jira/browse/IDENTITY-3028
> >> --
> >>
> >> Best Regards,
> >>
> >> Nuwandi Wickramasinghe
> >>
> >> Software Engineer
> >>
> >> WSO2 Inc.
> >>
> >> Web : http://wso2.com
> >>
> >> Mobile : 0719214873
> >
> >
> >
> >
> > --
> > Dulanja Liyanage
> > WSO2 Inc.
> > M: +94776764717
> >
> > ___
> > Dev mailing list
> > Dev@wso2.org
> > http://wso2.org/cgi-bin/mailman/listinfo/dev
> >
>
>
>
> --
> Thanks & Regards,
> Asela
>
> ATL
> Mobile : +94 777 625 933
>  +358 449 228 979
>



-- 

Best Regards,

Nuwandi Wickramasinghe

Software Engineer

WSO2 Inc.

Web : http://wso2.com

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


Re: [Dev] [GReg] Pull Request: Impact Analysis Feature UI Revamp & Improvement

2015-02-20 Thread Jerad Rutnam
Additional changes in the PR,

Fixed:
- On-load expand graph by detecting screen orientation feature
conflict search node centering function

Added:
- Custom SVG icon set for resource types
- Relationship filtering by tags feature
- Syncing filtering feature with search field and tool-tips
- Removing tool-tip for inactive connections

Removed:
- Side pane styles and elements

And some style improvements with screen responsive styles + many code
clearance and tweaks


Thanks,
Jerad

On Mon, Feb 16, 2015 at 12:12 PM, Jerad Rutnam  wrote:

> Additional changes in the PR,
>
> Improved:
> - Search Field style & function
> - On node click sync with search field
> - On node double click show relations: highlight clicked node icon
> - Graph on load try best fit by detecting screen orientation
>
> Fixed:
> - Graph outer other elements click deselect function firing issue
> - Node double click flickering issue
>
> Added:
> - Loading animation for graph load
> - Show resource path at screen bottom- Pre-loader animation- Resource url 
> path on page bottom- Screen responsive styles
>
> Removed:
> - Left side details area
>
>
> Thanks,
> Jerad
>
>
> On Thu, Feb 12, 2015 at 10:27 AM, Jerad Rutnam  wrote:
>
>> Sorry for typing error "*Remmoved" :)*
>>
>> On Thu, Feb 12, 2015 at 10:21 AM, Jerad Rutnam  wrote:
>>
>>> Hi G-Reg Team,
>>>
>>> Please check and merge the PR [1].
>>>
>>>
>>> *Revamp:**- Changed appearance of the base UI to a darker theme to
>>> blend with new ES UI*
>>>
>>>
>>> *Improved:*
>>> *- zoomFit to screen feature with auto center**- Some styles and
>>> functions tweaks*
>>>
>>>
>>> *Added:*
>>> *- Export graph to a png image feature*
>>> *- External svg icons reading function to the graph**- Feature to fit
>>> the graph to screen on initial load (Disabled at the moment)*
>>>
>>>
>>> *Removed:*
>>> *- Removed some old images which are not using**- Remmoved functions
>>> which are not using in impactAnalysis.js*
>>>
>>>
>>> *Added Files:*
>>> *- svgenie.js [2] (Library to convert svg to canvas in client side and
>>> export to a.png file)**- canvg.js **[3] *
>>> *(svgenie library dependency)**- rgbcolor.js **(**canvg.js* *dependency*
>>> *)**- StackBlur.js **(**canvg.js* *dependency*
>>> *)- flashcanvas.js + flashcanvas.swf (**canvg.js* *dependency*
>>> *)**- jquery.inlineStyler.min.js **[4]*
>>> * (To make external computed styles to inline on svg to canvas
>>> conversion)**- Sample SVG icons to the graph file types*
>>> [1] https://github.com/wso2/product-greg/pull/34
>>> [2] https://github.com/Causata/svgenie - LICENSE FREE
>>> [3] https://github.com/gabelerner/canvg - MIT-LICENSE
>>> [4] https://github.com/Karl33to/jquery.inlineStyler  - MIT-LICENSE
>>>
>>> Thanks,
>>> Jerad
>>> --
>>> *Jerad Rutnam*
>>> *Software Engineer*
>>>
>>> WSO2 Inc.
>>> lean | enterprise | middleware
>>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>>
>>
>>
>>
>> --
>> *Jerad Rutnam*
>> *Software Engineer*
>>
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>
>
>
>
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>



-- 
*Jerad Rutnam*
*Software Engineer*

WSO2 Inc.
lean | enterprise | middleware
M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] API Manager 1.9.0 Milestone 1 Released

2015-02-20 Thread Lalaji Sureshika
*API Manager 1.9.0 Milestone 1 Released!*

WSO2 API Manager team is pleased to announce the 1st Milestone release of
WSO2 API Manager 1.9.0.
The distribution is available to download at [1].
This release includes following features,improvements and bug fixes.
Bug

   - [APIMANAGER-932 ] -
   Integration tests for TokenParser should add to api configuration by
   default.
   - [APIMANAGER-966 ] -
   RESTClient 'Response Headers' section doesn't show additional Header fields
   (Eg: 'Allow:' Header field that is returned for OPTIONS).
   - [APIMANAGER-1336 ] -
   Billing Sample data is not accurate and java.lang.ClassCastException thrown
   when refreshing the page or when no data is available
   - [APIMANAGER-1387 ] -
   Issues with billing sample
   - [APIMANAGER-1787 ] -
   [GREG-APIM] StringIndexOutOfBoundsException occurs when launch Endpoint URL
   of "resource" in API list
   - [APIMANAGER-2015 ] -
   Statistics in API Manager gives an error when EnableBillingAndUsage is set
   to true
   - [APIMANAGER-2019 ] -
   Input after double quote in the description of an application gets lost
   - [APIMANAGER-2037 ] -
   When adding an API, and when the API name contains special characters, the
   API addition fails, but the appeared UI message is not descriptive enough
   for the user to identify what went wrong.
   - [APIMANAGER-2087 ] -
   'Test Endpoint button' says valid for some invalid endpoints
   - [APIMANAGER-2233 ] -
   Tenant user name format in publisher statistics pages
   - [APIMANAGER-2704 ] -
   Blocked subscriptions can be unblocked by re-subscribing to an API
   - [APIMANAGER-2780 ] -
   APIM Test URI functionality in the API implementation section and the
   Google Analytics Publishing are not proxy aware
   - [APIMANAGER-2821 ] -
   WorkFlows: Eventhough the subscription pending for approval is deleted from
   store, it still exists in workflow admin.
   - [APIMANAGER-2965 ] -
   Application Name showed as null in all store statistics pages when token
   encryption enabled
   - [APIMANAGER-3010 ] -
   Issue in displaying the number of APIs displayed in the API Store
   - [APIMANAGER-3161 ] -
   Endpoints are not shown on the UI when an API is created by invoking the
   REST API
   - [APIMANAGER-3204 ] -
   AM1.7-BAM2.4.1 Metering & Billing page always shows the rate 0.00 as cost
   - [APIMANAGER-3206 ] -
   Issue in the Document Summary field
   - [APIMANAGER-3218 ] -
   fixing stats showing in borwser even when APIUsageTracking is disabled
   - [APIMANAGER-3219 ] -
   Issue in the API creation Design page Context field
   - [APIMANAGER-3220 ] - In
   APIM Publisher faulty invocation graph Y-axis do not start with 0
   - [APIMANAGER-3225 ] - The
   Popup error message doesn't showing up in the second time when uploading a
   file name exceeds a certain length
   - [APIMANAGER-3228 ] -
   First request in tenant erroneously sent to HTTP proxy
   - [APIMANAGER-3243 ] -
   Workflows: admin-dashboard does not display the Approval Tasks sometimes
   even without login out
   - [APIMANAGER-3250 ] - My
   subscriptions load issue when there are cross tenant subscriptions
   - [APIMANAGER-3253 ] -
   Cannot browse APIs
   - [APIMANAGER-3254 ] -
   Cannot create APIs
   - [APIMANAGER-3257 ] - In
   APIM Store get all subscription API do not show subscribed APIs properly.
   - [APIMANAGER-3258 ] -
   Tenant admin cannot authenticate to oauth2/token endpoint
   - [APIMANAGER-3263 ] -
   Startup Publisher fails to create API configured to be published at startup
   - [APIMANAGER-3265 ] -
   Typo at label

[Dev] WSO2 AppFactory 2.1.0 Beta Released!

2015-02-20 Thread Kasun De Silva
WSO2 AppFactory 2.1.0 Beta Released!

WSO2 AppFactory team is pleased to announce the release of version 2.1.0
Beta of the WSO2 App Factory.

WSO2 App Factory is a multi-tenant, elastic and self-service enterprise
platform that enables multiple project teams to collaboratively create, run
and manage enterprise applications. Combining complete application
lifecycle management and Platform-as-a-Service (PaaS) capabilities, WSO2
App Factory makes it possible to develop, test, deploy to production and
retire applications with a single click. It also provides an easy way to
discover and consume apps and APIs through a user-friendly storefront.

The distribution is available to download at [1] .

Bug fixes in this release can be found at [2].

Source repository for App Factory can be found at [3].

Puppet manifests for App Factory can be found at [4].

We encourage you to report issues, documentation faults and feature
requests regarding WSO2 AppFactory through the public WSO2 AppFactory JIRA.


[1]
https://svn.wso2.org/repos/wso2/scratch/appfactorycc_tags/2.1.0-beta/packs/wso2appfactory-2.1.0-SNAPSHOT.zip

[2]
https://wso2.org/jira/issues/?jql=project%20%3D%20APPFAC%20AND%20fixVersion%20%3D%20%222.1.0%20Beta%22%20AND%20status%20%3D%20Resolved%20ORDER%20BY%20updated%20DESC

[3] https://github.com/wso2/product-af/tree/2.1.0-Beta

[4]
https://github.com/wso2/product-af/tree/2.1.0-Beta/modules/puppet-manifests


Thanks,
Kasun


*Kasun de Silva*
Software Engineer | *WSO2 Inc.*; http://wso2.com
lean.enterprise.middleware

email   : kas...@wso2.com
mobile : +94 77 794 4260
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Client authentication for SAML2 Bearer Assertion Profiles

2015-02-20 Thread Asela Pathberiya
On Fri, Feb 20, 2015 at 3:55 PM, Dulanja Liyanage  wrote:
> IMO we should have a config like "strictClientCredentialValidation".
>
> true: must validate the credentials,
> false: validate only when credentials are available in the request.
>
> And this check should be done before hitting the BasicAuthClientAuthHandler,
> at the authentication manager level.
>
> We can start from there and then think about integration to the UI, which
> would be required especially because for mutitenancy scenarios.

+1  Sometimes we may need to enable/disable it based on the client
application...

Thanks,
Asela.

>
> On Fri, Feb 20, 2015 at 3:04 PM, Nuwandi Wickramasinghe 
> wrote:
>>
>> Hi,
>>
>> I have some concerns regarding JIRA issue [1]
>>
>> If client credentials are unavailable, is it ok to skip client
>> authentication process in issue() method
>> (org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer) for SAML2 bearer
>> type ?
>>
>> Also should we give an option for user to select whether client
>> credentials are optional or not? And fail authentication if no credentials
>> are available and user says it's mandatory?
>>
>> [1] https://wso2.org/jira/browse/IDENTITY-3028
>> --
>>
>> Best Regards,
>>
>> Nuwandi Wickramasinghe
>>
>> Software Engineer
>>
>> WSO2 Inc.
>>
>> Web : http://wso2.com
>>
>> Mobile : 0719214873
>
>
>
>
> --
> Dulanja Liyanage
> WSO2 Inc.
> M: +94776764717
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Thanks & Regards,
Asela

ATL
Mobile : +94 777 625 933
 +358 449 228 979
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Building from source Fails

2015-02-20 Thread Chathura Priyankara
Hi Hasanthi,

Try to build it without running unit test cases using following command.

mvn clean install -Dmaven.test.skip=true

Thanks!
Best Regards,

On Fri, Feb 20, 2015 at 2:54 PM, Hasanthi Purnima Dissanayake <
hasan...@wso2.com> wrote:

> Hi Manorama,
> I built all the patches in kernel that you have mentioned in [1]. As I
> said earlier all the orbit, kernel and platform built successfully. But I
> can't build the ESB product.
>
> [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/
>
> Thanks.
>
> Hasanthi Dissanayake
>
> Software Engineer | WSO2
>
> E: hasan...@wso2.com 
> M :0718407133| http://wso2.com 
>
> On Fri, Feb 20, 2015 at 2:42 PM, Manorama Perera 
> wrote:
>
>> Hi Hasanthi,
>>
>> Before building the product you have build the respective kernal patches
>> for the particular chunk in which the product is released.
>> You can checkout the kernel patches from here[1].
>> You can refer [2] to find out the patches that need to be built for a
>> given chunk.
>>
>> [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/
>> [2] http://wso2.com/products/carbon/release-matrix/
>>
>> Thanks
>>
>> On Fri, Feb 20, 2015 at 2:25 PM, Hasanthi Purnima Dissanayake <
>> hasan...@wso2.com> wrote:
>>
>>> Hi All,
>>> I need to build ESB from source. I checked out orbit , kernel and
>>> platform from [1],[2] and [3] and built them as mentioned order. All the
>>> three directories built successfully. But when I'm building the ESB product
>>> inside ~/Platform/products/esb/4.8.1 it fails with below error.
>>>
>>> [INFO] Reactor Summary:
>>> [INFO]
>>> [INFO] WSO2 ESB - Aggregator Module .. SUCCESS
>>> [0.286s]
>>> [INFO] WSO2 ESB - Styles Parent .. SUCCESS
>>> [0.022s]
>>> [INFO] WSO2 ESB - Styles . SUCCESS
>>> [1.551s]
>>> [INFO] WSO2 Stratos ESB - Styles . SUCCESS
>>> [0.323s]
>>> [INFO] WSO2 ESB - Samples Parent . SUCCESS
>>> [0.287s]
>>> [INFO] WSO2 ESB - Samples  FAILURE
>>> [1.123s]
>>> [INFO] WSO2 Stratos ESB - Samples  SKIPPED
>>> [INFO] WSO2 ESB - Features Parent  SKIPPED
>>> [INFO] WSO2 ESB - Features Aggregator Module . SKIPPED
>>> [INFO] WSO2 ESB - Styles Features  SKIPPED
>>> [INFO] WSO2 ESB - Samples Features ... SKIPPED
>>> [INFO] WSO2 Stratos ESB - Login User Interface ... SKIPPED
>>> [INFO] WSO2 Stratos ESB - Features Aggregator Module . SKIPPED
>>> [INFO] WSO2 Stratos ESB - Login UI Feature ... SKIPPED
>>> [INFO] WSO2 Stratos ESB - Styles Features  SKIPPED
>>> [INFO] WSO2 Stratos ESB - Samples Features ... SKIPPED
>>> [INFO] WSO2 ESB - P2 Profile Generation .. SKIPPED
>>> [INFO] WSO2 ESB - Distribution ... SKIPPED
>>> [INFO] WSO2 ESB - Integration Parent . SKIPPED
>>> [INFO] ESB Test Service Module ... SKIPPED
>>> [INFO] Integration Commons Module - ESB test Module .. SKIPPED
>>> [INFO] WSO2 ESB Integration Test Core  SKIPPED
>>> [INFO] ESB Mediators Test Module - 1 . SKIPPED
>>> [INFO] ESB Mediators Test Module - 2 . SKIPPED
>>> [INFO] ESB test Module - Sample .. SKIPPED
>>> [INFO] ESB test Module-Transport . SKIPPED
>>> [INFO] ESB test Module-Other . SKIPPED
>>> [INFO] ESB test Module-Service ... SKIPPED
>>> [INFO] ESB UI Test Module  SKIPPED
>>> [INFO] Integration Test Reporting  SKIPPED
>>> [INFO]
>>> 
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> 
>>> [INFO] Total time: 5.404s
>>> [INFO] Finished at: Fri Feb 20 12:18:07 IST 2015
>>> [INFO] Final Memory: 18M/204M
>>> [INFO]
>>> 
>>> [ERROR] Failed to execute goal on project org.wso2.esb.samples: Could
>>> not resolve dependencies for project
>>> org.wso2.esb:org.wso2.esb.samples:bundle:4.8.1: Failed to collect
>>> dependencies for [org.apache.synapse:synapse-core:jar:2.1.2-wso2v1
>>> (compile), org.apache.synapse:synapse-commons:jar:2.1.2-wso2v1 (compile),
>>> org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3 (compile),
>>> org.apache.rampart.wso2:rampart-core:jar:1.6.1.wso2v10 (compile),
>>> org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar:1.1.0.wso2v1
>>> (compile)]: Failed to read artifact descriptor for
>>> org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3: Failure to find
>>> org.wso2.carbon:carbon-parent:pom:4.0.0-SNAPSHOT in
>>> http://maven.wso2.org/nexus

Re: [Dev] (no subject)

2015-02-20 Thread Ishara Karunarathna
Hi Suharsha,

Welcome to the list.

For a beginning better to get some understanding on OAuth and try out
sample scenarios with that.
Then go through the specifications attached to proposal 7 description

[1] You can download the WSo2 Identity server
[2] Documentation on OAuth concepts
[3] Try out OAuth sample

Thanks,
Ishara

[1] http://wso2.com/products/identity-server/
[2] https://docs.wso2.com/display/IS500/OAuth+Concepts
[3]
https://docs.wso2.com/display/IS450/OAuth+2.0+Playground+with+WSO2+Identity+Server

On Wed, Feb 18, 2015 at 6:44 AM, Suharsha fonseka <
suharshafonsek...@gmail.com> wrote:

> Hi,
>
> I am Suharsha Fonseka.
> I am Currently  an undergraduate student of Informatics Institute of
> Technology(IIT).
>
> And i like to work in the project proposal - 07
> User-Managed Access (UMA) Profile for OAuth2
> and i want some guidence to work in the project
>
> Thanks,
>
> Suharsha Fonseka
>
> ___
> 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: +94
718211678
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] API Management Table Creation Script for ORACLE has errors

2015-02-20 Thread Dilan Udara Ariyaratne
Hi All,

It seems that the API-Mngmnt ORACLE Script used by EMM 1.1.0 has not been
updated accordingly.

I have created the following JIRA to track this issue.
https://wso2.org/jira/browse/EMM-780

Thanks.
Dilan.




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

On Thu, Feb 19, 2015 at 11:11 AM, Dilan Udara Ariyaratne 
wrote:

> Hi Folks,
>
> After going through the script, found out following to be the reasons for
> error messages popped up at the SQL-prompt.
>
> [1] Oracle does not support "AUTO_INCREMENT" syntax.
>
> CREATE TABLE AM_WORKFLOWS (
> WF_ID INTEGER AUTO_INCREMENT,
> WF_REFERENCE VARCHAR(255) NOT NULL,
> WF_TYPE VARCHAR(255) NOT NULL,
> WF_STATUS VARCHAR(255) NOT NULL,
> WF_CREATED_TIME TIMESTAMP,
> WF_UPDATED_TIME TIMESTAMP,
> WF_STATUS_DESC VARCHAR(1000),
> TENANT_ID INTEGER,
> TENANT_DOMAIN VARCHAR(255),
> WF_EXTERNAL_REFERENCE VARCHAR(255) NOT NULL UNIQUE,
> PRIMARY KEY (WF_ID)
> )
>
> [2] Missing "TRIGGER" word at AM_WORKFLOWS_TRIGGER operation.
>
> CREATE OR REPLACE AM_WORKFLOWS_TRIGGER
> BEFORE INSERT
> ON AM_WORKFLOWS
> REFERENCING NEW AS NEW
> FOR EACH ROW
> BEGIN
> SELECT AM_WORKFLOWS_SEQUENCE.nextval INTO :NEW.WF_ID
> FROM dual;
> END;
>
>
> A verification is highly appreciated.
>
> I was not able to find any available JIRA for this.
>
> Thanks.
>
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. 
> Mobile: +94775149066
> lean . enterprise . middleware
>
> On Wed, Feb 18, 2015 at 9:06 PM, Dilan Udara Ariyaratne 
> wrote:
>
>> Hi Folks,
>>
>> I have been testing the ORACLE Support Scripts of API Management module
>> that resides inside EMM 1.1.0.
>>
>> When I ran the .sql file of API Manager Table creation script of EMM,
>> few errors complaining the wrong syntax of queries popped up
>> as in the attached image.
>>
>> Is this an already known bug that has not yet been fixed?
>>
>> Appreciate your feedback on this.
>>
>> Thanks.
>>
>> *Dilan U. Ariyaratne*
>> Software Engineer
>> WSO2 Inc. 
>> Mobile: +94775149066
>> lean . enterprise . middleware
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Googleplus ESB connector review

2015-02-20 Thread Elilmatha Sivanesan
Hi Madusanka and Tharindu

Please find the feedbacks regarding Google plus connector.


   1. Please modify the pom to run the test cases in a single build.
   2. four test cases failed because of the api change they have removed
   'fields' from the optional parameters [

   Failed tests:
   
testListActivityWithOneOptionalParam2(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
   JSONObject["kind"] not found.


   
testListActivityWithOptionalParams(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
   JSONObject["kind"] not found.


   
testListActivityWithTwoOptionalParam1(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
   JSONObject["kind"] not found.


   
testListActivityWithTwoOptionalParam2(org.wso2.carbon.connector.integration.test.gplus.GooglePlusActivitiesTest):
   JSONObject["kind"] not found.]
   3.

   so please do the above rework and give the pull request to
   https://github.com/wso2/esb-connectors.

Thank you.
-- 
*S.Elilmatha*
Associate  Software Engineer,

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

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


Re: [Dev] Handling Throwable in catch block

2015-02-20 Thread Johann Nallathamby
Good catch :) . Gayan can you please look into such type of errors inside
user.core component.

Thanks.

On Fri, Feb 20, 2015 at 5:45 PM, Sajith Ariyarathna 
wrote:

> I think I have found a bug in JDBCUserStoreManager class at persistUser
> 
>  method.
>
> In line 1166
> 
>  a
> database connection is created by calling the getDBConnection()
> 
> method which throws SQLException and UserStoreException. If it throws an
> exception, catch clause [ catch (Throwable e) ] in line 1263
> 
> will catch it and tries to rollback the database connection.
> But dbConnection is null at this moment, and it will result a
> NullPointerException; which is not handled.
>
> My suggestion to fix this bug is to handle the exceptions of creating the
> database connection (at line 1166
> )
> in a separate try-catch block.
>
>
> On Fri, Feb 20, 2015 at 10:39 AM, Udara Liyanage  wrote:
>
>> +1 for fixing, catching Throwable is not a good practice unless it is
>> highly needed
>>
>> On Thu, Feb 19, 2015 at 6:07 PM, Johann Nallathamby 
>> wrote:
>>
>>> I can't see any particular reason. +1 to fix it.
>>>
>>> On Thu, Feb 19, 2015 at 4:28 PM, Gayan Gunawardana 
>>> wrote:
>>>
 Hi,

 In user core [1] JDBCUserStoreManager,  persistUser user method
 contains catching Throwable. In general catching Throwable is not a
 good practice because there may be some run time Errors like 
 OutOfMemoryError
 which are not be able to handle. Is there any particular reason to catch
 Throwable?

 [1]
 https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/jdbc/JDBCUserStoreManager.java
 --
 Gayan Gunawardana
 Software Engineer; WSO2 Inc.; http://wso2.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933

>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>>
>>> *Johann Dilantha Nallathamby*
>>> Associate Technical Lead & Product Lead of WSO2 Identity Server
>>> Integration Technologies Team
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - *+9476950*
>>> Blog - *http://nallaa.wordpress.com *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>> ___
>> 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
>



-- 
Thanks & Regards,

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

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


Re: [Dev] Handling Throwable in catch block

2015-02-20 Thread Sajith Ariyarathna
I think I have found a bug in JDBCUserStoreManager class at persistUser

 method.

In line 1166

a
database connection is created by calling the getDBConnection()

method which throws SQLException and UserStoreException. If it throws an
exception, catch clause [ catch (Throwable e) ] in line 1263

will catch it and tries to rollback the database connection.
But dbConnection is null at this moment, and it will result a
NullPointerException; which is not handled.

My suggestion to fix this bug is to handle the exceptions of creating the
database connection (at line 1166
)
in a separate try-catch block.


On Fri, Feb 20, 2015 at 10:39 AM, Udara Liyanage  wrote:

> +1 for fixing, catching Throwable is not a good practice unless it is
> highly needed
>
> On Thu, Feb 19, 2015 at 6:07 PM, Johann Nallathamby 
> wrote:
>
>> I can't see any particular reason. +1 to fix it.
>>
>> On Thu, Feb 19, 2015 at 4:28 PM, Gayan Gunawardana 
>> wrote:
>>
>>> Hi,
>>>
>>> In user core [1] JDBCUserStoreManager,  persistUser user method
>>> contains catching Throwable. In general catching Throwable is not a
>>> good practice because there may be some run time Errors like 
>>> OutOfMemoryError
>>> which are not be able to handle. Is there any particular reason to catch
>>> Throwable?
>>>
>>> [1]
>>> https://github.com/wso2/carbon4-kernel/blob/master/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/jdbc/JDBCUserStoreManager.java
>>> --
>>> Gayan Gunawardana
>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>> Email: ga...@wso2.com
>>> Mobile: +94 (71) 8020933
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> *Johann Dilantha Nallathamby*
>> Associate Technical Lead & Product Lead of WSO2 Identity Server
>> Integration Technologies Team
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - *+9476950*
>> Blog - *http://nallaa.wordpress.com *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>
> ___
> 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


[Dev] Please review and merge the pull request and commit the diff to org.wso2.carbon.user.core_4.2.0

2015-02-20 Thread Prasad Tissera
$subject please. Thanks.

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

Regards,
Prasad.

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


Re: [Dev] [Carbon] Exception when trying to insert data through the created carbon component

2015-02-20 Thread Thusitha Thilina Dayaratne
Hi Gayashan,

Thanks for the explanation :)

Regards
/Thusitha

On Fri, Feb 20, 2015 at 3:10 PM, Gayashan Amarasinghe 
wrote:

> To add to what Amal has explained, in java, the compiler will create a
> default(with no arguments) constructor if you have not specified any
> constructor. However if you have created a parameterized constructor it
> will not create any default constructor. Combine that with the java beans
> convention, you have the answer. :)
>
> Thanks.
> /Gayashan
>
> On Fri, Feb 20, 2015 at 3:01 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Amal,
>>
>> Thanks for the explanation. That really helped.
>>
>> Regards
>> /Thusitha
>>
>> On Fri, Feb 20, 2015 at 4:07 AM, Amal Gunatilake  wrote:
>>
>>> Hi Thusitha,
>>>
>>> First of all Axis2 supports JavaBeans and therefore you need to adhere
>>> to JavaBeans standards when using it. Please have a look at JavaBeans
>>> Conventions in [1]
>>> . There it
>>> states "The class must have a public default constructor
>>>  (with no arguments).
>>> This allows easy instantiation within editing and activation frameworks."
>>>
>>> I hope this answers your both questions. :)
>>>
>>> [1] http://en.wikipedia.org/wiki/JavaBeans#JavaBean_conventions
>>>
>>> Thank you,
>>> Amal.
>>>
>>> On Fri, Feb 20, 2015 at 1:54 AM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
 Hi,

 I tried to invoke the add method using the SoapUI. But I got a Soap
 fault.
 In my Item class constructor is in *public Item(int id, String name,
 float price)* I didn't had a default no arg constructor in the class.
 When I put the default constructor to the item class everything works fine.

 I have few points that I like to get clarify

 *1. *When I didn't had the default constructor and trying to create an
 Item from the jsp with custom constructor as Item item2 = new Item(12, 
 "Custom
 Item", 125.30);
 I got following compilation error.

>
> *PWC6199: Generated servlet error:**The constructor Item(int, String,
> double) is undefined*


  But I'm able to create Item instance as Item item2 = new Item(); and
 then set the values using setters.
  Is this the expected outcome when generating the stub from WSDL2Java ?

 *2. *Should we always specify the default no args constructor, if we
 overload the constructor?

 Best Regards
 /Thusitha


 On Thu, Feb 19, 2015 at 4:52 PM, Thusitha Thilina Dayaratne <
 thusit...@wso2.com> wrote:

> Hi Amal, Gayashan,
>
> Thanks for your responses. I will try out your suggestions and see if
> I will be able to get it solve.
>
>
> Regards
> /Thusitha
>
> On Thu, Feb 19, 2015 at 3:42 PM, Gayashan Amarasinghe <
> gayas...@wso2.com> wrote:
>
>> Hi Thusitha,
>>
>> Here you are calling the service via client who calls the service
>> stub. In that case the item pojo you are trying to insert should be the
>> same object as the one in the WSDL contract. Can you check if it's the 
>> same
>> object?
>>
>> Thanks.
>> /Gayashan
>>
>> On Thu, Feb 19, 2015 at 9:45 AM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to create a Carbon component based on the [1]. I was able
>>> to get the list of orders successfully. But when I'm trying to add a new
>>> Order, I'm getting an Exception
>>> Here is the stack-trace.
>>>
>>>
 org.apache.axis2.AxisFault:
 org.wso2.training.carbon.order.mgt.data.Item
 at
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
 at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.wso2.training.carbon.order.mgt.stub.OrderManagerStub.addOrder(OrderManagerStub.java:736)
 at
 org.wso2.training.carbon.order.mgt.ui.OrderManagerClient.addOrder(OrderManagerClient.java:67)
 at
 org.apache.jsp.order_002dmgt.index_jsp._jspService(org.apache.jsp.order_002dmgt.index_jsp:100)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl

Re: [Dev] [IS] Client authentication for SAML2 Bearer Assertion Profiles

2015-02-20 Thread Dulanja Liyanage
IMO we should have a config like "strictClientCredentialValidation".

true: must validate the credentials,
false*:* validate only when credentials are available in the request.

And this check should be done before hitting the
BasicAuthClientAuthHandler, at the authentication manager level.

We can start from there and then think about integration to the UI, which
would be required especially because for mutitenancy scenarios.

On Fri, Feb 20, 2015 at 3:04 PM, Nuwandi Wickramasinghe 
wrote:

> Hi,
>
> I have some concerns regarding JIRA issue [1]
>
> If client credentials are unavailable, is it ok to skip client
> authentication process in issue() method
> (org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer) for SAML2 bearer
> type ?
>
> Also should we give an option for user to select whether client
> credentials are optional or not? And fail authentication if no credentials
> are available and user says it's mandatory?
>
> [1] https://wso2.org/jira/browse/IDENTITY-3028
> --
>
> Best Regards,
>
> Nuwandi Wickramasinghe
>
> Software Engineer
>
> WSO2 Inc.
>
> Web : http://wso2.com
>
> Mobile : 0719214873
>



-- 
Dulanja Liyanage
WSO2 Inc.
M: +94776764717
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] CodePlex ESB connector review

2015-02-20 Thread Shakila Sivagnanarajah
Hi Tharik and Pumudu,

Please find the feedbacks regarding the CodePlex connector.

   1. Some dependencies need to be changed.
   2. Instead of SNAPSHOT versions, use stable versions for libraries.
   3. Please modify the pom to run the test cases in a single build.
   4. Format the code and send the pull request to
   https://github.com/wso2/esb-connectors.


Thank you

-- 
Shakila Sivagnanarajah
Associate Software Engineer
Mobile :+94 (0) 770 760240
shak...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon] Exception when trying to insert data through the created carbon component

2015-02-20 Thread Gayashan Amarasinghe
To add to what Amal has explained, in java, the compiler will create a
default(with no arguments) constructor if you have not specified any
constructor. However if you have created a parameterized constructor it
will not create any default constructor. Combine that with the java beans
convention, you have the answer. :)

Thanks.
/Gayashan

On Fri, Feb 20, 2015 at 3:01 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Amal,
>
> Thanks for the explanation. That really helped.
>
> Regards
> /Thusitha
>
> On Fri, Feb 20, 2015 at 4:07 AM, Amal Gunatilake  wrote:
>
>> Hi Thusitha,
>>
>> First of all Axis2 supports JavaBeans and therefore you need to adhere to
>> JavaBeans standards when using it. Please have a look at JavaBeans
>> Conventions in [1]
>> . There it
>> states "The class must have a public default constructor
>>  (with no arguments).
>> This allows easy instantiation within editing and activation frameworks."
>>
>> I hope this answers your both questions. :)
>>
>> [1] http://en.wikipedia.org/wiki/JavaBeans#JavaBean_conventions
>>
>> Thank you,
>> Amal.
>>
>> On Fri, Feb 20, 2015 at 1:54 AM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I tried to invoke the add method using the SoapUI. But I got a Soap
>>> fault.
>>> In my Item class constructor is in *public Item(int id, String name,
>>> float price)* I didn't had a default no arg constructor in the class.
>>> When I put the default constructor to the item class everything works fine.
>>>
>>> I have few points that I like to get clarify
>>>
>>> *1. *When I didn't had the default constructor and trying to create an
>>> Item from the jsp with custom constructor as Item item2 = new Item(12, 
>>> "Custom
>>> Item", 125.30);
>>> I got following compilation error.
>>>

 *PWC6199: Generated servlet error:**The constructor Item(int, String,
 double) is undefined*
>>>
>>>
>>>  But I'm able to create Item instance as Item item2 = new Item(); and
>>> then set the values using setters.
>>>  Is this the expected outcome when generating the stub from WSDL2Java ?
>>>
>>> *2. *Should we always specify the default no args constructor, if we
>>> overload the constructor?
>>>
>>> Best Regards
>>> /Thusitha
>>>
>>>
>>> On Thu, Feb 19, 2015 at 4:52 PM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
 Hi Amal, Gayashan,

 Thanks for your responses. I will try out your suggestions and see if I
 will be able to get it solve.


 Regards
 /Thusitha

 On Thu, Feb 19, 2015 at 3:42 PM, Gayashan Amarasinghe <
 gayas...@wso2.com> wrote:

> Hi Thusitha,
>
> Here you are calling the service via client who calls the service
> stub. In that case the item pojo you are trying to insert should be the
> same object as the one in the WSDL contract. Can you check if it's the 
> same
> object?
>
> Thanks.
> /Gayashan
>
> On Thu, Feb 19, 2015 at 9:45 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi,
>>
>> I'm trying to create a Carbon component based on the [1]. I was able
>> to get the list of orders successfully. But when I'm trying to add a new
>> Order, I'm getting an Exception
>> Here is the stack-trace.
>>
>>
>>> org.apache.axis2.AxisFault:
>>> org.wso2.training.carbon.order.mgt.data.Item
>>> at
>>> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
>>> at
>>> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
>>> at
>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
>>> at
>>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>>> at
>>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>>> at
>>> org.wso2.training.carbon.order.mgt.stub.OrderManagerStub.addOrder(OrderManagerStub.java:736)
>>> at
>>> org.wso2.training.carbon.order.mgt.ui.OrderManagerClient.addOrder(OrderManagerClient.java:67)
>>> at
>>> org.apache.jsp.order_002dmgt.index_jsp._jspService(org.apache.jsp.order_002dmgt.index_jsp:100)
>>> at
>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>> at
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
>>> at
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
>>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>>> at
>>> org.wso2.carbon.ui.T

Re: [Dev] [Stratos] CloudControllerServiceCartridgeNotFoundExceptionException when adding the application

2015-02-20 Thread Mariangela Hills
Fixed this issue in the following pages:

   -
   
https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Single+Cartridge+on+EC2
   -
   
https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Single+Cartridge+on+Kubernetes
   -
   
https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Single+Cartridge+on+OpenStack



Regards,
Mariangela




*--*
Mariangela Hills
Senior Technical Writer

*WSO2, Inc.*lean.enterprise.middleware.
m: +94 773 500185
w: http://wso2.com


On Fri, Feb 20, 2015 at 11:19 AM, Udara Liyanage  wrote:

> Hi Mari,
>
> Issue still exist in other IaaSes such as Openstack. Need to fix them too.
>
> On Wed, Feb 18, 2015 at 3:55 PM, Mariangela Hills 
> wrote:
>
>> This has been fixed in [1]. Thanks, for reporting!
>>
>> [1] https://issues.apache.org/jira/browse/STRATOS-1198
>>
>> Regards,
>> Mariangela
>>
>>
>>
>>
>> *--*
>> Mariangela Hills
>> Senior Technical Writer
>>
>> *WSO2, Inc.*lean.enterprise.middleware.
>> m: +94 773 500185
>> w: http://wso2.com
>> 
>>
>> On Wed, Feb 18, 2015 at 2:34 PM, Udara Liyanage  wrote:
>>
>>> Hi Mari,
>>>
>>> There was an mistake in the doc mentioned. It should deploy php
>>> cartridge instead of tomcat.
>>>
>>> On Wed, Feb 18, 2015 at 2:33 PM, Sajith Abeywardhana 
>>> wrote:
>>>
 Hi Udara,

 Yes, Application refers to php cartilage, but stratos do have only
 tomcat cartilage. I suggest your team to correct the document. In 4th
 number curl command should execute the php.json file instead of tomcat.json
 as you pointed out.


 *Sajith Abeywardhana* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka.
 Mobile: +94772260485
 Email: saji...@wso2.com  | Web: www.wso2.com

 On Wed, Feb 18, 2015 at 2:12 PM, Udara Liyanage  wrote:

> Hi,
>
> It seems the cartridge you refereed in your application is not added.
> Can you share your artefacts.
>
> On Wed, Feb 18, 2015 at 1:59 PM, Sajith Abeywardhana  > wrote:
>
>> Hi All,
>>
>> I'm trying to deploy an application in PaaS 4.1.0 as for this
>> documentation [1]. When I execute the 5th number curl command I got the
>> below exception.
>>
>> [1] -
>> https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Single+Cartridge+on+Mock+IaaS
>>
>>
>> [2015-02-18 13:40:15,296]  INFO
>> {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
>>  Adding application: [application-id] single-cartridge-app
>> [2015-02-18 13:40:15,361]  INFO
>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>  'admin@carbon.super [-1234]' logged in at [2015-02-18
>> 13:40:15,361+0530]
>> [2015-02-18 13:40:15,391]  INFO
>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>  'admin@carbon.super [-1234]' logged in at [2015-02-18
>> 13:40:15,391+0530]
>> [2015-02-18 13:40:15,405]  INFO
>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>  'admin@carbon.super [-1234]' logged in at [2015-02-18
>> 13:40:15,405+0530]
>> [2015-02-18 13:40:15,432]  INFO
>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>  'admin@carbon.super [-1234]' logged in at [2015-02-18
>> 13:40:15,432+0530]
>> [2015-02-18 13:40:15,461]  INFO
>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>  'admin@carbon.super [-1234]' logged in at [2015-02-18
>> 13:40:15,461+0530]
>> [2015-02-18 13:40:16,097] ERROR
>> {org.apache.stratos.autoscaler.client.CloudControllerClient} -
>>  CloudControllerServiceCartridgeNotFoundExceptionException
>> org.apache.stratos.cloud.controller.stub.CloudControllerServiceCartridgeNotFoundExceptionException:
>> CloudControllerServiceCartridgeNotFoundExceptionException
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>> at java.lang.Class.newInstance0(Class.java:357)
>> at java.lang.Class.newInstance(Class.java:310)
>> at
>> org.apache.stratos.cloud.controller.stub.CloudControllerServiceStub.getCartridgeInfo(CloudControllerServiceStub.java:4171)
>> at
>> org.apache.stratos.autoscaler.client.CloudControllerClient.getCartrdgeInformation(CloudControllerClient.java:316)
>> at
>> org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.getCartridge(DefaultApplicationParser.java:887)
>> at
>> org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser.createClusterDataMap(DefaultApplicationParser.java:461)
>> at

[Dev] [IS] Client authentication for SAML2 Bearer Assertion Profiles

2015-02-20 Thread Nuwandi Wickramasinghe
Hi,

I have some concerns regarding JIRA issue [1]

If client credentials are unavailable, is it ok to skip client
authentication process in issue() method
(org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer) for SAML2 bearer
type ?

Also should we give an option for user to select whether client credentials
are optional or not? And fail authentication if no credentials are
available and user says it's mandatory?

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

Best Regards,

Nuwandi Wickramasinghe

Software Engineer

WSO2 Inc.

Web : http://wso2.com

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


Re: [Dev] [ESB] Building from source Fails

2015-02-20 Thread Hasanthi Purnima Dissanayake
Hi Manorama,
I built all the patches in kernel that you have mentioned in [1]. As I said
earlier all the orbit, kernel and platform built successfully. But I can't
build the ESB product.

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

Thanks.

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com 
M :0718407133| http://wso2.com 

On Fri, Feb 20, 2015 at 2:42 PM, Manorama Perera  wrote:

> Hi Hasanthi,
>
> Before building the product you have build the respective kernal patches
> for the particular chunk in which the product is released.
> You can checkout the kernel patches from here[1].
> You can refer [2] to find out the patches that need to be built for a
> given chunk.
>
> [1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/
> [2] http://wso2.com/products/carbon/release-matrix/
>
> Thanks
>
> On Fri, Feb 20, 2015 at 2:25 PM, Hasanthi Purnima Dissanayake <
> hasan...@wso2.com> wrote:
>
>> Hi All,
>> I need to build ESB from source. I checked out orbit , kernel and
>> platform from [1],[2] and [3] and built them as mentioned order. All the
>> three directories built successfully. But when I'm building the ESB product
>> inside ~/Platform/products/esb/4.8.1 it fails with below error.
>>
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] WSO2 ESB - Aggregator Module .. SUCCESS
>> [0.286s]
>> [INFO] WSO2 ESB - Styles Parent .. SUCCESS
>> [0.022s]
>> [INFO] WSO2 ESB - Styles . SUCCESS
>> [1.551s]
>> [INFO] WSO2 Stratos ESB - Styles . SUCCESS
>> [0.323s]
>> [INFO] WSO2 ESB - Samples Parent . SUCCESS
>> [0.287s]
>> [INFO] WSO2 ESB - Samples  FAILURE
>> [1.123s]
>> [INFO] WSO2 Stratos ESB - Samples  SKIPPED
>> [INFO] WSO2 ESB - Features Parent  SKIPPED
>> [INFO] WSO2 ESB - Features Aggregator Module . SKIPPED
>> [INFO] WSO2 ESB - Styles Features  SKIPPED
>> [INFO] WSO2 ESB - Samples Features ... SKIPPED
>> [INFO] WSO2 Stratos ESB - Login User Interface ... SKIPPED
>> [INFO] WSO2 Stratos ESB - Features Aggregator Module . SKIPPED
>> [INFO] WSO2 Stratos ESB - Login UI Feature ... SKIPPED
>> [INFO] WSO2 Stratos ESB - Styles Features  SKIPPED
>> [INFO] WSO2 Stratos ESB - Samples Features ... SKIPPED
>> [INFO] WSO2 ESB - P2 Profile Generation .. SKIPPED
>> [INFO] WSO2 ESB - Distribution ... SKIPPED
>> [INFO] WSO2 ESB - Integration Parent . SKIPPED
>> [INFO] ESB Test Service Module ... SKIPPED
>> [INFO] Integration Commons Module - ESB test Module .. SKIPPED
>> [INFO] WSO2 ESB Integration Test Core  SKIPPED
>> [INFO] ESB Mediators Test Module - 1 . SKIPPED
>> [INFO] ESB Mediators Test Module - 2 . SKIPPED
>> [INFO] ESB test Module - Sample .. SKIPPED
>> [INFO] ESB test Module-Transport . SKIPPED
>> [INFO] ESB test Module-Other . SKIPPED
>> [INFO] ESB test Module-Service ... SKIPPED
>> [INFO] ESB UI Test Module  SKIPPED
>> [INFO] Integration Test Reporting  SKIPPED
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 5.404s
>> [INFO] Finished at: Fri Feb 20 12:18:07 IST 2015
>> [INFO] Final Memory: 18M/204M
>> [INFO]
>> 
>> [ERROR] Failed to execute goal on project org.wso2.esb.samples: Could not
>> resolve dependencies for project
>> org.wso2.esb:org.wso2.esb.samples:bundle:4.8.1: Failed to collect
>> dependencies for [org.apache.synapse:synapse-core:jar:2.1.2-wso2v1
>> (compile), org.apache.synapse:synapse-commons:jar:2.1.2-wso2v1 (compile),
>> org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3 (compile),
>> org.apache.rampart.wso2:rampart-core:jar:1.6.1.wso2v10 (compile),
>> org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar:1.1.0.wso2v1
>> (compile)]: Failed to read artifact descriptor for
>> org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3: Failure to find
>> org.wso2.carbon:carbon-parent:pom:4.0.0-SNAPSHOT in
>> http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
>> the local repository, resolution will not be reattempted until the update
>> interval of wso2-nexus has elapsed or updates are forced -> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug

Re: [Dev] Internal User Authentication

2015-02-20 Thread Johann Nallathamby
You should get the UserRealm from the CarbonContext and authenticate.

CarbonContext.getThreadLocalCarbonContext().getUserRealm().getUserStoreManager().authenticate()

On Fri, Feb 20, 2015 at 2:10 PM, Pubudu Dodangoda  wrote:

> I have a method which authenticates a user using an authentication stub,
> which requires the code to provide the service end point and the
> configuration context specifically
>
> Is there a way to authenticate a user internally without going on this
> long route?
>
> Note- The web app is hosted inside the BAM, and start automatically when
> the carbon server starts
>
>
> --
> Pubudu Dodangoda
> BSc Engineering(Hon's) Undergraduate
> Department of Computer Science Engineering
> University of Moratuwa
> 0716053681 / 0775192994
>



-- 
Thanks & Regards,

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

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


Re: [Dev] [MB][ERROR] MalformedSecuirtyException

2015-02-20 Thread Pranavan Theivendram
I have fixed.
The problem is because URL does not support amqp.

On Fri, Feb 20, 2015 at 2:05 PM, Pranavan Theivendram 
wrote:

> Hi Lakshman,
>
> Please check
>
> ERROR
> [org.wso2.mb.integration.common.utils.backend.MBSecurityManagerBaseTest] -
> MalformedURLException
> java.net.MalformedURLException: unknown protocol: amqp
> at java.net.URL.(URL.java:590)
> at java.net.URL.(URL.java:480)
> at java.net.URL.(URL.java:429)
> at
> org.wso2.mb.integration.tests.amqp.functional.SSLSendReceiveSecurityEnabledTestCase.performCheckConnection(SSLSendReceiveSecurityEnabledTestCase.java:127)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at
> org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
> at
> org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
> at org.testng.TestRunner.privateRun(TestRunner.java:767)
> at org.testng.TestRunner.run(TestRunner.java:617)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
> at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
> at org.testng.TestNG.run(TestNG.java:1057)
> at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
> at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
> at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> java.net.MalformedURLException: unknown protocol: amqp
>
>
> On Thu, Feb 19, 2015 at 1:42 PM, Pranavan Theivendram 
> wrote:
>
>> Hi Lakshman,
>>
>> Thanks for the prompt reply. I have resolved it.
>>
>> On Thu, Feb 19, 2015 at 11:31 AM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>>
>>> Hi Pravanan,
>>>
>>> Can you post the stack-trace?
>>>
>>> Thanks
>>>
>>> On Thu, Feb 19, 2015 at 11:26 AM, Pranavan Theivendram <
>>> pranav...@wso2.com> wrote:
>>>
 Hi All,

 I am getting MalformedSecuirtyException while I am running the
 following code segment . Can anyone please help in this issue?

 String sslConnectionURL = 
 "amqp://admin:admin@carbon/carbon?brokerlist='tcp://localhost:8672?ssl='true'"
  +
 "&ssl_cert_alias='RootCA'&trust_store='" + trustStorePath + 
 "'&trust_store_password='" +
 trustStorePassword
 + "'&key_store='" + keyStorePath + "'&key_store_password='" + 
 keyStorePassword + "''";

 try {
 SSLContext sc = SSLContext.getInstance("SSL");
 sc.init(null, trustAllCerts, new java.security.SecureRandom());
 HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
 } catch (GeneralSecurityException e) {
 log.error("= GeneralSecurityException 
 ");
 }
 // Now you can access an https URL without having the certificate in the 
 truststore
 try {
 URL url = new URL(sslConnectionURL);
 } catch (MalformedURLException e) {
 log.error("= MalformedURLException 
 ");
 }

 --

 *Regards,*

 *T.Pranavan*

 *Software Engineering intern, WSO2*
 *Mobile - +94775136836 <%2B94775136836>*

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


>>>
>>>

Re: [Dev] [ESB] Building from source Fails

2015-02-20 Thread Manorama Perera
Hi Hasanthi,

Before building the product you have build the respective kernal patches
for the particular chunk in which the product is released.
You can checkout the kernel patches from here[1].
You can refer [2] to find out the patches that need to be built for a given
chunk.

[1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/
[2] http://wso2.com/products/carbon/release-matrix/

Thanks

On Fri, Feb 20, 2015 at 2:25 PM, Hasanthi Purnima Dissanayake <
hasan...@wso2.com> wrote:

> Hi All,
> I need to build ESB from source. I checked out orbit , kernel and platform
> from [1],[2] and [3] and built them as mentioned order. All the three
> directories built successfully. But when I'm building the ESB product
> inside ~/Platform/products/esb/4.8.1 it fails with below error.
>
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 ESB - Aggregator Module .. SUCCESS [0.286s]
> [INFO] WSO2 ESB - Styles Parent .. SUCCESS [0.022s]
> [INFO] WSO2 ESB - Styles . SUCCESS [1.551s]
> [INFO] WSO2 Stratos ESB - Styles . SUCCESS [0.323s]
> [INFO] WSO2 ESB - Samples Parent . SUCCESS [0.287s]
> [INFO] WSO2 ESB - Samples  FAILURE [1.123s]
> [INFO] WSO2 Stratos ESB - Samples  SKIPPED
> [INFO] WSO2 ESB - Features Parent  SKIPPED
> [INFO] WSO2 ESB - Features Aggregator Module . SKIPPED
> [INFO] WSO2 ESB - Styles Features  SKIPPED
> [INFO] WSO2 ESB - Samples Features ... SKIPPED
> [INFO] WSO2 Stratos ESB - Login User Interface ... SKIPPED
> [INFO] WSO2 Stratos ESB - Features Aggregator Module . SKIPPED
> [INFO] WSO2 Stratos ESB - Login UI Feature ... SKIPPED
> [INFO] WSO2 Stratos ESB - Styles Features  SKIPPED
> [INFO] WSO2 Stratos ESB - Samples Features ... SKIPPED
> [INFO] WSO2 ESB - P2 Profile Generation .. SKIPPED
> [INFO] WSO2 ESB - Distribution ... SKIPPED
> [INFO] WSO2 ESB - Integration Parent . SKIPPED
> [INFO] ESB Test Service Module ... SKIPPED
> [INFO] Integration Commons Module - ESB test Module .. SKIPPED
> [INFO] WSO2 ESB Integration Test Core  SKIPPED
> [INFO] ESB Mediators Test Module - 1 . SKIPPED
> [INFO] ESB Mediators Test Module - 2 . SKIPPED
> [INFO] ESB test Module - Sample .. SKIPPED
> [INFO] ESB test Module-Transport . SKIPPED
> [INFO] ESB test Module-Other . SKIPPED
> [INFO] ESB test Module-Service ... SKIPPED
> [INFO] ESB UI Test Module  SKIPPED
> [INFO] Integration Test Reporting  SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 5.404s
> [INFO] Finished at: Fri Feb 20 12:18:07 IST 2015
> [INFO] Final Memory: 18M/204M
> [INFO]
> 
> [ERROR] Failed to execute goal on project org.wso2.esb.samples: Could not
> resolve dependencies for project
> org.wso2.esb:org.wso2.esb.samples:bundle:4.8.1: Failed to collect
> dependencies for [org.apache.synapse:synapse-core:jar:2.1.2-wso2v1
> (compile), org.apache.synapse:synapse-commons:jar:2.1.2-wso2v1 (compile),
> org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3 (compile),
> org.apache.rampart.wso2:rampart-core:jar:1.6.1.wso2v10 (compile),
> org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar:1.1.0.wso2v1
> (compile)]: Failed to read artifact descriptor for
> org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3: Failure to find
> org.wso2.carbon:carbon-parent:pom:4.0.0-SNAPSHOT in
> http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
> local repository, resolution will not be reattempted until the update
> interval of wso2-nexus has elapsed or updates are forced -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn  -rf :org.wso2.esb.samples
>
> [1] http://svn.wso2.org/repos/wso2/carbon/orbit/trunk/
> [2] http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/
> [3] http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing

Re: [Dev] Error when building the Student-Manager Carbon Component

2015-02-20 Thread Farasath Ahamed
I think the article[1] needs some updates especially the poms.

This was pointed out earlier in the thread "Update Tutorial on How to write
WSO2 carbon component".

I think it would be convenient for those who follow [1] if it could be
updated with the necessary changes.


[1]
http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

On Fri, Feb 20, 2015 at 2:29 PM, Shenavi de Mel  wrote:

> Hi,
>
> I externally added the axis2-client folder into my maven repository and
> now it builds with no errors. Thanks alot for the assistance,
>
> Thanks & Best Regards.
>
> *Shenavi de Mel*
> Software Engineer
> WSO2 Inc: http://wso2.com
> email: shen...@wso2.com
> mobile:+94771244470
>
>
> On Fri, Feb 20, 2015 at 2:18 PM, Shenavi de Mel  wrote:
>
>> Hi,
>>
>> I had added the dependencies and the paths to my pom.xml when i was
>> getting the error as well. But seems like the axis2-client is not available
>> in my maven repository. The other two dependencies are available.I will
>> include the axis-client jar and build it again. That might have been the
>> problem then. Thank You.
>>
>> Thanks & Best Regards.
>>
>> *Shenavi de Mel*
>> Software Engineer
>> WSO2 Inc: http://wso2.com
>> email: shen...@wso2.com
>> mobile:+94771244470
>>
>>
>> On Fri, Feb 20, 2015 at 1:51 PM, Chathura Priyankara 
>> wrote:
>>
>>> Hi,
>>>
>>> You should have axis2 clint jar. Make sure that you have axis2 client
>>> jar dependency and the following class path in your pom.xml.
>>>
>>> >> location="${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar"
>>> />
>>>
>>> Thanks!
>>> Best Regards,
>>>
>>> On Fri, Feb 20, 2015 at 1:25 PM, Jagath Sisirakumara Ariyarathne <
>>> jaga...@wso2.com> wrote:
>>>
 Hi,

 Also check whether the correct jar file is available in below
 configured path.

 >>> location="${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar"
 />

 Thanks.

 On Fri, Feb 20, 2015 at 12:47 PM, Udara Liyanage 
 wrote:

> Hi,
>
> Could you try adding wsdl4j as a dependency and check.
>
> [1] http://grepcode.com/search/?query=javax/wsdl
>
> On Fri, Feb 20, 2015 at 12:33 PM, Shenavi de Mel 
> wrote:
>
>> Hi Team,
>>
>> I am currently following the tutorial [1] on building a carbon
>> component, After creating the stub components and building, the build is
>> successful but it generates the error below. Is there anything to be done
>> to resolve this error?
>> I have also attached the pom file of the stub module and the WSDL
>> file for your reference.
>>
>>
>> [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @
>> org.wso2.carbon.student.mgt.stub ---
>> [INFO] Executing tasks
>>  [java] Exception in thread "main"
>> java.lang.NoClassDefFoundError: javax/wsdl/WSDLException
>>  [java] at
>> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>>  [java] at
>> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>>  [java] Caused by: java.lang.ClassNotFoundException:
>> javax.wsdl.WSDLException
>>  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>>  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>>  [java] at java.security.AccessController.doPrivileged(Native
>> Method)
>>  [java] at
>> java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>>  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>>  [java] at
>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>>  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>  [java] ... 2 more
>>  [java] Java Result: 1
>> [INFO] Executed tasks
>>
>> [1]
>> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>>
>> Thanks & Best Regards
>> *Shenavi de Mel*
>> Software Engineer
>> WSO2 Inc: http://wso2.com
>> email: shen...@wso2.com
>> mobile:+94771244470
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048


 ___
 Dev mailing list
 Dev@wso

Re: [Dev] Error when building the Student-Manager Carbon Component

2015-02-20 Thread Shenavi de Mel
Hi,

I externally added the axis2-client folder into my maven repository and now
it builds with no errors. Thanks alot for the assistance,

Thanks & Best Regards.

*Shenavi de Mel*
Software Engineer
WSO2 Inc: http://wso2.com
email: shen...@wso2.com
mobile:+94771244470


On Fri, Feb 20, 2015 at 2:18 PM, Shenavi de Mel  wrote:

> Hi,
>
> I had added the dependencies and the paths to my pom.xml when i was
> getting the error as well. But seems like the axis2-client is not available
> in my maven repository. The other two dependencies are available.I will
> include the axis-client jar and build it again. That might have been the
> problem then. Thank You.
>
> Thanks & Best Regards.
>
> *Shenavi de Mel*
> Software Engineer
> WSO2 Inc: http://wso2.com
> email: shen...@wso2.com
> mobile:+94771244470
>
>
> On Fri, Feb 20, 2015 at 1:51 PM, Chathura Priyankara 
> wrote:
>
>> Hi,
>>
>> You should have axis2 clint jar. Make sure that you have axis2 client jar
>> dependency and the following class path in your pom.xml.
>>
>> > location="${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar"
>> />
>>
>> Thanks!
>> Best Regards,
>>
>> On Fri, Feb 20, 2015 at 1:25 PM, Jagath Sisirakumara Ariyarathne <
>> jaga...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Also check whether the correct jar file is available in below configured
>>> path.
>>>
>>> >> location="${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar"
>>> />
>>>
>>> Thanks.
>>>
>>> On Fri, Feb 20, 2015 at 12:47 PM, Udara Liyanage  wrote:
>>>
 Hi,

 Could you try adding wsdl4j as a dependency and check.

 [1] http://grepcode.com/search/?query=javax/wsdl

 On Fri, Feb 20, 2015 at 12:33 PM, Shenavi de Mel 
 wrote:

> Hi Team,
>
> I am currently following the tutorial [1] on building a carbon
> component, After creating the stub components and building, the build is
> successful but it generates the error below. Is there anything to be done
> to resolve this error?
> I have also attached the pom file of the stub module and the WSDL file
> for your reference.
>
>
> [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @
> org.wso2.carbon.student.mgt.stub ---
> [INFO] Executing tasks
>  [java] Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/wsdl/WSDLException
>  [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>  [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>  [java] Caused by: java.lang.ClassNotFoundException:
> javax.wsdl.WSDLException
>  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>  [java] at java.security.AccessController.doPrivileged(Native
> Method)
>  [java] at
> java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>  [java] at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>  [java] ... 2 more
>  [java] Java Result: 1
> [INFO] Executed tasks
>
> [1]
> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>
> Thanks & Best Regards
> *Shenavi de Mel*
> Software Engineer
> WSO2 Inc: http://wso2.com
> email: shen...@wso2.com
> mobile:+94771244470
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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


>>>
>>>
>>> --
>>> Jagath Ariyarathne
>>> Technical Lead
>>> WSO2 Inc.  http://wso2.com/
>>> Email: jaga...@wso2.com
>>> Mob  : +94 77 386 7048
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Chathura Priyankara
>> Software Engineer | WSO2 Inc.
>> Mobile : +94718795340
>> Blog : www.codeoncloud.blogspot.com
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] Building from source Fails

2015-02-20 Thread Hasanthi Purnima Dissanayake
Hi All,
I need to build ESB from source. I checked out orbit , kernel and platform
from [1],[2] and [3] and built them as mentioned order. All the three
directories built successfully. But when I'm building the ESB product
inside ~/Platform/products/esb/4.8.1 it fails with below error.

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 ESB - Aggregator Module .. SUCCESS [0.286s]
[INFO] WSO2 ESB - Styles Parent .. SUCCESS [0.022s]
[INFO] WSO2 ESB - Styles . SUCCESS [1.551s]
[INFO] WSO2 Stratos ESB - Styles . SUCCESS [0.323s]
[INFO] WSO2 ESB - Samples Parent . SUCCESS [0.287s]
[INFO] WSO2 ESB - Samples  FAILURE [1.123s]
[INFO] WSO2 Stratos ESB - Samples  SKIPPED
[INFO] WSO2 ESB - Features Parent  SKIPPED
[INFO] WSO2 ESB - Features Aggregator Module . SKIPPED
[INFO] WSO2 ESB - Styles Features  SKIPPED
[INFO] WSO2 ESB - Samples Features ... SKIPPED
[INFO] WSO2 Stratos ESB - Login User Interface ... SKIPPED
[INFO] WSO2 Stratos ESB - Features Aggregator Module . SKIPPED
[INFO] WSO2 Stratos ESB - Login UI Feature ... SKIPPED
[INFO] WSO2 Stratos ESB - Styles Features  SKIPPED
[INFO] WSO2 Stratos ESB - Samples Features ... SKIPPED
[INFO] WSO2 ESB - P2 Profile Generation .. SKIPPED
[INFO] WSO2 ESB - Distribution ... SKIPPED
[INFO] WSO2 ESB - Integration Parent . SKIPPED
[INFO] ESB Test Service Module ... SKIPPED
[INFO] Integration Commons Module - ESB test Module .. SKIPPED
[INFO] WSO2 ESB Integration Test Core  SKIPPED
[INFO] ESB Mediators Test Module - 1 . SKIPPED
[INFO] ESB Mediators Test Module - 2 . SKIPPED
[INFO] ESB test Module - Sample .. SKIPPED
[INFO] ESB test Module-Transport . SKIPPED
[INFO] ESB test Module-Other . SKIPPED
[INFO] ESB test Module-Service ... SKIPPED
[INFO] ESB UI Test Module  SKIPPED
[INFO] Integration Test Reporting  SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 5.404s
[INFO] Finished at: Fri Feb 20 12:18:07 IST 2015
[INFO] Final Memory: 18M/204M
[INFO]

[ERROR] Failed to execute goal on project org.wso2.esb.samples: Could not
resolve dependencies for project
org.wso2.esb:org.wso2.esb.samples:bundle:4.8.1: Failed to collect
dependencies for [org.apache.synapse:synapse-core:jar:2.1.2-wso2v1
(compile), org.apache.synapse:synapse-commons:jar:2.1.2-wso2v1 (compile),
org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3 (compile),
org.apache.rampart.wso2:rampart-core:jar:1.6.1.wso2v10 (compile),
org.apache.geronimo.specs.wso2:geronimo-jms_1.1_spec:jar:1.1.0.wso2v1
(compile)]: Failed to read artifact descriptor for
org.apache.ws.security.wso2:wss4j:jar:1.5.11.wso2v3: Failure to find
org.wso2.carbon:carbon-parent:pom:4.0.0-SNAPSHOT in
http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
local repository, resolution will not be reattempted until the update
interval of wso2-nexus has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn  -rf :org.wso2.esb.samples

[1] http://svn.wso2.org/repos/wso2/carbon/orbit/trunk/
[2] http://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/
[3] http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/

Please help me to fix the issue.

Thanks and Regards,

Hasanthi Dissanayake

Software Engineer | WSO2

E: hasan...@wso2.com 
M :0718407133| http://wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when building the Student-Manager Carbon Component

2015-02-20 Thread Shenavi de Mel
Hi,

I had added the dependencies and the paths to my pom.xml when i was getting
the error as well. But seems like the axis2-client is not available in my
maven repository. The other two dependencies are available.I will include
the axis-client jar and build it again. That might have been the problem
then. Thank You.

Thanks & Best Regards.

*Shenavi de Mel*
Software Engineer
WSO2 Inc: http://wso2.com
email: shen...@wso2.com
mobile:+94771244470


On Fri, Feb 20, 2015 at 1:51 PM, Chathura Priyankara 
wrote:

> Hi,
>
> You should have axis2 clint jar. Make sure that you have axis2 client jar
> dependency and the following class path in your pom.xml.
>
>  location="${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar"
> />
>
> Thanks!
> Best Regards,
>
> On Fri, Feb 20, 2015 at 1:25 PM, Jagath Sisirakumara Ariyarathne <
> jaga...@wso2.com> wrote:
>
>> Hi,
>>
>> Also check whether the correct jar file is available in below configured
>> path.
>>
>> > location="${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar"
>> />
>>
>> Thanks.
>>
>> On Fri, Feb 20, 2015 at 12:47 PM, Udara Liyanage  wrote:
>>
>>> Hi,
>>>
>>> Could you try adding wsdl4j as a dependency and check.
>>>
>>> [1] http://grepcode.com/search/?query=javax/wsdl
>>>
>>> On Fri, Feb 20, 2015 at 12:33 PM, Shenavi de Mel 
>>> wrote:
>>>
 Hi Team,

 I am currently following the tutorial [1] on building a carbon
 component, After creating the stub components and building, the build is
 successful but it generates the error below. Is there anything to be done
 to resolve this error?
 I have also attached the pom file of the stub module and the WSDL file
 for your reference.


 [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @
 org.wso2.carbon.student.mgt.stub ---
 [INFO] Executing tasks
  [java] Exception in thread "main" java.lang.NoClassDefFoundError:
 javax/wsdl/WSDLException
  [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
  [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
  [java] Caused by: java.lang.ClassNotFoundException:
 javax.wsdl.WSDLException
  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  [java] at java.security.AccessController.doPrivileged(Native
 Method)
  [java] at
 java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  [java] at
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  [java] ... 2 more
  [java] Java Result: 1
 [INFO] Executed tasks

 [1]
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

 Thanks & Best Regards
 *Shenavi de Mel*
 Software Engineer
 WSO2 Inc: http://wso2.com
 email: shen...@wso2.com
 mobile:+94771244470


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


>>>
>>>
>>> --
>>>
>>> Udara Liyanage
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> web: http://udaraliyanage.wordpress.com
>>> phone: +94 71 443 6897
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Jagath Ariyarathne
>> Technical Lead
>> WSO2 Inc.  http://wso2.com/
>> Email: jaga...@wso2.com
>> Mob  : +94 77 386 7048
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chathura Priyankara
> Software Engineer | WSO2 Inc.
> Mobile : +94718795340
> Blog : www.codeoncloud.blogspot.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Internal User Authentication

2015-02-20 Thread Pubudu Dodangoda
I have a method which authenticates a user using an authentication stub,
which requires the code to provide the service end point and the
configuration context specifically

Is there a way to authenticate a user internally without going on this long
route?

Note- The web app is hosted inside the BAM, and start automatically when
the carbon server starts


-- 
Pubudu Dodangoda
BSc Engineering(Hon's) Undergraduate
Department of Computer Science Engineering
University of Moratuwa
0716053681 / 0775192994
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB][ERROR] MalformedSecuirtyException

2015-02-20 Thread Pranavan Theivendram
Hi Lakshman,

Please check

ERROR
[org.wso2.mb.integration.common.utils.backend.MBSecurityManagerBaseTest] -
MalformedURLException
java.net.MalformedURLException: unknown protocol: amqp
at java.net.URL.(URL.java:590)
at java.net.URL.(URL.java:480)
at java.net.URL.(URL.java:429)
at
org.wso2.mb.integration.tests.amqp.functional.SSLSendReceiveSecurityEnabledTestCase.performCheckConnection(SSLSendReceiveSecurityEnabledTestCase.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at
org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
java.net.MalformedURLException: unknown protocol: amqp


On Thu, Feb 19, 2015 at 1:42 PM, Pranavan Theivendram 
wrote:

> Hi Lakshman,
>
> Thanks for the prompt reply. I have resolved it.
>
> On Thu, Feb 19, 2015 at 11:31 AM, Lakshman Udayakantha  > wrote:
>
>> Hi Pravanan,
>>
>> Can you post the stack-trace?
>>
>> Thanks
>>
>> On Thu, Feb 19, 2015 at 11:26 AM, Pranavan Theivendram <
>> pranav...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> I am getting MalformedSecuirtyException while I am running the following
>>> code segment . Can anyone please help in this issue?
>>>
>>> String sslConnectionURL = 
>>> "amqp://admin:admin@carbon/carbon?brokerlist='tcp://localhost:8672?ssl='true'"
>>>  +
>>> "&ssl_cert_alias='RootCA'&trust_store='" + trustStorePath + 
>>> "'&trust_store_password='" +
>>> trustStorePassword
>>> + "'&key_store='" + keyStorePath + "'&key_store_password='" + 
>>> keyStorePassword + "''";
>>>
>>> try {
>>> SSLContext sc = SSLContext.getInstance("SSL");
>>> sc.init(null, trustAllCerts, new java.security.SecureRandom());
>>> HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
>>> } catch (GeneralSecurityException e) {
>>> log.error("= GeneralSecurityException 
>>> ");
>>> }
>>> // Now you can access an https URL without having the certificate in the 
>>> truststore
>>> try {
>>> URL url = new URL(sslConnectionURL);
>>> } catch (MalformedURLException e) {
>>> log.error("= MalformedURLException 
>>> ");
>>> }
>>>
>>> --
>>>
>>> *Regards,*
>>>
>>> *T.Pranavan*
>>>
>>> *Software Engineering intern, WSO2*
>>> *Mobile - +94775136836 <%2B94775136836>*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0711241005*
>>
>>
>
>
> --
>
> *Regards,*
>
> *T.Pranavan*
>
> *Software Engineering intern, WSO2*
> *Mobile - +94775136836 <%2B94775136836>*
>



-- 

*Regards,*

*T.Pranavan*

*Software Engineering intern, WSO2*
*Mobile - +94775136836*
_

Re: [Dev] Error when building the Student-Manager Carbon Component

2015-02-20 Thread Chathura Priyankara
Hi,

You should have axis2 clint jar. Make sure that you have axis2 client jar
dependency and the following class path in your pom.xml.



Thanks!
Best Regards,

On Fri, Feb 20, 2015 at 1:25 PM, Jagath Sisirakumara Ariyarathne <
jaga...@wso2.com> wrote:

> Hi,
>
> Also check whether the correct jar file is available in below configured
> path.
>
>  location="${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar"
> />
>
> Thanks.
>
> On Fri, Feb 20, 2015 at 12:47 PM, Udara Liyanage  wrote:
>
>> Hi,
>>
>> Could you try adding wsdl4j as a dependency and check.
>>
>> [1] http://grepcode.com/search/?query=javax/wsdl
>>
>> On Fri, Feb 20, 2015 at 12:33 PM, Shenavi de Mel 
>> wrote:
>>
>>> Hi Team,
>>>
>>> I am currently following the tutorial [1] on building a carbon
>>> component, After creating the stub components and building, the build is
>>> successful but it generates the error below. Is there anything to be done
>>> to resolve this error?
>>> I have also attached the pom file of the stub module and the WSDL file
>>> for your reference.
>>>
>>>
>>> [INFO] --- maven-antrun-plugin:1.1:run (source-code-generation) @
>>> org.wso2.carbon.student.mgt.stub ---
>>> [INFO] Executing tasks
>>>  [java] Exception in thread "main" java.lang.NoClassDefFoundError:
>>> javax/wsdl/WSDLException
>>>  [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>>>  [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>>>  [java] Caused by: java.lang.ClassNotFoundException:
>>> javax.wsdl.WSDLException
>>>  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>>>  [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>>>  [java] at java.security.AccessController.doPrivileged(Native
>>> Method)
>>>  [java] at
>>> java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>>>  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>>>  [java] at
>>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>>>  [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>>>  [java] ... 2 more
>>>  [java] Java Result: 1
>>> [INFO] Executed tasks
>>>
>>> [1]
>>> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>>>
>>> Thanks & Best Regards
>>> *Shenavi de Mel*
>>> Software Engineer
>>> WSO2 Inc: http://wso2.com
>>> email: shen...@wso2.com
>>> mobile:+94771244470
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Jagath Ariyarathne
> Technical Lead
> WSO2 Inc.  http://wso2.com/
> Email: jaga...@wso2.com
> Mob  : +94 77 386 7048
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chathura Priyankara
Software Engineer | WSO2 Inc.
Mobile : +94718795340
Blog : www.codeoncloud.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev