Re: [Dev] [ESB] Problem with samples.

2013-12-08 Thread Shafreen Anfar
Hi Chanaka,

With all due respect, I tried the updated configuration in the wiki and it
didn't work for me. Then I applied the provided patch and tried the
scenario it didn't work either. Afterwards, I did some debugging to see
what is exactly happening.

When we refer the localentry within sequence mediator it calls
getSequence[1] method which replaces the Entry object's value with
Mediator object.
So, by the time the serializeEntry [2] method is called it gets a Mediator
object rather the expected OMElement. That's where the root cause of the
problem lies. It's not associate with  element.

*Note* : As mentioned in a previous mail, This only happens when we use the
source view and hit update.

Therefore, AFAIU, the bug is with the ESB-4.8.0's code not in the
documentation.

Nevertheless, were you able to test the complete scenario ? maybe I am
missing out something. So, please do correct me if I am wrong :).

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/synapse/2.1.2-wso2v2/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java


[2]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/synapse/2.1.2-wso2v2/modules/core/src/main/java/org/apache/synapse/config/xml/EntrySerializer.java


On Sun, Dec 8, 2013 at 7:54 AM, Chanaka Fernando  wrote:

> Hi Shafreen,
>
> This is not merely a bug in ESB. It is a bug in sample synapse
> configuration. In the local entry definition,  tag is missing
> in the synapse configuration. If you include this tag it will work without
> any issue.
>
> @Maduranga: try using the following configuration.
>
>
>
>   
>  
> 
>  
>   
>   
>
>
> @Samisa: Issue has been fixed. Documentation has been updated and the
> patch file has been attached to the jira.
>
>
> Thanks,
> Chanaka
>
>
>
> On Fri, Dec 6, 2013 at 1:16 AM, Shafreen Anfar  wrote:
>
>> Hi Samisa,
>>
>> No. It is a bug in ESB-4.8.0 and we filed the below JIRA to track this
>> bug.
>> https://wso2.org/jira/browse/ESBJAVA-2822
>>
>>
>> On Fri, Dec 6, 2013 at 11:19 AM, Samisa Abeysinghe wrote:
>>
>>> Is the bug in the sample?
>>>
>>> Thanks,
>>> Samisa...
>>>
>>>
>>> Samisa Abeysinghe
>>>
>>> Vice President Training
>>>
>>> WSO2 Inc.
>>> http://wso2.com
>>>
>>>
>>>
>>> On Fri, Dec 6, 2013 at 11:17 AM, Shafreen Anfar wrote:
>>>
 Hi Maduranga,

 I tried it with ESB-4.8.0 and I also came-across the same issue. It
 seems there is a bug. However, the problem occurs when you refer the
 localentry from the sequence element, which is not a valid use-case.
 Because you can simply define a sequence and refer it without using a
 localentry. It is there for the sake of the sample 14.

 Anyway, it seems there is a bug.


 On Tue, Dec 3, 2013 at 1:27 PM, Samisa Abeysinghe wrote:

> ESB 4.8.0 will be released soon (the pack is final)
>
> So try with the latest version and if it does not work, then file a
> bug in Jira.
>
> Thanks,
> Samisa...
>
>
> Samisa Abeysinghe
>
> Vice President Training
>
> WSO2 Inc.
> http://wso2.com
>
>
>
> On Tue, Dec 3, 2013 at 1:01 PM, Maduranga Siriwardena <
> madura...@wso2.com> wrote:
>
>> Hi all,
>> I'm a intern of WSO2. I downloaded ESB 4.8.0 from atuwa [1] (Later I
>> realized that the latest released version is 4.7.0) So I followed samples
>> given in 4.7.0 documentation (with ESB version 4.8.0). In the sample 14
>> [2], when I add the bellow xml part in the synapse file and update from
>> source view, sequence element disappears. But still the expected log 
>> entry
>> is made. But if I just click update again, without making any changes, 
>> the
>> expected log entry is not made. Can someone please help me understand 
>> what
>> is happening here?
>>
>> 
>>  
>>  
>>  
>>  
>>  
>>  
>>
>>
>> [1] http://atuwa.private.wso2.com/products/ESB/wso2esb-4.8.0.zip
>> [2]
>> http://docs.wso2.org/display/ESB470/Sample+14%3A+Sequences+and+Endpoints+as+Local+Registry+Items
>>
>> Thank you.
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Regards,
 *Shafreen*
 Software Engineer
 WSO2 Inc
 Mobile : 077-556-395-1

>>>
>>>
>>
>>
>> --
>> Regards,
>> *Shafreen*
>> Software Engineer
>> WSO2 Inc
>> Mobile : 077-556-395-1
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Chanaka Fernando
> Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot

Re: [Dev] IdP-Initiated SSO Support Added

2013-12-08 Thread Nisreen123
I am trying to Implement SSO using WSO2 as identity provider and IBM
websphere application server as a service provider, the user will click a
link in the service provider and then will get redirected to the Idp login
page, with WSO2 I always get
[[https://localhost:9443/authenticationendpoint/samlsso_notification.do?status=Not%20a%20valid%20SAML%202.0%20Request%20Message!&statusMsg=The%20message%20was%20not%20recognized%20by%20the%20SAML%202.0%20SSO%20Provider.%20Please%20check%20the%20logs%20for%20more%20details]]
 since the idp is expecting a SAML auth request from the service provider,
but ibm webspeher support only Idp initiated SSO with SP redirect to idp, I
have read that IdP Initiated SSO support has been added with r190585, I
download the latest version of WSO2 4.5.0 but cannot find the “Enable Idp
initiated SSO” check box, can you help me in this?



--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-IdP-Initiated-SSO-Support-Added-tp88203p89437.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] IdP-Initiated SSO Support Added

2013-12-08 Thread Prabath Siriwardena
IdP initiated support is not in IS 4.5.0.

You can test this with the 4.6.0 milestone build at
https://svn.wso2.org/repos/wso2/scratch/IS-4.6.0/5-12-13-pack2/

Thanks & regards,
-Prabath


On Sun, Dec 8, 2013 at 4:36 PM, Nisreen123  wrote:

> I am trying to Implement SSO using WSO2 as identity provider and IBM
> websphere application server as a service provider, the user will click a
> link in the service provider and then will get redirected to the Idp login
> page, with WSO2 I always get
> [[
> https://localhost:9443/authenticationendpoint/samlsso_notification.do?status=Not%20a%20valid%20SAML%202.0%20Request%20Message!&statusMsg=The%20message%20was%20not%20recognized%20by%20the%20SAML%202.0%20SSO%20Provider.%20Please%20check%20the%20logs%20for%20more%20details
> ]]
>  since the idp is expecting a SAML auth request from the service provider,
> but ibm webspeher support only Idp initiated SSO with SP redirect to idp, I
> have read that IdP Initiated SSO support has been added with r190585, I
> download the latest version of WSO2 4.5.0 but cannot find the “Enable Idp
> initiated SSO” check box, can you help me in this?
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-IdP-Initiated-SSO-Support-Added-tp88203p89437.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Thanks & Regards,
Prabath

Twitter : @prabath
LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

Mobile : +94 71 809 6732

http://blog.facilelogin.com
http://blog.api-security.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Hazelcast for tenant applications

2013-12-08 Thread Lahiru Sandaruwan
Hi Azeez and all,

Do we have any plans(or is it already available) to make Hazelcast service
available for tenant applications?

i.e. If a tenant need to create applications which use Hazelcast, then can
they use Hazelcast instance which is already there in the server?

Thanks.

-- 
--
Lahiru Sandaruwan
Software Engineer,
Platform Technologies,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahi...@wso2.com cell: (+94) 773 325 954
blog: http://lahiruwrites.blogspot.com/
twitter: http://twitter.com/lahirus
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] exploring Wso2 Registry

2013-12-08 Thread Chanaka Fernando
In that case you can first look for the registry entry ( key) you are going
to add in the existing registry with the help of the above mentioned code
block. Then if it is not there, you can add that entry. Bottom line of what
you are trying to achieve is some kind of search. This can be achieved
through the existing api s as I mentioned above.
On Dec 8, 2013 7:07 AM, "Aliosha"  wrote:

> Well... in my application i aim to add and remove dynamically
>  address-endpoints to  LoadBalanced Enpoints according to some
> conditions (each L-B-Endpoint is saved in /_system/config in the way i can
> keep their persistence).As i have more than one LoadBalance endpoint,
> before adding o removing, i need to check the presence of the
> address-endpoint in one of the loadbalance endpoint. I'm doing this
> programmatically and i have not knowledge about which (key-name) and how
> many Load-balanced-endpoint are there. I want to avoid to keep somewhere a
> static list of the l-b-endpoints as i need to achieve a sufficient
> flexibility. So i need to have the possibility to explore the registry
> content.
>
>
> 2013/12/8 Chanaka Fernando 
>
>> Hi Aliosha,
>>
>> As per the current implementation, it doesn't have an API to access the
>> entire registry entries list. What are you trying to achieve through
>> getting the entire list?
>>
>> Thanks,
>> Chanaka
>>
>>
>> On Fri, Dec 6, 2013 at 11:55 AM, Aliosha  wrote:
>>
>>> Hi i need some help in this trick:
>>> For many reason i'm saving some endpoints in my /_system/config registry.
>>>
>>> In my code i need to get the list of all of them.
>>> I know i can get one resource programmatically using the code in the
>>> link below and previoulsy knowing its key:
>>> http://vvratha.blogspot.it/2013_02_01_archive.html
>>>
>>> In particular i'm referring to:
>>>
>>> Registry regInstance = synapseMsgContext.getConfiguration()
>>>   .getRegistry();
>>>
>>> Object obj = regInstance.getResource(new Entry ("Key"), null);
>>>
>>>
>>> How can i get all the /_system/config entries List?
>>> Really thanks.
>>>
>>
>>
>>
>> --
>> --
>> Chanaka Fernando
>> Technical Lead
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 773337238
>> Blog : http://soatutorials.blogspot.com
>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>> Twitter:https://twitter.com/chanakaudaya
>> Wordpress:http://chanakaudaya.wordpress.com
>>
>>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Hazelcast for tenant applications

2013-12-08 Thread Supun Malinga
Hi Lahiru,

What are your requirements?.
AFAIK you can use hz servers like caching from tenants as well. But that is
a wrapped service from carbon layer.

thanks,


On Sun, Dec 8, 2013 at 6:10 PM, Lahiru Sandaruwan  wrote:

> Hi Azeez and all,
>
> Do we have any plans(or is it already available) to make Hazelcast service
> available for tenant applications?
>
> i.e. If a tenant need to create applications which use Hazelcast, then can
> they use Hazelcast instance which is already there in the server?
>
> Thanks.
>
> --
> --
> Lahiru Sandaruwan
> Software Engineer,
> Platform Technologies,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahi...@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Hazelcast for tenant applications

2013-12-08 Thread Afkham Azeez
We can't allow the tenant direct access to the Hazelcast instance. It will
cause a serious security threat. They have to use the Caching API.


On Sun, Dec 8, 2013 at 6:10 PM, Lahiru Sandaruwan  wrote:

> Hi Azeez and all,
>
> Do we have any plans(or is it already available) to make Hazelcast service
> available for tenant applications?
>
> i.e. If a tenant need to create applications which use Hazelcast, then can
> they use Hazelcast instance which is already there in the server?
>
> Thanks.
>
> --
> --
> Lahiru Sandaruwan
> Software Engineer,
> Platform Technologies,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: lahi...@wso2.com cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>


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

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


Re: [Dev] Commit required to kernel patch 4

2013-12-08 Thread Shani Ranasinghe
Hi Manoj,

Please commit this. If you have not committed the above, the ignore the
above and use this.


On Thu, Dec 5, 2013 at 4:50 PM, Shani Ranasinghe  wrote:

> Hi,
> Please commit the attached patch file to Kernel  the next  patch (patch
> 4). Since patch 3 is about to be released, and this change has not been
> tested by QA yet, please commit the changes to patch 4.
>
> --
> Thanks and Regards
> *,Shani Ranasinghe*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>



-- 
Thanks and Regards
*,Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
Index: 
org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/UserCoreConstants.java
===
--- 
org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/UserCoreConstants.java
  (revision 192570)
+++ 
org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/UserCoreConstants.java
  (working copy)
@@ -64,6 +64,8 @@
 
 public static final String DOMAIN_SEPARATOR = "/";
 
+public static final String PRINCIPAL_USERNAME_SEPARATOR = "_";
+
 public static final String SHARED_ROLE_TENANT_SEPERATOR = "@";
 
 public static final String NAME_COMBINER = "|";
Index: 
org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/ldap/ReadWriteLDAPUserStoreManager.java
===
--- 
org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/ldap/ReadWriteLDAPUserStoreManager.java
 (revision 192570)
+++ 
org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/ldap/ReadWriteLDAPUserStoreManager.java
 (working copy)
@@ -360,7 +360,7 @@
if(cc != null) {
String tenantDomainName = cc.getTenantDomain();

if(!MultitenantConstants.SUPER_TENANT_DOMAIN_NAME.equals(tenantDomainName)) {
-   userName = userName + '/' + 
tenantDomainName;
+   userName = userName + 
UserCoreConstants.PRINCIPAL_USERNAME_SEPARATOR + tenantDomainName;
}
}

Index: 
org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/tenant/CommonHybridLDAPTenantManager.java
===
--- 
org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/tenant/CommonHybridLDAPTenantManager.java
   (revision 192570)
+++ 
org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/tenant/CommonHybridLDAPTenantManager.java
   (working copy)
@@ -17,6 +17,7 @@
 */
 package org.wso2.carbon.user.core.tenant;
 
+import java.util.Locale;
 import java.util.Map;
 
 import javax.naming.Name;
@@ -29,6 +30,7 @@
 import org.apache.axiom.om.OMElement;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.wso2.carbon.context.CarbonContext;
 import org.wso2.carbon.user.api.RealmConfiguration;
 import org.wso2.carbon.user.api.TenantMgtConfiguration;
 import org.wso2.carbon.user.core.UserCoreConstants;
@@ -327,8 +329,15 @@
 //create person object class attribute
 Attribute objClass = new 
BasicAttribute(LDAPConstants.OBJECT_CLASS_NAME);
 
objClass.add(realmConfig.getUserStoreProperty(LDAPConstants.USER_ENTRY_OBJECT_CLASS));
+if (UserCoreUtil.isKdcEnabled(realmConfig)) {
+   // Add Kerberos specific object classes
+   objClass.add("krb5principal");
+   objClass.add("krb5kdcentry");
+   objClass.add("subschema");
+   }
 userAttributes.put(objClass);
-
+
+   
 //create user password attribute
 Attribute password = new 
BasicAttribute(USER_PASSWORD_ATTRIBUTE_NAME);
 String passwordToStore = UserCoreUtil.getPasswordToStore(
@@ -343,6 +352,16 @@
 adminEmail.add(tenant.getEmail());
 userAttributes.put(adminEmail);
 
+String principal = tenant.getAdminName() + 
UserCoreConstants.PRINCIPAL_USERNAME_SEPARATOR + tenant.getDomain() + 
UserCoreConstants.TENANT_DOMAIN_COMBINER + getRealmName();
+Attribute kerberosPrincipalName = new 
BasicAttribute("krb5PrincipalName");
+kerberosPrincipalName.add(principal);
+
+Attribute keyVersionNumber = new 
BasicAttribute("krb5KeyVersionNumber");
+keyVersionNumber.add("0");
+
+userAttributes.put(kerberosPrincipalName);
+userAttributes.put(keyVersionNumber);
+

Re: [Dev] OAuth validation extension point in WSO2 IS

2013-12-08 Thread Johann Nallathamby
Hi,

This improvement has been added with r192746 and r192747.

The DefaultOAuth2TokenValidator provides 3 hooks.

 - boolean validateAccessDelegation
 - boolean validateScope
 - boolean validateAccessToken

All 3 methods simply return true by default. A practical
OAuth2BearerTokenValidator should extend the validateAccessDelegation and
validateScope methods.

validateAccessToken is for token profile specific validations. E.g. if we
are implementing the MAC token profile for OAuth2 the MAC token validation
code would go here.

Also to note, the AccessTokenDO object which provides information about the
access token can be found in the OAuth2TokenValidationMessageContext as a
property with the name "AccessTokenDO". Using this you could avoid calls to
database to retrieve token information.

The Validators can be plugged using identity.xml. Under OAuth configuration
add the following config.






On Tue, Nov 12, 2013 at 11:25 AM, Johann Nallathamby wrote:

> I will add this.
>
>
> On Tue, Nov 12, 2013 at 10:58 AM, Asela Pathberiya  wrote:
>
>> Hi Pradeep,
>>
>> This has been already discussed on Architecture thread. This is a must
>> thing that we want to have in IS 4.6.0. (next release).  I am not still
>> sure  whether some one already has been worked on this. Johann any idea?..
>> If not,  It is great,  If you can introduce the extension.
>>
>> Thanks,
>> Asela.
>>
>>
>> On Mon, Nov 11, 2013 at 6:01 PM, Pradeep Fernando wrote:
>>
>>> Hi,
>>>
>>> The current token validation endpoint only performs basic level of
>>> validation. That is it only checks whether the given token is valid. But
>>> for complex authorization decision making this validation is not enough
>>> IMHO.
>>>
>>> @IS team:
>>>
>>> can you guys please consider adding an extension point for custom
>>> validation impls.
>>>
>>
>>> thanks,
>>> --Pradeep
>>>
>>
>>
>>
>> --
>> Thanks & Regards,
>> Asela
>>
>> ATL
>> Mobile : +94 777 625 933
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Senior Software Engineer
> Integration Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Senior Software Engineer
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

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


[Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Dimuthu Upeksha
Hi all,
I am trying to implement a secure client to a secure proxy service in ESB.
However I am getting an exception [2] at line [3]. I tried to capture
packets going out from the client using tcpMon but I found nothing going
out. It seems like a dependancy problem in the client but not sure. What
could be the reason for that?

Thank you

[1] https://gist.github.com/DImuthuUpe/7867226
[2] https://gist.github.com/DImuthuUpe/7867246
[3] https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127

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


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Nirmal Fernando
Is this in client side?

Caused by: java.lang.ClassNotFoundException: samples.userguide.PWCallback



On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha  wrote:

> Hi all,
> I am trying to implement a secure client to a secure proxy service in ESB.
> However I am getting an exception [2] at line [3]. I tried to capture
> packets going out from the client using tcpMon but I found nothing going
> out. It seems like a dependancy problem in the client but not sure. What
> could be the reason for that?
>
> Thank you
>
> [1] https://gist.github.com/DImuthuUpe/7867226
> [2] https://gist.github.com/DImuthuUpe/7867246
> [3] https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127
>
> Dimuthu
>



-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Dimuthu Upeksha
yes. Seems like I missed a library but I don't know correct one to import.


On Mon, Dec 9, 2013 at 9:53 AM, Nirmal Fernando  wrote:

> Is this in client side?
>
> Caused by: java.lang.ClassNotFoundException: samples.userguide.PWCallback
>
>
>
> On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha  wrote:
>
>> Hi all,
>> I am trying to implement a secure client to a secure proxy service in
>> ESB. However I am getting an exception [2] at line [3]. I tried to capture
>> packets going out from the client using tcpMon but I found nothing going
>> out. It seems like a dependancy problem in the client but not sure. What
>> could be the reason for that?
>>
>> Thank you
>>
>> [1] https://gist.github.com/DImuthuUpe/7867226
>> [2] https://gist.github.com/DImuthuUpe/7867246
>> [3] https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127
>>
>> Dimuthu
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Jeewantha Dharmaparakrama
Hi Dimuthu,

You have to set the password callback handler at client side. Try adding it
to client's "options " [1]

[1] http://wso2.com/library/3733/

Jeewantha


On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha  wrote:

> Hi all,
> I am trying to implement a secure client to a secure proxy service in ESB.
> However I am getting an exception [2] at line [3]. I tried to capture
> packets going out from the client using tcpMon but I found nothing going
> out. It seems like a dependancy problem in the client but not sure. What
> could be the reason for that?
>
> Thank you
>
> [1] https://gist.github.com/DImuthuUpe/7867226
> [2] https://gist.github.com/DImuthuUpe/7867246
> [3] https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127
>
> Dimuthu
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Dimuthu Upeksha
Hi Jeewantha,
The class "PasswordCallbackHandler" can not be found in axis2 or rampart
libs. What is the library that contains it?


On Mon, Dec 9, 2013 at 10:00 AM, Jeewantha Dharmaparakrama <
jeewan...@wso2.com> wrote:

> Hi Dimuthu,
>
> You have to set the password callback handler at client side. Try adding
> it to client's "options " [1]
>
> [1] http://wso2.com/library/3733/
>
> Jeewantha
>
>
> On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha  wrote:
>
>> Hi all,
>> I am trying to implement a secure client to a secure proxy service in
>> ESB. However I am getting an exception [2] at line [3]. I tried to capture
>> packets going out from the client using tcpMon but I found nothing going
>> out. It seems like a dependancy problem in the client but not sure. What
>> could be the reason for that?
>>
>> Thank you
>>
>> [1] https://gist.github.com/DImuthuUpe/7867226
>> [2] https://gist.github.com/DImuthuUpe/7867246
>> [3] https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127
>>
>> Dimuthu
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Jeewantha Dharmaparakrama
> Software Engineer; WSO2, Inc.; http://wso2.com/
> Phone : (+94) 774726790
> Skype : prasad.jeewantha
> LinkedIn : http://www.linkedin.com/in/jeewanthad
> Twitter: https://twitter.com/jeewamp
> Blog: http://jeewanthad.blogspot.com/
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] When will BPS and BRS be upgraded?

2013-12-08 Thread stevegyc
Hi : 

As we know, some components have updated based on carbon 4.2.0, such as 
ESB, AS, DSS.
But I find that BPS and BRS have not been upgraded.

Does anyone know when BPS and BRS will be upgraded?
If BPS or BRS will not be upgraded in the near future, are they compatible 
with the other components which are upgraded?




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


[Dev] "[ESB] Build failure in security client"

2013-12-08 Thread Chamila Wijayarathna
Hello all,
I created a secure proxy service to connect to a web service existing in
localhost [1].
Then I generated pom.xml file to build a secure client to use the proxy
service [2].
But when I try to build it using Maven, it gave me this failure message
[3].
In original pom.xml which gave the same error, it had the  as
"StockQuoteServiceAXHttpsEndpoint", but I observed that such port name does
not exist in wsdl file. So I replaced it
with "StockQuoteServiceAXHttpEndpoint" which does exist in wsdl file. What
I have done wrong here?

1. https://gist.github.com/cdwijayarathna/7867406
2. https://gist.github.com/cdwijayarathna/7867411
3. https://gist.github.com/cdwijayarathna/7867429

Regards.

-- 
*Chamila Wijayarathna*
Engineering Intern,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Jeewantha Dharmaparakrama
You have to create that Implementing
"javax.security.auth.callback.CallbackHandler". See the example in the
article. When WSS Policy is enabled ( I believe you enabled Username Token
Policy at ESB proxy) , there has to be WSSecurity header in the SOAP
request with Username and password. Rampart needs a password callback
handler to get the password.

Jeewantha


On Mon, Dec 9, 2013 at 10:07 AM, Dimuthu Upeksha  wrote:

> Hi Jeewantha,
> The class "PasswordCallbackHandler" can not be found in axis2 or rampart
> libs. What is the library that contains it?
>
>
> On Mon, Dec 9, 2013 at 10:00 AM, Jeewantha Dharmaparakrama <
> jeewan...@wso2.com> wrote:
>
>> Hi Dimuthu,
>>
>> You have to set the password callback handler at client side. Try adding
>> it to client's "options " [1]
>>
>> [1] http://wso2.com/library/3733/
>>
>> Jeewantha
>>
>>
>> On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha wrote:
>>
>>> Hi all,
>>> I am trying to implement a secure client to a secure proxy service in
>>> ESB. However I am getting an exception [2] at line [3]. I tried to capture
>>> packets going out from the client using tcpMon but I found nothing going
>>> out. It seems like a dependancy problem in the client but not sure. What
>>> could be the reason for that?
>>>
>>> Thank you
>>>
>>> [1] https://gist.github.com/DImuthuUpe/7867226
>>> [2] https://gist.github.com/DImuthuUpe/7867246
>>> [3] https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127
>>>
>>> Dimuthu
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Jeewantha Dharmaparakrama
>> Software Engineer; WSO2, Inc.; http://wso2.com/
>> Phone : (+94) 774726790
>> Skype : prasad.jeewantha
>> LinkedIn : http://www.linkedin.com/in/jeewanthad
>> Twitter: https://twitter.com/jeewamp
>> Blog: http://jeewanthad.blogspot.com/
>>
>
>


-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Commit required to kernel patch 4

2013-12-08 Thread Manoj Kumara
Hi Shani,

The patch you provided is not complete. Please follow the steps on [1].

[1] http://docs.wso2.org/display/Carbon420/Creating+a+Carbon+Kernel+Patch

Thanks,
Manoj

Best Regards..


Manoj Kumara
Software Engineer
WSO2, Inc.; http://wso2.com

Twitter:  http://twitter.com/ManKuma
Mobile: +94713448188


On Mon, Dec 9, 2013 at 4:16 AM, Shani Ranasinghe  wrote:

> Hi Manoj,
>
> Please commit this. If you have not committed the above, the ignore the
> above and use this.
>
>
> On Thu, Dec 5, 2013 at 4:50 PM, Shani Ranasinghe  wrote:
>
>> Hi,
>> Please commit the attached patch file to Kernel  the next  patch (patch
>> 4). Since patch 3 is about to be released, and this change has not been
>> tested by QA yet, please commit the changes to patch 4.
>>
>> --
>> Thanks and Regards
>> *,Shani Ranasinghe*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 2273555
>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>
>
>
>
> --
> Thanks and Regards
> *,Shani Ranasinghe*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Samisa Abeysinghe
Don't we have a doc on this?

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Training

WSO2 Inc.
http://wso2.com



On Mon, Dec 9, 2013 at 10:16 AM, Jeewantha Dharmaparakrama <
jeewan...@wso2.com> wrote:

> You have to create that Implementing
> "javax.security.auth.callback.CallbackHandler". See the example in the
> article. When WSS Policy is enabled ( I believe you enabled Username Token
> Policy at ESB proxy) , there has to be WSSecurity header in the SOAP
> request with Username and password. Rampart needs a password callback
> handler to get the password.
>
> Jeewantha
>
>
> On Mon, Dec 9, 2013 at 10:07 AM, Dimuthu Upeksha wrote:
>
>> Hi Jeewantha,
>> The class "PasswordCallbackHandler" can not be found in axis2 or rampart
>> libs. What is the library that contains it?
>>
>>
>> On Mon, Dec 9, 2013 at 10:00 AM, Jeewantha Dharmaparakrama <
>> jeewan...@wso2.com> wrote:
>>
>>> Hi Dimuthu,
>>>
>>> You have to set the password callback handler at client side. Try adding
>>> it to client's "options " [1]
>>>
>>> [1] http://wso2.com/library/3733/
>>>
>>> Jeewantha
>>>
>>>
>>> On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha wrote:
>>>
 Hi all,
 I am trying to implement a secure client to a secure proxy service in
 ESB. However I am getting an exception [2] at line [3]. I tried to capture
 packets going out from the client using tcpMon but I found nothing going
 out. It seems like a dependancy problem in the client but not sure. What
 could be the reason for that?

 Thank you

 [1] https://gist.github.com/DImuthuUpe/7867226
 [2] https://gist.github.com/DImuthuUpe/7867246
 [3] https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127

 Dimuthu

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


>>>
>>>
>>> --
>>> Jeewantha Dharmaparakrama
>>> Software Engineer; WSO2, Inc.; http://wso2.com/
>>> Phone : (+94) 774726790
>>> Skype : prasad.jeewantha
>>> LinkedIn : http://www.linkedin.com/in/jeewanthad
>>> Twitter: https://twitter.com/jeewamp
>>> Blog: http://jeewanthad.blogspot.com/
>>>
>>
>>
>
>
> --
> Jeewantha Dharmaparakrama
> Software Engineer; WSO2, Inc.; http://wso2.com/
> Phone : (+94) 774726790
> Skype : prasad.jeewantha
> LinkedIn : http://www.linkedin.com/in/jeewanthad
> Twitter: https://twitter.com/jeewamp
> Blog: http://jeewanthad.blogspot.com/
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] "[ESB] Build failure in security client"

2013-12-08 Thread Samisa Abeysinghe
Please send in the errors in the email itself. That way, it is easier to
read. You need to learn to copy the correct parts of the error into the
mail though  :)


Thanks,
Samisa...


Samisa Abeysinghe

Vice President Training

WSO2 Inc.
http://wso2.com



On Mon, Dec 9, 2013 at 10:09 AM, Chamila Wijayarathna wrote:

> Hello all,
> I created a secure proxy service to connect to a web service existing in
> localhost [1].
> Then I generated pom.xml file to build a secure client to use the proxy
> service [2].
> But when I try to build it using Maven, it gave me this failure message
> [3].
> In original pom.xml which gave the same error, it had the  as
> "StockQuoteServiceAXHttpsEndpoint", but I observed that such port name does
> not exist in wsdl file. So I replaced it
> with "StockQuoteServiceAXHttpEndpoint" which does exist in wsdl file. What
> I have done wrong here?
>
> 1. https://gist.github.com/cdwijayarathna/7867406
> 2. https://gist.github.com/cdwijayarathna/7867411
> 3. https://gist.github.com/cdwijayarathna/7867429
>
> Regards.
>
> --
> *Chamila Wijayarathna*
> Engineering Intern,
> WSO2 Inc.
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Dimuthu Upeksha
I did as in the article but still I'm getting the same exception. Then I
added these libraries [1] to the classpath then new exception occurred [2].

[1] http://mavenhub.com/c/samples/userguide/pwcallback/jar
[2] https://gist.github.com/DImuthuUpe/7867567


On Mon, Dec 9, 2013 at 10:16 AM, Jeewantha Dharmaparakrama <
jeewan...@wso2.com> wrote:

> You have to create that Implementing
> "javax.security.auth.callback.CallbackHandler". See the example in the
> article. When WSS Policy is enabled ( I believe you enabled Username Token
> Policy at ESB proxy) , there has to be WSSecurity header in the SOAP
> request with Username and password. Rampart needs a password callback
> handler to get the password.
>
> Jeewantha
>
>
> On Mon, Dec 9, 2013 at 10:07 AM, Dimuthu Upeksha wrote:
>
>> Hi Jeewantha,
>> The class "PasswordCallbackHandler" can not be found in axis2 or rampart
>> libs. What is the library that contains it?
>>
>>
>> On Mon, Dec 9, 2013 at 10:00 AM, Jeewantha Dharmaparakrama <
>> jeewan...@wso2.com> wrote:
>>
>>> Hi Dimuthu,
>>>
>>> You have to set the password callback handler at client side. Try adding
>>> it to client's "options " [1]
>>>
>>> [1] http://wso2.com/library/3733/
>>>
>>> Jeewantha
>>>
>>>
>>> On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha wrote:
>>>
 Hi all,
 I am trying to implement a secure client to a secure proxy service in
 ESB. However I am getting an exception [2] at line [3]. I tried to capture
 packets going out from the client using tcpMon but I found nothing going
 out. It seems like a dependancy problem in the client but not sure. What
 could be the reason for that?

 Thank you

 [1] https://gist.github.com/DImuthuUpe/7867226
 [2] https://gist.github.com/DImuthuUpe/7867246
 [3] https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127

 Dimuthu

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


>>>
>>>
>>> --
>>> Jeewantha Dharmaparakrama
>>> Software Engineer; WSO2, Inc.; http://wso2.com/
>>> Phone : (+94) 774726790
>>> Skype : prasad.jeewantha
>>> LinkedIn : http://www.linkedin.com/in/jeewanthad
>>> Twitter: https://twitter.com/jeewamp
>>> Blog: http://jeewanthad.blogspot.com/
>>>
>>
>>
>
>
> --
> Jeewantha Dharmaparakrama
> Software Engineer; WSO2, Inc.; http://wso2.com/
> Phone : (+94) 774726790
> Skype : prasad.jeewantha
> LinkedIn : http://www.linkedin.com/in/jeewanthad
> Twitter: https://twitter.com/jeewamp
> Blog: http://jeewanthad.blogspot.com/
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] "[ESB] Build failure in security client"

2013-12-08 Thread Chamila Wijayarathna
Sorry for the inconvenience,

The error I am getting is,

[ERROR] Failed to execute goal
org.apache.axis2:axis2-wsdl2code-maven-plugin:1.6.1-wso2v10:wsdl2code
(default) on project WSO2-Axis2-Client: Error parsing WSDL: No port
found for the given name :StockQuoteServiceAXHttpEndpoint -> [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/MojoExecutionException

pom.xml file has following configuration, which seems like the place
which has the problem.


${basedir}/generated-sources

adbStockQuoteServiceAXHttpEndpointjavahttp://chamila-Dell-System-Vostro-3450:8280/services/StockQuoteServiceAX?wsdl





On Mon, Dec 9, 2013 at 10:26 AM, Samisa Abeysinghe  wrote:

> Please send in the errors in the email itself. That way, it is easier to
> read. You need to learn to copy the correct parts of the error into the
> mail though  :)
>
>
> Thanks,
> Samisa...
>
>
> Samisa Abeysinghe
>
> Vice President Training
>
> WSO2 Inc.
> http://wso2.com
>
>
>
> On Mon, Dec 9, 2013 at 10:09 AM, Chamila Wijayarathna wrote:
>
>> Hello all,
>> I created a secure proxy service to connect to a web service existing in
>> localhost [1].
>> Then I generated pom.xml file to build a secure client to use the proxy
>> service [2].
>> But when I try to build it using Maven, it gave me this failure message
>> [3].
>> In original pom.xml which gave the same error, it had the  as
>> "StockQuoteServiceAXHttpsEndpoint", but I observed that such port name does
>> not exist in wsdl file. So I replaced it
>> with "StockQuoteServiceAXHttpEndpoint" which does exist in wsdl file. What
>> I have done wrong here?
>>
>> 1. https://gist.github.com/cdwijayarathna/7867406
>> 2. https://gist.github.com/cdwijayarathna/7867411
>> 3. https://gist.github.com/cdwijayarathna/7867429
>>
>> Regards.
>>
>> --
>> *Chamila Wijayarathna*
>> Engineering Intern,
>> WSO2 Inc.
>>
>>
>


-- 
*Chamila Wijayarathna*
Engineering Intern,
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] "[ESB] Build failure in security client"

2013-12-08 Thread Samisa Abeysinghe
You have to send the stack trace please ...

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Training

WSO2 Inc.
http://wso2.com



On Mon, Dec 9, 2013 at 10:32 AM, Chamila Wijayarathna wrote:

> Sorry for the inconvenience,
>
> The error I am getting is,
>
> [ERROR] Failed to execute goal 
> org.apache.axis2:axis2-wsdl2code-maven-plugin:1.6.1-wso2v10:wsdl2code 
> (default) on project WSO2-Axis2-Client: Error parsing WSDL: No port found for 
> the given name :StockQuoteServiceAXHttpEndpoint -> [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/MojoExecutionException
>
> pom.xml file has following configuration, which seems like the place which 
> has the problem.
>
> 
> ${basedir}/generated-sources
> 
> adbStockQuoteServiceAXHttpEndpointjavahttp://chamila-Dell-System-Vostro-3450:8280/services/StockQuoteServiceAX?wsdl
> 
>
>
>
>
> On Mon, Dec 9, 2013 at 10:26 AM, Samisa Abeysinghe wrote:
>
>> Please send in the errors in the email itself. That way, it is easier to
>> read. You need to learn to copy the correct parts of the error into the
>> mail though  :)
>>
>>
>> Thanks,
>> Samisa...
>>
>>
>> Samisa Abeysinghe
>>
>> Vice President Training
>>
>> WSO2 Inc.
>> http://wso2.com
>>
>>
>>
>> On Mon, Dec 9, 2013 at 10:09 AM, Chamila Wijayarathna 
>> wrote:
>>
>>> Hello all,
>>> I created a secure proxy service to connect to a web service existing in
>>> localhost [1].
>>> Then I generated pom.xml file to build a secure client to use the proxy
>>> service [2].
>>> But when I try to build it using Maven, it gave me this failure message
>>> [3].
>>> In original pom.xml which gave the same error, it had the  as
>>> "StockQuoteServiceAXHttpsEndpoint", but I observed that such port name does
>>> not exist in wsdl file. So I replaced it
>>> with "StockQuoteServiceAXHttpEndpoint" which does exist in wsdl file. What
>>> I have done wrong here?
>>>
>>> 1. https://gist.github.com/cdwijayarathna/7867406
>>> 2. https://gist.github.com/cdwijayarathna/7867411
>>> 3. https://gist.github.com/cdwijayarathna/7867429
>>>
>>> Regards.
>>>
>>> --
>>> *Chamila Wijayarathna*
>>> Engineering Intern,
>>> WSO2 Inc.
>>>
>>>
>>
>
>
> --
> *Chamila Wijayarathna*
> Engineering Intern,
> WSO2 Inc.
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Jeewantha Dharmaparakrama
Hi Dimuthu,

Did you create the password callback handler add add that to your clients
classpath? After adding that to classpath you have to tell Rampart what the
password callback handler is like follows.

Options options = client.getOptions();
options.put(WSHandlerConstants.PW_CALLBACK_REF, new PasswordCallbackHandler());

You will have to put username as well in which case I guess you could use
this [1].

Hi Samisa,

I guess this is not documented properly except for this one [2]

[1]
http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHandlerConstants.html#USER
[2] http://wso2.com/library/3733/

Jeewantha


On Mon, Dec 9, 2013 at 10:27 AM, Dimuthu Upeksha  wrote:

> I did as in the article but still I'm getting the same exception. Then I
> added these libraries [1] to the classpath then new exception occurred [2].
>
> [1] http://mavenhub.com/c/samples/userguide/pwcallback/jar
> [2] https://gist.github.com/DImuthuUpe/7867567
>
>
> On Mon, Dec 9, 2013 at 10:16 AM, Jeewantha Dharmaparakrama <
> jeewan...@wso2.com> wrote:
>
>> You have to create that Implementing
>> "javax.security.auth.callback.CallbackHandler". See the example in the
>> article. When WSS Policy is enabled ( I believe you enabled Username Token
>> Policy at ESB proxy) , there has to be WSSecurity header in the SOAP
>> request with Username and password. Rampart needs a password callback
>> handler to get the password.
>>
>> Jeewantha
>>
>>
>> On Mon, Dec 9, 2013 at 10:07 AM, Dimuthu Upeksha wrote:
>>
>>> Hi Jeewantha,
>>> The class "PasswordCallbackHandler" can not be found in axis2 or rampart
>>> libs. What is the library that contains it?
>>>
>>>
>>> On Mon, Dec 9, 2013 at 10:00 AM, Jeewantha Dharmaparakrama <
>>> jeewan...@wso2.com> wrote:
>>>
 Hi Dimuthu,

 You have to set the password callback handler at client side. Try
 adding it to client's "options " [1]

 [1] http://wso2.com/library/3733/

 Jeewantha


 On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha wrote:

> Hi all,
> I am trying to implement a secure client to a secure proxy service in
> ESB. However I am getting an exception [2] at line [3]. I tried to capture
> packets going out from the client using tcpMon but I found nothing going
> out. It seems like a dependancy problem in the client but not sure. What
> could be the reason for that?
>
> Thank you
>
> [1] https://gist.github.com/DImuthuUpe/7867226
> [2] https://gist.github.com/DImuthuUpe/7867246
> [3] https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127
>
> Dimuthu
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/

>>>
>>>
>>
>>
>> --
>> Jeewantha Dharmaparakrama
>> Software Engineer; WSO2, Inc.; http://wso2.com/
>> Phone : (+94) 774726790
>> Skype : prasad.jeewantha
>> LinkedIn : http://www.linkedin.com/in/jeewanthad
>> Twitter: https://twitter.com/jeewamp
>> Blog: http://jeewanthad.blogspot.com/
>>
>
>


-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Samisa Abeysinghe
OK, we need to create a doc Jira please.

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Training

WSO2 Inc.
http://wso2.com



On Mon, Dec 9, 2013 at 10:38 AM, Jeewantha Dharmaparakrama <
jeewan...@wso2.com> wrote:

> Hi Dimuthu,
>
> Did you create the password callback handler add add that to your clients
> classpath? After adding that to classpath you have to tell Rampart what the
> password callback handler is like follows.
>
> Options options = client.getOptions();
> options.put(WSHandlerConstants.PW_CALLBACK_REF, new 
> PasswordCallbackHandler());
>
> You will have to put username as well in which case I guess you could use
> this [1].
>
> Hi Samisa,
>
> I guess this is not documented properly except for this one [2]
>
> [1]
> http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHandlerConstants.html#USER
> [2] http://wso2.com/library/3733/
>
> Jeewantha
>
>
>
> On Mon, Dec 9, 2013 at 10:27 AM, Dimuthu Upeksha wrote:
>
>> I did as in the article but still I'm getting the same exception. Then I
>> added these libraries [1] to the classpath then new exception occurred [2].
>>
>> [1] http://mavenhub.com/c/samples/userguide/pwcallback/jar
>> [2] https://gist.github.com/DImuthuUpe/7867567
>>
>>
>> On Mon, Dec 9, 2013 at 10:16 AM, Jeewantha Dharmaparakrama <
>> jeewan...@wso2.com> wrote:
>>
>>> You have to create that Implementing
>>> "javax.security.auth.callback.CallbackHandler". See the example in the
>>> article. When WSS Policy is enabled ( I believe you enabled Username Token
>>> Policy at ESB proxy) , there has to be WSSecurity header in the SOAP
>>> request with Username and password. Rampart needs a password callback
>>> handler to get the password.
>>>
>>> Jeewantha
>>>
>>>
>>> On Mon, Dec 9, 2013 at 10:07 AM, Dimuthu Upeksha wrote:
>>>
 Hi Jeewantha,
 The class "PasswordCallbackHandler" can not be found in axis2 or
 rampart libs. What is the library that contains it?


 On Mon, Dec 9, 2013 at 10:00 AM, Jeewantha Dharmaparakrama <
 jeewan...@wso2.com> wrote:

> Hi Dimuthu,
>
> You have to set the password callback handler at client side. Try
> adding it to client's "options " [1]
>
> [1] http://wso2.com/library/3733/
>
> Jeewantha
>
>
> On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha wrote:
>
>> Hi all,
>> I am trying to implement a secure client to a secure proxy service in
>> ESB. However I am getting an exception [2] at line [3]. I tried to 
>> capture
>> packets going out from the client using tcpMon but I found nothing going
>> out. It seems like a dependancy problem in the client but not sure. What
>> could be the reason for that?
>>
>> Thank you
>>
>> [1] https://gist.github.com/DImuthuUpe/7867226
>> [2] https://gist.github.com/DImuthuUpe/7867246
>> [3]
>> https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127
>>
>> Dimuthu
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Jeewantha Dharmaparakrama
> Software Engineer; WSO2, Inc.; http://wso2.com/
> Phone : (+94) 774726790
> Skype : prasad.jeewantha
> LinkedIn : http://www.linkedin.com/in/jeewanthad
> Twitter: https://twitter.com/jeewamp
> Blog: http://jeewanthad.blogspot.com/
>


>>>
>>>
>>> --
>>> Jeewantha Dharmaparakrama
>>> Software Engineer; WSO2, Inc.; http://wso2.com/
>>> Phone : (+94) 774726790
>>> Skype : prasad.jeewantha
>>> LinkedIn : http://www.linkedin.com/in/jeewanthad
>>> Twitter: https://twitter.com/jeewamp
>>> Blog: http://jeewanthad.blogspot.com/
>>>
>>
>>
>
>
> --
> Jeewantha Dharmaparakrama
> Software Engineer; WSO2, Inc.; http://wso2.com/
> Phone : (+94) 774726790
> Skype : prasad.jeewantha
> LinkedIn : http://www.linkedin.com/in/jeewanthad
> Twitter: https://twitter.com/jeewamp
> Blog: http://jeewanthad.blogspot.com/
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] "[ESB] Build failure in security client"

2013-12-08 Thread Chamila Wijayarathna
Sorry, you can find the stack trace below,

org.apache.axis2.AxisFault: No port found for the given name
:StockQuoteServiceAXHttpEndpoint
at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findBinding(WSDL11ToAxisServiceBuilder.java:1041)
at 
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:332)
at 
org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:169)
at 
org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:566)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)



On Mon, Dec 9, 2013 at 10:33 AM, Samisa Abeysinghe  wrote:

> You have to send the stack trace please ...
>
> Thanks,
> Samisa...
>
>
> Samisa Abeysinghe
>
> Vice President Training
>
> WSO2 Inc.
> http://wso2.com
>
>
>
> On Mon, Dec 9, 2013 at 10:32 AM, Chamila Wijayarathna wrote:
>
>> Sorry for the inconvenience,
>>
>> The error I am getting is,
>>
>> [ERROR] Failed to execute goal 
>> org.apache.axis2:axis2-wsdl2code-maven-plugin:1.6.1-wso2v10:wsdl2code 
>> (default) on project WSO2-Axis2-Client: Error parsing WSDL: No port found 
>> for the given name :StockQuoteServiceAXHttpEndpoint -> [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/MojoExecutionException
>>
>> pom.xml file has following configuration, which seems like the place which 
>> has the problem.
>>
>> 
>> ${basedir}/generated-sources
>> 
>> adbStockQuoteServiceAXHttpEndpointjavahttp://chamila-Dell-System-Vostro-3450:8280/services/StockQuoteServiceAX?wsdl
>>
>> 
>>
>>
>>
>>
>> On Mon, Dec 9, 2013 at 10:26 AM, Samisa Abeysinghe wrote:
>>
>>> Please send in the errors in the email itself. That way, it is easier to
>>> read. You need to learn to copy the correct parts of the error into the
>>> mail though  :)
>>>
>>>
>>> Thanks,
>>> Samisa...
>>>
>>>
>>> Samisa Abeysinghe
>>>
>>> Vice President Training
>>>
>>> WSO2 Inc.
>>> http://wso2.com
>>>
>>>
>>>
>>> On Mon, Dec 9, 2013 at 10:09 AM, Chamila Wijayarathna 
>>> wrote:
>>>
 Hello all,
 I created a secure proxy service to connect to a web service existing
 in localhost [1].
 Then I generated pom.xml file to build a secure client to use the proxy
 service [2].
 But when I try to build it using Maven, it gave me this failure message
 [3].
 In original pom.xml which gave the same error, it had the  as
 "StockQuoteServiceAXHttpsEndpoint", but I observed that such port name does
 not exist in wsdl file. So I replaced it
 with "StockQuoteServiceAXHttpEndpoint" which does exist in wsdl file. What
 I have done wrong here?

 1. https://gist.github.com/cdwijayarathna/7867406
 2. https://gist

Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Jeewantha Dharmaparakrama
On Mon, Dec 9, 2013 at 10:40 AM, Samisa Abeysinghe  wrote:

> OK, we need to create a doc Jira please.
>
created https://wso2.org/jira/browse/DOCUMENTATION-515

>
> Thanks,
> Samisa...
>
>
> Samisa Abeysinghe
>
> Vice President Training
>
> WSO2 Inc.
> http://wso2.com
>
>
>
> On Mon, Dec 9, 2013 at 10:38 AM, Jeewantha Dharmaparakrama <
> jeewan...@wso2.com> wrote:
>
>> Hi Dimuthu,
>>
>> Did you create the password callback handler add add that to your clients
>> classpath? After adding that to classpath you have to tell Rampart what the
>> password callback handler is like follows.
>>
>> Options options = client.getOptions();
>> options.put(WSHandlerConstants.PW_CALLBACK_REF, new 
>> PasswordCallbackHandler());
>>
>> You will have to put username as well in which case I guess you could use
>> this [1].
>>
>> Hi Samisa,
>>
>> I guess this is not documented properly except for this one [2]
>>
>> [1]
>> http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHandlerConstants.html#USER
>> [2] http://wso2.com/library/3733/
>>
>> Jeewantha
>>
>>
>>
>> On Mon, Dec 9, 2013 at 10:27 AM, Dimuthu Upeksha wrote:
>>
>>> I did as in the article but still I'm getting the same exception. Then I
>>> added these libraries [1] to the classpath then new exception occurred [2].
>>>
>>> [1] http://mavenhub.com/c/samples/userguide/pwcallback/jar
>>> [2] https://gist.github.com/DImuthuUpe/7867567
>>>
>>>
>>> On Mon, Dec 9, 2013 at 10:16 AM, Jeewantha Dharmaparakrama <
>>> jeewan...@wso2.com> wrote:
>>>
 You have to create that Implementing
 "javax.security.auth.callback.CallbackHandler". See the example in the
 article. When WSS Policy is enabled ( I believe you enabled Username Token
 Policy at ESB proxy) , there has to be WSSecurity header in the SOAP
 request with Username and password. Rampart needs a password callback
 handler to get the password.

 Jeewantha


 On Mon, Dec 9, 2013 at 10:07 AM, Dimuthu Upeksha wrote:

> Hi Jeewantha,
> The class "PasswordCallbackHandler" can not be found in axis2 or
> rampart libs. What is the library that contains it?
>
>
> On Mon, Dec 9, 2013 at 10:00 AM, Jeewantha Dharmaparakrama <
> jeewan...@wso2.com> wrote:
>
>> Hi Dimuthu,
>>
>> You have to set the password callback handler at client side. Try
>> adding it to client's "options " [1]
>>
>> [1] http://wso2.com/library/3733/
>>
>> Jeewantha
>>
>>
>> On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha wrote:
>>
>>> Hi all,
>>> I am trying to implement a secure client to a secure proxy service
>>> in ESB. However I am getting an exception [2] at line [3]. I tried to
>>> capture packets going out from the client using tcpMon but I found 
>>> nothing
>>> going out. It seems like a dependancy problem in the client but not 
>>> sure.
>>> What could be the reason for that?
>>>
>>> Thank you
>>>
>>> [1] https://gist.github.com/DImuthuUpe/7867226
>>> [2] https://gist.github.com/DImuthuUpe/7867246
>>> [3]
>>> https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127
>>>
>>> Dimuthu
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Jeewantha Dharmaparakrama
>> Software Engineer; WSO2, Inc.; http://wso2.com/
>> Phone : (+94) 774726790
>> Skype : prasad.jeewantha
>> LinkedIn : http://www.linkedin.com/in/jeewanthad
>> Twitter: https://twitter.com/jeewamp
>> Blog: http://jeewanthad.blogspot.com/
>>
>
>


 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/

>>>
>>>
>>
>>
>> --
>> Jeewantha Dharmaparakrama
>> Software Engineer; WSO2, Inc.; http://wso2.com/
>> Phone : (+94) 774726790
>> Skype : prasad.jeewantha
>> LinkedIn : http://www.linkedin.com/in/jeewanthad
>> Twitter: https://twitter.com/jeewamp
>> Blog: http://jeewanthad.blogspot.com/
>>
>
>


-- 
Jeewantha Dharmaparakrama
Software Engineer; WSO2, Inc.; http://wso2.com/
Phone : (+94) 774726790
Skype : prasad.jeewantha
LinkedIn : http://www.linkedin.com/in/jeewanthad
Twitter: https://twitter.com/jeewamp
Blog: http://jeewanthad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] "[ESB] Build failure in security client"

2013-12-08 Thread Samisa Abeysinghe
It looks like you are trying to use the http binding from client. Given
that this is a secured service, there might not be an http binding, rather
an https binding in there in this service.
Please double check.

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Training

WSO2 Inc.
http://wso2.com



On Mon, Dec 9, 2013 at 10:45 AM, Chamila Wijayarathna wrote:

> Sorry, you can find the stack trace below,
>
> org.apache.axis2.AxisFault: No port found for the given name 
> :StockQuoteServiceAXHttpEndpoint
>   at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findBinding(WSDL11ToAxisServiceBuilder.java:1041)
>   at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:332)
>   at 
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>
>   at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:169)
>   at 
> org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:566)
>   at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
>   at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>   at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>   at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>   at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>   at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>
>   at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>   at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
>   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
>   at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>   at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>   at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:606)
>   at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>   at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>   at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>   at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>
>
>
> On Mon, Dec 9, 2013 at 10:33 AM, Samisa Abeysinghe wrote:
>
>> You have to send the stack trace please ...
>>
>> Thanks,
>> Samisa...
>>
>>
>> Samisa Abeysinghe
>>
>> Vice President Training
>>
>> WSO2 Inc.
>> http://wso2.com
>>
>>
>>
>> On Mon, Dec 9, 2013 at 10:32 AM, Chamila Wijayarathna 
>> wrote:
>>
>>> Sorry for the inconvenience,
>>>
>>> The error I am getting is,
>>>
>>> [ERROR] Failed to execute goal 
>>> org.apache.axis2:axis2-wsdl2code-maven-plugin:1.6.1-wso2v10:wsdl2code 
>>> (default) on project WSO2-Axis2-Client: Error parsing WSDL: No port found 
>>> for the given name :StockQuoteServiceAXHttpEndpoint -> [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/MojoExecutionException
>>>
>>> pom.xml file has following configuration, which seems like the place which 
>>> has the problem.
>>>
>>> 
>>> ${basedir}/generated-sources
>>> 
>>> adbStockQuoteServiceAXHttpEndpointjavahttp://chamila-Dell-System-Vostro-3450:8280/services/StockQuoteServiceAX?wsdl
>>>
>>>
>>> 
>>>
>>>
>>>
>>>
>>> On Mon, Dec 9, 2013 at 10:26 AM, Samisa Abeysinghe wrote:
>>>
 Please send in the errors in the email itself. That way, it is easier
 to read. You need to learn to copy the correct parts of the error into the
 mail though  :)


 Thanks,
 Samisa...


 Samisa Abeysinghe

 Vice President Training

 WSO2 Inc.
 http://wso2.com



 On Mon, Dec 9, 2013 at 10:09 AM, Chamila Wijayarathna >>> > wrote:

> Hello all,
> I created a secure proxy service to connect to a web service existing
> in localhost [1].
> Then I generated pom.xml file to build a secure c

[Dev] [AppFactory] What is the reason for having 'default-SNAPSHOT' in pom.xml of web applications created in AppFactory?

2013-12-08 Thread Manjula Rathnayake
Hi all,

Noticed below version in pom.xml.

 org.wso2.af
  foo
 * default-SNAPSHOT*
  war
  foo

thank you.

-- 
Manjula Rathnayaka
Software Engineer
WSO2, Inc.
Mobile:+94 77 743 1987
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Dimuthu Upeksha
Hi Jeewantha,
I created the PasswordCallbackHandler class and added above lines to the
client. And added wss4j-1.6.4.jar to the class path also. Then I get
following error

---

Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.ws.security.WSPasswordCallback.getIdentifer()Ljava/lang/String;

at samples.userguide.PWCallback.handle(PWCallback.java:144)

at org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(
BindingBuilder.java:306)

at org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(
BindingBuilder.java:252)



Thank you

Dimuthu


On Mon, Dec 9, 2013 at 10:47 AM, Jeewantha Dharmaparakrama <
jeewan...@wso2.com> wrote:

>
>
>
> On Mon, Dec 9, 2013 at 10:40 AM, Samisa Abeysinghe wrote:
>
>> OK, we need to create a doc Jira please.
>>
> created https://wso2.org/jira/browse/DOCUMENTATION-515
>
>>
>> Thanks,
>> Samisa...
>>
>>
>> Samisa Abeysinghe
>>
>> Vice President Training
>>
>> WSO2 Inc.
>> http://wso2.com
>>
>>
>>
>> On Mon, Dec 9, 2013 at 10:38 AM, Jeewantha Dharmaparakrama <
>> jeewan...@wso2.com> wrote:
>>
>>> Hi Dimuthu,
>>>
>>> Did you create the password callback handler add add that to your
>>> clients classpath? After adding that to classpath you have to tell Rampart
>>> what the password callback handler is like follows.
>>>
>>> Options options = client.getOptions();
>>> options.put(WSHandlerConstants.PW_CALLBACK_REF, new 
>>> PasswordCallbackHandler());
>>>
>>> You will have to put username as well in which case I guess you could
>>> use this [1].
>>>
>>> Hi Samisa,
>>>
>>> I guess this is not documented properly except for this one [2]
>>>
>>> [1]
>>> http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHandlerConstants.html#USER
>>> [2] http://wso2.com/library/3733/
>>>
>>> Jeewantha
>>>
>>>
>>>
>>> On Mon, Dec 9, 2013 at 10:27 AM, Dimuthu Upeksha wrote:
>>>
 I did as in the article but still I'm getting the same exception. Then
 I added these libraries [1] to the classpath then new exception occurred
 [2].

 [1] http://mavenhub.com/c/samples/userguide/pwcallback/jar
 [2] https://gist.github.com/DImuthuUpe/7867567


 On Mon, Dec 9, 2013 at 10:16 AM, Jeewantha Dharmaparakrama <
 jeewan...@wso2.com> wrote:

> You have to create that Implementing
> "javax.security.auth.callback.CallbackHandler". See the example in the
> article. When WSS Policy is enabled ( I believe you enabled Username Token
> Policy at ESB proxy) , there has to be WSSecurity header in the SOAP
> request with Username and password. Rampart needs a password callback
> handler to get the password.
>
> Jeewantha
>
>
> On Mon, Dec 9, 2013 at 10:07 AM, Dimuthu Upeksha wrote:
>
>> Hi Jeewantha,
>> The class "PasswordCallbackHandler" can not be found in axis2 or
>> rampart libs. What is the library that contains it?
>>
>>
>> On Mon, Dec 9, 2013 at 10:00 AM, Jeewantha Dharmaparakrama <
>> jeewan...@wso2.com> wrote:
>>
>>> Hi Dimuthu,
>>>
>>> You have to set the password callback handler at client side. Try
>>> adding it to client's "options " [1]
>>>
>>> [1] http://wso2.com/library/3733/
>>>
>>> Jeewantha
>>>
>>>
>>> On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha 
>>> wrote:
>>>
 Hi all,
 I am trying to implement a secure client to a secure proxy service
 in ESB. However I am getting an exception [2] at line [3]. I tried to
 capture packets going out from the client using tcpMon but I found 
 nothing
 going out. It seems like a dependancy problem in the client but not 
 sure.
 What could be the reason for that?

 Thank you

 [1] https://gist.github.com/DImuthuUpe/7867226
 [2] https://gist.github.com/DImuthuUpe/7867246
 [3]
 https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127

 Dimuthu

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


>>>
>>>
>>> --
>>> Jeewantha Dharmaparakrama
>>> Software Engineer; WSO2, Inc.; http://wso2.com/
>>> Phone : (+94) 774726790
>>> Skype : prasad.jeewantha
>>> LinkedIn : http://www.linkedin.com/in/jeewanthad
>>> Twitter: https://twitter.com/jeewamp
>>> Blog: http://jeewanthad.blogspot.com/
>>>
>>
>>
>
>
> --
> Jeewantha Dharmaparakrama
> Software Engineer; WSO2, Inc.; http://wso2.com/
> Phone : (+94) 774726790
> Skype : prasad.jeewantha
> LinkedIn : http://www.linkedin.com/in/jeewanthad
> Twitter: https://twitter.com/jeewamp
> Blog: http://jeewanthad.blogspot.com/
>


>>>
>>>
>>> --
>>> Jeewantha Dharmaparakrama
>>> Software Engineer; WSO2, Inc.; http://wso2.com/
>>> Phone

Re: [Dev] [AppFactory] What is the reason for having 'default-SNAPSHOT' in pom.xml of web applications created in AppFactory?

2013-12-08 Thread Janaka Ranabahu
Hi Manjula,

Could not recall the exact reason but have seen this in the commit log.

@Manisha,
Would you be able to add some insight into this.



















*Log:changing the trunk's version from SNAPSHOT to default-SNAPSHOT to
avoid warnings Modified:
 
carbon/platform/branches/4.1.0/products/appfactory/1.0.0/vmware/appfactory_deployment/resources/appfactory.xml
Modified:
carbon/platform/branches/4.1.0/products/appfactory/1.0.0/vmware/appfactory_deployment/resources/appfactory.xml
URL: 
http://wso2.org/svn/browse/wso2/carbon/platform/branches/4.1.0/products/appfactory/1.0.0/vmware/appfactory_deployment/resources/appfactory.xml?rev=178038&r1=178037&r2=178038&view=diff

==
---
carbon/platform/branches/4.1.0/products/appfactory/1.0.0/vmware/appfactory_deployment/resources/appfactory.xml
 (original) +++
carbon/platform/branches/4.1.0/products/appfactory/1.0.0/vmware/appfactory_deployment/resources/appfactory.xml
 Thu Jul 11 20:52:34 2013 @@ -463,7 +463,7 @@ Web Application Archive file
 maven -DarchetypeGroupId=org.wso2.carbon.appfactory.maven.webapparchetype
-   -DarchetypeArtifactId=webapp-archetype
-DarchetypeVersion=1.0.0 -DgroupId=org.wso2.af
 -Dversion=SNAPSHOT -DinteractiveMode=false +
  -DarchetypeArtifactId=webapp-archetype -DarchetypeVersion=1.0.0
-DgroupId=org.wso2.af
 -Dversion=default-SNAPSHOT -DinteractiveMode=false
  -DarchetypeCatalog=local*

Thanks,
Janaka


On Mon, Dec 9, 2013 at 11:31 AM, Manjula Rathnayake wrote:

> Hi all,
>
> Noticed below version in pom.xml.
>
>  org.wso2.af
>   foo
>  * default-SNAPSHOT*
>   war
>   foo
>
> thank you.
>
> --
> Manjula Rathnayaka
> Software Engineer
> WSO2, Inc.
> Mobile:+94 77 743 1987
>



-- 
*Janaka Ranabahu*
Senior Software Engineer; WSO2 Inc.; http://wso2.com


* E-mail: jan...@wso2.com **M: **+94 718370861*

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


Re: [Dev] [ESB] Having problem with creating a secure client

2013-12-08 Thread Jeewantha Dharmaparakrama
might be an issue with the version. WSS4J 1.6.13 should have that method.
[1]
http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/WSPasswordCallback.html#getIdentifier%28%29

Jeewantha


On Mon, Dec 9, 2013 at 11:31 AM, Dimuthu Upeksha  wrote:

> Hi Jeewantha,
> I created the PasswordCallbackHandler class and added above lines to the
> client. And added wss4j-1.6.4.jar to the class path also. Then I get
> following error
>
> ---
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.ws.security.WSPasswordCallback.getIdentifer()Ljava/lang/String;
>
> at samples.userguide.PWCallback.handle(PWCallback.java:144)
>
> at org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(
> BindingBuilder.java:306)
>
> at org.apache.rampart.builder.BindingBuilder.getSignatureBuilder(
> BindingBuilder.java:252)
>
> 
>
> Thank you
>
> Dimuthu
>
>
> On Mon, Dec 9, 2013 at 10:47 AM, Jeewantha Dharmaparakrama <
> jeewan...@wso2.com> wrote:
>
>>
>>
>>
>> On Mon, Dec 9, 2013 at 10:40 AM, Samisa Abeysinghe wrote:
>>
>>> OK, we need to create a doc Jira please.
>>>
>> created https://wso2.org/jira/browse/DOCUMENTATION-515
>>
>>>
>>> Thanks,
>>> Samisa...
>>>
>>>
>>> Samisa Abeysinghe
>>>
>>> Vice President Training
>>>
>>> WSO2 Inc.
>>> http://wso2.com
>>>
>>>
>>>
>>> On Mon, Dec 9, 2013 at 10:38 AM, Jeewantha Dharmaparakrama <
>>> jeewan...@wso2.com> wrote:
>>>
 Hi Dimuthu,

 Did you create the password callback handler add add that to your
 clients classpath? After adding that to classpath you have to tell Rampart
 what the password callback handler is like follows.

 Options options = client.getOptions();
 options.put(WSHandlerConstants.PW_CALLBACK_REF, new 
 PasswordCallbackHandler());

 You will have to put username as well in which case I guess you could
 use this [1].

 Hi Samisa,

 I guess this is not documented properly except for this one [2]

 [1]
 http://ws.apache.org/wss4j/apidocs/org/apache/ws/security/handler/WSHandlerConstants.html#USER
 [2] http://wso2.com/library/3733/

 Jeewantha



 On Mon, Dec 9, 2013 at 10:27 AM, Dimuthu Upeksha wrote:

> I did as in the article but still I'm getting the same exception. Then
> I added these libraries [1] to the classpath then new exception occurred
> [2].
>
> [1] http://mavenhub.com/c/samples/userguide/pwcallback/jar
> [2] https://gist.github.com/DImuthuUpe/7867567
>
>
> On Mon, Dec 9, 2013 at 10:16 AM, Jeewantha Dharmaparakrama <
> jeewan...@wso2.com> wrote:
>
>> You have to create that Implementing
>> "javax.security.auth.callback.CallbackHandler". See the example in the
>> article. When WSS Policy is enabled ( I believe you enabled Username 
>> Token
>> Policy at ESB proxy) , there has to be WSSecurity header in the SOAP
>> request with Username and password. Rampart needs a password callback
>> handler to get the password.
>>
>> Jeewantha
>>
>>
>> On Mon, Dec 9, 2013 at 10:07 AM, Dimuthu Upeksha 
>> wrote:
>>
>>> Hi Jeewantha,
>>> The class "PasswordCallbackHandler" can not be found in axis2 or
>>> rampart libs. What is the library that contains it?
>>>
>>>
>>> On Mon, Dec 9, 2013 at 10:00 AM, Jeewantha Dharmaparakrama <
>>> jeewan...@wso2.com> wrote:
>>>
 Hi Dimuthu,

 You have to set the password callback handler at client side. Try
 adding it to client's "options " [1]

 [1] http://wso2.com/library/3733/

 Jeewantha


 On Mon, Dec 9, 2013 at 9:43 AM, Dimuthu Upeksha 
 wrote:

> Hi all,
> I am trying to implement a secure client to a secure proxy service
> in ESB. However I am getting an exception [2] at line [3]. I tried to
> capture packets going out from the client using tcpMon but I found 
> nothing
> going out. It seems like a dependancy problem in the client but not 
> sure.
> What could be the reason for that?
>
> Thank you
>
> [1] https://gist.github.com/DImuthuUpe/7867226
> [2] https://gist.github.com/DImuthuUpe/7867246
> [3]
> https://gist.github.com/DImuthuUpe/7867226#file-gistfile1-txt-L127
>
> Dimuthu
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Jeewantha Dharmaparakrama
 Software Engineer; WSO2, Inc.; http://wso2.com/
 Phone : (+94) 774726790
 Skype : prasad.jeewantha
 LinkedIn : http://www.linkedin.com/in/jeewanthad
 Twitter: https://twitter.com/jeewamp
 Blog: http://jeewanthad.blogspot.com/

>>

Re: [Dev] [AppFactory] What is the reason for having 'default-SNAPSHOT' in pom.xml of web applications created in AppFactory?

2013-12-08 Thread Ramith Jayasinghe
Shouldn't it be like:
trunk-SNAPSHOT ?

according to:

http://stackoverflow.com/questions/5901378/what-exactly-is-a-maven-snapshot-and-why-do-we-need-it

http://books.sonatype.com/mvnref-book/reference/pom-relationships-sect-pom-syntax.html
   http://www.tutorialspoint.com/maven/maven_snapshots.htm


And to me it seems we are not really adhering the version-ing standards
practised in maven world.
For example:
   having a the final name of deploy-able artifact with 'SNAPSHOT' makes
sense for dev, test stages, while 'Production' should not have that.
   For example, imagine the web application 'myapp' with version '2.0.0'.
Then in my opinion it should be deployed with following names:

 Dev Stage : myapp-2.0.0-SNAPSHOT.war
 Test Stage : myapp-2.0.0-SNAPSHOT.war
 Production Stage :  myapp-2.0.0.war

Idea here is that, when in {Dev,Test} the version 2.0.0 is not released (
hence its a snapshot), and when it hits the production it can be considered
as released (hence not a snapshot).

Thoughts ?









On Mon, Dec 9, 2013 at 11:38 AM, Janaka Ranabahu  wrote:

> Hi Manjula,
>
> Could not recall the exact reason but have seen this in the commit log.
>
> @Manisha,
> Would you be able to add some insight into this.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Log:changing the trunk's version from SNAPSHOT to default-SNAPSHOT to
> avoid warnings Modified:
>  
> carbon/platform/branches/4.1.0/products/appfactory/1.0.0/vmware/appfactory_deployment/resources/appfactory.xml
> Modified:
> carbon/platform/branches/4.1.0/products/appfactory/1.0.0/vmware/appfactory_deployment/resources/appfactory.xml
> URL: 
> http://wso2.org/svn/browse/wso2/carbon/platform/branches/4.1.0/products/appfactory/1.0.0/vmware/appfactory_deployment/resources/appfactory.xml?rev=178038&r1=178037&r2=178038&view=diff
> 
> ==
> ---
> carbon/platform/branches/4.1.0/products/appfactory/1.0.0/vmware/appfactory_deployment/resources/appfactory.xml
>  (original) +++
> carbon/platform/branches/4.1.0/products/appfactory/1.0.0/vmware/appfactory_deployment/resources/appfactory.xml
>  Thu Jul 11 20:52:34 2013 @@ -463,7 +463,7 @@  name="Description">Web Application Archive file
>  maven  name="MavenArcheTypeRequest">-DarchetypeGroupId=org.wso2.carbon.appfactory.maven.webapparchetype
> -   -DarchetypeArtifactId=webapp-archetype
> -DarchetypeVersion=1.0.0 -DgroupId=org.wso2.af
>  -Dversion=SNAPSHOT -DinteractiveMode=false +
>   -DarchetypeArtifactId=webapp-archetype -DarchetypeVersion=1.0.0
> -DgroupId=org.wso2.af
>  -Dversion=default-SNAPSHOT -DinteractiveMode=false
>   -DarchetypeCatalog=local*
>
> Thanks,
> Janaka
>
>
> On Mon, Dec 9, 2013 at 11:31 AM, Manjula Rathnayake wrote:
>
>> Hi all,
>>
>> Noticed below version in pom.xml.
>>
>>  org.wso2.af
>>   foo
>>  * default-SNAPSHOT*
>>   war
>>   foo
>>
>> thank you.
>>
>> --
>> Manjula Rathnayaka
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 77 743 1987
>>
>
>
>
> --
> *Janaka Ranabahu*
> Senior Software Engineer; WSO2 Inc.; http://wso2.com
>
>
> * E-mail: jan...@wso2.com **M: **+94 718370861
> <%2B94%20718370861>*
>
> Lean . Enterprise . Middleware
>



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

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


Re: [Dev] Commit required to kernel patch 4

2013-12-08 Thread Shani Ranasinghe
Hi Manoj,
Please use this. Let me know if anything needs to be changed.


On Mon, Dec 9, 2013 at 10:19 AM, Manoj Kumara  wrote:

> Hi Shani,
>
> The patch you provided is not complete. Please follow the steps on [1].
>
> [1] http://docs.wso2.org/display/Carbon420/Creating+a+Carbon+Kernel+Patch
>
> Thanks,
> Manoj
>
> Best Regards..
>
>
> Manoj Kumara
> Software Engineer
> WSO2, Inc.; http://wso2.com
>
> Twitter:  http://twitter.com/ManKuma
> Mobile: +94713448188
>
>
> On Mon, Dec 9, 2013 at 4:16 AM, Shani Ranasinghe  wrote:
>
>> Hi Manoj,
>>
>> Please commit this. If you have not committed the above, the ignore the
>> above and use this.
>>
>>
>> On Thu, Dec 5, 2013 at 4:50 PM, Shani Ranasinghe  wrote:
>>
>>> Hi,
>>> Please commit the attached patch file to Kernel  the next  patch (patch
>>> 4). Since patch 3 is about to be released, and this change has not been
>>> tested by QA yet, please commit the changes to patch 4.
>>>
>>> --
>>> Thanks and Regards
>>> *,Shani Ranasinghe*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 77 2273555
>>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>>
>>
>>
>>
>> --
>> Thanks and Regards
>> *,Shani Ranasinghe*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 2273555
>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>
>
>


-- 
Thanks and Regards
*,Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
Index: README.txt
===
--- README.txt  (revision 192755)
+++ README.txt  (working copy)
@@ -1,6 +1,6 @@
 Patch ID :  WSO2-CARBON-PATCH-4.2.0-0004
 Applies To   :  WSO2 CARBON-4.2.0
-Associated JIRA  :
+Associated JIRA  : https://wso2.org/jira/browse/SS-269
 
 
 DESCRIPTION
Index: distribution/bin.xml
===
--- distribution/bin.xml(revision 192755)
+++ distribution/bin.xml(working copy)
@@ -29,9 +29,15 @@
 

 
 
-
+
 
-
+ 
+
../core/org.wso2.carbon.user.core/4.2.0/target/org.wso2.carbon.user.core-4.2.0.jar
+
WSO2-CARBON-PATCH-4.2.0-0004/patch0004
+org.wso2.carbon.user.core_4.2.0.jar
+644
+
+ 
 ../wso2carbon-version.txt
 WSO2-CARBON-PATCH-4.2.0-0004
 644
Index: 
core/org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/ldap/ReadWriteLDAPUserStoreManager.java
===
--- 
core/org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/ldap/ReadWriteLDAPUserStoreManager.java
(working copy)
+++ 
core/org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/ldap/ReadWriteLDAPUserStoreManager.java
(working copy)
@@ -360,7 +360,7 @@
if(cc != null) {
String tenantDomainName = cc.getTenantDomain();

if(!MultitenantConstants.SUPER_TENANT_DOMAIN_NAME.equals(tenantDomainName)) {
-   userName = userName + '/' + 
tenantDomainName;
+   userName = userName + 
UserCoreConstants.PRINCIPAL_USERNAME_SEPARATOR + tenantDomainName;
}
}

Index: 
core/org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/tenant/CommonHybridLDAPTenantManager.java
===
--- 
core/org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/tenant/CommonHybridLDAPTenantManager.java
  (working copy)
+++ 
core/org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/tenant/CommonHybridLDAPTenantManager.java
  (working copy)
@@ -17,6 +17,7 @@
 */
 package org.wso2.carbon.user.core.tenant;
 
+import java.util.Locale;
 import java.util.Map;
 
 import javax.naming.Name;
@@ -29,6 +30,7 @@
 import org.apache.axiom.om.OMElement;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.wso2.carbon.context.CarbonContext;
 import org.wso2.carbon.user.api.RealmConfiguration;
 import org.wso2.carbon.user.api.TenantMgtConfiguration;
 import org.wso2.carbon.user.core.UserCoreConstants;
@@ -327,8 +329,15 @@
 //create person object class attribute
 Attribute objClass = new 
BasicAttribute(LDAPConstants.OBJECT_CLASS_NAME);
 
objClass.add(realmConfig.getUserStoreProperty(LDAPConstants.USER_ENTRY_OBJECT_CLASS));
+if (UserCoreUtil.isKdcEnabled(realmConfig)) {
+   // Add Kerberos specific object 

Re: [Dev] IdP-Initiated SSO Support Added

2013-12-08 Thread Johann Nallathamby
Hi Samuel,

Please add this  to the IS-4.6.0 docs under SAML SSO. The above
descriptions should be enough for starters.


On Sun, Nov 10, 2013 at 12:12 AM, Johann Nallathamby wrote:

> Hi,
>
> IdP Initiated SSO support has been added with r190585.
>
> To enable IdP Initiated SSO for a service provider click on "Enable IdP
> Initiated SSO" as shown in the attached screen shot.
>
> To initiate IdP Initiated SSO you need to perform a HTTP GET/POST to the
> following URL (assume the registered service provider Issuer ID is
> travelocity.com)
>
> https://localhost:9443/samlsso?spEntityID=travelocity.com
>
> This request will authenticate the user and redirect him to the registered
> Assertion Consumer URL. Optionally you can send in a RelayState parameter
> as follows:
>
>
> https://localhost:9443/samlsso?spEntityID=travelocity.com&RelayState=http://localhost:8080/travelocity.com/my-home.jsp
>
> This request will authenticate the user and redirect him to the URL in the
> RelayState parameter.
>
> To Note:
> Either you could have SP Initiated SSO only, or SP Initiated SSO and IdP
> Initiated SSO. You can't have IdP initiated SSO only. By design SP
> Initiated SSO is more restrictive and secure. A service provider is allowed
> to do IdP Initiated SSO would automatically imply he is allowed to do SP
> Initiated SSO as well.
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Senior Software Engineer
> Integration Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com *
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Senior Software Engineer
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

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


[Dev] wso2carbon.jks keystore password

2013-12-08 Thread Nisreen123

I am implemnting a SAML SSO using WSO2 as idp and IBM websphere as service
provider, I need to export the idp certificate to validate the SAML response
and when i enter the following command 
keytool -export -keystore
[WSO2-home]\repository\resources\security\wso2carbon.jks  -file carbon.cert
-alias localhost
I am asked for the keystore password, from where can i get such info?




--
View this message in context: 
http://wso2-oxygen-tank.10903.n7.nabble.com/wso2carbon-jks-keystore-password-tp89480.html
Sent from the WSO2 Development mailing list archive at Nabble.com.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev