Re: [Dev] integrating IS 5.0 with Active Directory

2014-10-30 Thread Pulasthi Mahawithana
Hi Akila,

Are you using AD in read only mode or read write mode?

If it is read only mode you should be
using "org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager" as
mentioned in [1].
"org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager" is used
only when AD is used in read write mode.

Also check whether the user has necessary permission to login to the admin
console.

[1] https://docs.wso2.com/display/IS500/Configuring+Primary+User+Stores


On Wed, Oct 29, 2014 at 5:59 PM, Godwin Amila Shrimal 
wrote:

> Hi Akila,
>
> Can you enable debug mode in Identity Server and recreate the issue and
> send back the log file. Please see below link for enabling debug.
>
>
> http://soasecurity.org/2014/02/26/how-to-wso2is-troubleshooting-wso2-identity-server-1/
>
>
> On Wed, Oct 29, 2014 at 5:44 PM, Akila Nimantha [IT/EKO/LOITS] <
> aki...@lolctech.com> wrote:
>
>>  Hi Godwin,
>>
>>
>>
>> Please check for the attached log file.
>>
>>
>>
>> Regards,
>>
>> Akila
>>
>>
>>
>> *From:* Godwin Amila Shrimal [mailto:god...@wso2.com]
>> *Sent:* 29 October 2014 5:26 PM
>> *To:* Akila Nimantha [IT/EKO/LOITS]
>> *Cc:* dev@wso2.org
>> *Subject:* Re: [Dev] integrating IS 5.0 with Active Directory
>>
>>
>>
>> Hi Akila,
>>
>>
>>
>> What is there error you are getting when trying to login ? can you send
>> the identity server log ?
>>
>>
>>
>>
>>
>> Thanks
>>
>> Godwin
>>
>>
>>
>>
>>
>> On Wed, Oct 29, 2014 at 5:04 PM, Akila Nimantha [IT/EKO/LOITS] <
>> aki...@lolctech.com> wrote:
>>
>>  Hi all,
>>
>>
>>
>> I have a question regarding integrating IS 5.0 with Active Directory.I've
>> setup where i can see all of the AD users and group in IS but I cant login
>> to IS with any of the AD credentials.
>>
>> Also i've registered the travelocity.com webapp but unable to login
>> through the app
>>
>>
>>
>> WSO2 IS configuration
>>
>>
>>
>>
>>
>> false
>>
>> admin
>>
>> 
>>
>>
>> FusionUsr
>>
>>
>> Fu$@1234
>>
>> 
>>
>> everyone 
>>
>> jdbc/WSO2CarbonDB
>>
>> 
>>
>>
>>
>> > class="org.wso2.carbon.user.core.ldap.ActiveDirectoryUserStoreManager">
>>
>> > name="TenantManager">org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager
>>
>> LOLC.com
>>
>> > name="Disabled">false
>>
>> false
>>
>> ldap://lolcpdc.lolc.com:389
>>
>> CN=FusionUsr,OU=IT Service
>> Accounts,DC=LOLC,DC=com
>>
>> Fu$@1234
>>
>> PLAIN_TEXT
>>
>> DC=LOLC,DC=com
>>
>> user
>>
>> sAMAccountName
>>
>> false
>>
>> 512
>>
>> (objectClass=user)
>>
>> > name="UserNameSearchFilter">(&(objectClass=user)(cn=?))
>>
>> [a-zA-Z0-9._-|//]{3,30}$
>>
>> ^[\S]{3,30}$
>>
>> ^[\S]{5,30}$
>>
>> ^[\S]{3,30}$
>>
>> [a-zA-Z0-9._-|//]{3,30}$
>>
>> true
>>
>> true
>>
>> true
>>
>> DC=LOLC,DC=com
>>
>> group
>>
>> cn
>>
>> cn
>>
>> > name="SharedGroupSearchBase">ou=SharedGroups,dc=wso2,dc=org
>>
>> groups
>>
>> > name="SharedTenantNameListFilter">(object=organizationalUnit)
>>
>> ou
>>
>> organizationalUnit
>>
>> member
>>
>> (objectcategory=group)
>>
>> > name="GroupNameSearchFilter">(&(objectClass=group)(cn=?))
>>
>> true
>>
>> follow
>>
>> true
>>
>> 100
>>
>> 100
>>
>> false
>>
>> 
>>
>>
>>
>> Regards,
>>
>> Akila
>>
>> This message (including any attachments) is intended only for the use of
>> the individual or entity to which it is addressed and may contain
>> information that is non-public, proprietary, privileged, confidential, and
>> exempt from disclosure under applicable law or may constitute as attorney
>> work product. If you are not the intended recipient, you are hereby
>> notified that any use, dissemination, distribution, or copying of this
>> communication is strictly prohibited. If you have received this
>> communication in error, notify us immediately by telephone and (i) destroy
>> this message if a facsimile or (ii) delete this message immediately if this
>> is an electronic communication. Thank you.
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>>
>>
>>
>> --
>>
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165 <%2B94772264165>*
>>
>> linkedin: *http://lnkd.in/KUum6D *
>>
>> twitter: https://twitter.com/godwinamila
>>
>> This message (including any attachments) is intended only for the use of
>> the individual or entity to which it is addressed and may contain
>> information that is non-public, proprietary, privileged, confidential, and
>> exempt from disclosure under applicable law or may constitute as attorney
>> work product. If you are not the intended recipient, you are hereby
>> notified that any use, dissemination, distribution, or copying of this
>> communication is strictly prohibited. If you have received this
>> communication in error, notify us immediately by telephone and (i) destroy
>> this message if a facs

Re: [Dev] Updated Invitation: Code Review - Geo Dashboard @ Thu Oct 30, 2014 10:45am - 11:15am (Damith Wickramasinghe)

2014-10-30 Thread Damith Wickramasinghe
Hi,

Please find the meeting notes below.

Participants: Mohan, Tishan, Kasun, Rajeev

Changes:

Siddhi Extension:

 - Use concurrent hash maps
 - Use casting with out converting and parsing appropriately
 - add more constants where appropriate
 - in process do not use json parsing
 - add more convenient names to parameters

Regards,
Damith
 -

On Thu, Oct 30, 2014 at 10:39 AM, dami...@wso2.com  wrote:

> This event has been changed.
> more details »
> 
> Code Review - Geo Dashboard
> *When*
> *Changed: *Thu Oct 30, 2014 10:45am – 11:15am Colombo
> *Where*
> LK 3rd Floor Meeting Room - Kernel (map
> )
> *Video call*
> https://plus.google.com/hangouts/_/wso2.com/code-review-geo
> 
> *Calendar*
> Damith Wickramasinghe
> *Who*
> •
> Damith Wickramasinghe - organizer
> •
> Tishan Dahanayakage
> •
> Sriskandarajah Suhothayan
> •
> Mohanadarshan Vivekanandalingam
> •
> Kasun Thennakoon
> •
> dev@wso2.org
> •
> Rajeev Sampath
> •
> Dilini Muthumala
> •
> Sajith Ravindra
> •
> Sachini Jayasekara
>
> Going?   *Yes
> 
> - Maybe
> 
> - No
> *
> more options »
> 
>
> Invitation from Google Calendar 
>
> You are receiving this courtesy email at the account dev@wso2.org because
> you are an attendee of this event.
>
> To stop receiving future notifications for this event, decline this event.
> Alternatively you can sign up for a Google account at
> https://www.google.com/calendar/ and control your notification settings
> for your entire calendar.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

lean.enterprise.middleware

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


Re: [Dev] Dep Sync in Analyzer and Receiver nodes

2014-10-30 Thread Sriskandarajah Suhothayan
Hi Gihan

So want this make the deployment process complicated?
We have to now update 2 servers to add streams.

Regards
Suho


On Wed, Oct 29, 2014 at 11:37 PM, Gihan Anuruddha  wrote:

> Hi Anjana,
>
> Can't we create two repositories, one for analyzer and one for
> receiver regarding this issue? Because analyzers and receivers don't have
> any common features and those two run independently. Since we are
> maintaining a two repos, I believe we can have two RW node.
>
> WDYT?
>
> Regards,
> Gihan
>
> On Thu, Oct 30, 2014 at 4:23 AM, Anjana Fernando  wrote:
>
>> On Wed, Oct 29, 2014 at 10:34 AM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>>
>>>
>>> On Wed, Oct 29, 2014 at 7:27 AM, Aparna Karunarathna 
>>> wrote:
>>>
 Hi Anjana/KasunG/suho,

 According to the new BAM 2.5.0 deployment pattern [1] we have
 configured the BAM cluster with 11 nodes(4 cassandra, 3 hadoop, 2 analyzer
 and 2 receiver). Since BAM 2.5.0 is releasing with CEP features, we have to
 enable the dep sync for receiver nodes as well. Therefore one of the
 Analyzer/Receiver nodes were configured as RW nodes and other
 analyzer/receiver nodes were configured as RO nodes and pointed to a single
 svn repo.

 Toolboxes can be deployed to the Analyzer RW node and CEP input
 adapters to the Receiver RW node. We have seen svn conflicts when both RW
 nodes were trying to commit to svn repo.

 Therefore, how to configure the Dep Sync for Analyzer/Receiver nodes in
 BAM 2.5.0 clustered setup? Please advice.

>>>
>>> We cant have two RW nodes in a single cluster. Here we have to first
>>> find out a node that has both CEP and Toolbox deployment components and
>>> make that the RW node to make this work, I'm not sure either
>>> Analyzer/Receiver profiles have both CEP and Toolbox deployment components,
>>> If its not the case we have to fix the BAM profile.
>>>
>>
>> @Gihan, please note, check and fix if needed.
>>
>> Cheers,
>> Anjana.
>>
>>
>>>
>>> Regards
>>> Suho
>>>
>>>

 [1] https://docs.wso2.com/display/CLUSTER420/Deploying+BAM+with+Puppet


 Regards,
 --
 *Aparna Karunarathna.*


 *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533 <0714002533>*

>>>
>>>
>>>
>>> --
>>>
>>> *S. Suhothayan*
>>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>>  *WSO2 Inc. *http://wso2.com
>>> * *
>>> lean . enterprise . middleware
>>>
>>>
>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>>> http://suhothayan.blogspot.com/ twitter:
>>> http://twitter.com/suhothayan  | linked-in:
>>> http://lk.linkedin.com/in/suhothayan *
>>>
>>
>>
>>
>> --
>> *Anjana Fernando*
>> Senior Technical Lead
>> WSO2 Inc. | http://wso2.com
>> lean . enterprise . middleware
>>
>
>
>
> --
> W.G. Gihan Anuruddha
> Senior Software Engineer | WSO2, Inc.
> M: +94772272595
>



-- 

*S. Suhothayan*
Technical Lead & Team Lead of WSO2 Complex Event Processor
 *WSO2 Inc. *http://wso2.com
* *
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
twitter: http://twitter.com/suhothayan
 | linked-in:
http://lk.linkedin.com/in/suhothayan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][APPFAC] Please commit the patch

2014-10-30 Thread Roshan Deniyage
Hi Gayan,
   Please commit the attached patch for JIRA [1]

[1]
​ 
*​​​
https://wso2.org/jira/browse/APPFAC-2585
*

Thanks,

Roshan Deniyage
Associate Technical Lead
WSO2, Inc: http://wso2.com

Mobile:  +94 777636406
Twitter:
*https://twitt​​er.com/roshku *
LinkedIn :  https://www.linkedin.com/in/roshandeniyage
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Siddhi custom output attribute aggregator for CEP is not working

2014-10-30 Thread Nishali Wijesinghe
Hi,

I'm  trying to write a siddhi custom output attribute aggregator for CEP. I
wrote the following 2 classes and created the jar file with extension
Name=ext1 and function Name=StdDev_sample.
  StdDevOutputAttributeAggregatorSample
  StdDevOutputAttributeAggregatorSampleFactory

And then I added the jar file to /repository/components/lib and
then added the fully qualified class name as
"org.wso2.siddhi.extension.StdDevOutputAttributeAggregatorSampleFactory" to
/repository/conf/siddhi.

But when i try to use the extension in CEP i get the following error.

No extension exist for OutputAttributeExtension{extensionName='ext1',
functionName='StdDev_sample', rename='std'}

Thank you.

-- 
Nishali Wijesinghe
Intern - Engineering
WSO2, Inc.
lean.enterprise.middleware.
Tel: +94716913495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Siddhi custom output attribute aggregator for CEP is not working

2014-10-30 Thread Damith Wickramasinghe
Hi Nishali,

Sometimes you will get this error If you have same package name with
different extension class names. Its a known error in OSGI. Please check
whether you have multiple extensions in a same package.
eg: org.wso2.cep.extOne and org.wso2.cep.extTwo will throw you the error
when you try to deploy extTwo extension.

Thanks,
Damith.


On Thu, Oct 30, 2014 at 1:30 PM, Nishali Wijesinghe 
wrote:

> Hi,
>
> I'm  trying to write a siddhi custom output attribute aggregator for CEP.
> I wrote the following 2 classes and created the jar file with extension
> Name=ext1 and function Name=StdDev_sample.
>   StdDevOutputAttributeAggregatorSample
>   StdDevOutputAttributeAggregatorSampleFactory
>
> And then I added the jar file to /repository/components/lib and
> then added the fully qualified class name as
> "org.wso2.siddhi.extension.StdDevOutputAttributeAggregatorSampleFactory" to
> /repository/conf/siddhi.
>
> But when i try to use the extension in CEP i get the following error.
>
> No extension exist for OutputAttributeExtension{extensionName='ext1',
> functionName='StdDev_sample', rename='std'}
>
> Thank you.
>
> --
> Nishali Wijesinghe
> Intern - Engineering
> WSO2, Inc.
> lean.enterprise.middleware.
> Tel: +94716913495
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

lean.enterprise.middleware

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


Re: [Dev] Siddhi custom output attribute aggregator for CEP is not working

2014-10-30 Thread Nishali Wijesinghe
Hi all,

I was using a previously used package with different extension class name
to deploy the extension. I now tried it with a different package and now it
is working.

Thank you
Nishali

On Thu, Oct 30, 2014 at 1:52 PM, Damith Wickramasinghe 
wrote:

> Hi Nishali,
>
> Sometimes you will get this error If you have same package name with
> different extension class names. Its a known error in OSGI. Please check
> whether you have multiple extensions in a same package.
> eg: org.wso2.cep.extOne and org.wso2.cep.extTwo will throw you the error
> when you try to deploy extTwo extension.
>
> Thanks,
> Damith.
>
>
> On Thu, Oct 30, 2014 at 1:30 PM, Nishali Wijesinghe 
> wrote:
>
>> Hi,
>>
>> I'm  trying to write a siddhi custom output attribute aggregator for CEP.
>> I wrote the following 2 classes and created the jar file with extension
>> Name=ext1 and function Name=StdDev_sample.
>>   StdDevOutputAttributeAggregatorSample
>>   StdDevOutputAttributeAggregatorSampleFactory
>>
>> And then I added the jar file to /repository/components/lib and
>> then added the fully qualified class name as
>> "org.wso2.siddhi.extension.StdDevOutputAttributeAggregatorSampleFactory" to
>> /repository/conf/siddhi.
>>
>> But when i try to use the extension in CEP i get the following error.
>>
>> No extension exist for OutputAttributeExtension{extensionName='ext1',
>> functionName='StdDev_sample', rename='std'}
>>
>> Thank you.
>>
>> --
>> Nishali Wijesinghe
>> Intern - Engineering
>> WSO2, Inc.
>> lean.enterprise.middleware.
>> Tel: +94716913495
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Software Engineer
> WSO2 Inc.; http://wso2.com
> 
> lean.enterprise.middleware
>
> mobile: *+94728671315 <%2B94728671315>*
>
>


-- 
Nishali Wijesinghe
Intern - Engineering
WSO2, Inc.
lean.enterprise.middleware.
Tel: +94716913495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Siddhi custom output attribute aggregator for CEP is not working

2014-10-30 Thread Seshika Fernando
Hi Nishali,

Couple of questions.
1. Have you added the SiddhiExtension Annotation to your Factory class?
2.Can you provide your siddhi query syntax which uses this function?

seshika

On Thu, Oct 30, 2014 at 1:30 PM, Nishali Wijesinghe 
wrote:

> Hi,
>
> I'm  trying to write a siddhi custom output attribute aggregator for CEP.
> I wrote the following 2 classes and created the jar file with extension
> Name=ext1 and function Name=StdDev_sample.
>   StdDevOutputAttributeAggregatorSample
>   StdDevOutputAttributeAggregatorSampleFactory
>
> And then I added the jar file to /repository/components/lib and
> then added the fully qualified class name as
> "org.wso2.siddhi.extension.StdDevOutputAttributeAggregatorSampleFactory" to
> /repository/conf/siddhi.
>
> But when i try to use the extension in CEP i get the following error.
>
> No extension exist for OutputAttributeExtension{extensionName='ext1',
> functionName='StdDev_sample', rename='std'}
>
> Thank you.
>
> --
> Nishali Wijesinghe
> Intern - Engineering
> WSO2, Inc.
> lean.enterprise.middleware.
> Tel: +94716913495
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Siddhi custom output attribute aggregator for CEP is not working

2014-10-30 Thread Seshika Fernando
Sorry. Ignore my response, I replied before I saw the entire thread.

On Thu, Oct 30, 2014 at 2:10 PM, Seshika Fernando  wrote:

> Hi Nishali,
>
> Couple of questions.
> 1. Have you added the SiddhiExtension Annotation to your Factory class?
> 2.Can you provide your siddhi query syntax which uses this function?
>
> seshika
>
> On Thu, Oct 30, 2014 at 1:30 PM, Nishali Wijesinghe 
> wrote:
>
>> Hi,
>>
>> I'm  trying to write a siddhi custom output attribute aggregator for CEP.
>> I wrote the following 2 classes and created the jar file with extension
>> Name=ext1 and function Name=StdDev_sample.
>>   StdDevOutputAttributeAggregatorSample
>>   StdDevOutputAttributeAggregatorSampleFactory
>>
>> And then I added the jar file to /repository/components/lib and
>> then added the fully qualified class name as
>> "org.wso2.siddhi.extension.StdDevOutputAttributeAggregatorSampleFactory" to
>> /repository/conf/siddhi.
>>
>> But when i try to use the extension in CEP i get the following error.
>>
>> No extension exist for OutputAttributeExtension{extensionName='ext1',
>> functionName='StdDev_sample', rename='std'}
>>
>> Thank you.
>>
>> --
>> Nishali Wijesinghe
>> Intern - Engineering
>> WSO2, Inc.
>> lean.enterprise.middleware.
>> Tel: +94716913495
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Open Id Test Automation varying Consumer Type and Attribute Exchange

2014-10-30 Thread Malithi Edirisinghe
Hi All,

I could create the four artifacts when building the integration module
using maven-antrun-plugin and maven-dependency-plugin at
the process-test-resources phase as below.

   1. Used the travelocity sample war as a dependency and unpack the war
   using maven-dependency-plugin.
   2. Introduced an ant script with four targets, where each will replace
   the property file for that combination and execute ant war task to package
   a new war.
   3. Each target in the script is invoked using maven-antrun-plugin to
   build the war artifact at process-test-resources phase

I hope this solution is acceptable. Would like to know your thoughts on
this.

Thanks,
Malithi.


On Mon, Oct 27, 2014 at 7:08 AM, Krishantha Samaraweera  wrote:

> Hi Malithi,
>
> We normally recommend to keep all test artefacts under integration module
> and build them before all test modules. In this case, if you
> copy travelocity sample code to integration module then it will introduce
> code duplication. So the best approach would be to modify the war file at
> test run time and create four war files with different names. You might be
> able to use war as a dependency and use unpack and find-and-replace plugins
> to create create combination of test artefacts. Then you can host those war
> files on tomcat server before executing any tests.
>
> You can use TestNG @BeforeTest annotation to start tomcat server before
> any tests in your test package. We have followed the same approach in ESB
> JMS tests where ActiveMQ serve is started before running any tests in the
> package [1] (you need to introduce new test block in testng.xml)
>
> Thanks,
>
> Krishantha.
>
> [1]
> https://github.com/wso2-dev/product-esb/blob/master/modules/integration/tests-integration/tests-transport/src/test/java/org/wso2/carbon/esb/jms/transport/test/JMSBrokerStartupTestCase.java
>
> On Sun, Oct 26, 2014 at 10:03 PM, Malithi Edirisinghe 
> wrote:
>
>> Hi All,
>>
>> I have used travelocity sample application to automate tests for the Open
>> Id, for following parameter combinations.
>>
>> User - (Admin/Login User/Tenant User)
>> User Consent - (Approve/Approve Always/Skip)
>> Association Type - (DB Store/Replication Store/Crypto Store)
>> OpenId Attribute Exchange - (With/Without)
>> Consumer Type - (Smart Mode/Dumb Mode)
>>
>> Test is being written using @factory annotation along with a TestNG data
>> provider to initiate tests for each parameter combination.
>>
>> In order to specify the consumer type and to specify whether attribute
>> exchange is requested or not I introduced two new properties to the sample
>> app as below.
>>
>> #Specify whether the consumer requests user attributes from the provider
>> OpenId.EnableAttributeExchange=true
>>
>> #Specify whether the consumer runs in dumb mode
>> OpenId.EnableDumbMode=false
>>
>> So for these two properties there are four combinations that I have to
>> test, and I see below two approaches to get this done.
>>
>>1. Build four artifacts of the sample app for each combination of the
>>two properties.
>>2. Use the same artifact for testing changing the property file for
>>each combination.
>>
>> I have tried on (1) using maven-war-plugin by adding four executions and
>> labelling each artifact with a classifer. But this approach packages four
>> additional artifacts though we need them only for testing. I'm not sure how
>> can we have those artifacts be packaged only at the test phase.
>> Further there are several ways of using the tomcat instance with the
>> deployed app.
>>
>>1. Start tomcat before each test and deploy the relevant artifact.
>>Then stop the instance after the test.
>>2. Start the tomcat instance before executing a test group and deploy
>>all artifacts needed before running tests. Then stop the instance after
>>running all tests in that group.
>>
>> I found that existing IS tests were written using the first approach. But
>> when considering this case considerable amount of tests would be initiated
>> for combinations of above parameters. So seems 2nd approach would be better.
>>
>> I would like to know the best approach to be followed here.
>> Kindly expect your thoughts on this.
>>
>> Thanks,
>> Malithi.
>>
>> --
>>
>> *Malithi Edirisinghe*
>> Senior Software Engineer
>> WSO2 Inc.
>>
>> Mobile : +94 (0) 718176807
>> malit...@wso2.com
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 

*Malithi Edirisinghe*
Senior Software Engineer
WSO2 Inc.

Mobile : +94 (0) 718176807
malit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Siddhi custom output attribute aggregator for CEP is not working

2014-10-30 Thread Nishali Wijesinghe
Hi seshika,

Yes, now it is working.

Thanks
Nishali

On Thu, Oct 30, 2014 at 2:11 PM, Seshika Fernando  wrote:

> Sorry. Ignore my response, I replied before I saw the entire thread.
>
> On Thu, Oct 30, 2014 at 2:10 PM, Seshika Fernando 
> wrote:
>
>> Hi Nishali,
>>
>> Couple of questions.
>> 1. Have you added the SiddhiExtension Annotation to your Factory class?
>> 2.Can you provide your siddhi query syntax which uses this function?
>>
>> seshika
>>
>> On Thu, Oct 30, 2014 at 1:30 PM, Nishali Wijesinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm  trying to write a siddhi custom output attribute aggregator for
>>> CEP. I wrote the following 2 classes and created the jar file with
>>> extension Name=ext1 and function Name=StdDev_sample.
>>>   StdDevOutputAttributeAggregatorSample
>>>   StdDevOutputAttributeAggregatorSampleFactory
>>>
>>> And then I added the jar file to /repository/components/lib
>>> and then added the fully qualified class name as
>>> "org.wso2.siddhi.extension.StdDevOutputAttributeAggregatorSampleFactory" to
>>> /repository/conf/siddhi.
>>>
>>> But when i try to use the extension in CEP i get the following error.
>>>
>>> No extension exist for OutputAttributeExtension{extensionName='ext1',
>>> functionName='StdDev_sample', rename='std'}
>>>
>>> Thank you.
>>>
>>> --
>>> Nishali Wijesinghe
>>> Intern - Engineering
>>> WSO2, Inc.
>>> lean.enterprise.middleware.
>>> Tel: +94716913495
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>


-- 
Nishali Wijesinghe
Intern - Engineering
WSO2, Inc.
lean.enterprise.middleware.
Tel: +94716913495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Dep Sync in Analyzer and Receiver nodes

2014-10-30 Thread Gihan Anuruddha
​One solution is to have two repos. Other solution is to use the RW node to
create both adapters and toolboxes and make other nodes RO. Even though we
categorized these nodes as receiver/analyzer, we can use one manager node
to do adapter changes and toolbox changes.

@Aparna,

Can you try the latter solution.

Regards,
Gihan

On Thu, Oct 30, 2014 at 1:20 PM, Sriskandarajah Suhothayan 
wrote:

> Hi Gihan
>
> So want this make the deployment process complicated?
> We have to now update 2 servers to add streams.
>
> Regards
> Suho
>
>
> On Wed, Oct 29, 2014 at 11:37 PM, Gihan Anuruddha  wrote:
>
>> Hi Anjana,
>>
>> Can't we create two repositories, one for analyzer and one for
>> receiver regarding this issue? Because analyzers and receivers don't have
>> any common features and those two run independently. Since we are
>> maintaining a two repos, I believe we can have two RW node.
>>
>> WDYT?
>>
>> Regards,
>> Gihan
>>
>> On Thu, Oct 30, 2014 at 4:23 AM, Anjana Fernando  wrote:
>>
>>> On Wed, Oct 29, 2014 at 10:34 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>


 On Wed, Oct 29, 2014 at 7:27 AM, Aparna Karunarathna 
 wrote:

> Hi Anjana/KasunG/suho,
>
> According to the new BAM 2.5.0 deployment pattern [1] we have
> configured the BAM cluster with 11 nodes(4 cassandra, 3 hadoop, 2 analyzer
> and 2 receiver). Since BAM 2.5.0 is releasing with CEP features, we have 
> to
> enable the dep sync for receiver nodes as well. Therefore one of the
> Analyzer/Receiver nodes were configured as RW nodes and other
> analyzer/receiver nodes were configured as RO nodes and pointed to a 
> single
> svn repo.
>
> Toolboxes can be deployed to the Analyzer RW node and CEP input
> adapters to the Receiver RW node. We have seen svn conflicts when both RW
> nodes were trying to commit to svn repo.
>
> Therefore, how to configure the Dep Sync for Analyzer/Receiver nodes
> in BAM 2.5.0 clustered setup? Please advice.
>

 We cant have two RW nodes in a single cluster. Here we have to first
 find out a node that has both CEP and Toolbox deployment components and
 make that the RW node to make this work, I'm not sure either
 Analyzer/Receiver profiles have both CEP and Toolbox deployment components,
 If its not the case we have to fix the BAM profile.

>>>
>>> @Gihan, please note, check and fix if needed.
>>>
>>> Cheers,
>>> Anjana.
>>>
>>>

 Regards
 Suho


>
> [1] https://docs.wso2.com/display/CLUSTER420/Deploying+BAM+with+Puppet
>
>
> Regards,
> --
> *Aparna Karunarathna.*
>
>
> *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533 <0714002533>*
>



 --

 *S. Suhothayan*
 Technical Lead & Team Lead of WSO2 Complex Event Processor
  *WSO2 Inc. *http://wso2.com
 * *
 lean . enterprise . middleware


 *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
 http://suhothayan.blogspot.com/ twitter:
 http://twitter.com/suhothayan  | linked-in:
 http://lk.linkedin.com/in/suhothayan 
 *

>>>
>>>
>>>
>>> --
>>> *Anjana Fernando*
>>> Senior Technical Lead
>>> WSO2 Inc. | http://wso2.com
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> W.G. Gihan Anuruddha
>> Senior Software Engineer | WSO2, Inc.
>> M: +94772272595
>>
>
>
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
>  *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>



-- 
W.G. Gihan Anuruddha
Senior Software Engineer | WSO2, Inc.
M: +94772272595
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [CEP] Error in sending emails using CEP output email adapter

2014-10-30 Thread Madhawa Gunasekara
Hi All,

I have done configurations as mentioned in CEP documentation, but I'm
getting two errors. Which are,

   1. Error in creating email message or sending it to the configured server
   2. Error in generating email message

Please find the attached error message file.

Please how can I to figure out these errors.

Thanks.

-- 
*Madhawa Gunasekara*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002
[2014-10-30 13:52:32,184] ERROR - {MailTransportSender}  Error creating mail 
message or sending it to the configured server
javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:306)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at javax.mail.Transport.send0(Transport.java:168)
at javax.mail.Transport.send(Transport.java:98)
at 
org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:489)
at 
org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTransportSender.java:175)
at 
org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at 
org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at 
org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:511)
at 
org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:488)
at 
org.wso2.carbon.event.output.adaptor.email.EmailEventAdaptorType$EmailSender.run(EmailEventAdaptorType.java:211)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
[2014-10-30 13:52:32,185] ERROR - {MailTransportSender}  Error generating mail 
message
org.apache.axis2.AxisFault: Error creating mail message or sending it to the 
configured server
at 
org.apache.axis2.transport.base.AbstractTransportSender.handleException(AbstractTransportSender.java:226)
at 
org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:500)
at 
org.apache.axis2.transport.mail.MailTransportSender.sendMessage(MailTransportSender.java:175)
at 
org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at 
org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at 
org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:511)
at 
org.apache.axis2.client.ServiceClient.fireAndForget(ServiceClient.java:488)
at 
org.wso2.carbon.event.output.adaptor.email.EmailEventAdaptorType$EmailSender.run(EmailEventAdaptorType.java:211)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: javax.mail.AuthenticationFailedException
at javax.mail.Service.connect(Service.java:306)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at javax.mail.Transport.send0(Transport.java:168)
at javax.mail.Transport.send(Transport.java:98)
at 
org.apache.axis2.transport.mail.MailTransportSender.sendMail(MailTransportSender.java:489)
... 14 more

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


Re: [Dev] Developing support for tool-box approach for WSO2 CEP

2014-10-30 Thread Tishan Dahanayakage
Hi all,

On Thu, Oct 30, 2014 at 5:30 AM, Sinthuja Ragendran 
wrote:

> Hi,
>
>
> On Wed, Oct 29, 2014 at 7:30 PM, Lasantha Fernando 
> wrote:
>
>> Hi Tishan,
>>
>> Since we can't catch any exceptions properly when simply dropping the
>> files to the relevant directories, I think going for a admin service call
>> approach might be better.
>>
>
​Yeah. AFAIU it is better to consume backend OSGi services directly. But in
that approach also we need to revisit current implementation. In the
current CEP EventProcessorService implementation BE service will write the
file to ​respective deployment directory, prevent automatic triggering of
ExecutionPlanDeployer and then manually trigger
the ExecutionPlanDeployer so that exceptions can be caught. I do not know
whether this was done in order to achieve some requirement. But IMHO this
should not be the case. I think we should use registry as common
persistence point for configurations and avoid storing a copy of execution
plans added in UI in the deployment directory. Then the EventProcessor BE
service will store a given configuration in the registry and then do the
runtime deplyment. Also the ExecutionPlanDeployer will call
EventprocessorService when it is notified of a new deployment. Then we can
use EventProcessorService directly in ToolboxDeployer and deploy artifacts.
Then we also need to change BAM services to same approach for a unified
scenario.

Also, I think initially there were discussions on aligning the toolboxes
>> for BAM/CEP. e.g. You have one toolbox for mediation statistics. When you
>> want batch processing, you drop the toolbox to BAM. When you want real-time
>> analytics, you drop the toolbox to CEP. So we might have to discuss the
>> structure of the toolbox with BAM team as well.
>>
>
>> Can we create a separate new component for the toolbox? I think none of
>> the existing component categorizations would fit in with the toolbox. WDYT?
>>
>
> +1. Creating a new deployment directory such as cep-toolobox and completes
> different toolbox structure, etc is not a good idea. We need to unify the
> same toolbox for BAM and CEP scenarios, and based on the availablitiy of
> the relavant components the artefacts needs to be deployed.
>

> The initial implementation of the toolbox was not written in a extensible
> manner as there was no such requirement before. Hence now it would be
> better to have discussion on this to agree upon a structure for BAM and
> CEP, and then start implementing a common toolbox deployer which is
> extensible for new artefacts for the future add-ons.
>

​​+1 for unifying BAM and CEP toolbox scenarios. ​If we think about
extensibility, we can develop an AbstractToolboxDeployer which will perform
generic actions (unzipping)inside deploy() and pass on to abstract
doProcess(). There each implementation can handle their artifact
accordingly. Also can have general utility classes which does file to
OMElement/JSON conversions/etc since confings are either XML or JSON.​

Thanks,
Tishan

>
> Thanks,
> Sinthuja
>
>>
>> Thanks,
>> Lasantha
>>
>> On 29 October 2014 14:38, Tishan Dahanayakage  wrote:
>>
>>> Hi all,
>>> I was working on $Subject and following scenario came up.
>>>
>>> My initial design was to create a new deployment directory, say
>>> 'cep-toolbox'. Then write a deployer extending AbstractDeployer. Deployer
>>> will get deployed toolbox, unzip it and deploy each artifact to respective
>>> deployment directory again. (Ex: deploy Execution Plan artifact to
>>> executionplan folder). But the problem with this approach is I can't catch
>>> any exception occurred when deploying each artifact.
>>> So the other approach is to create a separate bundle depending on each
>>> AdminService/BE Service and deploy artifacts using those services. This is
>>> more like BAM toolbox approach. Any thoughts on these approaches?
>>>
>>> Also please suggest a component to add the new bundle if we are going
>>> through with separate bundle option.
>>>
>>> --
>>> Tishan Dahanayakage
>>> Software Engineer
>>> WSO2, Inc.
>>> Mobile:+94 716481328
>>>
>>> Disclaimer: This communication may contain privileged or other
>>> confidential information and is intended exclusively for the addressee/s.
>>> If you are not the intended recipient/s, or believe that you may have
>>> received this communication in error, please reply to the sender indicating
>>> that fact and delete the copy you received and in addition, you should not
>>> print, copy, re-transmit, disseminate, or otherwise use the information
>>> contained in this communication. Internet communications cannot be
>>> guaranteed to be timely, secure, error or virus-free. The sender does not
>>> accept liability for any errors or omissions.
>>>
>>
>>
>>
>> --
>> *Lasantha Fernando*
>> Software Engineer - Data Technologies Team
>> WSO2 Inc. http://wso2.com
>>
>> email: lasan...@wso2.com
>> mobile: (+94) 71 5247551
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org

Re: [Dev] [CEP] Error in sending emails using CEP output email adapter

2014-10-30 Thread Tishan Dahanayakage
Hi Madhawa,
According to the exception your error is caused by an Authentication
Exception. Can you please double check the credentials of the email account
you have used. Also please not that if you extensively use same mail
address to send, it can get temporally blocked. So if your credentials are
all fine try with using another email account.

thanks,
Tishan

On Thu, Oct 30, 2014 at 2:28 PM, Madhawa Gunasekara 
wrote:

> Hi All,
>
> I have done configurations as mentioned in CEP documentation, but I'm
> getting two errors. Which are,
>
>1. Error in creating email message or sending it to the configured
>server
>2. Error in generating email message
>
> Please find the attached error message file.
>
> Please how can I to figure out these errors.
>
> Thanks.
>
> --
> *Madhawa Gunasekara*
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


[Dev] Some missing code segment in CEP Writing custom output aggregator documentation

2014-10-30 Thread Shashika Karunatilaka
Hi,
There is some missing code segment in CEP Writing custom output aggregator
documentation [1].  *destroy method* ( which needs to be included when
overriding) is missing from the  *OuputAttributeAggregatorFactory class.*
Missed code segment :
@Override
public void destroy() {
}


[1]
https://docs.wso2.com/display/CEP310/Writing+a+Custom+OutputAttributeAggregator

Thank You.
-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Some missing code segment in CEP Writing custom output aggregator documentation

2014-10-30 Thread Tishan Dahanayakage
Hi Shashika,

Code segment is missing from OutputAttributeAggregator class. isn't it?
Please raise a doc JIRA and assign it to Praneesha.

On Thu, Oct 30, 2014 at 2:46 PM, Shashika Karunatilaka 
wrote:

> Hi,
> There is some missing code segment in CEP Writing custom output aggregator
> documentation [1].  *destroy method* ( which needs to be included when
> overriding) is missing from the  *OuputAttributeAggregatorFactory class.*
> Missed code segment :
> @Override
> public void destroy() {
> }
>
>
> [1]
> https://docs.wso2.com/display/CEP310/Writing+a+Custom+OutputAttributeAggregator
>
> Thank You.
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

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


[Dev] Commit fix for CARBON-14984 to patch0009 - user.core

2014-10-30 Thread Tharindu Edirisinghe
Hi Sameera/Kernel Team,

Please commit the fixes for CARBON-14984. Patch is attached in [1]. Pull
request is in [2].

This issue has been reported in IDENTITY-2682 and IDENTITY-2626 as well.

[1]. https://wso2.org/jira/browse/CARBON-14984

[2]. https://github.com/wso2/carbon4-kernel/pull/65


Thank you
-- 

Tharindu Edirisinghe
Software Engineer | WSO2 Inc
Identity Server Team
mobile : +94 775 181586
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Adding Functional/Regression tests for MQTT - MB 3.0.0

2014-10-30 Thread Hasitha Amal De Silva
Hi all,

Following up on MQTT integration for MB 3.0.0 we need to do $subject to our
automated test suite.

I have attached herewith the functional test suite used by Pamod to perform
basic tests in early days [1] . We will modify and add this into our test
cases collection in a generic way.

In terms of performance tests, the following aspects need to be covered.
(Add if I missed any)

1. Multiple subscribers / publishers

2. Multiple queues

3. Large messages (1 MB max for now)

4. Multi-threaded subscribers/ publishers

We should ideally be able to inject above 4 tests into the functional test
cases as parameters. That way, we'll get full coverage.

I have made an MQTT client [1] which supports multi-threaded
publishers/subscribers (improving on Pamod's initial version). Its still a
work in progress. We can modify it as needed and once stabilized, place it
as the standard client used within our tests.

Akalanka and me will be initially working on these.

Appreciate your feedback on any additional test scenarios / improvements .


[1] ​:
https://drive.google.com/file/d/0B1soNraLsHdmbzNsZ19ZTWFwTzA/view?usp=sharing
[2] : https://github.com/hastef88/wso2.tryouts/tree/master/mqtt_client​



-- 
Cheers,

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


Re: [Dev] [CEP] Error in sending emails using CEP output email adapter

2014-10-30 Thread Madhawa Gunasekara
Hi Tishan,

Thanks for the quick response Tishan. I have double checked the
credentials. but Still I'm finding the same errors. I'm using Gmail account
and also I'm not trying to send emails for the configured email address.
Here I have attached my configurations. I have done these configurations in
axis2xml_client.xml file.
Does there any issues in my configurations?












*
trafficanalyzer...@gmail.com
Traffic Analyzer$passwordsmtp.gmail.com
587truetrue*


Thanks & Best regards.

On Thu, Oct 30, 2014 at 2:43 PM, Tishan Dahanayakage 
wrote:

> Hi Madhawa,
> According to the exception your error is caused by an Authentication
> Exception. Can you please double check the credentials of the email account
> you have used. Also please not that if you extensively use same mail
> address to send, it can get temporally blocked. So if your credentials are
> all fine try with using another email account.
>
> thanks,
> Tishan
>
> On Thu, Oct 30, 2014 at 2:28 PM, Madhawa Gunasekara 
> wrote:
>
>> Hi All,
>>
>> I have done configurations as mentioned in CEP documentation, but I'm
>> getting two errors. Which are,
>>
>>1. Error in creating email message or sending it to the configured
>>server
>>2. Error in generating email message
>>
>> Please find the attached error message file.
>>
>> Please how can I to figure out these errors.
>>
>> Thanks.
>>
>> --
>> *Madhawa Gunasekara*
>> Software Engineering Intern
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 719411002
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Tishan Dahanayakage
> Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>



-- 
*Madhawa Gunasekara*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] Adding Functional/Regression tests for MQTT - MB 3.0.0

2014-10-30 Thread Hasitha Amal De Silva
2nd link is not valid. The correct one is :
https://github.com/hastef88/wso2.tryouts/tree/master/mqtt_client

Thanks

On Thu, Oct 30, 2014 at 3:13 PM, Hasitha Amal De Silva 
wrote:

> Hi all,
>
> Following up on MQTT integration for MB 3.0.0 we need to do $subject to
> our automated test suite.
>
> I have attached herewith the functional test suite used by Pamod to
> perform basic tests in early days [1] . We will modify and add this into
> our test cases collection in a generic way.
>
> In terms of performance tests, the following aspects need to be covered.
> (Add if I missed any)
>
> 1. Multiple subscribers / publishers
>
> 2. Multiple queues
>
> 3. Large messages (1 MB max for now)
>
> 4. Multi-threaded subscribers/ publishers
>
> We should ideally be able to inject above 4 tests into the functional test
> cases as parameters. That way, we'll get full coverage.
>
> I have made an MQTT client [1] which supports multi-threaded
> publishers/subscribers (improving on Pamod's initial version). Its still a
> work in progress. We can modify it as needed and once stabilized, place it
> as the standard client used within our tests.
>
> Akalanka and me will be initially working on these.
>
> Appreciate your feedback on any additional test scenarios / improvements .
>
>
> [1] ​:
> https://drive.google.com/file/d/0B1soNraLsHdmbzNsZ19ZTWFwTzA/view?usp=sharing
> [2] : https://github.com/hastef88/wso2.tryouts/tree/master/mqtt_client​
>
>
>
> --
> Cheers,
>
> Hasitha Amal De Silva
>  Software Engineer
> Mobile : 0772037426
> Blog: http://devnutshell.tumblr.com/
> WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
>



-- 
Cheers,

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


Re: [Dev] [CEP] Error in sending emails using CEP output email adapter

2014-10-30 Thread Tishan Dahanayakage
Hi Madhawa,
As per the offline discussion changing the username will fox your problem

Thanks,
tishan

On Thu, Oct 30, 2014 at 3:13 PM, Madhawa Gunasekara 
wrote:

> Hi Tishan,
>
> Thanks for the quick response Tishan. I have double checked the
> credentials. but Still I'm finding the same errors. I'm using Gmail account
> and also I'm not trying to send emails for the configured email address.
> Here I have attached my configurations. I have done these configurations in
> axis2xml_client.xml file.
> Does there any issues in my configurations?
>
>
>
>
>
>
>
>
>
>
>
>
> * class="org.apache.axis2.transport.mail.MailTransportSender">
> trafficanalyzer...@gmail.com
>  name="mail.smtp.user">Traffic Analyzer name="mail.smtp.password">$password name="mail.smtp.host">smtp.gmail.com
>  name="mail.smtp.port">587 name="mail.smtp.starttls.enable">true name="mail.smtp.auth">true*
>
>
> Thanks & Best regards.
>
> On Thu, Oct 30, 2014 at 2:43 PM, Tishan Dahanayakage 
> wrote:
>
>> Hi Madhawa,
>> According to the exception your error is caused by an Authentication
>> Exception. Can you please double check the credentials of the email account
>> you have used. Also please not that if you extensively use same mail
>> address to send, it can get temporally blocked. So if your credentials are
>> all fine try with using another email account.
>>
>> thanks,
>> Tishan
>>
>> On Thu, Oct 30, 2014 at 2:28 PM, Madhawa Gunasekara 
>> wrote:
>>
>>> Hi All,
>>>
>>> I have done configurations as mentioned in CEP documentation, but I'm
>>> getting two errors. Which are,
>>>
>>>1. Error in creating email message or sending it to the configured
>>>server
>>>2. Error in generating email message
>>>
>>> Please find the attached error message file.
>>>
>>> Please how can I to figure out these errors.
>>>
>>> Thanks.
>>>
>>> --
>>> *Madhawa Gunasekara*
>>> Software Engineering Intern
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 719411002
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Tishan Dahanayakage
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 716481328
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, re-transmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>
>
>
> --
> *Madhawa Gunasekara*
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002
>
>
>


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

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


Re: [Dev] Some missing code segment in CEP Writing custom output aggregator documentation

2014-10-30 Thread Shashika Karunatilaka
Hi Tishan,
yes code segment is missing from OutputAttributeAggregator class, i will
create a doc JIRA and assign it to Praneesha

On Thu, Oct 30, 2014 at 2:57 PM, Tishan Dahanayakage 
wrote:

> Hi Shashika,
>
> Code segment is missing from OutputAttributeAggregator class. isn't it?
> Please raise a doc JIRA and assign it to Praneesha.
>
> On Thu, Oct 30, 2014 at 2:46 PM, Shashika Karunatilaka  > wrote:
>
>> Hi,
>> There is some missing code segment in CEP Writing custom output
>> aggregator documentation [1].  *destroy method* ( which needs to be
>> included when overriding) is missing from the  
>> *OuputAttributeAggregatorFactory
>> class.*
>> Missed code segment :
>> @Override
>> public void destroy() {
>> }
>>
>>
>> [1]
>> https://docs.wso2.com/display/CEP310/Writing+a+Custom+OutputAttributeAggregator
>>
>> Thank You.
>> --
>> Shashika Prabath Karunatilaka,
>> Software Engineer,
>> WSO2, Inc: http://wso2.com/
>> mobile : +94 77 7487792
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Tishan Dahanayakage
> Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [CEP] Error in sending emails using CEP output email adapter

2014-10-30 Thread Madhawa Gunasekara
Hi Tishan,

Thanks for helping me to figure out the problem. I have mistakenly used
display name as user name that's why I found these errors.

Best regards,
Madhawa

On Thu, Oct 30, 2014 at 3:19 PM, Tishan Dahanayakage 
wrote:

> Hi Madhawa,
> As per the offline discussion changing the username will fox your problem
>
> Thanks,
> tishan
>
> On Thu, Oct 30, 2014 at 3:13 PM, Madhawa Gunasekara 
> wrote:
>
>> Hi Tishan,
>>
>> Thanks for the quick response Tishan. I have double checked the
>> credentials. but Still I'm finding the same errors. I'm using Gmail account
>> and also I'm not trying to send emails for the configured email address.
>> Here I have attached my configurations. I have done these configurations in
>> axis2xml_client.xml file.
>> Does there any issues in my configurations?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *> class="org.apache.axis2.transport.mail.MailTransportSender">
>> trafficanalyzer...@gmail.com
>> > name="mail.smtp.user">Traffic Analyzer> name="mail.smtp.password">$password> name="mail.smtp.host">smtp.gmail.com
>> > name="mail.smtp.port">587> name="mail.smtp.starttls.enable">true> name="mail.smtp.auth">true*
>>
>>
>> Thanks & Best regards.
>>
>> On Thu, Oct 30, 2014 at 2:43 PM, Tishan Dahanayakage 
>> wrote:
>>
>>> Hi Madhawa,
>>> According to the exception your error is caused by an Authentication
>>> Exception. Can you please double check the credentials of the email account
>>> you have used. Also please not that if you extensively use same mail
>>> address to send, it can get temporally blocked. So if your credentials are
>>> all fine try with using another email account.
>>>
>>> thanks,
>>> Tishan
>>>
>>> On Thu, Oct 30, 2014 at 2:28 PM, Madhawa Gunasekara 
>>> wrote:
>>>
 Hi All,

 I have done configurations as mentioned in CEP documentation, but I'm
 getting two errors. Which are,

1. Error in creating email message or sending it to the configured
server
2. Error in generating email message

 Please find the attached error message file.

 Please how can I to figure out these errors.

 Thanks.

 --
 *Madhawa Gunasekara*
 Software Engineering Intern
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 719411002



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


>>>
>>>
>>> --
>>> Tishan Dahanayakage
>>> Software Engineer
>>> WSO2, Inc.
>>> Mobile:+94 716481328
>>>
>>> Disclaimer: This communication may contain privileged or other
>>> confidential information and is intended exclusively for the addressee/s.
>>> If you are not the intended recipient/s, or believe that you may have
>>> received this communication in error, please reply to the sender indicating
>>> that fact and delete the copy you received and in addition, you should not
>>> print, copy, re-transmit, disseminate, or otherwise use the information
>>> contained in this communication. Internet communications cannot be
>>> guaranteed to be timely, secure, error or virus-free. The sender does not
>>> accept liability for any errors or omissions.
>>>
>>
>>
>>
>> --
>> *Madhawa Gunasekara*
>> Software Engineering Intern
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 719411002
>>
>>
>>
>
>
> --
> Tishan Dahanayakage
> Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>



-- 
*Madhawa Gunasekara*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

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


[Dev] Identity Server - Configuring SAML2 SSO Sample

2014-10-30 Thread Maheeka Jayasuriya
Hi,

I am executing $subject sample [1].

When I try to login to travelocity.com with SAML2 using Identity Server as
in the sample, I am getting error as "Error when processing the
authentication request! " [2]​​

I have attached the debug log also below [3] which says "Signature
validation for Authentication Request failed."

Any idea if am I doing something wrong here?

[1] https://docs.wso2.com/display/IS500/Configuring+SAML2+SSO

[2]
https://docs.google.com/a/wso2.com/file/d/0B_Ml_gi-3jYrak96XzFNNThFZTQ/edit

[3]

[2014-10-30 15:59:08,425] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
-  In authentication flow
[2014-10-30 15:59:08,426] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
-  Executing the Step Based Authentication...
[2014-10-30 15:59:08,426] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
-  Starting Step: 1
[2014-10-30 15:59:08,426] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.util.FrameworkUtils}
-  Finding already authenticated IdPs of the Step
[2014-10-30 15:59:08,426] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
-  Receive a response from the external party
[2014-10-30 15:59:08,426] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
-  BasicAuthenticator can handle the request.
[2014-10-30 15:59:08,436] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
-  BasicAuthenticator returned: SUCCESS_COMPLETED
[2014-10-30 15:59:08,436] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
-  Step 1 is completed. Going to get the next one.
[2014-10-30 15:59:08,437] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
-  There are no more steps to execute
[2014-10-30 15:59:08,437] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
-  Request is successfully authenticated
[2014-10-30 15:59:08,437] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
-  Handling Post Authentication tasks
[2014-10-30 15:59:08,437] DEBUG
{org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil}
-  JWT Header :{"typ":"JWT", "alg":"none"}
[2014-10-30 15:59:08,437] DEBUG
{org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil}
-  JWT Body
:{"iss":"wso2","exp":14146649484373000,"iat":1414664948437,"idps":[{"idp":"LOCAL","authenticator":"BasicAuthenticator"}]}
[2014-10-30 15:59:08,442] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
-  Step processing is completed
[2014-10-30 15:59:08,442] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
-  Concluding the Authentication Flow
[2014-10-30 15:59:08,444] DEBUG
{org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
-  Sending response back to: /samlsso...
commonAuthAuthenticated: true
authenticatedUser: admin
authenticatedIdPs:
eyJ0eXAiOiJKV1QiLCAiYWxnIjoibm9uZSJ9.eyJpc3MiOiJ3c28yIiwiZXhwIjoxNDE0NjY0OTQ4NDM3MzAwMCwiaWF0IjoxNDE0NjY0OTQ4NDM3LCJpZHBzIjpbeyJpZHAiOiJMT0NBTCIsImF1dGhlbnRpY2F0b3IiOiJCYXNpY0F1dGhlbnRpY2F0b3IifV19.
sessionDataKey: 10c24bb5-c8a2-485b-a8c1-714bf1942765
[2014-10-30 15:59:08,448] DEBUG
{org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet} -  Query
string : sessionDataKey=10c24bb5-c8a2-485b-a8c1-714bf1942765
[2014-10-30 15:59:08,454] DEBUG
{org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Validating SAML
Request signature
[2014-10-30 15:59:08,454] DEBUG
{org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Request message
http://localhost:8080/travelocity.com/home.jsp";
Destination="https://localhost:9443/samlsso"; ForceAuthn="false" ID="0"
IsPassive="false" IssueInstant="2014-10-30T10:28:43.580Z"
ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
Version="2.0">travelocity.comurn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport
[2014-10-30 15:59:08,459] DEBUG
{org.wso2.carbon.identity.sso.saml.validators.SAML2HTTPRedirectDeflateSignatureValidator}
-  Constructing signed content string from URL query string
SAMLRequest=nZPdjtMwEIVfJfJ9fpoWKVhNVqXVikoLhDbLxd4Zd0qNHDt4Jt3u2%2BMkLQQEVbW3npkzZ74Zz%2B9OtQ6O4FBZk7NJlLAAjLQ7Zb7l7LG6DzN2V8xR1Lrhi5YOZgM%2FWkAKfJ1B3gdy1jrDrUCF3IgakJPk28WHB55GCW%2BcJSutZsECERz5RktrsK3BbcEdlYTHzUPODkQNj2NtpdAHi8SzJEt

Re: [Dev] Why REST bean singolons are destroyed just after created?

2014-10-30 Thread Bhathiya Jayasekara
I figured out the issue. There was a NoClassDefFoundError which was
swallowed by CXF/Spring runtime. That has happened because I had thrown an
exception in constructor of a bean class. I had not logged the error, and
that's why I missed the cause of the error.

Thanks,
Bhathiya

On Thu, Oct 30, 2014 at 11:55 AM, Bhathiya Jayasekara 
wrote:

> Just realized that same happens when the war is deployed.
>
> [2014-10-30 11:50:35,617]  INFO
> {org.springframework.web.context.support.XmlWebApplicationContext} -
>  Refreshing Root WebApplicationContext: startup date [Thu Oct 30 11:50:35
> IST 2014]; root of context hierarchy
> [2014-10-30 11:50:35,692]  INFO
> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
> XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
> [2014-10-30 11:50:35,746]  INFO
> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
> XML bean definitions from URL
> [jndi:/localhost/wso2-um/WEB-INF/cxf-servlet.xml]
> [2014-10-30 11:50:35,879]  INFO
> {org.springframework.beans.factory.support.DefaultListableBeanFactory} -  
> *Pre-instantiating
> singletons* in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@1cdd581e:
> defining beans
> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,userManagementServices,tenantBean,roleBean,userBean,securityBean,featureStoreBean,jacksonJsonProvider,authenticationFilter];
> root of factory hierarchy
> [2014-10-30 11:50:36,345]  INFO
> {org.springframework.beans.factory.support.DefaultListableBeanFactory} -  
> *Destroying
> singletons* in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@1cdd581e:
> defining beans
> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,userManagementServices,tenantBean,roleBean,userBean,securityBean,featureStoreBean,jacksonJsonProvider,authenticationFilter];
> root of factory hierarchy
> [2014-10-30 11:50:36,365]  INFO
> {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} -  *Deployed
> webapp*:
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/wso2-um].File[/data/products/is/wso2is-5.0.0/repository/deployment/server/webapps/wso2-um.war]
>
> Any ideas regarding this?
>
> Thanks,
> Bhathiya
>
> On Thu, Oct 30, 2014 at 11:20 AM, Bhathiya Jayasekara 
> wrote:
>
>> Hi all,
>>
>> I'm developing a REST API using Apache CXF. war file of the web service
>> get deployed successfully. But when I send requests, I can see following
>> INFO logs for each request, and all requests are failed. According to the
>> logs, REST resource beans are destroyed just after created.
>>
>> I'm deploying this web service in IS. When I get this issue, I have to
>> replace the IS pack with a new one. Otherwise, this issue never goes away.
>> With a fresh pack it works again.
>>
>> According to my observations, this happens when I do changes (not always
>> though) to backend osgi bundle, which is put in dropins.
>>
>> Anyone have observed similar issues?
>>
>> [2014-10-30 11:04:46,383]  INFO
>> {org.springframework.web.context.support.XmlWebApplicationContext} -
>>  Refreshing Root WebApplicationContext: startup date [Thu Oct 30 11:04:46
>> IST 2014]; root of context hierarchy
>> [2014-10-30 11:04:46,389]  INFO
>> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
>> XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
>> [2014-10-30 11:04:46,408]  INFO
>> {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} -  Loading
>> XML bean definitions from URL
>> [jndi:/localhost/wso2-um/WEB-INF/cxf-servlet.xml]
>> [2014-10-30 11:04:46,432]  INFO
>> {org.springframework.beans.factory.support.DefaultListableBeanFactory} -  
>> *Pre-instantiating
>> singletons *in
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@4565105e:
>> defining beans
>> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,userManagementServices,tenantBean,roleBean,userBean,securityBean,featureStoreBean,jacksonJsonProvider,authenticationFilter];
>> root of factory hierarchy
>> [2014-10-30 11:04:46,440]  INFO
>> {org.springframework.beans.factory.support.DefaultListableBeanFactory} -  
>> *Destroying
>> singletons* in
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@4565105e:
>> defining beans
>> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,userManagementServices,tenantBean,roleBean,userBean,securityBean,featureStoreBean,jacksonJsonProvider,authenticationFilter];
>> root of factory hierarchy
>>
>> [2014-10-30 11:04:4

Re: [Dev] Some missing code segment in CEP Writing custom output aggregator documentation

2014-10-30 Thread Shashika Karunatilaka
Hi Tishan,
I have created a JIRA on [1].

[1] https://wso2.org/jira/browse/DOCUMENTATION-1223

Thank You.

On Thu, Oct 30, 2014 at 3:24 PM, Shashika Karunatilaka 
wrote:

> Hi Tishan,
> yes code segment is missing from OutputAttributeAggregator class, i will
> create a doc JIRA and assign it to Praneesha
>
> On Thu, Oct 30, 2014 at 2:57 PM, Tishan Dahanayakage 
> wrote:
>
>> Hi Shashika,
>>
>> Code segment is missing from OutputAttributeAggregator class. isn't it?
>> Please raise a doc JIRA and assign it to Praneesha.
>>
>> On Thu, Oct 30, 2014 at 2:46 PM, Shashika Karunatilaka <
>> shashi...@wso2.com> wrote:
>>
>>> Hi,
>>> There is some missing code segment in CEP Writing custom output
>>> aggregator documentation [1].  *destroy method* ( which needs to be
>>> included when overriding) is missing from the  
>>> *OuputAttributeAggregatorFactory
>>> class.*
>>> Missed code segment :
>>> @Override
>>> public void destroy() {
>>> }
>>>
>>>
>>> [1]
>>> https://docs.wso2.com/display/CEP310/Writing+a+Custom+OutputAttributeAggregator
>>>
>>> Thank You.
>>> --
>>> Shashika Prabath Karunatilaka,
>>> Software Engineer,
>>> WSO2, Inc: http://wso2.com/
>>> mobile : +94 77 7487792
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Tishan Dahanayakage
>> Software Engineer
>> WSO2, Inc.
>> Mobile:+94 716481328
>>
>> Disclaimer: This communication may contain privileged or other
>> confidential information and is intended exclusively for the addressee/s.
>> If you are not the intended recipient/s, or believe that you may have
>> received this communication in error, please reply to the sender indicating
>> that fact and delete the copy you received and in addition, you should not
>> print, copy, re-transmit, disseminate, or otherwise use the information
>> contained in this communication. Internet communications cannot be
>> guaranteed to be timely, secure, error or virus-free. The sender does not
>> accept liability for any errors or omissions.
>>
>
>
>
> --
> Shashika Prabath Karunatilaka,
> Software Engineer,
> WSO2, Inc: http://wso2.com/
> mobile : +94 77 7487792
>



-- 
Shashika Prabath Karunatilaka,
Software Engineer,
WSO2, Inc: http://wso2.com/
mobile : +94 77 7487792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Identity Server - Configuring SAML2 SSO Sample

2014-10-30 Thread Isura Karunaratne
Hi,

You have to import the public certificate of IS to  wso2carbon.jks keystore
inside the travelociy. You can use java keytool to export and import
certificate. Thanks.

Regards,
Isura.


On Thu, Oct 30, 2014 at 4:11 PM, Maheeka Jayasuriya 
wrote:

> Hi,
>
> I am executing $subject sample [1].
>
> When I try to login to travelocity.com with SAML2 using Identity Server
> as in the sample, I am getting error as "Error when processing the
> authentication request! " [2]​​
>
> I have attached the debug log also below [3] which says "Signature
> validation for Authentication Request failed."
>
> Any idea if am I doing something wrong here?
>
> [1] https://docs.wso2.com/display/IS500/Configuring+SAML2+SSO
>
> [2]
> https://docs.google.com/a/wso2.com/file/d/0B_Ml_gi-3jYrak96XzFNNThFZTQ/edit
>
> [3]
>
> [2014-10-30 15:59:08,425] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
> -  In authentication flow
> [2014-10-30 15:59:08,426] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
> -  Executing the Step Based Authentication...
> [2014-10-30 15:59:08,426] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
> -  Starting Step: 1
> [2014-10-30 15:59:08,426] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.util.FrameworkUtils}
> -  Finding already authenticated IdPs of the Step
> [2014-10-30 15:59:08,426] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
> -  Receive a response from the external party
> [2014-10-30 15:59:08,426] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
> -  BasicAuthenticator can handle the request.
> [2014-10-30 15:59:08,436] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
> -  BasicAuthenticator returned: SUCCESS_COMPLETED
> [2014-10-30 15:59:08,436] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
> -  Step 1 is completed. Going to get the next one.
> [2014-10-30 15:59:08,437] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
> -  There are no more steps to execute
> [2014-10-30 15:59:08,437] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
> -  Request is successfully authenticated
> [2014-10-30 15:59:08,437] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
> -  Handling Post Authentication tasks
> [2014-10-30 15:59:08,437] DEBUG
> {org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil}
> -  JWT Header :{"typ":"JWT", "alg":"none"}
> [2014-10-30 15:59:08,437] DEBUG
> {org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil}
> -  JWT Body
> :{"iss":"wso2","exp":14146649484373000,"iat":1414664948437,"idps":[{"idp":"LOCAL","authenticator":"BasicAuthenticator"}]}
> [2014-10-30 15:59:08,442] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
> -  Step processing is completed
> [2014-10-30 15:59:08,442] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
> -  Concluding the Authentication Flow
> [2014-10-30 15:59:08,444] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
> -  Sending response back to: /samlsso...
> commonAuthAuthenticated: true
> authenticatedUser: admin
> authenticatedIdPs:
> eyJ0eXAiOiJKV1QiLCAiYWxnIjoibm9uZSJ9.eyJpc3MiOiJ3c28yIiwiZXhwIjoxNDE0NjY0OTQ4NDM3MzAwMCwiaWF0IjoxNDE0NjY0OTQ4NDM3LCJpZHBzIjpbeyJpZHAiOiJMT0NBTCIsImF1dGhlbnRpY2F0b3IiOiJCYXNpY0F1dGhlbnRpY2F0b3IifV19.
> sessionDataKey: 10c24bb5-c8a2-485b-a8c1-714bf1942765
> [2014-10-30 15:59:08,448] DEBUG
> {org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet} -  Query
> string : sessionDataKey=10c24bb5-c8a2-485b-a8c1-714bf1942765
> [2014-10-30 15:59:08,454] DEBUG
> {org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Validating SAML
> Request signature
> [2014-10-30 15:59:08,454] DEBUG
> {org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Request message
>  xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
> AssertionConsumerServiceURL="
> http://localhost:8080/travelocity.com/home.jsp"; Destination="
> https://localhost:9443/samlsso"; ForceAuthn="false" ID="0"
> IsPassive="false" IssueInstant="2014-10-30T10:28:43.580Z"
> ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
> Version=

Re: [Dev] Identity Server - Configuring SAML2 SSO Sample

2014-10-30 Thread Tharindu Edirisinghe
Hi Maheeka,

Following are the commands for exporting the public certificate of IS and
importing it to the keystore of travelocity.com app.

Go to IS_HOME/repository/resources/security/

*keytool -export -alias wso2carbon -file carbon_public2.crt -keystore
wso2carbon.jks -storepass wso2carbon*

Go to TOMCAT_HOME/webapps/travelocity.com/WEB-INF/classes

*keytool -import -trustcacerts -alias carbon -file
IS_HOME/repository/resources/security/carbon_public2.crt -keystore
wso2carbon.jks -storepass wso2carbon*


Keystore in bold is the one in travelocity.com app. If you are running it
from a different path, use the absolute path to the keystore.

Regards,
TharinduE

On Thu, Oct 30, 2014 at 4:27 PM, Isura Karunaratne  wrote:

> Hi,
>
> You have to import the public certificate of IS to  wso2carbon.jks
> keystore inside the travelociy. You can use java keytool to export and
> import certificate. Thanks.
>
> Regards,
> Isura.
>
>
> On Thu, Oct 30, 2014 at 4:11 PM, Maheeka Jayasuriya 
> wrote:
>
>> Hi,
>>
>> I am executing $subject sample [1].
>>
>> When I try to login to travelocity.com with SAML2 using Identity Server
>> as in the sample, I am getting error as "Error when processing the
>> authentication request! " [2]​​
>>
>> I have attached the debug log also below [3] which says "Signature
>> validation for Authentication Request failed."
>>
>> Any idea if am I doing something wrong here?
>>
>> [1] https://docs.wso2.com/display/IS500/Configuring+SAML2+SSO
>>
>> [2]
>> https://docs.google.com/a/wso2.com/file/d/0B_Ml_gi-3jYrak96XzFNNThFZTQ/edit
>>
>> [3]
>>
>> [2014-10-30 15:59:08,425] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
>> -  In authentication flow
>> [2014-10-30 15:59:08,426] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> -  Executing the Step Based Authentication...
>> [2014-10-30 15:59:08,426] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> -  Starting Step: 1
>> [2014-10-30 15:59:08,426] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.util.FrameworkUtils}
>> -  Finding already authenticated IdPs of the Step
>> [2014-10-30 15:59:08,426] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
>> -  Receive a response from the external party
>> [2014-10-30 15:59:08,426] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
>> -  BasicAuthenticator can handle the request.
>> [2014-10-30 15:59:08,436] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
>> -  BasicAuthenticator returned: SUCCESS_COMPLETED
>> [2014-10-30 15:59:08,436] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> -  Step 1 is completed. Going to get the next one.
>> [2014-10-30 15:59:08,437] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> -  There are no more steps to execute
>> [2014-10-30 15:59:08,437] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> -  Request is successfully authenticated
>> [2014-10-30 15:59:08,437] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> -  Handling Post Authentication tasks
>> [2014-10-30 15:59:08,437] DEBUG
>> {org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil}
>> -  JWT Header :{"typ":"JWT", "alg":"none"}
>> [2014-10-30 15:59:08,437] DEBUG
>> {org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil}
>> -  JWT Body
>> :{"iss":"wso2","exp":14146649484373000,"iat":1414664948437,"idps":[{"idp":"LOCAL","authenticator":"BasicAuthenticator"}]}
>> [2014-10-30 15:59:08,442] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> -  Step processing is completed
>> [2014-10-30 15:59:08,442] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
>> -  Concluding the Authentication Flow
>> [2014-10-30 15:59:08,444] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
>> -  Sending response back to: /samlsso...
>> commonAuthAuthenticated: true
>> authenticatedUser: admin
>> authenticatedIdPs:
>> eyJ0eXAiOiJKV1QiLCAiYWxnIjoibm9uZSJ9.eyJpc3MiOiJ3c28yIiwiZXhwIjoxNDE0NjY0OTQ4NDM3MzAwMCwiaWF0IjoxNDE0NjY0OTQ4NDM3LCJpZHBzIjpbeyJpZHAiOiJMT0NBTCIsImF1dGhlbnRpY2F0b3IiOiJCYXNpY0F1dGhlbnRpY2F0b

Re: [Dev] Identity Server - Configuring SAML2 SSO Sample

2014-10-30 Thread Isura Karunaratne
On Thu, Oct 30, 2014 at 4:27 PM, Isura Karunaratne  wrote:

> Hi,
>
> You have to import the public certificate of IS to  wso2carbon.jks
> keystore inside the travelociy. You can use java keytool to export and
> import certificate. Thanks.
>


And also you have to import the public certificate of travelocity
application to Identity Server keystore too.

>
> Regards,
> Isura.
>
>
> On Thu, Oct 30, 2014 at 4:11 PM, Maheeka Jayasuriya 
> wrote:
>
>> Hi,
>>
>> I am executing $subject sample [1].
>>
>> When I try to login to travelocity.com with SAML2 using Identity Server
>> as in the sample, I am getting error as "Error when processing the
>> authentication request! " [2]​​
>>
>> I have attached the debug log also below [3] which says "Signature
>> validation for Authentication Request failed."
>>
>> Any idea if am I doing something wrong here?
>>
>> [1] https://docs.wso2.com/display/IS500/Configuring+SAML2+SSO
>>
>> [2]
>> https://docs.google.com/a/wso2.com/file/d/0B_Ml_gi-3jYrak96XzFNNThFZTQ/edit
>>
>> [3]
>>
>> [2014-10-30 15:59:08,425] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
>> -  In authentication flow
>> [2014-10-30 15:59:08,426] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> -  Executing the Step Based Authentication...
>> [2014-10-30 15:59:08,426] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> -  Starting Step: 1
>> [2014-10-30 15:59:08,426] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.util.FrameworkUtils}
>> -  Finding already authenticated IdPs of the Step
>> [2014-10-30 15:59:08,426] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
>> -  Receive a response from the external party
>> [2014-10-30 15:59:08,426] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
>> -  BasicAuthenticator can handle the request.
>> [2014-10-30 15:59:08,436] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
>> -  BasicAuthenticator returned: SUCCESS_COMPLETED
>> [2014-10-30 15:59:08,436] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> -  Step 1 is completed. Going to get the next one.
>> [2014-10-30 15:59:08,437] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> -  There are no more steps to execute
>> [2014-10-30 15:59:08,437] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> -  Request is successfully authenticated
>> [2014-10-30 15:59:08,437] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> -  Handling Post Authentication tasks
>> [2014-10-30 15:59:08,437] DEBUG
>> {org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil}
>> -  JWT Header :{"typ":"JWT", "alg":"none"}
>> [2014-10-30 15:59:08,437] DEBUG
>> {org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil}
>> -  JWT Body
>> :{"iss":"wso2","exp":14146649484373000,"iat":1414664948437,"idps":[{"idp":"LOCAL","authenticator":"BasicAuthenticator"}]}
>> [2014-10-30 15:59:08,442] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>> -  Step processing is completed
>> [2014-10-30 15:59:08,442] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
>> -  Concluding the Authentication Flow
>> [2014-10-30 15:59:08,444] DEBUG
>> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
>> -  Sending response back to: /samlsso...
>> commonAuthAuthenticated: true
>> authenticatedUser: admin
>> authenticatedIdPs:
>> eyJ0eXAiOiJKV1QiLCAiYWxnIjoibm9uZSJ9.eyJpc3MiOiJ3c28yIiwiZXhwIjoxNDE0NjY0OTQ4NDM3MzAwMCwiaWF0IjoxNDE0NjY0OTQ4NDM3LCJpZHBzIjpbeyJpZHAiOiJMT0NBTCIsImF1dGhlbnRpY2F0b3IiOiJCYXNpY0F1dGhlbnRpY2F0b3IifV19.
>> sessionDataKey: 10c24bb5-c8a2-485b-a8c1-714bf1942765
>> [2014-10-30 15:59:08,448] DEBUG
>> {org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet} -  Query
>> string : sessionDataKey=10c24bb5-c8a2-485b-a8c1-714bf1942765
>> [2014-10-30 15:59:08,454] DEBUG
>> {org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Validating SAML
>> Request signature
>> [2014-10-30 15:59:08,454] DEBUG
>> {org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Request message
>> > xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
>> AssertionCo

[Dev] Cannot create a JDBC secondary user store

2014-10-30 Thread Maninda Edirisooriya
Hi,

When I try to create a JDBC secondary user store in BAM 2.5.0, the
following exception is given. This may be due to the recent changes in
patch0009 of org.wso2.carbon.user.core.


[2014-10-30 19:21:00,229] ERROR
{org.wso2.carbon.user.core.config.UserStoreConfigXMLProcessor} -
connectionPassword is null in the user configuration of secondary store
[2014-10-30 19:21:00,231] ERROR
{org.wso2.carbon.user.core.config.UserStoreConfigXMLProcessor} -  Error
while building user store manager from file
org.wso2.carbon.user.core.UserStoreException: connectionPassword is null in
the user configuration of secondary store
at
org.wso2.carbon.user.core.config.UserStoreConfigXMLProcessor.buildUserStoreConfigurationFromFile(UserStoreConfigXMLProcessor.java:150)
at
org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:59)
at
org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer.deploy(UserStoreConfigurationDeployer.java:58)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
[2014-10-30 19:21:00,236]  INFO
{org.apache.axis2.deployment.DeploymentEngine} -
org.apache.axis2.deployment.DeploymentException: The deployment of
abc_com.xml is not valid.


*Maninda Edirisooriya*
Senior Software Engineer

*WSO2, Inc.*lean.enterprise.middleware.

*Blog* : http://maninda.blogspot.com/
*E-mail* : mani...@wso2.com
*Skype* : @manindae
*Twitter* : @maninda
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Developing support for tool-box approach for WSO2 CEP

2014-10-30 Thread Sriskandarajah Suhothayan
On Thu, Oct 30, 2014 at 2:10 AM, Tishan Dahanayakage 
wrote:

> Hi all,
>
> On Thu, Oct 30, 2014 at 5:30 AM, Sinthuja Ragendran 
> wrote:
>
>> Hi,
>>
>>
>> On Wed, Oct 29, 2014 at 7:30 PM, Lasantha Fernando 
>> wrote:
>>
>>> Hi Tishan,
>>>
>>> Since we can't catch any exceptions properly when simply dropping the
>>> files to the relevant directories, I think going for a admin service call
>>> approach might be better.
>>>
>>
> ​Yeah. AFAIU it is better to consume backend OSGi services directly. But
> in that approach also we need to revisit current implementation. In the
> current CEP EventProcessorService implementation BE service will write the
> file to ​respective deployment directory, prevent automatic triggering of
> ExecutionPlanDeployer and then manually trigger
> the ExecutionPlanDeployer so that exceptions can be caught. I do not know
> whether this was done in order to achieve some requirement. But IMHO this
> should not be the case. I think we should use registry as common
> persistence point for configurations and avoid storing a copy of execution
> plans added in UI in the deployment directory. Then the EventProcessor BE
> service will store a given configuration in the registry and then do the
> runtime deplyment. Also the ExecutionPlanDeployer will call
> EventprocessorService when it is notified of a new deployment. Then we can
> use EventProcessorService directly in ToolboxDeployer and deploy artifacts.
> Then we also need to change BAM services to same approach for a unified
> scenario.
>

We had this model long time back and we moved away from this because there
were lots of issues in this.

The current approach works where CEP backend services store files directly
to the filesystem, they have implemented in a way to deploy the artefacts
then & there, and throw exceptions if there any, hence we can use the CEPs
OSGi services without any issue for this purpose. What toolbox deployer
should do is to basically call these services.

>
> Also, I think initially there were discussions on aligning the toolboxes
>>> for BAM/CEP. e.g. You have one toolbox for mediation statistics. When you
>>> want batch processing, you drop the toolbox to BAM. When you want real-time
>>> analytics, you drop the toolbox to CEP. So we might have to discuss the
>>> structure of the toolbox with BAM team as well.
>>>
>>
>>> Can we create a separate new component for the toolbox? I think none of
>>> the existing component categorizations would fit in with the toolbox. WDYT?
>>>
>>
>> +1. Creating a new deployment directory such as cep-toolobox and
>> completes different toolbox structure, etc is not a good idea. We need to
>> unify the same toolbox for BAM and CEP scenarios, and based on the
>> availablitiy of the relavant components the artefacts needs to be deployed.
>>
>
>> The initial implementation of the toolbox was not written in a extensible
>> manner as there was no such requirement before. Hence now it would be
>> better to have discussion on this to agree upon a structure for BAM and
>> CEP, and then start implementing a common toolbox deployer which is
>> extensible for new artefacts for the future add-ons.
>>
>
> ​​+1 for unifying BAM and CEP toolbox scenarios. ​If we think about
> extensibility, we can develop an AbstractToolboxDeployer which will perform
> generic actions (unzipping)inside deploy() and pass on to abstract
> doProcess(). There each implementation can handle their artifact
> accordingly. Also can have general utility classes which does file to
> OMElement/JSON conversions/etc since confings are either XML or JSON.​
>

+1 for this approach.
Please proceed with this approach.

We also need to decide on the new folder structure of the Analytics
Toolbox. follow the mail in architecture@ with subject : Folder structure
of Analytics Toolbox (BAM & CEP)

Regards
Suho


> Thanks,
> Tishan
>
>>
>> Thanks,
>> Sinthuja
>>
>>>
>>> Thanks,
>>> Lasantha
>>>
>>> On 29 October 2014 14:38, Tishan Dahanayakage  wrote:
>>>
 Hi all,
 I was working on $Subject and following scenario came up.

 My initial design was to create a new deployment directory, say
 'cep-toolbox'. Then write a deployer extending AbstractDeployer. Deployer
 will get deployed toolbox, unzip it and deploy each artifact to respective
 deployment directory again. (Ex: deploy Execution Plan artifact to
 executionplan folder). But the problem with this approach is I can't catch
 any exception occurred when deploying each artifact.
 So the other approach is to create a separate bundle depending on each
 AdminService/BE Service and deploy artifacts using those services. This is
 more like BAM toolbox approach. Any thoughts on these approaches?

 Also please suggest a component to add the new bundle if we are going
 through with separate bundle option.

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

 Disclaimer: This com

Re: [Dev] [Siddhi] Counting Patterns

2014-10-30 Thread Seshika Fernando
Hi Suho,

Any thoughts on this?

seshika

On Wed, Oct 29, 2014 at 1:56 PM, Seshika Fernando  wrote:

> Well that is right (assuming that there were 3 transactions done first in
> dehiwela, then in nairobi then again in dehiwela in the span of 10 minutes)
> then it is a possible fraud. And that should be captured.
>
> My issue here is that I should be able to capture just that, in one go,
> using counting pattern <3:> rather than having to use intermediate streams.
> Well, ideally.
>
> On Wed, Oct 29, 2014 at 1:45 PM, Awanthika Senarath 
> wrote:
>
>> Hi Seshika,
>>
>> yes, as long as you are comparing against a constant it will work, but
>> here since you are comparing against the event elements themselves,
>> according to your equation I think you can get an event as below too,
>>
>> [3714496353984310, Dehiwela, Nairobi, Dehiwela]
>>
>> correct me if I am wrong :)
>>
>> On Wed, Oct 29, 2014 at 1:24 PM, Seshika Fernando 
>> wrote:
>>
>>> Well when we use counting patterns, we can have multiple occurrences of
>>> e1 or e2. Refer, the last part of [1]
>>>
>>> 1. https://docs.wso2.com/display/CEP310/Patterns
>>>
>>> On Wed, Oct 29, 2014 at 1:21 PM, Awanthika Senarath 
>>> wrote:
>>>
 Hi Seshika,

 The problem seems to be involved with comparing more than two events
 for a pattern, I'm not much familiar with siddhi.. yet according to your
 logic you only check for
  e2 = Transaction[(e2.cardnum == e1.cardnum) and (e2.location !=
 e1.location)]

 essentially your output will have a null event for the third location
 unless you take an e3

 On Wed, Oct 29, 2014 at 1:16 PM, Seshika Fernando 
 wrote:

> Thanks Awanthika. Once again, this defeats the purpose of having
> counting patterns doesnt it?
>
> On Wed, Oct 29, 2014 at 1:12 PM, Awanthika Senarath <
> awanth...@wso2.com> wrote:
>
>> Hi Seshika,
>>
>> One work around you can do is check whether loc3 is null in an
>> intermediate stream and insert it to FraudAlert.
>>
>>
>> thanks and regards
>> Awanthika
>>
>>
>> --
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>


 --
 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791



>>>
>>
>>
>> --
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Cannot create a JDBC secondary user store

2014-10-30 Thread Darshana Gunawardana
Hi Maninda,

This has been fixed with r208484. Can you please check the revision which
build this pack?

Darshana,

On Thu, Oct 30, 2014 at 7:50 PM, Maninda Edirisooriya 
wrote:

> Hi,
>
> When I try to create a JDBC secondary user store in BAM 2.5.0, the
> following exception is given. This may be due to the recent changes in
> patch0009 of org.wso2.carbon.user.core.
>
>
> [2014-10-30 19:21:00,229] ERROR
> {org.wso2.carbon.user.core.config.UserStoreConfigXMLProcessor} -
> connectionPassword is null in the user configuration of secondary store
> [2014-10-30 19:21:00,231] ERROR
> {org.wso2.carbon.user.core.config.UserStoreConfigXMLProcessor} -  Error
> while building user store manager from file
> org.wso2.carbon.user.core.UserStoreException: connectionPassword is null
> in the user configuration of secondary store
> at
> org.wso2.carbon.user.core.config.UserStoreConfigXMLProcessor.buildUserStoreConfigurationFromFile(UserStoreConfigXMLProcessor.java:150)
> at
> org.wso2.carbon.user.core.common.UserStoreDeploymentManager.deploy(UserStoreDeploymentManager.java:59)
> at
> org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer.deploy(UserStoreConfigurationDeployer.java:58)
> at
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
> at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
> at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
> at
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
> at
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
> at
> org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:371)
> at
> org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:59)
> at
> org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:67)
> at
> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.runAxisDeployment(CarbonDeploymentSchedulerTask.java:79)
> at
> org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:124)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
> [2014-10-30 19:21:00,236]  INFO
> {org.apache.axis2.deployment.DeploymentEngine} -
> org.apache.axis2.deployment.DeploymentException: The deployment of
> abc_com.xml is not valid.
>
>
> *Maninda Edirisooriya*
> Senior Software Engineer
>
> *WSO2, Inc.*lean.enterprise.middleware.
>
> *Blog* : http://maninda.blogspot.com/
> *E-mail* : mani...@wso2.com
> *Skype* : @manindae
> *Twitter* : @maninda
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Regards,


*Darshana Gunawardana*Software Engineer
WSO2 Inc.; http://wso2.com

*E-mail: darsh...@wso2.com *
*Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Dep Sync in Analyzer and Receiver nodes

2014-10-30 Thread Anjana Fernando
Hi,

Having two repos is not a solution. We have to make sure the setup is as
simple as possible, it is already pretty complicated, we don't want to add
anything more. So please make sure, it works in a simple way.

Cheers,
Anjana.

On Thu, Oct 30, 2014 at 1:58 AM, Gihan Anuruddha  wrote:

> ​One solution is to have two repos. Other solution is to use the RW node
> to create both adapters and toolboxes and make other nodes RO. Even though
> we categorized these nodes as receiver/analyzer, we can use one manager
> node to do adapter changes and toolbox changes.
>
> @Aparna,
>
> Can you try the latter solution.
>
> Regards,
> Gihan
>
> On Thu, Oct 30, 2014 at 1:20 PM, Sriskandarajah Suhothayan 
> wrote:
>
>> Hi Gihan
>>
>> So want this make the deployment process complicated?
>> We have to now update 2 servers to add streams.
>>
>> Regards
>> Suho
>>
>>
>> On Wed, Oct 29, 2014 at 11:37 PM, Gihan Anuruddha  wrote:
>>
>>> Hi Anjana,
>>>
>>> Can't we create two repositories, one for analyzer and one for
>>> receiver regarding this issue? Because analyzers and receivers don't have
>>> any common features and those two run independently. Since we are
>>> maintaining a two repos, I believe we can have two RW node.
>>>
>>> WDYT?
>>>
>>> Regards,
>>> Gihan
>>>
>>> On Thu, Oct 30, 2014 at 4:23 AM, Anjana Fernando 
>>> wrote:
>>>
 On Wed, Oct 29, 2014 at 10:34 AM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

>
>
> On Wed, Oct 29, 2014 at 7:27 AM, Aparna Karunarathna 
> wrote:
>
>> Hi Anjana/KasunG/suho,
>>
>> According to the new BAM 2.5.0 deployment pattern [1] we have
>> configured the BAM cluster with 11 nodes(4 cassandra, 3 hadoop, 2 
>> analyzer
>> and 2 receiver). Since BAM 2.5.0 is releasing with CEP features, we have 
>> to
>> enable the dep sync for receiver nodes as well. Therefore one of the
>> Analyzer/Receiver nodes were configured as RW nodes and other
>> analyzer/receiver nodes were configured as RO nodes and pointed to a 
>> single
>> svn repo.
>>
>> Toolboxes can be deployed to the Analyzer RW node and CEP input
>> adapters to the Receiver RW node. We have seen svn conflicts when both RW
>> nodes were trying to commit to svn repo.
>>
>> Therefore, how to configure the Dep Sync for Analyzer/Receiver nodes
>> in BAM 2.5.0 clustered setup? Please advice.
>>
>
> We cant have two RW nodes in a single cluster. Here we have to first
> find out a node that has both CEP and Toolbox deployment components and
> make that the RW node to make this work, I'm not sure either
> Analyzer/Receiver profiles have both CEP and Toolbox deployment 
> components,
> If its not the case we have to fix the BAM profile.
>

 @Gihan, please note, check and fix if needed.

 Cheers,
 Anjana.


>
> Regards
> Suho
>
>
>>
>> [1]
>> https://docs.wso2.com/display/CLUSTER420/Deploying+BAM+with+Puppet
>>
>>
>> Regards,
>> --
>> *Aparna Karunarathna.*
>>
>>
>> *Senior Software Engineer - QAWSO2 Inc.Mobile: 0714002533
>> <0714002533>*
>>
>
>
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
>  *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan 
> *
>



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

>>>
>>>
>>>
>>> --
>>> W.G. Gihan Anuruddha
>>> Senior Software Engineer | WSO2, Inc.
>>> M: +94772272595
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>  *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>> http://suhothayan.blogspot.com/ twitter:
>> http://twitter.com/suhothayan  | linked-in:
>> http://lk.linkedin.com/in/suhothayan *
>>
>
>
>
> --
> W.G. Gihan Anuruddha
> Senior Software Engineer | WSO2, Inc.
> M: +94772272595
>



-- 
*Anjana Fernando*
Senior Technical Lead
WSO2 Inc. | http://wso2.com
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Support for doing Joins against large Windows in Siddhi - Optimal False Positive Rate for a Bloom Filter

2014-10-30 Thread Dhanushka Priyasad
Hi All,

We have implement a Siddhi Window using bloom filters to support large
joins.

We did several test runs for getting the correlation between 'throughput'
(million events per second) and 'false positive rate' for finding an
optimal false positive rate for different window sizes when given a
specific match rate (defines the number of matched events sent to the
Siddhi Window). We have included the stats for each test run below and
attached the result sheet for further reference [1].




According to the results, it seems that false positive rate varies with
match rate for window sizes but not in an unique pattern. Since we need to
input a false positive rate when creating a bloom filter, should we make it
configurable when defining the Window?

Please suggest a suitable configuration to choose an optimal false positive
rate. So then we can continue more testing by changing some other
parameters to find out the relations and best possible values.

[1]
https://docs.google.com/a/wso2.com/spreadsheets/d/1Gkgqk9qTbXswJyrrKTi2aCL2GpQw8JhceuxfarxP0ks


Regards,

-- 
*Dhanushka Priyasad*
Software Engineering Intern
WSO2, Inc.
lean . enterprise . middleware
Mobile: +94 713317472
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Identity Server - Configuring SAML2 SSO Sample

2014-10-30 Thread Maheeka Jayasuriya
@TharinduE I did as you have mentioned but still the same error exists.

@Isura I tried doing the same but still it gives the error.

Went through [1] as well for an idea but something seems to be wrong.
Anything else I need to check out?

[1]
http://logicoy.com/blogs/ssl-keystore-truststore-and-mutual-authentication/

Thanks.

On Thu, Oct 30, 2014 at 5:45 PM, Isura Karunaratne  wrote:

>
>
> On Thu, Oct 30, 2014 at 4:27 PM, Isura Karunaratne  wrote:
>
>> Hi,
>>
>> You have to import the public certificate of IS to  wso2carbon.jks
>> keystore inside the travelociy. You can use java keytool to export and
>> import certificate. Thanks.
>>
>
>
> And also you have to import the public certificate of travelocity
> application to Identity Server keystore too.
>
>>
>> Regards,
>> Isura.
>>
>>
>> On Thu, Oct 30, 2014 at 4:11 PM, Maheeka Jayasuriya 
>> wrote:
>>
>>> Hi,
>>>
>>> I am executing $subject sample [1].
>>>
>>> When I try to login to travelocity.com with SAML2 using Identity Server
>>> as in the sample, I am getting error as "Error when processing the
>>> authentication request! " [2]​​
>>>
>>> I have attached the debug log also below [3] which says "Signature
>>> validation for Authentication Request failed."
>>>
>>> Any idea if am I doing something wrong here?
>>>
>>> [1] https://docs.wso2.com/display/IS500/Configuring+SAML2+SSO
>>>
>>> [2]
>>> https://docs.google.com/a/wso2.com/file/d/0B_Ml_gi-3jYrak96XzFNNThFZTQ/edit
>>>
>>> [3]
>>>
>>> [2014-10-30 15:59:08,425] DEBUG
>>> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
>>> -  In authentication flow
>>> [2014-10-30 15:59:08,426] DEBUG
>>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>>> -  Executing the Step Based Authentication...
>>> [2014-10-30 15:59:08,426] DEBUG
>>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>>> -  Starting Step: 1
>>> [2014-10-30 15:59:08,426] DEBUG
>>> {org.wso2.carbon.identity.application.authentication.framework.util.FrameworkUtils}
>>> -  Finding already authenticated IdPs of the Step
>>> [2014-10-30 15:59:08,426] DEBUG
>>> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
>>> -  Receive a response from the external party
>>> [2014-10-30 15:59:08,426] DEBUG
>>> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
>>> -  BasicAuthenticator can handle the request.
>>> [2014-10-30 15:59:08,436] DEBUG
>>> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
>>> -  BasicAuthenticator returned: SUCCESS_COMPLETED
>>> [2014-10-30 15:59:08,436] DEBUG
>>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>>> -  Step 1 is completed. Going to get the next one.
>>> [2014-10-30 15:59:08,437] DEBUG
>>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>>> -  There are no more steps to execute
>>> [2014-10-30 15:59:08,437] DEBUG
>>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>>> -  Request is successfully authenticated
>>> [2014-10-30 15:59:08,437] DEBUG
>>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>>> -  Handling Post Authentication tasks
>>> [2014-10-30 15:59:08,437] DEBUG
>>> {org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil}
>>> -  JWT Header :{"typ":"JWT", "alg":"none"}
>>> [2014-10-30 15:59:08,437] DEBUG
>>> {org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil}
>>> -  JWT Body
>>> :{"iss":"wso2","exp":14146649484373000,"iat":1414664948437,"idps":[{"idp":"LOCAL","authenticator":"BasicAuthenticator"}]}
>>> [2014-10-30 15:59:08,442] DEBUG
>>> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
>>> -  Step processing is completed
>>> [2014-10-30 15:59:08,442] DEBUG
>>> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
>>> -  Concluding the Authentication Flow
>>> [2014-10-30 15:59:08,444] DEBUG
>>> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
>>> -  Sending response back to: /samlsso...
>>> commonAuthAuthenticated: true
>>> authenticatedUser: admin
>>> authenticatedIdPs:
>>> eyJ0eXAiOiJKV1QiLCAiYWxnIjoibm9uZSJ9.eyJpc3MiOiJ3c28yIiwiZXhwIjoxNDE0NjY0OTQ4NDM3MzAwMCwiaWF0IjoxNDE0NjY0OTQ4NDM3LCJpZHBzIjpbeyJpZHAiOiJMT0NBTCIsImF1dGhlbnRpY2F0b3IiOiJCYXNpY0F1dGhlbnRpY2F0b3IifV19.
>>> sessionDataKey: 10c24bb5-c8a2-485b-a8c1-714bf19427

Re: [Dev] Identity Server - Configuring SAML2 SSO Sample

2014-10-30 Thread Isura Karunaratne
On Friday, October 31, 2014, Maheeka Jayasuriya  wrote:

> @TharinduE I did as you have mentioned but still the same error exists.
>
> @Isura I tried doing the same but still it gives the error.
>
> Went through [1] as well for an idea but something seems to be wrong.
> Anything else I need to check out?
>

In Identity Server SSO configurations, you might enable signature
validation. What is the alias you selected? It should be wso2carbon (not
wso2carbon.cert)

Thanks

>
>
>
> [1]
> http://logicoy.com/blogs/ssl-keystore-truststore-and-mutual-authentication/
>
>


> Thanks.
>
> On Thu, Oct 30, 2014 at 5:45 PM, Isura Karunaratne  > wrote:
>
>>
>>
>> On Thu, Oct 30, 2014 at 4:27 PM, Isura Karunaratne > > wrote:
>>
>>> Hi,
>>>
>>> You have to import the public certificate of IS to  wso2carbon.jks
>>> keystore inside the travelociy. You can use java keytool to export and
>>> import certificate. Thanks.
>>>
>>
>>
>> And also you have to import the public certificate of travelocity
>> application to Identity Server keystore too.
>>
>>>
>>> Regards,
>>> Isura.
>>>
>>>
>>> On Thu, Oct 30, 2014 at 4:11 PM, Maheeka Jayasuriya >> > wrote:
>>>
 Hi,

 I am executing $subject sample [1].

 When I try to login to travelocity.com with SAML2 using Identity
 Server as in the sample, I am getting error as "Error when processing the
 authentication request! " [2]​​

 I have attached the debug log also below [3] which says "Signature
 validation for Authentication Request failed."

 Any idea if am I doing something wrong here?

 [1] https://docs.wso2.com/display/IS500/Configuring+SAML2+SSO

 [2]
 https://docs.google.com/a/wso2.com/file/d/0B_Ml_gi-3jYrak96XzFNNThFZTQ/edit

 [3]

 [2014-10-30 15:59:08,425] DEBUG
 {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
 -  In authentication flow
 [2014-10-30 15:59:08,426] DEBUG
 {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
 -  Executing the Step Based Authentication...
 [2014-10-30 15:59:08,426] DEBUG
 {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
 -  Starting Step: 1
 [2014-10-30 15:59:08,426] DEBUG
 {org.wso2.carbon.identity.application.authentication.framework.util.FrameworkUtils}
 -  Finding already authenticated IdPs of the Step
 [2014-10-30 15:59:08,426] DEBUG
 {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
 -  Receive a response from the external party
 [2014-10-30 15:59:08,426] DEBUG
 {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
 -  BasicAuthenticator can handle the request.
 [2014-10-30 15:59:08,436] DEBUG
 {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
 -  BasicAuthenticator returned: SUCCESS_COMPLETED
 [2014-10-30 15:59:08,436] DEBUG
 {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
 -  Step 1 is completed. Going to get the next one.
 [2014-10-30 15:59:08,437] DEBUG
 {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
 -  There are no more steps to execute
 [2014-10-30 15:59:08,437] DEBUG
 {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
 -  Request is successfully authenticated
 [2014-10-30 15:59:08,437] DEBUG
 {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
 -  Handling Post Authentication tasks
 [2014-10-30 15:59:08,437] DEBUG
 {org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil}
 -  JWT Header :{"typ":"JWT", "alg":"none"}
 [2014-10-30 15:59:08,437] DEBUG
 {org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil}
 -  JWT Body
 :{"iss":"wso2","exp":14146649484373000,"iat":1414664948437,"idps":[{"idp":"LOCAL","authenticator":"BasicAuthenticator"}]}
 [2014-10-30 15:59:08,442] DEBUG
 {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
 -  Step processing is completed
 [2014-10-30 15:59:08,442] DEBUG
 {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
 -  Concluding the Authentication Flow
 [2014-10-30 15:59:08,444] DEBUG
 {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
 -  Sending response back to: /sa

Re: [Dev] How to create a new ESB mediator

2014-10-30 Thread Lahiru Chandima
Hi Udara, Ravindra,

Thanks a lot for your explanations. When I was trying to resolve the issue,
I observed that when the jar is placed in libs directory, another jar was
automatically created in dropins driectory. This should be the conversion
Ravindra has mentioned. Anyway, my jar is actually a OSGi bundle (bundled
using org.apache.felix maven plugin) so it should directly copy the jar
into dropins from libs.



On Thu, Oct 30, 2014 at 9:58 AM, Udara Liyanage  wrote:

> Hi Lahiru,
>
> We put OSGi bundles to dropings , so no need to convert it to an OSGi
> again. Non OSGi jars are put in lib folder which are converted to OSGi
> bundles.
>
>
>
> Touched, not typed. Erroneous words are a feature, not a typo.
> On Oct 30, 2014 8:41 AM, "Ravindra Ranwala"  wrote:
>
>> Hi Lahiru,
>>
>> WSO2 Carbon is based on OSGi. To extend the framework you need to drop an
>> OSGi bundle. What you are having at the moment is an external jar file.
>> Once you place the jar file in to
>> $CARBON_HOME/repository/components/dropins directory, the platform converts
>> the legacy jar file into an OSGi bundle at run time. Refer this article [1]
>> for more details.
>>
>>
>> [1]
>> http://wso2.com/library/knowledgebase/add-external-jar-libraries-wso2-carbon-based-products/
>>
>>
>> Thanks & Regards,
>>
>> On Wed, Oct 29, 2014 at 8:27 PM, Udara Liyanage  wrote:
>>
>>> Hi,
>>>
>>> This post might help you.
>>>
>>>
>>> http://wso2.com/library/tutorials/2014/03/understanding-the-carbon-component-architecture/
>>>
>>>
>>>
>>> Touched, not typed. Erroneous words are a feature, not a typo.
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Ravindra Ranwala
>> Software Engineer
>> WSO2, Inc: http://wso2.com
>> 
>> Mobile: +94714198770
>>
>>


-- 
Lahiru Chandima
*Senior Software Engineer*
Mobile : +94 (0) 772 253283
lahi...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] jaggery for 4.3.0-SNAPSHOT

2014-10-30 Thread Lochana Menikarachchi
Hi,

Need to bundle jaggery feature with the carbon 4.3.0-SNAPSHOT based product
we are building. What is the repo and what are the features required?

Thanks.

-- 
Lochana Menikarachchi
Senior Tech Lead
WSO2 Inc.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] POODLE Vulnerability (SSL 3.0) in WSO2 Carbon 3.0 Products

2014-10-30 Thread Niranda Perera
Hi all,

This follows Prabath's bolgpost on "POODLE Attack and Disabling SSL V3 in
WSO2 Carbon 4.2.0 Based Products" [1]

I was trying to disable SSL v3 in Carbon 3.0 as per the blogpost, but ran
into the following problems.

1. I could not find a catalina-server.xml file in Carbon 3.0. Is there a
different configuration file which governs the SSL Protocol version in
Carbon 3.0?
AFAIK Carbon 3.0 uses Tomcat 5.5 (Pls, correct me if I am wrong!) which
supports SSLv1, v2 and v3.

2. In Carbon 3.0 products (ESB) axis2.xml file, I could not find a
transportReceiver configuration element for PassThroughHttpSSLListener? was
this introduced after Carbon 3.0?

Would be very grateful if you could help me out on this.

Cheers

[1]
http://blog.facilelogin.com/2014/10/poodle-attack-and-disabling-ssl-v3-in_18.html

-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Support needed | Siddhi query to get the data different in event table and a stream using join.

2014-10-30 Thread Saneth Dharmakeerthi
Hi,

This was solved by using unique Window  and  then filtered the  stream by
using past data which stored in a DB.

from IntermediateOutputStream_user#window.unique(book_id)
select *
insert into UniqueIntermediateOutputStream_user;

from UniqueIntermediateOutputStream_user [not((book_id ==
userboughtbooksTable.book_id and user_id==userboughtbooksTable.user_id ) in
userboughtbooksTable)]
select *
insert into RecommendationsOutputDataStream;

Thanks and Best Regards,

Saneth Dharmakeerthi
Senior Software Engineer
WSO2, Inc.
Mobile: +94772325511

On Tue, Oct 21, 2014 at 11:19 AM, Seshika Fernando  wrote:

> Hi Saneth,
>
> Were you able to do this? If so what is the query you used.
>
> seshika
>
>
>
> On Thu, Oct 16, 2014 at 5:30 PM, Aiyadurai Rajeevan 
> wrote:
>
>> Hi Saneth,
>>
>> If i'm not mistaken we can achieve this using a custom transform. Since
>> you have a separate table which holds all the books, You simply check using
>> some java code and send the result as an output stream.
>>
>> Then your query would something like below,
>>
>> from userboughtbooks#window.time(10 min)
>>
>> select userboughtbooks.book_id as boughtBooks
>>
>> insert into IntermediateOutputStream
>>
>>
>> from IntermediateOutputStream#transform.custom:AvailableBook(boughtBooks)
>>
>> select availableBook
>>
>> insert into RecommendationsOutputDataStream
>>
>>
>> where AvailableBook would be your custom transform written in Java.
>>
>>
>>
>> Thanks & Regards,
>> S.A.Rajeevan
>> Software Engineer WSO2 Inc
>> E-Mail: rajeev...@wso2.com | Mobile : +94776411636
>>
>> On Thu, Oct 16, 2014 at 12:52 PM, Seshika Fernando 
>> wrote:
>>
>>> Hi Saneth,
>>>
>>> The reason for this is because, when you put a != , the join happens as
>>> follows.
>>> [image: Inline image 2]
>>>
>>>
>>> This is why you get book1 and book2 once and book3, and book4 twice, in
>>> your RecommendationsOutputStream. You may have to use a count operator from
>>> the RecommendationsOutputStream to determine which books have not been
>>> bought.
>>>
>>> Seshika
>>>
>>>
>>>
>>> On Thu, Oct 16, 2014 at 12:29 PM, Rajeev Sampath 
>>> wrote:
>>>
 Hi,

 On Thu, Oct 16, 2014 at 12:07 PM, Saneth Dharmakeerthi <
 sane...@wso2.com> wrote:

> Hi,
>
> I am writing a Siddhi query to get the un-purchased books from an
>  event table that has all  the books and a stream that contains  the
> already bought books.
>
> my quarry is like  this;
>
> *userboughtbooks: *Stream that contains  the already bought books
> *bookGroupTable: *Table that has all  the books
> *RecommendationsOutputDataStream: *Out  put stream that contains  all
> un-purchased books.
>
> from userboughtbooks#window.time(10 min) join bookGroupTable
> on  bookGroupTable.book_id  != userboughtbooks.book_id
> select bookGroupTable.book_id
> insert into RecommendationsOutputDataStream
>
> 1. when  userboughtbooks has one element it gives the correct result.
>
> userboughtbooks: book1
> bookGroupTable: book1, book2, book3, book4
> RecommendationsOutputDataStream: book2, book3, book4
>
> 2. but  userboughtbooks has more than one element  gives the out put
> like follows
>
> userboughtbooks: book1, book2
> bookGroupTable: book1, book2, book3, book4
> RecommendationsOutputDataStream: book1,book2,book3,book3,book4,book4
>
> I think behaviour of [2] , because of joining with  more than one
> element.
>
> Is there a recommended way to accomplish this task?
>
>
>
 As a workaround to solve this, you can add another query to check
 whether each output of recommendations stream exists in the table and then
 output only the non existing ones.

 eg:

 from RecommendationsOutputDataStream [not ((book_id ==
 bookGroupTable.book_id ) in bookGroupTable)]
 select *
 insert into filteredRecommendationsStream;


 Thanks
 Rajeev



>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Rajeev Sampath
 Senior Software Engineer
 WSO2, Inc.; http://www.wso2.com.

 Mobile:
 * +94716265766 <%2B94716265766>*

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


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

Re: [Dev] Identity Server - Configuring SAML2 SSO Sample

2014-10-30 Thread Maheeka Jayasuriya
@Isura I had left the default alias wso2carbon.cert. Changed to wso2carbon
and it worked.

Thanks !

On Fri, Oct 31, 2014 at 7:31 AM, Isura Karunaratne  wrote:

>
>
> On Friday, October 31, 2014, Maheeka Jayasuriya  wrote:
>
>> @TharinduE I did as you have mentioned but still the same error exists.
>>
>> @Isura I tried doing the same but still it gives the error.
>>
>> Went through [1] as well for an idea but something seems to be wrong.
>> Anything else I need to check out?
>>
>
> In Identity Server SSO configurations, you might enable signature
> validation. What is the alias you selected? It should be wso2carbon (not
> wso2carbon.cert)
>
> Thanks
>
>>
>>
>>
>> [1]
>> http://logicoy.com/blogs/ssl-keystore-truststore-and-mutual-authentication/
>>
>>
>
>
>> Thanks.
>>
>> On Thu, Oct 30, 2014 at 5:45 PM, Isura Karunaratne 
>> wrote:
>>
>>>
>>>
>>> On Thu, Oct 30, 2014 at 4:27 PM, Isura Karunaratne 
>>> wrote:
>>>
 Hi,

 You have to import the public certificate of IS to  wso2carbon.jks
 keystore inside the travelociy. You can use java keytool to export and
 import certificate. Thanks.

>>>
>>>
>>> And also you have to import the public certificate of travelocity
>>> application to Identity Server keystore too.
>>>

 Regards,
 Isura.


 On Thu, Oct 30, 2014 at 4:11 PM, Maheeka Jayasuriya 
 wrote:

> Hi,
>
> I am executing $subject sample [1].
>
> When I try to login to travelocity.com with SAML2 using Identity
> Server as in the sample, I am getting error as "Error when processing the
> authentication request! " [2]​​
>
> I have attached the debug log also below [3] which says "Signature
> validation for Authentication Request failed."
>
> Any idea if am I doing something wrong here?
>
> [1] https://docs.wso2.com/display/IS500/Configuring+SAML2+SSO
>
> [2]
> https://docs.google.com/a/wso2.com/file/d/0B_Ml_gi-3jYrak96XzFNNThFZTQ/edit
>
> [3]
>
> [2014-10-30 15:59:08,425] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler}
> -  In authentication flow
> [2014-10-30 15:59:08,426] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
> -  Executing the Step Based Authentication...
> [2014-10-30 15:59:08,426] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
> -  Starting Step: 1
> [2014-10-30 15:59:08,426] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.util.FrameworkUtils}
> -  Finding already authenticated IdPs of the Step
> [2014-10-30 15:59:08,426] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
> -  Receive a response from the external party
> [2014-10-30 15:59:08,426] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
> -  BasicAuthenticator can handle the request.
> [2014-10-30 15:59:08,436] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler}
> -  BasicAuthenticator returned: SUCCESS_COMPLETED
> [2014-10-30 15:59:08,436] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
> -  Step 1 is completed. Going to get the next one.
> [2014-10-30 15:59:08,437] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
> -  There are no more steps to execute
> [2014-10-30 15:59:08,437] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
> -  Request is successfully authenticated
> [2014-10-30 15:59:08,437] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
> -  Handling Post Authentication tasks
> [2014-10-30 15:59:08,437] DEBUG
> {org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil}
> -  JWT Header :{"typ":"JWT", "alg":"none"}
> [2014-10-30 15:59:08,437] DEBUG
> {org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil}
> -  JWT Body
> :{"iss":"wso2","exp":14146649484373000,"iat":1414664948437,"idps":[{"idp":"LOCAL","authenticator":"BasicAuthenticator"}]}
> [2014-10-30 15:59:08,442] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}
> -  Step processing is completed
> [2014-10-30 15:59:08,442] DEBUG
> {org.wso2.carbon.identity.application.authentication.framework.handler.requ

[Dev] UI test - screen capture on Test failure

2014-10-30 Thread Ayesha Dissanayaka
Hi,

In-order to identify UI test failures in automation test execution what
would be the best approach?
Some Suggestions are as below which I have come across.

   - Use a TestNG listener [01] to capture the current screen on a test
   failure.
   - try-catch in asserts and bind screen-capturing to error handling
   - Any other proper way?

[01]
http://blog.alvarus.org/2014/05/selenium-capturing-screenshots-of-failed-tests-in-junit-and-testng/

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

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