Re: [Dev] Migration scripts for API-M 1.6.0 to 1.7.0

2014-04-17 Thread Nirodha Pramod
Ping!! On the $subject.


On Thu, Apr 10, 2014 at 11:37 AM, Nirodha Pramod niro...@wso2.com wrote:

 Hi,

 Do we have the $subject ready?

 regards,
 Nirodha

 --

 *Nirodha Gallage*
 Senior Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94716429078




-- 

*Nirodha Gallage*
Senior Software Engineer, QA.
WSO2 Inc.: http://wso2.com/
Mobile: +94716429078
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while trying to access a secured proxy

2014-04-17 Thread Suresh Attanayaka
Please refer Rampart samples, sample#03
http://svn.apache.org/repos/asf/axis/axis2/java/rampart/trunk/modules/rampart-samples/policy/sample03


On Thu, Apr 17, 2014 at 11:43 AM, Sajini De Silva saj...@wso2.com wrote:

 Hi,

 I checked with the TCPMon, and the security header is missing in the
 request for which I have no idea. I did the rampart configuration according
 to [1]

 [1] http://blog.thilinamb.com/2009/12/how-to-build-rampart-config.html

 Thank you,
 Sajini.



 On Thu, Apr 17, 2014 at 11:27 AM, Suresh Attanayaka sur...@wso2.comwrote:

 Hi,

 Probably your client is not generating required WS-Security headers when
 invoking the service. Send the message through TCPMon and see the actual
 message. Double check if you have done the Rampart configurations properly.

 Thanks,
 -Suresh


 On Thu, Apr 17, 2014 at 11:22 AM, Sajini De Silva saj...@wso2.comwrote:

 Hi,

 I secured an unsecured backend service with non repudiation scenario.
 Then I developed a client program to access that service and i get the
 following error.

 org.apache.axis2.AxisFault: Missing wsse:Security header in request
 Caused by: org.apache.rampart.RampartException: Missing wsse:Security
 header in request


 Can somebody please have a look?


 Thank you.
 --
 Sajini De SIlva
 Software Engineer; WSO2 Inc.; http://wso2.com ,
 Email: saj...@wso2.com
 Blog: http://sajinid.blogspot.com/
 Git hub profile: https://github.com/sajinidesilva


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




 --
 Suresh Attanayake
 Senior Software Engineer; WSO2 Inc. http://wso2.com/
 Blog : http://sureshatt.blogspot.com/
 Web : http://www.ssoarcade.com/
 Facebook : https://www.facebook.com/IdentityWorld
 Twitter : https://twitter.com/sureshatt
 LinkedIn : http://lk.linkedin.com/in/sureshatt
 Mobile : +94755012060
 Mobile : +016166171172




 --
 Sajini De SIlva
 Software Engineer; WSO2 Inc.; http://wso2.com ,
 Email: saj...@wso2.com
 Blog: http://sajinid.blogspot.com/
 Git hub profile: https://github.com/sajinidesilva




-- 
Suresh Attanayake
Senior Software Engineer; WSO2 Inc. http://wso2.com/
Blog : http://sureshatt.blogspot.com/
Web : http://www.ssoarcade.com/
Facebook : https://www.facebook.com/IdentityWorld
Twitter : https://twitter.com/sureshatt
LinkedIn : http://lk.linkedin.com/in/sureshatt
Mobile : +94755012060
Mobile : +016166171172
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Do we have capability to configure Key-store/Trust-Stores tenant vice

2014-04-17 Thread Asanka Vithanage
Hi All,
Currently we can configure the Key-store/Trust-Stores as per doc [1],but
Doc does not say anything about tenant mode key-store configurations.

Is it possible to configure separate Key-store/Trust-Stores per each
tenant? Like Tenant1 with keyStore1/Trust-Store1 , Tenant2 with
keyStore2/Trust-Store2,.etc
If possible can any one explain the configuration steps pls?


Note:
I am trying MB SSL connection scenarios for tenant modes and wanted to
configure separate Keystores for each tenant for testing.


[1] https://docs.wso2.org/display/Carbon420/Configuring+Keystores


-- 
Asanka Vithanage
Senior Software Engineer -QA
Mobile: +94 0716286708
Email: asan...@wso2.com
WSO2 Inc. www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] EMM OAuth Implementation - Android - Storing Consumer Secret

2014-04-17 Thread Kasun Dananjaya Delgolla
Hi All,

We're going to protect all the API calls from EMM client side using OAuth.

I have a concern whether to store the consumer key/secret inside the EMM
Agent Application or making it dynamic. We can actually send those 2 when
the user authenticates from the mobile client (As the response), and then
we can store it inside a private preference (Which is application private).

I see this as the safest way because keeping it hardcoded in the source or
a file might be extremely easy to hack. So WDYT?

Regards,
-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
http://lk.linkedin.com/in/kasundananjaya*



-- 
Kasun Dananjaya Delgolla

Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
Tel:  +94 11 214 5345
Fax: +94 11 2145300
Mob: + 94 777 997 850
Blog: http://kddcodingparadise.blogspot.com
Linkedin: *http://lk.linkedin.com/in/kasundananjaya
http://lk.linkedin.com/in/kasundananjaya*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EMM OAuth Implementation - Android - Storing Consumer Secret

2014-04-17 Thread Chan
+1 to the idea since basic auth will be first used to obtain the consumer
secret. But we might have to change the flow from how it usually work.

Cheers~


On Thu, Apr 17, 2014 at 12:17 PM, Kasun Dananjaya Delgolla
kas...@wso2.comwrote:

 Hi All,

 We're going to protect all the API calls from EMM client side using OAuth.

 I have a concern whether to store the consumer key/secret inside the EMM
 Agent Application or making it dynamic. We can actually send those 2 when
 the user authenticates from the mobile client (As the response), and then
 we can store it inside a private preference (Which is application private).

 I see this as the safest way because keeping it hardcoded in the source or
 a file might be extremely easy to hack. So WDYT?

 Regards,
 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 777 997 850
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*



 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 777 997 850
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2Mobile
Lean.Enterprise.Mobileware
 * ~Email   duli...@wso2.com duli...@wso2mobile.com*
*  ~Mobile +94712112165*
*  ~Website   dulitha.me http://dulitha.me*
*  ~Twitter @dulitharw https://twitter.com/dulitharw*
  *~Github @dulichan https://github.com/dulichan*
  *~SO @chan http://stackoverflow.com/users/813471/chan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Missing chunk 07 [ESB/BPS features] in nexus repo

2014-04-17 Thread Thilini Ishaka
Hi Lasantha,

Given below the svn location for the feature artifacts. Please deploy it to
nexus.
On Sat, Apr 12, 2014 at 6:52 AM, Lasantha Fernando lasan...@wso2.comwrote:

 Hi all,

 It seems the following features are still not uploaded to nexus and had to
 be commented out from the chunk-08 p2-repo.

 org.wso2.bps:org.wso2.stratos.bps.styles.feature:3.2.0

https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/bps/3.2.0/modules/features/service/org.wso2.stratos.bps.styles.feature


 org.wso2.bps:org.wso2.stratos.bps.dashboard.ui.feature:3.2.0

https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/bps/3.2.0/modules/features/service/org.wso2.stratos.bps.dashboard.ui.feature


 org.wso2.bps:org.wso2.bps.samples.utils.feature:3.2.0

https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/bps/3.2.0/modules/features/service/org.wso2.stratos.bps.samples.utils.feature


 Can chunk-07 release manager or someone from BPS team look into this and
 upload the above artifacts please?


Thanks
Thilini

 Thanks,
 Lasantha



 On 1 April 2014 09:14, Malaka Silva mal...@wso2.com wrote:

 Hi,

 It's deployed.

 Best Regards,
 Malaka


 On Thu, Mar 27, 2014 at 9:48 PM, Thilini Ishaka thil...@wso2.com wrote:

 Hi Malaka,

 Yes, please move nested features too to nexus repo (for eg: [1]). Also
 make sure all the released features in chunk 07 are deployed to nexus repo.

 [1]
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/appserver/

 Thanks
 Thilini


 On Thu, Mar 27, 2014 at 7:28 PM, Malaka Silva mal...@wso2.com wrote:

 Do we need to add nested.category features to nexus repo?


 On Thu, Mar 27, 2014 at 6:50 PM, Lalaji Sureshika lal...@wso2.comwrote:

 Hi,

 When trying to create chunk -08 p2-repo ,I'm getting errors from
 chunk-07 features,due to below features are not uploaded to nexus repo.


 1) org.wso2.bps:org.wso2.bps.bps-manager.nested.category.feature:zip:3.2.0

 2) org.wso2.esb:org.wso2.esb.esb-manager.nested.category.feature:zip:4.8.1
 3) org.wso2.bps:org.wso2.stratos.bps.styles.feature:zip:3.2.0
 4) org.wso2.stratos.bps.dashboard.ui.feature:3.2.0
 5) org.wso2.bps:org.wso2.bps.samples.utils.feature:zip:3.2.0

 Can chunk 07 release manager verify building p2-repo in a clean repo
 and upload the above features to nexus repo?

 -
 Caused by:
 org.apache.maven.artifact.resolver.ArtifactNotFoundException: Failure to
 find
 org.wso2.bps:org.wso2.bps.bps-manager.nested.category.feature:zip:3.2.0 in
 http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
 the local repository, resolution will not be reattempted until the update
 interval of wso2-nexus has elapsed or updates are forced

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=org.wso2.bps
 -DartifactId=org.wso2.bps.bps-manager.nested.category.feature
 -Dversion=3.2.0 -Dpackaging=zip -Dfile=/path/to/file

 Alternatively, if you host your own repository you can deploy the file
 there:
 mvn deploy:deploy-file -DgroupId=org.wso2.bps
 -DartifactId=org.wso2.bps.bps-manager.nested.category.feature
 -Dversion=3.2.0 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url]
 -DrepositoryId=[id]



 org.wso2.bps:org.wso2.bps.bps-manager.nested.category.feature:zip:3.2.0

 from the specified remote repositories:
   wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
 releases=true, snapshots=true),
   central (http://repo.maven.apache.org/maven2, releases=true,
 snapshots=false)

 at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:219)
  at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:157)
 at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:525)
  at
 org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:39)
 ... 24 more
 Caused by: org.sonatype.aether.resolution.ArtifactResolutionException:
 Failure to find
 org.wso2.bps:org.wso2.bps.bps-manager.nested.category.feature:zip:3.2.0 in
 http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in
 the local repository, resolution will not be reattempted until the update
 interval of wso2-nexus has elapsed or updates are forced
  at
 org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
 at
 org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
  at
 org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
 at
 org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)
  at
 

Re: [Dev] Missing chunk 07 [ESB/BPS features] in nexus repo

2014-04-17 Thread Thilini Ishaka
On Thu, Apr 17, 2014 at 12:26 PM, Thilini Ishaka thil...@wso2.com wrote:


 Hi Lasantha,

 Given below the svn location for the feature artifacts. Please deploy it
 to nexus.
 On Sat, Apr 12, 2014 at 6:52 AM, Lasantha Fernando lasan...@wso2.comwrote:

 Hi all,

 It seems the following features are still not uploaded to nexus and had
 to be commented out from the chunk-08 p2-repo.

 org.wso2.bps:org.wso2.stratos.bps.styles.feature:3.2.0


 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/bps/3.2.0/modules/features/service/org.wso2.stratos.bps.styles.feature


 org.wso2.bps:org.wso2.stratos.bps.dashboard.ui.feature:3.2.0


 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/bps/3.2.0/modules/features/service/org.wso2.stratos.bps.dashboard.ui.feature


 org.wso2.bps:org.wso2.bps.samples.utils.feature:3.2.0


https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/bps/3.2.0/modules/features/product/org.wso2.bps.samples.utils.feature



 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/bps/3.2.0/modules/features/service/org.wso2.stratos.bps.samples.utils.feature


 Can chunk-07 release manager or someone from BPS team look into this and
 upload the above artifacts please?


 Thanks
 Thilini

  Thanks,
 Lasantha



 On 1 April 2014 09:14, Malaka Silva mal...@wso2.com wrote:

 Hi,

 It's deployed.

 Best Regards,
 Malaka


 On Thu, Mar 27, 2014 at 9:48 PM, Thilini Ishaka thil...@wso2.comwrote:

 Hi Malaka,

 Yes, please move nested features too to nexus repo (for eg: [1]). Also
 make sure all the released features in chunk 07 are deployed to nexus repo.

 [1]
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/appserver/

 Thanks
 Thilini


 On Thu, Mar 27, 2014 at 7:28 PM, Malaka Silva mal...@wso2.com wrote:

 Do we need to add nested.category features to nexus repo?


 On Thu, Mar 27, 2014 at 6:50 PM, Lalaji Sureshika lal...@wso2.comwrote:

 Hi,

 When trying to create chunk -08 p2-repo ,I'm getting errors from
 chunk-07 features,due to below features are not uploaded to nexus repo.


 1) 
 org.wso2.bps:org.wso2.bps.bps-manager.nested.category.feature:zip:3.2.0

 2) 
 org.wso2.esb:org.wso2.esb.esb-manager.nested.category.feature:zip:4.8.1
 3) org.wso2.bps:org.wso2.stratos.bps.styles.feature:zip:3.2.0
 4) org.wso2.stratos.bps.dashboard.ui.feature:3.2.0
 5) org.wso2.bps:org.wso2.bps.samples.utils.feature:zip:3.2.0

 Can chunk 07 release manager verify building p2-repo in a clean repo
 and upload the above features to nexus repo?

 -
 Caused by:
 org.apache.maven.artifact.resolver.ArtifactNotFoundException: Failure to
 find
 org.wso2.bps:org.wso2.bps.bps-manager.nested.category.feature:zip:3.2.0 
 in
 http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached
 in the local repository, resolution will not be reattempted until the
 update interval of wso2-nexus has elapsed or updates are forced

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=org.wso2.bps
 -DartifactId=org.wso2.bps.bps-manager.nested.category.feature
 -Dversion=3.2.0 -Dpackaging=zip -Dfile=/path/to/file

 Alternatively, if you host your own repository you can deploy the
 file there:
 mvn deploy:deploy-file -DgroupId=org.wso2.bps
 -DartifactId=org.wso2.bps.bps-manager.nested.category.feature
 -Dversion=3.2.0 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url]
 -DrepositoryId=[id]



 org.wso2.bps:org.wso2.bps.bps-manager.nested.category.feature:zip:3.2.0

 from the specified remote repositories:
   wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
 releases=true, snapshots=true),
   central (http://repo.maven.apache.org/maven2, releases=true,
 snapshots=false)

 at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:219)
  at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:157)
 at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:525)
  at
 org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:39)
 ... 24 more
 Caused by:
 org.sonatype.aether.resolution.ArtifactResolutionException: Failure to 
 find
 org.wso2.bps:org.wso2.bps.bps-manager.nested.category.feature:zip:3.2.0 
 in
 http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached
 in the local repository, resolution will not be reattempted until the
 update interval of wso2-nexus has elapsed or updates are forced
  at
 org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
 at
 org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
  at
 

[Dev] ESB 4.8.1 - Sample 252

2014-04-17 Thread Firzhan Naqash
Hi All,

I had an issue today when running the ESB 4.8.1 sample 252 for JMSTextProxy
where the Axis2Server didn't print the expected debug log message.

The synapse_sample_252.xml had following issue where the keyword format has
been misspelled in the endpoint address node of *text_proxy sequence* .
Once the spelling mistake is corrected Axis2Server prints expected debug
message.

 send
  endpoint
   address uri=
http://localhost:9000/services/SimpleStockQuoteService; fromat=pox/
   /endpoint
  /send



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


Re: [Dev] Publish-Subscribe Channel EIP - Axis2 Client throws an error

2014-04-17 Thread Harsha Kumara
Hi Denuwanthi,

In sample 460 it works fine as client sending a place order request and not
getting a response from it. But in [1] it sends a stockquote request from
client and waiting for response. Seems like event mediator is not sending
the response to the client. But it functioning correctly as in the document
which you can confirm by looking at axis server logs where you can see
Generating quote for : foo. I think this is because publish and
subscriber follows one way communication pattern.

[1]-
https://docs.wso2.org/display/IntegrationPatterns/Publish-Subscribe+Channel

Thanks,
Harsha


On Wed, Apr 16, 2014 at 9:35 PM, Denuwanthi De Silva denuwan...@wso2.comwrote:

 Hi Samith,

 I'm using ESB 4.8.1. This is the log I get:

 INFO - LogMediator To: /, WSAction: urn:placeOrder, SOAPAction:
 urn:placeOrder, ReplyTo: http://www.w3.org/2005/08/addressing/none,
 MessageID: urn:uuid:22b40329-d5ed-4093-897d-1c041b2eb381, Direction: request

 I don't get any error message on the ESB debug log as in [1].

 Sample 460[2] works fine for me. The bug is fixed in 4.8.1.
 I get an error log in Axis2Client as I have mentioned.




 [1] https://wso2.org/jira/browse/ESBJAVA-2857
 [2]
 https://docs.wso2.org/display/ESB481/Sample+460%3A+Introduction+to+Eventing+and+Event+Mediator


 Thanks,


 On Wed, Apr 16, 2014 at 6:55 PM, Samith Dassanayake sam...@wso2.comwrote:

 Hi Denuwanthi,

 This is caused by a bug in ESB 4.8.0. If you are using the ESB version
 4.8.0 this is a known issue[1]. If you check the debug log of the ESB you
 will see a similar error message as [1], which occurs when executing the
 sample 460[2]

 [1] https://wso2.org/jira/browse/ESBJAVA-2857
 [2]
 https://docs.wso2.org/display/ESB481/Sample+460%3A+Introduction+to+Eventing+and+Event+Mediator


 On Wed, Apr 16, 2014 at 4:57 PM, Denuwanthi De Silva denuwan...@wso2.com
  wrote:


 Hi,

 I tried the sample in [1].
 When I send a request using Axis2 Client with ant stockquote -Dtrpurl=
 http://localhost:8280 -Dsymbol=foo command, it gives an AxisFault, as
 follows:

  [java] 14/04/16 14:49:00 ERROR sandesha2.SandeshaModule: Could not load
 module policies. Using default values.
  [java] 14/04/16 14:49:00 INFO mail.MailTransportSender: MAILTO
 Sender started
  [java] 14/04/16 14:49:00 INFO jms.JMSSender: JMS Sender started
  [java] 14/04/16 14:49:00 INFO jms.JMSSender: JMS Transport Sender
 initialized...
  *[java] org.apache.axis2.AxisFault: The input stream for an
 incoming message is null.*
  [java] at
 org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:93)
  [java] at
 org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:68)
  [java] at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:348)
  [java] at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
  [java] at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
  [java] at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
  [java] at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
  [java] at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
  [java] at
 samples.userguide.StockQuoteClient.executeClient(Unknown Source)
  [java] at samples.userguide.StockQuoteClient.main(Unknown
 Source)

 BUILD SUCCESSFUL

 Can somebody point out what the issue is?

 [1]
 https://docs.wso2.org/display/IntegrationPatterns/Publish-Subscribe+Channel
 --
 Denuwanthi De Silva
 Software Engineer;
 WSO2 Inc.; http://wso2.com,
 Email: denuwan...@wso2.com



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




 --
 Best Regards

 Samith Dassanayake
 Software Engineer, WSO2 Inc.
 Mobile: +94776207351




 --
 Denuwanthi De Silva
 Software Engineer;
 WSO2 Inc.; http://wso2.com,
 Email: denuwan...@wso2.com



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




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


Re: [Dev] Do we have capability to configure Key-store/Trust-Stores tenant vice

2014-04-17 Thread Prabath Siriwardena
There is a keystore per tenant - but a single truststore..

Thanks  regards,
-Prabath


On Thu, Apr 17, 2014 at 11:53 AM, Asanka Vithanage asan...@wso2.com wrote:

 Hi All,
 Currently we can configure the Key-store/Trust-Stores as per doc [1],but
 Doc does not say anything about tenant mode key-store configurations.

 Is it possible to configure separate Key-store/Trust-Stores per each
 tenant? Like Tenant1 with keyStore1/Trust-Store1 , Tenant2 with
 keyStore2/Trust-Store2,.etc
 If possible can any one explain the configuration steps pls?


 Note:
 I am trying MB SSL connection scenarios for tenant modes and wanted to
 configure separate Keystores for each tenant for testing.


 [1] https://docs.wso2.org/display/Carbon420/Configuring+Keystores


 --
 Asanka Vithanage
 Senior Software Engineer -QA
 Mobile: +94 0716286708
 Email: asan...@wso2.com
 WSO2 Inc. www.wso2.com




-- 
Thanks  Regards,
Prabath

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

Mobile : +94 71 809 6732

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


Re: [Dev] Please merge AS integration commit #1 pull request.

2014-04-17 Thread Kasun Gajasinghe
Hi,

I have merged the changes. All the tests were building fine. Currently,
four tests are enabled, need to look at the rest of the tests.


On Wed, Apr 16, 2014 at 12:27 PM, Krishantha Samaraweera 
krishan...@wso2.com wrote:

 Is this done ?

 Thanks,
 Krishantha.


 On Wed, Apr 2, 2014 at 7:32 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi AS team,

 Please apply the pull request -
 https://github.com/wso2-dev/product-as/pull/1

 This commit contain migrated test cases.

 Thanks,
 Krishantha.

 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.




-- 

*Kasun Gajasinghe*Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge DSS integration test commit#1 pull request

2014-04-17 Thread Chanika Geeganage
I merged the changes

Thanks


On Thu, Apr 17, 2014 at 12:16 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi,

 Thanks Nuwan. Chanika, please merge these changes.

 Cheers,
 Anjana.


 On Thu, Apr 17, 2014 at 11:41 AM, Nuwan Wimalasekara nuw...@wso2.comwrote:

 Hi DSS team,
 Please apply the pull request -
 https://github.com/wso2/product-dss/pull/1

 This commit contains migrated test classes for DSS integration test.

 Thanks,
 Nuwanw

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

 phone: +94 71 668 4620




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




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




-- 
Best Regards..

Chanika Geeganage
Software Engineer
WSO2, Inc.; http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB 4.8.1 - Sample 252

2014-04-17 Thread Malaka Silva
Created the pull request.

https://github.com/wso2-dev/product-esb/pull/5

Thx for informing.


On Thu, Apr 17, 2014 at 12:33 PM, Firzhan Naqash firz...@wso2.com wrote:


 Hi All,

 I had an issue today when running the ESB 4.8.1 sample 252 for
 JMSTextProxy where the Axis2Server didn't print the expected debug log
 message.

 The synapse_sample_252.xml had following issue where the keyword formathas 
 been misspelled in the endpoint address node of *text_proxy
 sequence* . Once the spelling mistake is corrected Axis2Server prints
 expected debug message.

  send
   endpoint
address uri=
 http://localhost:9000/services/SimpleStockQuoteService; fromat=pox/
/endpoint
   /send



 Regards,
 Firzhan

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




-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/http://wso2.com/about/team/malaka-silva/

Save a tree -Conserve nature  Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] components/ejb-services relationship to AS

2014-04-17 Thread Chamil Jeewantha
I found ejb-services component in the code base. What is that? Are there
any relationship to the proposed ejb implementation on the AS?


-- 
K.D. Chamil Jeewantha
Associate Technical Lead
WSO2, Inc.;  http://wso2.com
Mobile: +94716813892
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] components/ejb-services relationship to AS

2014-04-17 Thread Supun Malinga
Hi,

that's a feature we use through axis2 where we can call externally deployed
ejb's via axis2. With this we can wrap a ejb as a service.
Ejb-services is not related to deployment of ejbs. Hope this clarifies..

thanks,


On Thu, Apr 17, 2014 at 1:39 PM, Chamil Jeewantha cha...@wso2.com wrote:

 I found ejb-services component in the code base. What is that? Are there
 any relationship to the proposed ejb implementation on the AS?


 --
 K.D. Chamil Jeewantha
 Associate Technical Lead
 WSO2, Inc.;  http://wso2.com
 Mobile: +94716813892




-- 
Supun Malinga,

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


Re: [Dev] components/ejb-services relationship to AS

2014-04-17 Thread Chamil Jeewantha
Understood. Thanks!



On Thu, Apr 17, 2014 at 2:00 PM, Supun Malinga sup...@wso2.com wrote:

 Hi,

 that's a feature we use through axis2 where we can call externally
 deployed ejb's via axis2. With this we can wrap a ejb as a service.
 Ejb-services is not related to deployment of ejbs. Hope this clarifies..

 thanks,


 On Thu, Apr 17, 2014 at 1:39 PM, Chamil Jeewantha cha...@wso2.com wrote:

 I found ejb-services component in the code base. What is that? Are there
 any relationship to the proposed ejb implementation on the AS?


 --
 K.D. Chamil Jeewantha
 Associate Technical Lead
 WSO2, Inc.;  http://wso2.com
 Mobile: +94716813892




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 email: sup...@wso2.com sup...@wso2.com
 mobile: +94 (0)71 56 91 321




-- 
K.D. Chamil Jeewantha
Associate Technical Lead
WSO2, Inc.;  http://wso2.com
Mobile: +94716813892
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error in ESB 4.8.1 samples 61, 62

2014-04-17 Thread Pulasthi Mahawithana
Hi,

I got the following error while executing samples 61 [1] and 62 [2].

[2014-04-17 15:14:45,892] DEBUG - SimpleURLRegistry == Repository fetch of
resource with key : recipients/EP_LIST
[2014-04-17 15:14:45,892] DEBUG - SynapseConfigUtils Can not open a
connection to the URL with a path
:file:repository/sample/resources/recipients/EP_LIST
[2014-04-17 15:14:45,892] DEBUG - SynapseConfigUtils Trying  to resolve an
absolute path of the  URL using the synapse.home :
[2014-04-17 15:14:45,892] DEBUG - SynapseConfigUtils Failed to resolve an
absolute path of the  URL using the synapse.home :
[2014-04-17 15:14:45,892]  WARN - SynapseConfigUtils IO Error reading from
URL :
/repository/sample/resources/recipients/EP_LISTjava.io.FileNotFoundException:
/repository/sample/resources/recipients/EP_LIST (No such file or directory)
[2014-04-17 15:14:45,893] DEBUG - SynapsePropertiesLoader Retrieving
synapse properties from the cache
[2014-04-17 15:14:45,893] DEBUG - MiscellaneousUtil The name with
'synapse.connection.read_timeout' cannot be found. Using default value :
10
[2014-04-17 15:14:45,893] DEBUG - SynapsePropertiesLoader Retrieving
synapse properties from the cache
[2014-04-17 15:14:45,893] DEBUG - MiscellaneousUtil The name with
'synapse.connection.connect_timeout' cannot be found. Using default value :
2
[2014-04-17 15:14:45,893] DEBUG - RecipientListEndpoint Halted sending
messages to recipients. No recipient found !!! :

Looks like the file with the recipients are missing in the samples
directory.

Also the synapse configuration files for those samples (samples 60, 61, 62)
are missing in the distribution.


[1]
https://docs.wso2.org/display/ESB481/Sample+61%3A+Routing+a+Message+to+a+Dynamic+List+of+Recipients
[2]
https://docs.wso2.org/display/ESB481/Sample+62:+Routing+a+Message+to+a+Dynamic+List+of+Recipients+and+Aggregating+Responses

-- 
*Pulasthi Mahawithana*
Software Engineer
WSO2 Inc., http://wso2.com/
Mobile: +94-71-5179022
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Create wso2 orbit repository for bsf

2014-04-17 Thread Kasun Gajasinghe
Hi Manoj,

There is no need to create a new repo since you are only releasing the
orbit bundle. Go ahead and create a new folder called bsf in [3], and add
your changes. The folder structure is - artifact-name/version/pom.xml.


On Thu, Apr 17, 2014 at 3:18 PM, Manoj Kumara ma...@wso2.com wrote:

 Kind reminder ...


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188


 On Fri, Apr 4, 2014 at 3:42 PM, Manoj Kumara ma...@wso2.com wrote:

 Hi,

 I need to add the fix relevant to [1] to git trunk. Could you please
 create relevant git repository for [2] on [3].

 [1] https://wso2.org/jira/browse/ESBJAVA-3019
 [2] https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.0.0/bsf/
 [3] https://github.com/wso2/orbit

 Thanks,
 Manoj

 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188





-- 

*Kasun Gajasinghe*Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Exception in axis2server started inside ESB-4.9.0

2014-04-17 Thread Malintha Adikari
Hi,

I got following exception when I am trying to send a request to an axis2
server which was started programitically inside ESB-4.9.0- for testing
purposes (to provide a backend for tests). Is this due to any version
incompatibilities in ESB-4.9.0 dependencies ?

Exception in thread HTTP Listener I/O dispatcher-1
java.lang.NoSuchMethodError:
org.apache.http.params.HttpProtocolParams.getMalformedInputAction(Lorg/apache/http/params/HttpParams;)Ljava/nio/charset/CodingErrorAction;
at
org.apache.http.impl.nio.reactor.SessionInputBufferImpl.init(SessionInputBufferImpl.java:78)
at
org.apache.http.impl.nio.NHttpConnectionBase.init(NHttpConnectionBase.java:146)
at
org.apache.http.impl.nio.DefaultNHttpServerConnection.init(DefaultNHttpServerConnection.java:93)
at
org.apache.synapse.transport.http.conn.LoggingNHttpServerConnection.init(LoggingNHttpServerConnection.java:64)
at
org.apache.synapse.transport.http.conn.LoggingUtils.createServerConnection(LoggingUtils.java:73)
at
org.apache.synapse.transport.http.conn.ServerConnFactory.createConnection(ServerConnFactory.java:90)
at
org.apache.synapse.transport.nhttp.ServerIODispatch.createConnection(ServerIODispatch.java:58)
at
org.apache.synapse.transport.nhttp.ServerIODispatch.createConnection(ServerIODispatch.java:39)
at
org.apache.http.impl.nio.reactor.AbstractIODispatch.connected(AbstractIODispatch.java:72)
at
org.apache.http.impl.nio.reactor.BaseIOReactor.sessionCreated(BaseIOReactor.java:242)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processNewChannels(AbstractIOReactor.java:427)
at
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:291)
Apr 17, 2014 4:39:56 PM org.apache.axis2.transport.http.HTTPSender
sendViaPost
INFO: Unable to sendViaPost to url[
http://localhost:9000/services/SimpleStockQuoteService]
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
at
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:622)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
at
org.wso2.esb.integration.common.utils.clients.stockquoteclient.StockQuoteClient.sendSimpleStockQuoteRequest(StockQuoteClient.java:68)
 

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

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


Re: [Dev] [ESB][SecureClient][Axis2Fault] Must Understand check failed for header

2014-04-17 Thread Suresh Attanayaka
Hi Prasad,

What is the security scenario/policy you are trying here ? How have you
secured the service ?

Thanks,
-Suresh


On Thu, Apr 17, 2014 at 4:58 PM, Prasad Fernando pras...@wso2.com wrote:

 Hi,

 I am getting the following error when I connect my secure client to the
 esb secure proxy service.

 *ON ESB*
 org.apache.axis2.AxisFault: General security error (No certificates were
 found for decryption (KeyId))
  at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
  at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
  at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
  at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
  at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 Caused by: org.apache.ws.security.WSSecurityException: General security
 error (No certificates were found for decryption (KeyId))
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:253)
  at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95)
  at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
 at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249)
  at org.apache.rampart.RampartEngine.process(RampartEngine.java:214)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
  ... 10 more
 [2014-04-17 16:44:34,101] ERROR - ServerWorker Error processing POST
 request for : /services/SecureOrderService
 org.apache.axis2.AxisFault: General security error (No certificates were
 found for decryption (KeyId))
 at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
  at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
  at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
  at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
  at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  at java.lang.Thread.run(Thread.java:744)
 Caused by: org.apache.ws.security.WSSecurityException: General security
 error (No certificates were found for decryption (KeyId))
  at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:253)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119)
  at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95)
 at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
  at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249)
 at org.apache.rampart.RampartEngine.process(RampartEngine.java:214)
  at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)

 *ON Client*
 org.apache.axis2.AxisFault: Must Understand check failed for header
 http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd:
  Security
  at
 org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:105)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:171)
  at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
  at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
  at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)
 at
 

Re: [Dev] EMM OAuth Implementation - Android - Storing Consumer Secret

2014-04-17 Thread Suresh Attanayaka
Hi,

We can use Dynamic Client Registration[1] to get a ClientKey and a
ClientSecrete. The advantage here is that different instances of the same
application will have different ClientKey and ClientSecrete. With this we
can identify each installation.

Dynamic Client Registration has a registration endpoint which requires an
initial token. The initial token can be obtained using basic
authentication, then the client can use that initial token to register
itself at the EMM and get the ClientKey + ClientSecrete.

Once the client has received the ClientKey and ClientSecrete, it should
store it securely.

[1]- http://openid.net/specs/openid-connect-registration-1_0.html




On Thu, Apr 17, 2014 at 2:52 PM, Harshan Liyanage hars...@wso2.com wrote:

 I think we could use a technique like *Image Steganography[[1]* to
 store consumer key/secret inside the application so it would be difficult
 to hack. For the image we can use something like application logo so it
 won't get much attention. On the otherhand we could modify the
 steganography algorithm and make it much more secure.

 [1]. http://en.wikipedia.org/wiki/Steganography

 Best Regards,

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.


 On Thu, Apr 17, 2014 at 2:21 PM, Chathura Dilan chathu...@wso2.comwrote:

 if it is unique to the app, there could be another security issue.
 Someone can get our source and authenticate himself with his app, and they
 are able to download the key from the server.


 On Thu, Apr 17, 2014 at 2:12 PM, Chathura Dilan chathu...@wso2.comwrote:

 Is consumer/secret key unique to a user or is it unique to the app?


 On Thu, Apr 17, 2014 at 12:20 PM, Chan duli...@wso2.com wrote:

 +1 to the idea since basic auth will be first used to obtain the
 consumer secret. But we might have to change the flow from how it usually
 work.

 Cheers~


 On Thu, Apr 17, 2014 at 12:17 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 Hi All,

 We're going to protect all the API calls from EMM client side using
 OAuth.

 I have a concern whether to store the consumer key/secret inside the
 EMM Agent Application or making it dynamic. We can actually send those 2
 when the user authenticates from the mobile client (As the response), and
 then we can store it inside a private preference (Which is application
 private).

 I see this as the safest way because keeping it hardcoded in the
 source or a file might be extremely easy to hack. So WDYT?

 Regards,
 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 777 997 850
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*



 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 777 997 850
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 Chan (Dulitha Wijewantha)
 Software Engineer - Mobile Development
 WSO2Mobile
 Lean.Enterprise.Mobileware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*
 *  ~Website   dulitha.me http://dulitha.me*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*
   *~Github @dulichan https://github.com/dulichan*
   *~SO @chan http://stackoverflow.com/users/813471/chan*




 --
 Regards,

 Chatura Dilan Perera
 *(Senior Software Engineer - WSO2 Inc.)*
 www.dilan.me




 --
 Regards,

 Chatura Dilan Perera
 *(Senior Software Engineer - WSO2 Inc.)*
 www.dilan.me



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




-- 
Suresh Attanayake
Senior Software Engineer; WSO2 Inc. http://wso2.com/
Blog : http://sureshatt.blogspot.com/
Web : http://www.ssoarcade.com/
Facebook : https://www.facebook.com/IdentityWorld
Twitter : https://twitter.com/sureshatt
LinkedIn : http://lk.linkedin.com/in/sureshatt
Mobile : +94755012060
Mobile : +016166171172
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EIP Guide - Message Expiration example scenario is not working.

2014-04-17 Thread Chathurika Mahaarachchi
I also got the same issue when running the above sample and used [1] to
correct the proxy service

@ Nirdesha : Could you please update the EIP guide accordingly


[1]
http://charithaka.blogspot.com/2014/02/common-mistakes-to-avoid-in-wso2-esb-1.html


On Thu, Apr 17, 2014 at 5:23 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Sajini,
 According to [1] this error cause due to having below configuration in the
 synapse xml.

  inSequence
 * send/*
  /inSequence


 The error cab be avoided by adding endpoint inside send mediator as
 follows.

  inSequence
  *send
endpoint name=TimeoutEndpoint
   address 
 uri=http://localhost:9000/services/SimpleStockQuoteService 
 http://localhost:9000/services/SimpleStockQuoteService
  timeout
 duration8000/duration
 responseActionfault/responseAction
  /timeout
   /address
/endpoint
 /send*
  /inSequence

 Seems worked fine for me.

 If one from ESB team can confirm this as the solution then document needs
 to be updated.

 [1]-
 http://charithaka.blogspot.com/2014/02/common-mistakes-to-avoid-in-wso2-esb-1.html

 Thanks,
 Harsha

 On Thu, Apr 17, 2014 at 4:42 PM, Sajini De Silva saj...@wso2.com wrote:

 Hi,

 I tried out example scenario in [1] and it gave me the following error.

 [2014-04-17 16:40:13,395] ERROR - ClientUtils The system cannot infer the
 transport information from the /services/MessageExpirationProxy URL.
 [2014-04-17 16:40:13,396] ERROR - Axis2Sender Unexpected error during
 sending message out
 org.apache.axis2.AxisFault: The system cannot infer the transport
 information from the /services/MessageExpirationProxy URL.
 at
 org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:81)
 at
 org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:115)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:482)
 at
 org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:59)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:338)
 at
 org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:94)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
 at
 org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:166)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:662)

 What could be the issue here?


 [1]https://docs.wso2.org/display/IntegrationPatterns/Message+Expiration

 Thank you
 Sajini.
 --
 Sajini De SIlva
 Software Engineer; WSO2 Inc.; http://wso2.com ,
 Email: saj...@wso2.com
 Blog: http://sajinid.blogspot.com/
 Git hub profile: https://github.com/sajinidesilva


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




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com

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




-- 
*Chathurika Mahaarachchi*
Software Engineer, QA.
WSO2 Inc.: http://wso2.com/
lean.enterprise.middleware
Mobile: +94718223950
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EMM OAuth Implementation - Android - Storing Consumer Secret

2014-04-17 Thread Gayan Gunawardana
Hi,

+1 for dynamic client generation.

This is what we have discussed in several meetings.

If time permit I can have a look at the spec and do the implementation.
This will be an ideal solution for most of security holes.



On Thu, Apr 17, 2014 at 5:41 PM, Suresh Attanayaka sur...@wso2.com wrote:

 Hi,

 We can use Dynamic Client Registration[1] to get a ClientKey and a
 ClientSecrete. The advantage here is that different instances of the same
 application will have different ClientKey and ClientSecrete. With this we
 can identify each installation.

 Dynamic Client Registration has a registration endpoint which requires an
 initial token. The initial token can be obtained using basic
 authentication, then the client can use that initial token to register
 itself at the EMM and get the ClientKey + ClientSecrete.

 Once the client has received the ClientKey and ClientSecrete, it should
 store it securely.

 [1]- http://openid.net/specs/openid-connect-registration-1_0.html




 On Thu, Apr 17, 2014 at 2:52 PM, Harshan Liyanage hars...@wso2.comwrote:

 I think we could use a technique like *Image Steganography[[1]* to
 store consumer key/secret inside the application so it would be difficult
 to hack. For the image we can use something like application logo so it
 won't get much attention. On the otherhand we could modify the
 steganography algorithm and make it much more secure.

 [1]. http://en.wikipedia.org/wiki/Steganography

 Best Regards,

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.


 On Thu, Apr 17, 2014 at 2:21 PM, Chathura Dilan chathu...@wso2.comwrote:

 if it is unique to the app, there could be another security issue.
 Someone can get our source and authenticate himself with his app, and they
 are able to download the key from the server.


 On Thu, Apr 17, 2014 at 2:12 PM, Chathura Dilan chathu...@wso2.comwrote:

 Is consumer/secret key unique to a user or is it unique to the app?


 On Thu, Apr 17, 2014 at 12:20 PM, Chan duli...@wso2.com wrote:

 +1 to the idea since basic auth will be first used to obtain the
 consumer secret. But we might have to change the flow from how it usually
 work.

 Cheers~


 On Thu, Apr 17, 2014 at 12:17 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 Hi All,

 We're going to protect all the API calls from EMM client side using
 OAuth.

 I have a concern whether to store the consumer key/secret inside the
 EMM Agent Application or making it dynamic. We can actually send those 2
 when the user authenticates from the mobile client (As the response), and
 then we can store it inside a private preference (Which is application
 private).

 I see this as the safest way because keeping it hardcoded in the
 source or a file might be extremely easy to hack. So WDYT?

 Regards,
 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 777 997 850
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*



 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 777 997 850
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 Chan (Dulitha Wijewantha)
 Software Engineer - Mobile Development
 WSO2Mobile
 Lean.Enterprise.Mobileware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*
 *  ~Website   dulitha.me http://dulitha.me*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*
   *~Github @dulichan https://github.com/dulichan*
   *~SO @chan http://stackoverflow.com/users/813471/chan*




 --
 Regards,

 Chatura Dilan Perera
 *(Senior Software Engineer - WSO2 Inc.)*
 www.dilan.me




 --
 Regards,

 Chatura Dilan Perera
 *(Senior Software Engineer - WSO2 Inc.)*
 www.dilan.me



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




 --
 Suresh Attanayake
 Senior Software Engineer; WSO2 Inc. http://wso2.com/
 Blog : http://sureshatt.blogspot.com/
 Web : http://www.ssoarcade.com/
 Facebook : https://www.facebook.com/IdentityWorld
 Twitter : https://twitter.com/sureshatt
 LinkedIn : http://lk.linkedin.com/in/sureshatt
 Mobile : +94755012060
 Mobile : +016166171172

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




-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
Blog: http://gayanj2ee.blogspot.com/
___

Re: [Dev] [Data-mapper] Maintain an avro schema object model

2014-04-17 Thread Lali Devamanthri
Hi GayanK,


On Thu, Apr 17, 2014 at 4:27 PM, Gayan Yalpathwala gay...@wso2.com wrote:

 Hi,

 I am in the process of implementing the tool to build input and output
 schema of data-mapper visual editor. Here I need to maintain an object
 model of type org.apache.avro.Schema where it should be accessible by an
 array of action classes which reside in
 org.wso2.developerstudio.visualdatamapper.diagram package. This model
 should reflect input and ouptut avro schemas and should be modified by
 above different action classes. Would it be a better idea to maintain a
 variable of the above type, local to DataMapperMultiPageEditor for this
 purpose?


No, DataMapperMultiPageEditor is for handle switching between graphical
editor and source editor in data mapper project. Considering your
requirements, its not a good idea to use DataMapperMultiPageEditor class
for keeping object model.

Thanks,
Lali


 Thanks,

 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/

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




-- 
*Lali Sudaththa Devamanthri*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 895 4922
http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Data-mapper] Maintain an avro schema object model

2014-04-17 Thread Jasintha Dasanayake
Please have a look in the ESB graphical editor, there we have maintained
the synapse model for a particular mediator, similarly you have to maintain
the Avro schema model here

Thanks
/Jasintha


On Thu, Apr 17, 2014 at 6:05 PM, Lali Devamanthri l...@wso2.com wrote:

 Hi GayanK,


 On Thu, Apr 17, 2014 at 4:27 PM, Gayan Yalpathwala gay...@wso2.comwrote:

 Hi,

 I am in the process of implementing the tool to build input and output
 schema of data-mapper visual editor. Here I need to maintain an object
 model of type org.apache.avro.Schema where it should be accessible by an
 array of action classes which reside in
 org.wso2.developerstudio.visualdatamapper.diagram package. This model
 should reflect input and ouptut avro schemas and should be modified by
 above different action classes. Would it be a better idea to maintain a
 variable of the above type, local to DataMapperMultiPageEditor for this
 purpose?


 No, DataMapperMultiPageEditor is for handle switching between graphical
 editor and source editor in data mapper project. Considering your
 requirements, its not a good idea to use DataMapperMultiPageEditor class
 for keeping object model.

 Thanks,
 Lali


 Thanks,

 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/

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




 --
 *Lali Sudaththa Devamanthri*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 895 4922
 http://www.wso2.com

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




-- 

*Jasintha Dasanayake*

*Software EngineerWSO2 Inc. | http://wso2.com http://wso2.com/lean .
enterprise . middleware*


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


Re: [Dev] [Data-mapper] Maintain an avro schema object model

2014-04-17 Thread Gayan Yalpathwala
Hi Jasintha,


On Thu, Apr 17, 2014 at 6:11 PM, Jasintha Dasanayake jasin...@wso2.comwrote:


 Please have a look in the ESB graphical editor, there we have maintained
 the synapse model for a particular mediator, similarly you have to maintain
 the Avro schema model here


I have referred TaskTransformer class where it transforms the ecore model
to respective synapse model during serialization time. IMO, We can use a
similar approach to transform the ecore model to respective avro model when
saving the diagram. WDYT?


 Thanks
 /Jasintha


 On Thu, Apr 17, 2014 at 6:05 PM, Lali Devamanthri l...@wso2.com wrote:

 Hi GayanK,


 On Thu, Apr 17, 2014 at 4:27 PM, Gayan Yalpathwala gay...@wso2.comwrote:

 Hi,

 I am in the process of implementing the tool to build input and output
 schema of data-mapper visual editor. Here I need to maintain an object
 model of type org.apache.avro.Schema where it should be accessible by an
 array of action classes which reside in
 org.wso2.developerstudio.visualdatamapper.diagram package. This model
 should reflect input and ouptut avro schemas and should be modified by
 above different action classes. Would it be a better idea to maintain a
 variable of the above type, local to DataMapperMultiPageEditor for this
 purpose?


 No, DataMapperMultiPageEditor is for handle switching between graphical
 editor and source editor in data mapper project. Considering your
 requirements, its not a good idea to use DataMapperMultiPageEditor class
 for keeping object model.

 Thanks,
 Lali


 Thanks,

 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.com/

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




 --
 *Lali Sudaththa Devamanthri*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 895 4922
  http://www.wso2.com

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




 --

 *Jasintha Dasanayake *


 *Software EngineerWSO2 Inc. | http://wso2.com http://wso2.com/ lean .
 enterprise . middleware*


 *mobile :- 0711368118*



Thanks,

-- 
*Gayan Kaushalya Yalpathwala*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 71 8682704 http://asia14.wso2con.com/

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


[Dev] Aggregate operations support for life cycles

2014-04-17 Thread Maheshakya Wijewardena
Hi,
This is a basic description about the proposed design of the new feature in
Governance registry(mentioned in the subject).
A separate API will be provided in the Governance API to create a batch and
perform other batch operations. This API contains following components.

   1. An interface: BatchValidate: This provides a common interface to
   implement custom validation classes according the user requirement. This
   contains a validate method.
   2. Aggregate operations manager: this contains following methods.


   - createBatch(String[] paths, String batchID, *validation parameters ):
   This uses an OSGi service tracker to determine the appropriate OSGi service
   created with the implementation of the above interface to validate the
   batch of resources.
   - invokeCheckItem(String batchID, String action, MapString,String
   parameterMap): This will validate the batch using the same method in order
   to ensure that properties of batch resources have not been changed. Then it
   will perform the operation. If any of the resources fail during the
   process, the entire batch operation will fail.
   - invokeStateTransition(String batchID, String action): This acts
   similar to the above method.

Custom validations will be in Registry extensions. They will implement the
above mentioned interface and will be created as OSGi services. Some of the
validation criteria can be as follows:

   - LC state should be same
   - Checklist item values should be same, etc.

Service tracker will select the corresponding validator.

There is a slight issue regarding the life cycles which involve transition
UIs. These are operated at the UI level for individual resources. So when a
batch is considered, this concept is not applicable. Hence, the temporary
solution for this issue is to fail the validation if the life cycle
involves Transition UIs.

Note: This is tentative plan

Best regards,
-- 
Maheshakya Wijewardena,
Software Engineering Intern.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Exception in axis2server started inside ESB-4.9.0

2014-04-17 Thread Malintha Adikari
Hi Nuwan,

Yes there was conflicts between httpcore dependencies coming from jmeter
dependency with our httpcore dependencies. Removed jmeter dependencies(as
an temporary fix) and now it is running with no issues. Thank you for your
help.

Regards,
Malintha Adikari


On Thu, Apr 17, 2014 at 5:53 PM, Nuwan Wimalasekara nuw...@wso2.com wrote:

 Hi Malintha,
 This might be due to the having multiple httpcore dependencies in client
 side. Please check the httpcore dependency versions and exclude other
 versions from client side. and also , better to check in server 
 side(components/plugins)
 as well, whether httpcore is duplicated with multiple versions.

 Thanks,
 Nuwanw


 On Thu, Apr 17, 2014 at 5:01 PM, Malintha Adikari malin...@wso2.comwrote:

 Hi,

 I got following exception when I am trying to send a request to an axis2
 server which was started programitically inside ESB-4.9.0- for testing
 purposes (to provide a backend for tests). Is this due to any version
 incompatibilities in ESB-4.9.0 dependencies ?

 Exception in thread HTTP Listener I/O dispatcher-1
 java.lang.NoSuchMethodError:
 org.apache.http.params.HttpProtocolParams.getMalformedInputAction(Lorg/apache/http/params/HttpParams;)Ljava/nio/charset/CodingErrorAction;
 at
 org.apache.http.impl.nio.reactor.SessionInputBufferImpl.init(SessionInputBufferImpl.java:78)
 at
 org.apache.http.impl.nio.NHttpConnectionBase.init(NHttpConnectionBase.java:146)
 at
 org.apache.http.impl.nio.DefaultNHttpServerConnection.init(DefaultNHttpServerConnection.java:93)
 at
 org.apache.synapse.transport.http.conn.LoggingNHttpServerConnection.init(LoggingNHttpServerConnection.java:64)
 at
 org.apache.synapse.transport.http.conn.LoggingUtils.createServerConnection(LoggingUtils.java:73)
 at
 org.apache.synapse.transport.http.conn.ServerConnFactory.createConnection(ServerConnFactory.java:90)
 at
 org.apache.synapse.transport.nhttp.ServerIODispatch.createConnection(ServerIODispatch.java:58)
 at
 org.apache.synapse.transport.nhttp.ServerIODispatch.createConnection(ServerIODispatch.java:39)
 at
 org.apache.http.impl.nio.reactor.AbstractIODispatch.connected(AbstractIODispatch.java:72)
 at
 org.apache.http.impl.nio.reactor.BaseIOReactor.sessionCreated(BaseIOReactor.java:242)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.processNewChannels(AbstractIOReactor.java:427)
 at
 org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:291)
 Apr 17, 2014 4:39:56 PM org.apache.axis2.transport.http.HTTPSender
 sendViaPost
 INFO: Unable to sendViaPost to url[
 http://localhost:9000/services/SimpleStockQuoteService]
 java.net.SocketException: Connection reset
 at java.net.SocketInputStream.read(SocketInputStream.java:168)
 at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
 at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
 at
 org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
 at
 org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
 at
 org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
 at
 org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
 at
 org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
 at
 org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
 at
 org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
 at
 org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
 at
 org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
 at
 org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
 at
 org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:622)
 at
 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
 at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
 at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
 at
 

Re: [Dev] [DS]Multiple HTTP verbs on same resource path in DSS

2014-04-17 Thread Charitha Kankanamge
Thanks for the confirmation Anjana. When comparing to ESB REST API
definition, this seems to be a valid/natural requirement. If you guys
believe so, better to consider this improvement for a future release.

Charitha Kankanamge
cell: +1 812-391-7730
http://charithaka.blogspot.com
*SOA and Testing without nonsense*


On Thu, Apr 17, 2014 at 2:07 AM, Anjana Fernando anj...@wso2.com wrote:

 Hi Charitha,

 Yeah, we do not support it like that at the moment.

 Cheers,
 Anjana.


 On Thu, Apr 17, 2014 at 2:12 AM, Charitha Kankanamge chari...@wso2.comwrote:

 H
 ​i Anjana/DS team,
  Do we support defining multiple HTTP verbs on same resource path in
 DSS?

 e.g:-

 resource path=uri-template *method=GET POST* disableStreaming=
 xs:BOOLEAN
 descriptionxs:string/description
 call-query href=xs:IDREF  /
 with-param name=xs:NMTOKEN /
 query?
 /call-query
 /resource

 According to [1], it seems we do not support (I just tried with 3.1.1 and
 confirmed)

 [1]https://docs.wso2.org/display/DSS300/Data+Services+and+Resources

 Thanks!
 Charitha
 ​




 --
 *Anjana Fernando*
 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] [Architecture][ANN] WSO2 Complex Event Processor (WSO2 CEP) 3.1.0 Released

2014-04-17 Thread Lasantha Fernando
WSO2 Complex Event Processor (WSO2 CEP) 3.1.0 Released!
*April 2014*

The WSO2 CEP team is pleased to announce the release of version 3.1.0 of
Open Source WSO2 Complex Event Processor.

WSO2 CEP is a lightweight and easy-to-use Open Source Complex Event
Processing Server (CEP) is available under the Apache Software License
v2.0. WSO2 Complex Event Processor identifies the most meaningful events
within the event cloud, analyzes their impact, and acts on them in real
time. Its built to be extremely high performing and massively scalable.

This is based on the revolutionary WSO2 Carbon
platformhttp://wso2.org/projects/carbon,
which is based on the OSGi framework to achieve better modularity for your
Service Oriented Architecture (SOA). This version of the release delivers
to you a new and enhanced user experience along with a numerous new
features, improvements and bug fixes. You may also add or remove many other
optional features to customize the behavior of the server by using the
underlying provisioning framework of Carbon. In other words, CEP can be
customized to your specific SOA needs with minimum hassle.

WSO2 Complex Event Processor is shipped with Siddhi, which is a Complex
Event processing Engine developed by WSO2 engineers to achieve very high
performance and massive scalability.

An open source product, WSO2 Complex Event Processor is available
under the Apache
Software License (v2.0) http://www.apache.org/licenses/LICENSE-2.0.html.
This product includes all of the extra integration and management
functionality as well.

For more information on WSO2 Complex Event Processor, please visit
http://wso2.com/products/complex-event-processor/. You can also look at our
 online product
documentationhttp://docs.wso2.org/display/CEP310/WSO2+Complex+Event+Processor+Documentation
.
*Key Features*

   - Support Multiple Input Event Adaptor Types - WSO2 CEP supports
   WSO2Event, SOAP, HTTP, JMS, Email, File, Kafka input adaptor types
   - Support Multiple Output Event Adaptor Types - WSO2 CEP supports
   WSO2Event, SOAP, HTTP, JMS, Email, SMS, Logger, Kafka, MySQL, Cassandra
   output adaptor types
- Support for multiple event formats such as XML, JSON, Map, Text 
   WSO2Event
   - Siddhi Query Partitioning
- Siddhi Event Tables to use historical data within real time processing
   - High Availability Deployment
- Output rate limiting support for Siddhi
   - Monitoring Support - WSO2 CEP supports system, per execution plan/per
   deployment artifact monitoring.
   - Tracing Support - WSO2 CEP supports tracing a message at multiple
   stages of the event flow.
   - Event Flow Support - WSO2 CEP supports visualizing the event flow
   within the system.
   - Event Simulator - WSO2 CEP supports an easy gui to send sample events
   to test the event flow.
   - Sample framework for CEP
   - Easily Integrates with Enterprise System - by RESTful HTTP protocol
   with JSON, JMS MAP/XML/Text messages, SOAP and Email
   - Support for Long Duration Queries - Supports periodic snapshots to a
   scalable persistence store (Apache Cassandra).
   - Tightly Integrates with WSO2 Business Activity Monitor - for recording
   and post processing of events with Map-Reduce via Apache Hadoop.
   - Realtime Dashboard using WSO2 User Engagement Server
   - Siddhi Extensions
   - Event Adaptor Extension
   - Configuration based class loading mechanism for Siddhi
   - Arbitrary key values pair support for WSO2 Events

*New Features In This Release*

   - High Availability and Fail-Over for WSO2 CEP
   - Improve performance for thrift events
   - Implement Passthrough Feature for all components
   - Gadget gen tool to create gadgets for CEP dashboard
   - Input Event Adaptor - File Tail Reader
- Output Event Adaptor to log events on the screen
   - HTTP input event adaptor
   - Configurable cache sizes for siddhi event table caches
   - Support small Batch within Sliding Windows
   - Event Flow Visualizer
   - Event Simulator

*Issues Fixed for this Release*

   - Issues fixed for this version of WSO2 CEP can be found at CEP 3.1.0
   Fixed Issues https://wso2.org/jira/issues/?filter=11767



Project Resources

   - *Home page : *http://wso2.com/products/complex-event-processor/
   - *Documentation : *http://docs.wso2.org/complex-event-processor
   - *Library : *http://wso2.com/library/
   - *JIRA-Issue Tracker : *https://wso2.org/jira/browse/CEP

Installation and Running

   1. Extract the downloaded zip file
   2. Run the wso2server.sh or wso2server.bat file in the /bin directory
   3. Once the server starts, point your Web browser to
   https://localhost:9443/carbon/
   4. For more information, see the Installation Guide:
   *Locally : *INSTALL.txt
   *On the web : *http://docs.wso2.org/display/CEP310/Installing+the+Product



Known Issues
Known issues for this release can be viewed at CEP-3.1.0 Known
Issueshttps://wso2.org/jira/issues/?filter=11768
Reporting ProblemsIssues can be reported using the public JIRA available 

[Dev] ESB Sample 255 fails when trying to connect to FTP server

2014-04-17 Thread Buddhima Wijeweera
Hi,

I was trying to run sample no 255 with local FTP server (vsftpd).

I have done the following configurations in the vsftpd.conf file:
1. Enable annonymous FTP by changing to :
anonymous_enable=YES

2. Enable write:
write_enable=YES

I kept other configurations as it was.

Through web browser, I can access /srv/ftp folder via url: *ftp://localhost/
ftp://localhost/*

In sample 255, I changed synapse configuration's FileUri as follows:
*parameter name=transport.vfs.FileURIvfs:ftp://127.0.0.1/
ftp://127.0.0.1//parameter*

After starting ESB with that configuration, I'm getting the following error
periodically:

*VFSUtils Cannot get the lock for the file *

I would appreciate, if someone can provide a solution for this.

Thank You!

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


Re: [Dev] Migration scripts for API-M 1.6.0 to 1.7.0

2014-04-17 Thread Nuwan Dias
Hi Nirodha,

This is still not done. We have a list maintained to identify what needs to
be migrated, quite a long list actually :). But work has not been initiated
on the migration script. Will let you know once done.

Thanks,
NuwanD.


On Thu, Apr 17, 2014 at 11:41 AM, Nirodha Pramod niro...@wso2.com wrote:

 Ping!! On the $subject.


 On Thu, Apr 10, 2014 at 11:37 AM, Nirodha Pramod niro...@wso2.com wrote:

 Hi,

 Do we have the $subject ready?

 regards,
 Nirodha

 --

 *Nirodha Gallage*
 Senior Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94716429078




 --

 *Nirodha Gallage*
 Senior Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 Mobile: +94716429078




-- 
Nuwan Dias

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


Re: [Dev] ESB Sample 255 fails when trying to connect to FTP server

2014-04-17 Thread Malaka Silva
Hi,

Trying adding the following.

parameter name=transport.vfs.Lockingdisable/parameter

Best Regards,
Malaka


On Thu, Apr 17, 2014 at 7:32 PM, Buddhima Wijeweera buddh...@wso2.comwrote:

 Hi,

 I was trying to run sample no 255 with local FTP server (vsftpd).

 I have done the following configurations in the vsftpd.conf file:
 1. Enable annonymous FTP by changing to :
 anonymous_enable=YES

 2. Enable write:
 write_enable=YES

 I kept other configurations as it was.

 Through web browser, I can access /srv/ftp folder via url: *ftp://localhost/
 ftp://localhost/*

 In sample 255, I changed synapse configuration's FileUri as follows:
 *parameter name=transport.vfs.FileURIvfs:ftp://127.0.0.1/
 ftp://127.0.0.1//parameter*

 After starting ESB with that configuration, I'm getting the following
 error periodically:

 *VFSUtils Cannot get the lock for the file *

 I would appreciate, if someone can provide a solution for this.

 Thank You!

 Buddhima Wijeweera

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




-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/http://wso2.com/about/team/malaka-silva/

Save a tree -Conserve nature  Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EIP Guide - Message Expiration example scenario is not working.

2014-04-17 Thread Chanaka Fernando
Hi Sajini/Chathurika,

This error occurred due to the invalid configuration in the proxy service
as pointed out by Harsha in the previous reply. What happened here was that
we are using a send/ mediator in the inSequence without specifying the
actual endpoint which the message needs to be sent. But in the target
section, we have already defined the actual endpoint. Resolution would be
to remove the send/ mediator from the inSequence. Final correct
configuration should be as follows.

definitions 
xmlns=http://ws.apache.org/ns/synapse;http://ws.apache.org/ns/synapse

proxy xmlns=http://ws.apache.org/ns/synapse;http://ws.apache.org/ns/synapse
name=MessageExpirationProxy transports=https,http statistics=disable
trace=disable startOnLoad=true
   target
  inSequence onError=LogAndDropMessageFault
 log level=full/
  /inSequence
  outSequence onError=fault
 log level=full/
 send/
  /outSequence
  endpoint name=TimeoutEndpoint
 address uri=
http://localhost:9000/services/SimpleStockQuoteService;http://localhost:9000/services/SimpleStockQuoteService

timeout
   duration3/duration
   responseActionfault/responseAction
/timeout
 /address
  /endpoint
   /target
   description/description
/proxy
sequence name=LogAndDropMessageFault
   log level=full
  property name=MESSAGE value=Executing default #34;fault#34;
sequence/
  property name=ERROR_CODE expression=get-property('ERROR_CODE')/
  property name=ERROR_MESSAGE expression=
get-property('ERROR_MESSAGE')/
   /log
   drop/
/sequence
/definitions

@Nirdesha: I have corrected the documentation link.

https://docs.wso2.org/display/IntegrationPatterns/Message+Expiration

Thanks,
Chanaka





On Thu, Apr 17, 2014 at 5:50 PM, Chathurika Mahaarachchi 
chathur...@wso2.com wrote:

 I also got the same issue when running the above sample and used [1] to
 correct the proxy service

 @ Nirdesha : Could you please update the EIP guide accordingly


 [1]
 http://charithaka.blogspot.com/2014/02/common-mistakes-to-avoid-in-wso2-esb-1.html


 On Thu, Apr 17, 2014 at 5:23 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Sajini,
 According to [1] this error cause due to having below configuration in
 the synapse xml.

  inSequence
 * send/*
  /inSequence


 The error cab be avoided by adding endpoint inside send mediator as
 follows.

  inSequence
  *send
endpoint name=TimeoutEndpoint
   address 
 uri=http://localhost:9000/services/SimpleStockQuoteService 
 http://localhost:9000/services/SimpleStockQuoteService
  timeout
 duration8000/duration
 responseActionfault/responseAction
  /timeout
   /address
/endpoint
 /send*
  /inSequence

 Seems worked fine for me.

 If one from ESB team can confirm this as the solution then document needs
 to be updated.

 [1]-
 http://charithaka.blogspot.com/2014/02/common-mistakes-to-avoid-in-wso2-esb-1.html

 Thanks,
 Harsha

 On Thu, Apr 17, 2014 at 4:42 PM, Sajini De Silva saj...@wso2.com wrote:

 Hi,

 I tried out example scenario in [1] and it gave me the following error.

 [2014-04-17 16:40:13,395] ERROR - ClientUtils The system cannot infer
 the transport information from the /services/MessageExpirationProxy URL.
 [2014-04-17 16:40:13,396] ERROR - Axis2Sender Unexpected error during
 sending message out
 org.apache.axis2.AxisFault: The system cannot infer the transport
 information from the /services/MessageExpirationProxy URL.
 at
 org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:81)
 at
 org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:115)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:482)
 at
 org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:59)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:338)
 at
 org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:94)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
 at
 org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:166)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
 

Re: [Dev] EMM OAuth Implementation - Android - Storing Consumer Secret

2014-04-17 Thread Kasun Dananjaya Delgolla
+1. I think this is the ideal way of doing that.


On Thu, Apr 17, 2014 at 5:57 PM, Gayan Gunawardana ga...@wso2.com wrote:

 Hi,

 +1 for dynamic client generation.

 This is what we have discussed in several meetings.

 If time permit I can have a look at the spec and do the implementation.
 This will be an ideal solution for most of security holes.



 On Thu, Apr 17, 2014 at 5:41 PM, Suresh Attanayaka sur...@wso2.comwrote:

 Hi,

 We can use Dynamic Client Registration[1] to get a ClientKey and a
 ClientSecrete. The advantage here is that different instances of the same
 application will have different ClientKey and ClientSecrete. With this we
 can identify each installation.

 Dynamic Client Registration has a registration endpoint which requires an
 initial token. The initial token can be obtained using basic
 authentication, then the client can use that initial token to register
 itself at the EMM and get the ClientKey + ClientSecrete.

 Once the client has received the ClientKey and ClientSecrete, it should
 store it securely.

 [1]- http://openid.net/specs/openid-connect-registration-1_0.html




 On Thu, Apr 17, 2014 at 2:52 PM, Harshan Liyanage hars...@wso2.comwrote:

 I think we could use a technique like *Image Steganography[[1]* to
 store consumer key/secret inside the application so it would be difficult
 to hack. For the image we can use something like application logo so it
 won't get much attention. On the otherhand we could modify the
 steganography algorithm and make it much more secure.

 [1]. http://en.wikipedia.org/wiki/Steganography

 Best Regards,

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.


 On Thu, Apr 17, 2014 at 2:21 PM, Chathura Dilan chathu...@wso2.comwrote:

 if it is unique to the app, there could be another security issue.
 Someone can get our source and authenticate himself with his app, and they
 are able to download the key from the server.


 On Thu, Apr 17, 2014 at 2:12 PM, Chathura Dilan chathu...@wso2.comwrote:

 Is consumer/secret key unique to a user or is it unique to the app?


 On Thu, Apr 17, 2014 at 12:20 PM, Chan duli...@wso2.com wrote:

 +1 to the idea since basic auth will be first used to obtain the
 consumer secret. But we might have to change the flow from how it usually
 work.

 Cheers~


 On Thu, Apr 17, 2014 at 12:17 PM, Kasun Dananjaya Delgolla 
 kas...@wso2.com wrote:

 Hi All,

 We're going to protect all the API calls from EMM client side using
 OAuth.

 I have a concern whether to store the consumer key/secret inside the
 EMM Agent Application or making it dynamic. We can actually send those 2
 when the user authenticates from the mobile client (As the response), 
 and
 then we can store it inside a private preference (Which is application
 private).

 I see this as the safest way because keeping it hardcoded in the
 source or a file might be extremely easy to hack. So WDYT?

 Regards,
 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 777 997 850
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*



 --
 Kasun Dananjaya Delgolla

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Tel:  +94 11 214 5345
 Fax: +94 11 2145300
 Mob: + 94 777 997 850
 Blog: http://kddcodingparadise.blogspot.com
 Linkedin: *http://lk.linkedin.com/in/kasundananjaya
 http://lk.linkedin.com/in/kasundananjaya*




 --
 Chan (Dulitha Wijewantha)
 Software Engineer - Mobile Development
 WSO2Mobile
 Lean.Enterprise.Mobileware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*
 *  ~Website   dulitha.me http://dulitha.me*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*
   *~Github @dulichan https://github.com/dulichan*
   *~SO @chan http://stackoverflow.com/users/813471/chan*




 --
 Regards,

 Chatura Dilan Perera
 *(Senior Software Engineer - WSO2 Inc.)*
 www.dilan.me




 --
 Regards,

 Chatura Dilan Perera
 *(Senior Software Engineer - WSO2 Inc.)*
 www.dilan.me



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




 --
 Suresh Attanayake
 Senior Software Engineer; WSO2 Inc. http://wso2.com/
 Blog : http://sureshatt.blogspot.com/
 Web : http://www.ssoarcade.com/
 Facebook : https://www.facebook.com/IdentityWorld
 Twitter : https://twitter.com/sureshatt
 LinkedIn : http://lk.linkedin.com/in/sureshatt
 Mobile : +94755012060
 Mobile : +016166171172

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




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

Re: [Dev] [DS]Multiple HTTP verbs on same resource path in DSS

2014-04-17 Thread Anjana Fernando
Yep, +1, will implement it for a future version, I've created a JIRA here
[1].

[1] https://wso2.org/jira/browse/DS-887

Cheers,
Anjana.


On Thu, Apr 17, 2014 at 7:05 PM, Charitha Kankanamge chari...@wso2.comwrote:

 Thanks for the confirmation Anjana. When comparing to ESB REST API
 definition, this seems to be a valid/natural requirement. If you guys
 believe so, better to consider this improvement for a future release.

 Charitha Kankanamge
 cell: +1 812-391-7730
 http://charithaka.blogspot.com
 *SOA and Testing without nonsense*


 On Thu, Apr 17, 2014 at 2:07 AM, Anjana Fernando anj...@wso2.com wrote:

 Hi Charitha,

 Yeah, we do not support it like that at the moment.

 Cheers,
 Anjana.


 On Thu, Apr 17, 2014 at 2:12 AM, Charitha Kankanamge 
 chari...@wso2.comwrote:

 H
 ​i Anjana/DS team,
  Do we support defining multiple HTTP verbs on same resource path in
 DSS?

 e.g:-

 resource path=uri-template *method=GET POST* disableStreaming=
 xs:BOOLEAN
 descriptionxs:string/description
 call-query href=xs:IDREF  /
 with-param name=xs:NMTOKEN /
 query?
 /call-query
 /resource

 According to [1], it seems we do not support (I just tried with 3.1.1
 and confirmed)

 [1]https://docs.wso2.org/display/DSS300/Data+Services+and+Resources

 Thanks!
 Charitha
 ​




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





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


Re: [Dev] Global cluster cache invalidation code review Notes

2014-04-17 Thread Subash Chaturanga
Hi Amal,
Let us know once the TODOs done in the code review except the JMS
alternative discussion.  One of G-Reg RD folk will assign on migrating
GReg cache invalidation to this pub sub impl.  I hope now your component is
in the kernel git repo.

Hi Azeez,Sagara
Once registry and user permission moved to this impl, it needs quite amount
of testing  on production aspects. Since this is almost a new feature and
this leads documentation change in all products (mounting/caching) I
believe we should not provide this as a patch for a customer unless it is
really required.








On Thu, Apr 17, 2014 at 10:37 AM, Amal Gunatilake am...@wso2.com wrote:

 Hi Sagara,

 As Azeez mentioned there is an interface at CarbonUtils named as
 CacheInvalidator. My component will implement this interface. We planned to
 have the interface at CarbonUtils because every product will need this
 service.

 Thank you   Best regards,

 *Amal Gunatilake*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware


 On Thu, Apr 17, 2014 at 6:03 AM, Afkham Azeez az...@wso2.com wrote:




 On Thu, Apr 17, 2014 at 12:33 AM, Sagara Gunathunga sag...@wso2.comwrote:




 On Wed, Apr 16, 2014 at 2:57 PM, Amal Gunatilake am...@wso2.com wrote:

 Hi All,

 Following updates has been discussed on $subject.

 1) Make the subscription auto subscribe once the jar bundle is
 present.
 2) Check on how to resubscribe if the server goes down and comes up
 3) If the sever goes down when a message receives check whether it
 queues the message and receive.
 4) jndi.properties file

- If the file is already present at conf directory then load the
settings but if the expecting parameters not found put error log and 
 show
the user needed parameters.
- If the file is not present then put the file to conf directory
and log a warning message

 5) It was discussed whether we are going to use AMPQ instead JMS. This
 has to be determined which I will open a separate thread for discussion.

 6) Generate UUID and do the message comparison to ignore own messages.

 7) Let the topic name configurable.

 Hi Amal,

 Have you define a clear API and separate it from JMS implementation ?
 IMO having a clear API is must thing for this feature as we may have to
 include some other implementations in future. I'm thinking about SNS based
 implementation for future where EC2 users have freedom to use native
 supported SNS based implementation effectively instead of bringing  and
 configuring another message broker into the deployment setup.


 There is an interface with a single method, and using JMS is just an
 implementation detail of Amal's component.


 Thanks !


 Please update the thread if there are any further updates.

  Thank you   Best regards,

 *Amal Gunatilake*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

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




 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com




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


 *Lean . Enterprise . Middleware*



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




-- 
Thanks
/subash

*Subash Chaturanga*
Senior Software Engineer :Integration TG; WSO2 Inc. http://wso2.com

email: sub...@wso2.com
blog:  http://subashsdm.blogspot.com/
twitter: @subash89
phone: +9477 2225922
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] jar File Source

2014-04-17 Thread Danushka Fernando
If you are writing a http client you need to point to keystores from your
code. We do it by setting up following System properties.
*javax.net.ssl.trustStore*

*javax.net.ssl.trustStorePassword*

*javax.net.ssl.keyStore*
*javax.net.ssl.keyStorePassword*

You can use following code to set those inside your client.

*System.setProperty(javax.net.ssl.trustStore, path to trust store);*
*System.setProperty(javax.net.ssl.trustStorePassword, trust store
password);*

*System.setProperty(javax.net.ssl.keyStore, path to keystore);*
*System.setProperty(javax.net.ssl.keyStorePassword, key store
password);*


Thanks  Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729


On Thu, Apr 17, 2014 at 1:26 PM, Haack, Heidi heidi.ha...@bankofamerica.com
 wrote:

  I am attempting to fix an error found with SSL Handshakes with some of
 our endpoints and sample requests, and to do so, I’m writing my own
 HttpClient class. However, there are some methods called from the original
 HttpClient class that I haven’t needed to edit. Do you have the source for
 these anywhere, so that I can access and pull from the original code for
 this class?



 Thank you,



 Heidi Haack

 Integration Architecture

 (980) 386-3586


  --
 This message, and any attachments, is for the intended recipient(s) only,
 may contain information that is privileged, confidential and/or proprietary
 and subject to important terms and conditions available at
 http://www.bankofamerica.com/emaildisclaimer. If you are not the intended
 recipient, please delete this message.

 ___
 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] List of WSO2 Startup Script Options

2014-04-17 Thread Jackie Wheeler
I've added the following note to [1], and we will add the same note to the
applicable product docs:

For additional options you can use with these startup commands, type
-helpafter the command, such as: sh
PRODUCT_HOME/bin/wso2server.sh -help

[1] https://docs.wso2.org/display/ESB481/Running+the+Product


On Tue, Apr 15, 2014 at 9:45 PM, Isuru Perera isu...@wso2.com wrote:

 Oh yes! I remember seeing these options somewhere.

 Even the README doesn't explain that we can get the list of options via
 -help.


 On Wed, Apr 16, 2014 at 9:27 AM, Vijayaratha Vijayasingam rat...@wso2.com
  wrote:

 BTW, the Readme in the bin folder contains the available commands.


 On 15 April 2014 19:14, Isuru Perera isu...@wso2.com wrote:

 Hi,

 It works!

 ./wso2server.sh -help

 I'm sorry I didn't try that earlier. I should have tried that as it's a
 common argument.

 Shall we document this, if it's not mentioned anywhere. I couldn't find
 this in Carbon docs.

 Thanks!

 Best Regards,


 On Wed, Apr 16, 2014 at 5:08 AM, Vijayaratha Vijayasingam 
 rat...@wso2.com wrote:

 try;?
 # wso2server.sh/bat -help


 On 15 April 2014 11:34, Isuru Perera isu...@wso2.com wrote:

 Yes. I know. My question was, why aren't we providing the list of
 supported options?


 On Wed, Apr 16, 2014 at 12:01 AM, Vanjikumaran Sivajothy 
 va...@wso2.com wrote:

 Some of listed options are working perfectly without any issues.



 On Tue, Apr 15, 2014 at 1:58 PM, Isuru Perera isu...@wso2.comwrote:

 Hi,

 Looks like we can't get the $subject by running wso2server.sh -h

 This has worked about 4 years back [1].

 Why it isn't working anymore? IMHO, it's good to see the list of
 options support by the startup script.

 Thanks!

 Best Regards,

 [1]
 http://rajikak.blogspot.com/2010/03/wso2-esb-start-up-script-options.html

 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha

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




 --
 Sivajothy Vanjikumaran
 *Senior Software Engineer*
 *Integration Technologies Team*
 *WSO2 Inc. http://wso2.com http://wso2.com/*
 *Mobile:(+94)777219209*
 *Mobile USA:**(+1)812-223-4546*
 [image: Facebook] https://www.facebook.com/vanjikumaran [image:
 Twitter] https://twitter.com/vanjikumaran [image: 
 LinkedIn]http://www.linkedin.com/pub/vanjikumaran-sivajothy/25/b31/293 
 [image:
 Blogger] http://vanjikumaran.blogspot.com/ [image: 
 SlideShare]http://www.slideshare.net/vanjikumaran

 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




 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha

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




 --
 -Ratha
 mobile: (+94)755906608




 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha




 --
 -Ratha
 mobile: (+94)755906608




 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware

 about.me/chrishantha

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




-- 
*Jackie Wheeler*
VP, Technical Content
WSO2, Inc.
Mobile: +1 510 725-2876
http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] StackOverflow Error in deployment after Tenant Unloading / Loading

2014-04-17 Thread Dunith Dhanushka
We were using Jaggery 0.9.0.ALPHA4_wso2v1 when this issue came across.
After that we upgraded Jaggery version to 0.9.0.ALPHA4_wso2v4. But the
issue is still there.

According to the offline chat I had with Ruchira, this could happen if CC
re-factoring is not perfomed for Jaggery.

Can somone from UES team look into this please?

Regards,
Dunith




On Thu, Apr 10, 2014 at 7:07 PM, Kishanthan Thangarajah kishant...@wso2.com
 wrote:

 This is probably due to there are some components/code-segments which are
 not re-factored the CarbonContext from jaggery webapp deployment side. Can
 we debug jaggery webapp deployer at #handleWebappDeployment method? Also
 what is the jaggery version here? Is that version is CC re-factored?


 On Thu, Apr 10, 2014 at 12:11 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi,

 There is an issue reported for BAM here [1], in a scenario when tenant is
 unloaded and loaded again, and when a Jaggery web app deployment happens, a
 call to
 org.wso2.carbon.context.internal.CarbonContextDataHolder.getCurrentCarbonContextHolder()
 seems to be called recursively indefinitely, which causes a
 StacKOverflowError. Can someone from the Carbon Core team please look into
 it.

 [1] https://wso2.org/jira/browse/BAM-1513

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




 --
 *Kishanthan Thangarajah*
 Senior Software Engineer,
 Platform Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan*

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




-- 
Regards,

Dunith Dhanushka,
Senior Software Engineer - BAM,
WSO2 Inc,

Mobile - +94 71 8615744
Blog - dunithd.wordpress.com http://blog.dunith.com
Twitter - @dunithd http://twitter.com/dunithd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB][SecureClient][Axis2Fault] Must Understand check failed for header

2014-04-17 Thread Prasad Fernando
hi,

I have secured the proxy service with the attached policy. Also attached
the source view of my secure proxy service.

thanks


On Thu, Apr 17, 2014 at 5:05 PM, Suresh Attanayaka sur...@wso2.com wrote:

 Hi Prasad,

 What is the security scenario/policy you are trying here ? How have you
 secured the service ?

 Thanks,
 -Suresh


 On Thu, Apr 17, 2014 at 4:58 PM, Prasad Fernando pras...@wso2.com wrote:

 Hi,

 I am getting the following error when I connect my secure client to the
 esb secure proxy service.

 *ON ESB*
 org.apache.axis2.AxisFault: General security error (No certificates were
 found for decryption (KeyId))
  at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
  at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
  at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
  at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
  at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:744)
 Caused by: org.apache.ws.security.WSSecurityException: General security
 error (No certificates were found for decryption (KeyId))
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:253)
  at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95)
  at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
 at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249)
  at org.apache.rampart.RampartEngine.process(RampartEngine.java:214)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
  ... 10 more
 [2014-04-17 16:44:34,101] ERROR - ServerWorker Error processing POST
 request for : /services/SecureOrderService
 org.apache.axis2.AxisFault: General security error (No certificates were
 found for decryption (KeyId))
 at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
  at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
  at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:411)
  at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
  at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  at java.lang.Thread.run(Thread.java:744)
 Caused by: org.apache.ws.security.WSSecurityException: General security
 error (No certificates were found for decryption (KeyId))
  at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:253)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119)
  at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95)
 at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
  at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249)
 at org.apache.rampart.RampartEngine.process(RampartEngine.java:214)
  at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)

 *ON Client*
 org.apache.axis2.AxisFault: Must Understand check failed for header
 http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd:
  Security
  at
 org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:105)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:171)
  at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
  at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
 at
 

[Dev] [IS][JSP] can not run travelocity.co example in IS 4.7.0

2014-04-17 Thread Waruna Perera
Hi,

I tried to run travelocity.com sso example with tomcat and it gives JSP
compilation error.

1) I built SSOAgent sample and deployed on tomcat
2) configured IS 4.7.0

and gives JSP compile error.

I have attached the error log herewith.

BR,

Waruna
Title: Apache Tomcat/7.0.28 - Error report
HTTP
 Status 500 - Unable to compile class for JSP: 

An error occurred at line: 36 in the jsp file: /home.jsp
SSOAgentSessionBean.AccessTokenResponseBean cannot be resolved to a type
33: String subject = null;
34: MapString, ListString openIdAttributes = null;
35: MapString, String samlSSOAttributes = null;
36: SSOAgentSessionBean.AccessTokenResponseBean 
accessTokenResponseBean = null;
37: 
38: if(session.getAttribute(SSOAgentConfigs.getSessionBeanName()) !=
 null){
39: if(((SSOAgentSessionBean)session.getAttribute(


An error occurred at line: 40 in the jsp file: /home.jsp
The method getOpenIDSessionBean() is undefined for the type 
SSOAgentSessionBean
37: 
38: if(session.getAttribute(SSOAgentConfigs.getSessionBeanName()) !=
 null){
39: if(((SSOAgentSessionBean)session.getAttribute(
40: 
SSOAgentConfigs.getSessionBeanName())).getOpenIDSessionBean() != null) {
41: claimedId = ((SSOAgentSessionBean)session.getAttribute(
42: 
SSOAgentConfigs.getSessionBeanName())).getOpenIDSessionBean().getClaimedId();
43:
 openIdAttributes = 
((SSOAgentSessionBean)session.getAttribute(


An error occurred at line: 42 in the jsp file: /home.jsp
The method getOpenIDSessionBean() is undefined for the type 
SSOAgentSessionBean
39: if(((SSOAgentSessionBean)session.getAttribute(
40: 
SSOAgentConfigs.getSessionBeanName())).getOpenIDSessionBean() != null) {
41: claimedId = ((SSOAgentSessionBean)session.getAttribute(
42: 
SSOAgentConfigs.getSessionBeanName())).getOpenIDSessionBean().getClaimedId();
43:
 openIdAttributes = 
((SSOAgentSessionBean)session.getAttribute(
44: 
SSOAgentConfigs.getSessionBeanName())).getOpenIDSessionBean().getOpenIdAttributes();
45:
 } else if(((SSOAgentSessionBean)session.getAttribute(


An error occurred at line: 44 in the jsp file: /home.jsp
The method getOpenIDSessionBean() is undefined for the type 
SSOAgentSessionBean
41: claimedId = ((SSOAgentSessionBean)session.getAttribute(
42: 
SSOAgentConfigs.getSessionBeanName())).getOpenIDSessionBean().getClaimedId();
43:
 openIdAttributes = 
((SSOAgentSessionBean)session.getAttribute(
44: 
SSOAgentConfigs.getSessionBeanName())).getOpenIDSessionBean().getOpenIdAttributes();
45:
 } else if(((SSOAgentSessionBean)session.getAttribute(
46: 
SSOAgentConfigs.getSessionBeanName())).getSAMLSSOSessionBean() != null) {
47: subject = ((SSOAgentSessionBean)session.getAttribute(


An error occurred at line: 46 in the jsp file: /home.jsp
The method getSAMLSSOSessionBean() is undefined for the type 
SSOAgentSessionBean
43: openIdAttributes = 
((SSOAgentSessionBean)session.getAttribute(
44: 
SSOAgentConfigs.getSessionBeanName())).getOpenIDSessionBean().getOpenIdAttributes();
45:
 } else if(((SSOAgentSessionBean)session.getAttribute(
46: 
SSOAgentConfigs.getSessionBeanName())).getSAMLSSOSessionBean() != null) {
47: subject = ((SSOAgentSessionBean)session.getAttribute(
48: 
SSOAgentConfigs.getSessionBeanName())).getSAMLSSOSessionBean().getSubjectId();
49:
 samlSSOAttributes = 
((SSOAgentSessionBean)session.getAttribute(


An error occurred at line: 48 in the jsp file: /home.jsp
The method getSAMLSSOSessionBean() is undefined for the type 
SSOAgentSessionBean
45: } else if(((SSOAgentSessionBean)session.getAttribute(
46: 
SSOAgentConfigs.getSessionBeanName())).getSAMLSSOSessionBean() != null) {
47: subject = ((SSOAgentSessionBean)session.getAttribute(
48: 
SSOAgentConfigs.getSessionBeanName())).getSAMLSSOSessionBean().getSubjectId();
49:
 samlSSOAttributes = 
((SSOAgentSessionBean)session.getAttribute(
50: 
SSOAgentConfigs.getSessionBeanName())).getSAMLSSOSessionBean().getSAMLSSOAttributes();
51:
 accessTokenResponseBean = ((SSOAgentSessionBean) 
session.getAttribute(


An error occurred at line: 50 in the jsp file: /home.jsp
The method getSAMLSSOSessionBean() is undefined for the type 
SSOAgentSessionBean
47: subject = ((SSOAgentSessionBean)session.getAttribute(
48: 
SSOAgentConfigs.getSessionBeanName())).getSAMLSSOSessionBean().getSubjectId();
49:
 samlSSOAttributes = 
((SSOAgentSessionBean)session.getAttribute(
50: 
SSOAgentConfigs.getSessionBeanName())).getSAMLSSOSessionBean().getSAMLSSOAttributes();
51:
 

Re: [Dev] EIP Guide - Message Expiration example scenario is not working.

2014-04-17 Thread Nirdesha Munasinghe
Thanks for fixing the doc, Chanaka.


On Thu, Apr 17, 2014 at 11:47 PM, Chathurika Mahaarachchi 
chathur...@wso2.com wrote:

 Thanks Chanaka for updating the document by adding correct configuration.

 Regards,
 Chathurika


 On Thu, Apr 17, 2014 at 8:07 PM, Chanaka Fernando chana...@wso2.comwrote:

 Hi Sajini/Chathurika,

 This error occurred due to the invalid configuration in the proxy service
 as pointed out by Harsha in the previous reply. What happened here was that
 we are using a send/ mediator in the inSequence without specifying the
 actual endpoint which the message needs to be sent. But in the target
 section, we have already defined the actual endpoint. Resolution would be
 to remove the send/ mediator from the inSequence. Final correct
 configuration should be as follows.

 definitions 
 xmlns=http://ws.apache.org/ns/synapse;http://ws.apache.org/ns/synapse
 
 proxy 
 xmlns=http://ws.apache.org/ns/synapse;http://ws.apache.org/ns/synapse
 name=MessageExpirationProxy transports=https,http statistics=
 disable trace=disable startOnLoad=true
target
   inSequence onError=LogAndDropMessageFault
  log level=full/
   /inSequence
   outSequence onError=fault
  log level=full/
  send/
   /outSequence
   endpoint name=TimeoutEndpoint
  address uri=
 http://localhost:9000/services/SimpleStockQuoteService;http://localhost:9000/services/SimpleStockQuoteService
 
 timeout
duration3/duration
 responseActionfault/responseAction
 /timeout
  /address
   /endpoint
/target
description/description
 /proxy
 sequence name=LogAndDropMessageFault
log level=full
   property name=MESSAGE value=Executing default #34;fault#34;
 sequence/
   property name=ERROR_CODE expression=get-property('ERROR_CODE')
 /
   property name=ERROR_MESSAGE expression=
 get-property('ERROR_MESSAGE')/
/log
drop/
 /sequence
 /definitions

 @Nirdesha: I have corrected the documentation link.

 https://docs.wso2.org/display/IntegrationPatterns/Message+Expiration

 Thanks,
 Chanaka





 On Thu, Apr 17, 2014 at 5:50 PM, Chathurika Mahaarachchi 
 chathur...@wso2.com wrote:

 I also got the same issue when running the above sample and used [1] to
 correct the proxy service

 @ Nirdesha : Could you please update the EIP guide accordingly


 [1]
 http://charithaka.blogspot.com/2014/02/common-mistakes-to-avoid-in-wso2-esb-1.html


 On Thu, Apr 17, 2014 at 5:23 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Sajini,
 According to [1] this error cause due to having below configuration in
 the synapse xml.

  inSequence
 * send/*
  /inSequence


 The error cab be avoided by adding endpoint inside send mediator as
 follows.

  inSequence
  *send
endpoint name=TimeoutEndpoint
   address 
 uri=http://localhost:9000/services/SimpleStockQuoteService 
 http://localhost:9000/services/SimpleStockQuoteService
  timeout
 duration8000/duration
 responseActionfault/responseAction
  /timeout
   /address
/endpoint
 /send*
  /inSequence

 Seems worked fine for me.

 If one from ESB team can confirm this as the solution then document
 needs to be updated.

 [1]-
 http://charithaka.blogspot.com/2014/02/common-mistakes-to-avoid-in-wso2-esb-1.html

 Thanks,
 Harsha

 On Thu, Apr 17, 2014 at 4:42 PM, Sajini De Silva saj...@wso2.comwrote:

 Hi,

 I tried out example scenario in [1] and it gave me the following
 error.

 [2014-04-17 16:40:13,395] ERROR - ClientUtils The system cannot infer
 the transport information from the /services/MessageExpirationProxy URL.
 [2014-04-17 16:40:13,396] ERROR - Axis2Sender Unexpected error during
 sending message out
 org.apache.axis2.AxisFault: The system cannot infer the transport
 information from the /services/MessageExpirationProxy URL.
 at
 org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:81)
 at
 org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:115)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:482)
 at
 org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:59)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:338)
 at
 org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:94)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
 at
 

[Dev] [ESB] Failed to locate the configure element for connector

2014-04-17 Thread Rushmin Fernando
Hi folks,

I'm writing some integration tests for an ESB connector for Apple Push
Notifications.

When I hit a proxy service with my connector mediator I get the following
error

Failed to locate the configure element for
connector [org.wso2.carbon.connector.apns.dispatchToDevice]

I put the test case thread to sleep and opened management console of the
the test ESB instance.

I saw that my connector was in 'disabled' status though I have enabled it
using the following code line in the test case.

adminServiceStub.updateStatus({org.wso2.carbon.connector} +
CONNECTOR_NAME, CONNECTOR_NAME, org.wso2.carbon.connector, enabled);

I enabled it from the management console before the test case thread
resumes.

Still I got the same error.

I can see all the connector configurations are in order, in the management
console.

Am I doing something wrong here ?



-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware

email : rush...@wso2.com
mobile : +94772310855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BRS testing

2014-04-17 Thread Shavantha Weerasinghe
Hi All

I have started with test case and also reported some jira for the current
pack given available within search criteria [1]. Currently am trying to
figure out how to integrate BPS and BRS. Pending is the integration
platform setup. By the way do we already have a mail thread for BRS210 ?



[1]project = BRS AND reporter =shavan...@wso2.com AND
affectedVersion=2.1.0

Regards,

Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300



On Wed, Apr 16, 2014 at 3:20 PM, Thilini Ishaka thil...@wso2.com wrote:

 Sure, hopefully tomorrow morning we can give a pack.

 Thanks
 Thilini


 On Wed, Apr 16, 2014 at 3:05 PM, Evanthika Amarasiri 
 evanth...@wso2.comwrote:

 Hi Thilini,

 Can we get a new pack with all the Kernal patches?

 ​- ​
 Evanthika


 On Wed, Apr 16, 2014 at 10:15 AM, Thilini Ishaka thil...@wso2.comwrote:

 Note this was done in a month back. Will provide a proper pack early
 next week :)


 https://svn.wso2.org/repos/wso2/people/thilini/releases/Business-Rules-Server-2.1.0/2014-03-11/wso2brs-2.1.0.zip

 This is a good article on writing a BRS sample
 http://wso2.com/library/articles/2013/05/eclipse-plugin-wso2-business-rules-server/

 Test migration is completed https://redmine.wso2.com/issues/2445

 Thanks
 Thilini


 --
  Thilini Ishaka
 Senior Software Engineer
  Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh





 --
 Thilini Ishaka
 Senior Software Engineer
 Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh

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


[Dev] EIP Guide - Scatter-Gather example scenario is not working

2014-04-17 Thread Sajini De Silva
Hi,

I tried out example scenario in [1] and the response i got in SoapUI is an
aggregation of all the quotes from all the vendors instead of the best
quote which is not the expected output.

Can someone please point out what is the issue here

Thank you,
Sajini.
-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Sample 255 fails when trying to connect to FTP server

2014-04-17 Thread Buddhima Wijeweera
Hi Malaka,

Thank you for the help. That solved the locking issue.
But, now I came across a new issue:

[2014-04-18 10:38:33,124] ERROR - VFSTransportListener Error moving file :
ftp://127.0.0.1/test.xml to file:///home/buddhima/wso2/esb/test/original
org.apache.commons.vfs2.FileSystemException: Could not delete 
ftp://127.0.0.1/test.xml;.
at
org.apache.commons.vfs2.provider.AbstractFileObject.deleteSelf(AbstractFileObject.java:849)
 at
org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1139)
at
org.apache.synapse.transport.vfs.VFSTransportListener.moveOrDeleteAfterProcessing(VFSTransportListener.java:463)
 at
org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:344)
at
org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:158)
 at
org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:107)
at
org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:67)
 at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not delete
FTP file ftp://127.0.0.1/test.xml;.
at
org.apache.commons.vfs2.provider.ftp.FtpFileObject.doDelete(FtpFileObject.java:487)
 at
org.apache.commons.vfs2.provider.AbstractFileObject.deleteSelf(AbstractFileObject.java:838)
... 10 more
[2014-04-18 10:38:33,125]  WARN - ConnectCallback Connection refused or
failed for : localhost/127.0.0.1:9000
[2014-04-18 10:38:33,125] ERROR - VFSTransportListener File object '
ftp://127.0.0.1/test.xml'cloud not be moved, will remain in locked state
org.apache.axis2.AxisFault: Error moving file : ftp://127.0.0.1/test.xml to
file:///home/buddhima/wso2/esb/test/original
at
org.apache.axis2.transport.base.AbstractTransportListener.handleException(AbstractTransportListener.java:343)
 at
org.apache.synapse.transport.vfs.VFSTransportListener.moveOrDeleteAfterProcessing(VFSTransportListener.java:465)
at
org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:344)
 at
org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:158)
at
org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:107)
 at
org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:67)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not delete 
ftp://127.0.0.1/test.xml;.
 at
org.apache.commons.vfs2.provider.AbstractFileObject.deleteSelf(AbstractFileObject.java:849)
at
org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1139)
 at
org.apache.synapse.transport.vfs.VFSTransportListener.moveOrDeleteAfterProcessing(VFSTransportListener.java:463)
... 8 more
Caused by: org.apache.commons.vfs2.FileSystemException: Could not delete
FTP file ftp://127.0.0.1/test.xml;.
at
org.apache.commons.vfs2.provider.ftp.FtpFileObject.doDelete(FtpFileObject.java:487)
 at
org.apache.commons.vfs2.provider.AbstractFileObject.deleteSelf(AbstractFileObject.java:838)
... 10 more
[2014-04-18 10:38:33,131]  WARN - EndpointContext Endpoint :
AnonymousEndpoint will be marked SUSPENDED as it failed


At there, it says can't delete file. Do I need to configure any additional
configuration for that (other than mentioned above) ?

Another problem I see is, how it decided a destination folder 
*file:///home/buddhima/wso2/esb/test/original*. I haven't mentioned it in
the synapse config (According to :
https://docs.wso2.org/display/ESB481/Sample+255%3A+Switching+from+FTP+Transport+Listener+to+Mail+Transport+Sender).
But that's the path I gave as transport.vfs.MoveAfterProcess in previous
sample (Sample no.254).


Thank You!


On Thu, Apr 17, 2014 at 7:56 PM, Malaka Silva mal...@wso2.com wrote:

 Hi,

 Trying adding the following.

 parameter name=transport.vfs.Lockingdisable/parameter

 Best Regards,
 Malaka


 On Thu, Apr 17, 2014 at 7:32 PM, Buddhima Wijeweera buddh...@wso2.comwrote:

 Hi,

 I was trying to run sample no 255 with local FTP server (vsftpd).

 I have done the following configurations in the vsftpd.conf file:
 1. Enable annonymous FTP by changing to :
 anonymous_enable=YES

 2. Enable write:
 write_enable=YES

 I kept other configurations as it was.

 Through web browser, I can access /srv/ftp folder via url: *ftp://localhost/
 

Re: [Dev] BRS testing

2014-04-17 Thread Thilini Ishaka
Hi Shavantha,

On Fri, Apr 18, 2014 at 10:47 AM, Shavantha Weerasinghe
shavan...@wso2.comwrote:

 Hi All

 I have started with test case and also reported some jira for the current
 pack given available within search criteria [1]. Currently am trying to
 figure out how to integrate BPS and BRS. Pending is the integration
 platform setup.

Try out a scenario similar to
http://wso2.com/library/articles/2011/05/integrate-business-rules-bpel/

Thanks
Thilini


 By the way do we already have a mail thread for BRS210 ?




 [1]project = BRS AND reporter =shavan...@wso2.com AND
 affectedVersion=2.1.0

 Regards,

 Shavantha Weerasinghe
 Senior Software Engineer QA
 WSO2, Inc.
 lean.enterprise.middleware.
 http://wso2.com
 http://wso2.org
 Tel : 94 11 214 5345
 Fax :94 11 2145300



 On Wed, Apr 16, 2014 at 3:20 PM, Thilini Ishaka thil...@wso2.com wrote:

 Sure, hopefully tomorrow morning we can give a pack.

 Thanks
 Thilini


 On Wed, Apr 16, 2014 at 3:05 PM, Evanthika Amarasiri 
 evanth...@wso2.comwrote:

 Hi Thilini,

 Can we get a new pack with all the Kernal patches?

 ​- ​
 Evanthika


 On Wed, Apr 16, 2014 at 10:15 AM, Thilini Ishaka thil...@wso2.comwrote:

 Note this was done in a month back. Will provide a proper pack early
 next week :)


 https://svn.wso2.org/repos/wso2/people/thilini/releases/Business-Rules-Server-2.1.0/2014-03-11/wso2brs-2.1.0.zip

 This is a good article on writing a BRS sample
 http://wso2.com/library/articles/2013/05/eclipse-plugin-wso2-business-rules-server/

 Test migration is completed https://redmine.wso2.com/issues/2445

 Thanks
 Thilini


 --
  Thilini Ishaka
 Senior Software Engineer
  Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh





 --
 Thilini Ishaka
 Senior Software Engineer
 Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh





-- 
Thilini Ishaka
Senior Software Engineer
Phone: +94 11 214 5345
WSO2 Inc. http://wso2.com

blog: thiliniishaka.blogspot.com
linkedin: http://lk.linkedin.com/in/thiliniishaka
twitter: https://twitter.com/#!/ThiliniIsh
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS][JSP] can not run travelocity.co example in IS 4.7.0

2014-04-17 Thread Johann Nallathamby
Please tried the packs hosts at [1]. These were also built from the samples
inside 4.7.0.

[1] https://svn.wso2.org/repos/wso2/people/johann/SSOAgentSampleBinaries/


On Fri, Apr 18, 2014 at 9:48 AM, Waruna Perera waru...@wso2.com wrote:

 Hi,

 I tried to run travelocity.com sso example with tomcat and it gives JSP
 compilation error.

 1) I built SSOAgent sample and deployed on tomcat
 2) configured IS 4.7.0

 and gives JSP compile error.

 I have attached the error log herewith.

 BR,

 Waruna




-- 
Thanks  Regards,

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

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


Re: [Dev] [ESB] Failed to locate the configure element for connector

2014-04-17 Thread Ramindu Deshapriya
Hi Rushmin,

I encountered the same problem when writing integration test for Google
Drive a while back.

Do the following:


   1. Check your connector's package name. I found that the sample code for
   integration tests uses org.wso2.carbon.connectors while I was using 
   org.wso2.carbon.connector.
   2. Try doing a adminServiceStub.getAllLibraries() to return a list of
   uploaded libraries (i.e. in this case, connectors). Check the package names
   on those and check whether the APNS connector name in that list matches
   that of the connector package name you're calling in your
   adminServiceStub.updateStatus({org.wso2.carbon.connector} +
   CONNECTOR_NAME, CONNECTOR_NAME, org.wso2.carbon.connector, enabled);
   code.

Please let me know how it goes, I'd love to help further.

Thanks.


On Fri, Apr 18, 2014 at 10:50 AM, Rushmin Fernando [via WSO2 Oxygen Tank] 
ml-node+s10903n95155...@n7.nabble.com wrote:


 Hi folks,

 I'm writing some integration tests for an ESB connector for Apple Push
 Notifications.

 When I hit a proxy service with my connector mediator I get the following
 error

 Failed to locate the configure element for
 connector [org.wso2.carbon.connector.apns.dispatchToDevice]

 I put the test case thread to sleep and opened management console of the
 the test ESB instance.

 I saw that my connector was in 'disabled' status though I have enabled it
 using the following code line in the test case.

 adminServiceStub.updateStatus({org.wso2.carbon.connector} +
 CONNECTOR_NAME, CONNECTOR_NAME, org.wso2.carbon.connector, enabled);

 I enabled it from the management console before the test case thread
 resumes.

 Still I got the same error.

 I can see all the connector configurations are in order, in the management
 console.

 Am I doing something wrong here ?



 --
 *Rushmin Fernando*
 *Technical Lead*

 WSO2 Inc. http://wso2.com/ - Lean . Enterprise . Middleware

 email : [hidden email]http://user/SendEmail.jtp?type=nodenode=95155i=0
 mobile : +94772310855



 ___
 Dev mailing list
 [hidden email] http://user/SendEmail.jtp?type=nodenode=95155i=1
 http://wso2.org/cgi-bin/mailman/listinfo/dev


 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-ESB-Failed-to-locate-the-configure-element-for-connector-tp95155.html
  To start a new topic under WSO2 Development, email
 ml-node+s10903n3...@n7.nabble.com
 To unsubscribe from WSO2 Development, click 
 herehttp://wso2-oxygen-tank.10903.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3code=cmFzYWRlODhAZ21haWwuY29tfDN8LTEwNDAzODU2MTk=
 .
 NAMLhttp://wso2-oxygen-tank.10903.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml




-- 
Au revoir!
Ramindu Deshapriya.

Member - Sahana Software Foundation http://sahanafoundation.org
http://rdeshapriya.com

http://www.facebook.com/rdeshapriya   http://twitter.com/#%21/rami_desh
https://plus.google.com/113801459480978566130
http://www.linkedin.com/profile/view?id=84017607trk=tab_pro
http://rdeshapriya.com http://lmakuthan.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BRS testing

2014-04-17 Thread Shavantha Weerasinghe
Hi Thilini

The setup as per
http://wso2.com/library/articles/2011/05/integrate-business-rules-bpel/ was
done, but the READ-ME talks about 2 clients on BRS and BPS sides which I am
not sure how to initiate

regards,

Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300



On Fri, Apr 18, 2014 at 10:54 AM, Thilini Ishaka thil...@wso2.com wrote:

 Hi Shavantha,

 On Fri, Apr 18, 2014 at 10:47 AM, Shavantha Weerasinghe 
 shavan...@wso2.com wrote:

 Hi All

 I have started with test case and also reported some jira for the current
 pack given available within search criteria [1]. Currently am trying to
 figure out how to integrate BPS and BRS. Pending is the integration
 platform setup.

 Try out a scenario similar to
 http://wso2.com/library/articles/2011/05/integrate-business-rules-bpel/

 Thanks
 Thilini


 By the way do we already have a mail thread for BRS210 ?




 [1]project = BRS AND reporter =shavan...@wso2.com AND
 affectedVersion=2.1.0

 Regards,

 Shavantha Weerasinghe
 Senior Software Engineer QA
 WSO2, Inc.
 lean.enterprise.middleware.
 http://wso2.com
 http://wso2.org
 Tel : 94 11 214 5345
 Fax :94 11 2145300



 On Wed, Apr 16, 2014 at 3:20 PM, Thilini Ishaka thil...@wso2.com wrote:

 Sure, hopefully tomorrow morning we can give a pack.

 Thanks
 Thilini


 On Wed, Apr 16, 2014 at 3:05 PM, Evanthika Amarasiri evanth...@wso2.com
  wrote:

 Hi Thilini,

 Can we get a new pack with all the Kernal patches?

 ​- ​
 Evanthika


 On Wed, Apr 16, 2014 at 10:15 AM, Thilini Ishaka thil...@wso2.comwrote:

 Note this was done in a month back. Will provide a proper pack early
 next week :)


 https://svn.wso2.org/repos/wso2/people/thilini/releases/Business-Rules-Server-2.1.0/2014-03-11/wso2brs-2.1.0.zip

 This is a good article on writing a BRS sample
 http://wso2.com/library/articles/2013/05/eclipse-plugin-wso2-business-rules-server/

 Test migration is completed https://redmine.wso2.com/issues/2445

 Thanks
 Thilini


 --
  Thilini Ishaka
 Senior Software Engineer
  Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh





 --
 Thilini Ishaka
 Senior Software Engineer
 Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh





 --
 Thilini Ishaka
 Senior Software Engineer
 Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh

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


Re: [Dev] EIP Guide - Scatter-Gather example scenario is not working

2014-04-17 Thread Sajini De Silva
Please find the link here.

[1] https://docs.wso2.org/display/IntegrationPatterns/Scatter-Gather

Thank you.


On Fri, Apr 18, 2014 at 10:53 AM, Sajini De Silva saj...@wso2.com wrote:

 Hi,

 I tried out example scenario in [1] and the response i got in SoapUI is an
 aggregation of all the quotes from all the vendors instead of the best
 quote which is not the expected output.

 Can someone please point out what is the issue here

 Thank you,
 Sajini.
 --
 Sajini De SIlva
 Software Engineer; WSO2 Inc.; http://wso2.com ,
 Email: saj...@wso2.com
 Blog: http://sajinid.blogspot.com/
 Git hub profile: https://github.com/sajinidesilva




-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] BRS testing

2014-04-17 Thread Thilini Ishaka
Hi Shavantha,

Need to revisit the contents of the article. For the time being you can
deploy a rule service on BRS and invoke that via a bpel process and test
the integration scenario.

Thanks
Thilini


On Fri, Apr 18, 2014 at 10:57 AM, Shavantha Weerasinghe
shavan...@wso2.comwrote:

 Hi Thilini

 The setup as per
 http://wso2.com/library/articles/2011/05/integrate-business-rules-bpel/was 
 done, but the READ-ME talks about 2 clients on BRS and BPS sides which
 I am not sure how to initiate

 regards,

 Shavantha Weerasinghe
 Senior Software Engineer QA
 WSO2, Inc.
 lean.enterprise.middleware.
 http://wso2.com
 http://wso2.org
 Tel : 94 11 214 5345
 Fax :94 11 2145300



 On Fri, Apr 18, 2014 at 10:54 AM, Thilini Ishaka thil...@wso2.com wrote:

 Hi Shavantha,

 On Fri, Apr 18, 2014 at 10:47 AM, Shavantha Weerasinghe 
 shavan...@wso2.com wrote:

 Hi All

 I have started with test case and also reported some jira for the
 current pack given available within search criteria [1]. Currently am
 trying to figure out how to integrate BPS and BRS. Pending is the
 integration platform setup.

 Try out a scenario similar to
 http://wso2.com/library/articles/2011/05/integrate-business-rules-bpel/

 Thanks
 Thilini


 By the way do we already have a mail thread for BRS210 ?




 [1]project = BRS AND reporter =shavan...@wso2.com AND
 affectedVersion=2.1.0

 Regards,

 Shavantha Weerasinghe
 Senior Software Engineer QA
 WSO2, Inc.
 lean.enterprise.middleware.
 http://wso2.com
 http://wso2.org
 Tel : 94 11 214 5345
 Fax :94 11 2145300



 On Wed, Apr 16, 2014 at 3:20 PM, Thilini Ishaka thil...@wso2.comwrote:

 Sure, hopefully tomorrow morning we can give a pack.

 Thanks
 Thilini


 On Wed, Apr 16, 2014 at 3:05 PM, Evanthika Amarasiri 
 evanth...@wso2.com wrote:

 Hi Thilini,

 Can we get a new pack with all the Kernal patches?

 ​- ​
 Evanthika


 On Wed, Apr 16, 2014 at 10:15 AM, Thilini Ishaka thil...@wso2.comwrote:

 Note this was done in a month back. Will provide a proper pack early
 next week :)


 https://svn.wso2.org/repos/wso2/people/thilini/releases/Business-Rules-Server-2.1.0/2014-03-11/wso2brs-2.1.0.zip

 This is a good article on writing a BRS sample
 http://wso2.com/library/articles/2013/05/eclipse-plugin-wso2-business-rules-server/

 Test migration is completed https://redmine.wso2.com/issues/2445

 Thanks
 Thilini


 --
  Thilini Ishaka
 Senior Software Engineer
  Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh





 --
 Thilini Ishaka
 Senior Software Engineer
 Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh





 --
 Thilini Ishaka
 Senior Software Engineer
 Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh





-- 
Thilini Ishaka
Senior Software Engineer
Phone: +94 11 214 5345
WSO2 Inc. http://wso2.com

blog: thiliniishaka.blogspot.com
linkedin: http://lk.linkedin.com/in/thiliniishaka
twitter: https://twitter.com/#!/ThiliniIsh
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS][JSP] can not run travelocity.co example in IS 4.7.0

2014-04-17 Thread Waruna Perera
hi,

it worked fine. is there any thing different that above mentioned ddnt work?

Waruna


On Fri, Apr 18, 2014 at 10:55 AM, Johann Nallathamby joh...@wso2.comwrote:

 Please tried the packs hosts at [1]. These were also built from the
 samples inside 4.7.0.

 [1] https://svn.wso2.org/repos/wso2/people/johann/SSOAgentSampleBinaries/


 On Fri, Apr 18, 2014 at 9:48 AM, Waruna Perera waru...@wso2.com wrote:

 Hi,

 I tried to run travelocity.com sso example with tomcat and it gives JSP
 compilation error.

 1) I built SSOAgent sample and deployed on tomcat
 2) configured IS 4.7.0

 and gives JSP compile error.

 I have attached the error log herewith.

 BR,

 Waruna




 --
 Thanks  Regards,

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

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*

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


Re: [Dev] [IS][JSP] can not run travelocity.co example in IS 4.7.0

2014-04-17 Thread Johann Nallathamby
Should be no difference. I built it from IS 4.7.0 product samples.


On Fri, Apr 18, 2014 at 11:23 AM, Waruna Perera waru...@wso2.com wrote:

 hi,

 it worked fine. is there any thing different that above mentioned ddnt
 work?

 Waruna


 On Fri, Apr 18, 2014 at 10:55 AM, Johann Nallathamby joh...@wso2.comwrote:

 Please tried the packs hosts at [1]. These were also built from the
 samples inside 4.7.0.

 [1] https://svn.wso2.org/repos/wso2/people/johann/SSOAgentSampleBinaries/


 On Fri, Apr 18, 2014 at 9:48 AM, Waruna Perera waru...@wso2.com wrote:

 Hi,

 I tried to run travelocity.com sso example with tomcat and it gives JSP
 compilation error.

 1) I built SSOAgent sample and deployed on tomcat
 2) configured IS 4.7.0

 and gives JSP compile error.

 I have attached the error log herewith.

 BR,

 Waruna




 --
 Thanks  Regards,

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

 Mobile - *+9476950*
 Blog - *http://nallaa.wordpress.com http://nallaa.wordpress.com*





-- 
Thanks  Regards,

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

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