Re: [Dev] Queries regarding solr based indexing in registry

2014-04-25 Thread Ajith Vitharana
Hi Lalaji,


On Fri, Apr 25, 2014 at 11:07 AM, Lalaji Sureshika lal...@wso2.com wrote:

 Hi Ajith,

 Appreciate your feedback on below queries.

 1. Can we add a custom indexer to trigger indexing only in a particular
 registry path based on particular media types.
 [For eg: we only need to index registry resources in
 _system/governance/apimgt/applicationdata/api-docs with media types
 application/json, application/pdf,application/msword and application/text]


Please find the set of indexers as references[1]. You can register new
indexer in the registry.xml filtering by media type[2].

Eg:
indexer class=org.wso2.carbon.registry.indexing.indexer.PDFIndexer
mediaTypeRegEx=application/pdf/

Yes. You can filer by path before creating IndexDocument instance.

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/registry/org.wso2.carbon.registry.indexing/4.2.1/src/main/java/org/wso2/carbon/registry/indexing/indexer/
[2]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/greg/4.6.0/modules/distribution/src/main/resources/carbon-home/conf/registry.xml



 2.  We want to do search based on above indexed registry resources,if so
 how we can write a custom search client to achieve this only to filter the
 above indexed type resources.Appreciate any code reference on how to do
 this..


You can use the SolrClient to get an instance and query[3].

[3]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/registry/org.wso2.carbon.registry.indexing/4.2.1/src/main/java/org/wso2/carbon/registry/indexing/service/ContentBasedSearchService.java

Thanks.
Ajith.



 Thanks;

 --
 Lalaji Sureshika
  WSO2, Inc.;  http://wso2.com/
 email: lal...@wso2.com
 blog: http://lalajisureshika.blogspot.com




-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  aji...@wso2.com
Mobile : +94772217350
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need help on AxisFault: Read timed out Exception when reaching a ESB proxy

2014-04-25 Thread Supun Sethunga
attached is the client.

Thanks!


On Fri, Apr 25, 2014 at 11:39 AM, Roshan Wijesena ros...@wso2.com wrote:

 can you attache your client also ..


 On Fri, Apr 25, 2014 at 11:14 AM, Supun Sethunga sup...@wso2.com wrote:

 Hi,

 Im trying to secure a non-secured back-end service using a proxy. When i
 create a secure proxy with policies from the ESB and execute the client, i
 get the following exception.







 *Exception in thread main org.apache.axis2.AxisFault: Read timed out
 at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)at
 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
 at
 org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)*
...
...

 For the testing purpose, when I create a simple pass through proxy and
 execute the client, the sent message actually reaches the proxy with all
 the security headers. (checked using ESB SOAP tracer). So I guess my client
 works fine.

 But the SOAP tracer in ESB does not track the message sent when the
 secure proxy (with policy applied) is used.

 Any idea on what causes this exception?

 I have attached the policy file herewith.

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




 --
 Best Regards,
  Senior Software Engineer-WSO2 Inc.
 Roshan Wijesena
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.




-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
lean | enterprise | middleware
Mobile : +94 716546324
package client;

import org.apache.ws.security.WSPasswordCallback;

import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.callback.UnsupportedCallbackException;

import java.io.IOException;

public class PWCBHandler implements CallbackHandler {

public void handle(Callback[] callbacks) throws IOException,
UnsupportedCallbackException { WSPasswordCallback pwcb = (WSPasswordCallback) callbacks[0];
String id = pwcb.getIdentifier();
int usage = pwcb.getUsage();

if (usage == WSPasswordCallback.USERNAME_TOKEN) {

if (admin.equals(id)) {
//if (ad...@ank.com.equals(id)) {
pwcb.setPassword(admin);
//   pwcb.setPassword(admin123);
}

} else if (usage == WSPasswordCallback.SIGNATURE || usage == WSPasswordCallback.DECRYPT) {
// Logic to get the private key password for signture or decryption
   /* if (client.equals(id)) {
pwcb.setPassword(apache);
}
if (service.equals(id)) {
pwcb.setPassword(apache);
} */
if (wso2carbon.equals(id)) {
//pwcb.setPassword(wso2carbon);
pwcb.setPassword(wso2carbon);
}
if (clientks.equals(id)) {
pwcb.setPassword(clientks);
}
if (serviceks.equals(id)) {
pwcb.setPassword(serviceks);
}
}
}

}
package client;

import java.rmi.RemoteException;
import java.util.HashMap;
import java.util.Properties;

import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;
import org.apache.axiom.om.impl.builder.StAXOMBuilder;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.client.ServiceClient;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.context.ConfigurationContextFactory;
import org.apache.neethi.Policy;
import org.apache.neethi.PolicyEngine;
import org.apache.rampart.RampartMessageData;
import org.apache.rampart.policy.model.CryptoConfig;
import org.apache.rampart.policy.model.RampartConfig;

public class SecureOrderProcessClient {
	
	public static void main(String args[]) throws Exception{
		
		String clientRepo=/home/supun/workspace/SecureOrderProcessClient/clientRepo;
		String clientKey =/home/supun/workspace/SecureOrderProcessClient/clientks.jks;
		String securityPolicy = /home/supun/workspace/SecureOrderProcessClient/policy.xml;
		String trustStore = /home/supun/workspace/SecureOrderProcessClient/clientks.jks;
		String endpoint =http://Supun:8280/services/SecureProxy2?wsdl;;
	
		

Re: [Dev] [App Factory] JIRAs need to be discussed

2014-04-25 Thread Punnadi Gunarathna
Moving the thread to Dev group.


On Fri, Apr 25, 2014 at 10:34 AM, Harsha Thirimanna hars...@wso2.comwrote:

 Yes. We have to fix it.

 Manjula has used git pre-commit hook to validate pom file when developer
 commit. I think now it is easy to do a call from there to appfac to get
 stage of app version and block like same as manjula blocked commit. Bcz
 manjula gave mean full text to developer's git client that saying the
 reason of blocked. It is important to here too.
 On Apr 25, 2014 3:03 PM, Punnadi Gunarathna punn...@wso2.com wrote:

 Hi All,

 https://wso2.org/jira/browse/APPFAC-1680 is not fixed yet as per the
 chat that I had with Ramith.



 On Fri, Apr 25, 2014 at 8:49 AM, Dimuthu Leelarathne 
 dimut...@wso2.comwrote:

 +1 for Harsha's comments. I took appropriate actions. Lets review Normal
 Jiras together.

 thanks,
 dimuthu


 On Thu, Apr 24, 2014 at 2:23 PM, Harsha Thirimanna hars...@wso2.comwrote:

 Hi Punnadi,

 These are new features and improvement.  Feature freeze now.
 https://wso2.org/jira/browse/APPFAC-1783
 https://wso2.org/jira/browse/APPFAC-1782

 Postponed to after release. There is comment with this jira saying that.
 https://wso2.org/jira/browse/APPFAC-1781

 Fixed by asankad for the previous release. So have to test
 https://wso2.org/jira/browse/APPFAC-1760


 I think these should be fixed.
 https://wso2.org/jira/browse/APPFAC-1699
  https://wso2.org/jira/browse/APPFAC-1680

 thanks




 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * http://www.apache.org/*
 * email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770*
 * twitter: **http://twitter.com/ http://twitter.com/afkham_azeez*
 *harshathirimann linked-in: **http:
 http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122*

  *Lean . Enterprise . Middleware*



 On Thu, Apr 24, 2014 at 1:28 PM, Punnadi Gunarathna 
 punn...@wso2.comwrote:

 Hi All,

  Are we going to fix these JIRAs for 1.1.0 m14/GA?

 APPFAC-1782 https://wso2.org/jira/browse/APPFAC-1782
 APPFAC-1680 https://wso2.org/jira/browse/APPFAC-1680
 APPFAC-1699 https://wso2.org/jira/browse/APPFAC-1699
 APPFAC-1760 https://wso2.org/jira/browse/APPFAC-1760
 APPFAC-1781 https://wso2.org/jira/browse/APPFAC-1781
 APPFAC-1782 https://wso2.org/jira/browse/APPFAC-1782
 APPFAC-1783 https://wso2.org/jira/browse/APPFAC-1783

 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com http://wso2
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  http://lalajisureshika.blogspot.com/





 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

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

 Lean . Enterprise . Middleware




 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com http://wso2
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  http://lalajisureshika.blogspot.com/




-- 
Thanks and Regards,

Punnadi Gunarathna
Senior Software Engineer,
WSO2, Inc.; http://wso2.com http://wso2
Blog: http://hi-my-world.blogspot.com/
Tel : 94 11 214 5345
Fax :94 11 2145300



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


[Dev] WSIMPORT Generated SEI not working on WSO2 AS

2014-04-25 Thread Dumidu Handakumbura
Hi Devs,


Few weeks back I ran into some trouble running an axis2 service on WSO2 AS,
the service was using SEIs generated using WSImport tool to access other
services. When this service was deployed on WSO2 AS and invoked, I got
a *Provider
org.apache.cxf.jaxws.spi.ProviderImpl not found* response (exception stack
is attached).

Once I changed these SEIs to stubs using Axis2 WSDL2Java tool the service
worked as expected on WSO2 AS.

Why are WSImport generated SEIs not working on WSO2 AS? according to apache
wsdl2java reference
doc[url]http://axis.apache.org/axis2/java/core/docs/reference.htmlthe
wsdl2java tool uses ADB as its default binding(which is what I used).
Does the issue have to do with the difference in the data binding used by
the two tools?

Apologies if this is a novice question.

Regards,


-- 
*Dumidu Handakumbura*
Software Engineer - QA
WSO2 Inc; http://www.wso2.com/.
Mobile;
*+9406740 *


ExceptionStack.odt
Description: application/vnd.oasis.opendocument.text
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need help on AxisFault: Read timed out Exception when reaching a ESB proxy

2014-04-25 Thread Milinda Perera
Hi,

I think problem is in endpoint. Try It with https endpoint.

Thanks


On Fri, Apr 25, 2014 at 11:49 AM, Supun Sethunga sup...@wso2.com wrote:

 attached is the client.

 Thanks!


 On Fri, Apr 25, 2014 at 11:39 AM, Roshan Wijesena ros...@wso2.com wrote:

 can you attache your client also ..


 On Fri, Apr 25, 2014 at 11:14 AM, Supun Sethunga sup...@wso2.com wrote:

 Hi,

 Im trying to secure a non-secured back-end service using a proxy. When i
 create a secure proxy with policies from the ESB and execute the client, i
 get the following exception.







 *Exception in thread main org.apache.axis2.AxisFault: Read timed
 outat org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)at
 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
 at
 org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)*
...
...

 For the testing purpose, when I create a simple pass through proxy and
 execute the client, the sent message actually reaches the proxy with all
 the security headers. (checked using ESB SOAP tracer). So I guess my client
 works fine.

 But the SOAP tracer in ESB does not track the message sent when the
 secure proxy (with policy applied) is used.

 Any idea on what causes this exception?

 I have attached the policy file herewith.

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




 --
 Best Regards,
  Senior Software Engineer-WSO2 Inc.
 Roshan Wijesena
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.




 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




-- 
Milinda Perera
Software Engineer;
WSO2 Inc. http://wso2.com ,
Mobile: (+94) 714 115 032
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How to use SecVault with Dynamic User Authentication

2014-04-25 Thread Afkham Azeez
https://docs.wso2.org/display/DSS320/Dynamic+User+Authentication

Any docs on that?

-- 
*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 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


Re: [Dev] Configuration location for jaggery apps

2014-04-25 Thread Manuranga Perera
Hi Chintana, Sagara,
you are correct about the user written apps. this discussion is about
jaggery apps we ship by default with wso2 products.


On Thu, Apr 24, 2014 at 4:14 PM, Chintana Wilamuna chint...@wso2.comwrote:

 First of all I think the subject of the mail is a bit misleading or my
 understanding of Jaggery is incomplete. Jaggery, to me should always be
 like PHP or NodeJS. There shouldn't be any impose from the platform for
 rigid config locations. This comes from the Java app server mindset.

 Application developer should have the freedom to have any config file in
 any format anywhere. Is it not?

 -Chintana


 On Fri, Apr 18, 2014 at 10:37 AM, Manuranga Perera m...@wso2.com wrote:

 *Current Implementation*
 We currently keep configuration files for jaggery apps within the app
 itself (eg: site.json).

 *Issue with Current Implementation*
 But this is creating some difficulties in multi environment deployments.
 Since the configuration files will contain some environment specific
 information (eg: SSO IDP URL), this makes the artifacts un-portable across
 environments.

 *Suggested Solution*
 We can implement a mechanism where the configuration is read from an
 outside location (eg: repository/conf) at deployment time and keep it in
 the application context and reuse it.


 Let's discuss the feasibility of this solution. alternative solutions are
 welcome.

 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com

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




 --
 Chintana Wilamuna
 Architect - Solutions Architecture
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 phone: +94 72 145 4545
 blog: http://engwar.com/
 photos: http://flickr.com/photos/chintana
 linkedin: http://www.linkedin.com/in/engwar
 twitter: twitter.com/std_err




-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need help on AxisFault: Read timed out Exception when reaching a ESB proxy

2014-04-25 Thread Supun Sethunga
Hi Malinda,

Still gives the same exception.

Thanks,


On Fri, Apr 25, 2014 at 11:56 AM, Milinda Perera milin...@wso2.com wrote:

 Hi,

 I think problem is in endpoint. Try It with https endpoint.

 Thanks


 On Fri, Apr 25, 2014 at 11:49 AM, Supun Sethunga sup...@wso2.com wrote:

 attached is the client.

 Thanks!


 On Fri, Apr 25, 2014 at 11:39 AM, Roshan Wijesena ros...@wso2.comwrote:

 can you attache your client also ..


  On Fri, Apr 25, 2014 at 11:14 AM, Supun Sethunga sup...@wso2.comwrote:

 Hi,

 Im trying to secure a non-secured back-end service using a proxy. When
 i create a secure proxy with policies from the ESB and execute the client,
 i get the following exception.







 *Exception in thread main org.apache.axis2.AxisFault: Read timed
 outat org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)at
 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
 at
 org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)*
...
...

 For the testing purpose, when I create a simple pass through proxy and
 execute the client, the sent message actually reaches the proxy with all
 the security headers. (checked using ESB SOAP tracer). So I guess my client
 works fine.

 But the SOAP tracer in ESB does not track the message sent when the
 secure proxy (with policy applied) is used.

 Any idea on what causes this exception?

 I have attached the policy file herewith.

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




 --
 Best Regards,
  Senior Software Engineer-WSO2 Inc.
 Roshan Wijesena
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.




 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




 --
 Milinda Perera
 Software Engineer;
 WSO2 Inc. http://wso2.com ,
 Mobile: (+94) 714 115 032




-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to use SecVault with Dynamic User Authentication

2014-04-25 Thread Anjana Fernando
Hi Azeez,

Seems the docs doesn't mention this specifically for this feature.
Basically, for any XML element in the .dbs file, you can put the
secretAlias attribute (with it's specific namespace), and at deployment
time, it will simply replace the content of that element suitably, see [1]
for more info. So basically, secure vault can be used for any element in
the data services configuration. But I'm afraid, we are missing the UI
functionality here to give the secret alias here. So this functionality
must be done using the XML edit mode. @Chanika, please create a JIRA to
track this.

[1] https://docs.wso2.org/display/DSS320/Securing+Passwords

Cheers,
Anjana.


On Fri, Apr 25, 2014 at 12:14 PM, Afkham Azeez az...@wso2.com wrote:

 https://docs.wso2.org/display/DSS320/Dynamic+User+Authentication

 Any docs on that?

 --
 *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*




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


Re: [Dev] Need help on AxisFault: Read timed out Exception when reaching a ESB proxy

2014-04-25 Thread Milinda Perera
Hi Supun,

can you send complete error stack trace and updated code.

Thanks,
Milinda


On Fri, Apr 25, 2014 at 12:19 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi Malinda,

 Still gives the same exception.

 Thanks,


 On Fri, Apr 25, 2014 at 11:56 AM, Milinda Perera milin...@wso2.comwrote:

 Hi,

 I think problem is in endpoint. Try It with https endpoint.

 Thanks


 On Fri, Apr 25, 2014 at 11:49 AM, Supun Sethunga sup...@wso2.com wrote:

 attached is the client.

 Thanks!


 On Fri, Apr 25, 2014 at 11:39 AM, Roshan Wijesena ros...@wso2.comwrote:

 can you attache your client also ..


  On Fri, Apr 25, 2014 at 11:14 AM, Supun Sethunga sup...@wso2.comwrote:

 Hi,

 Im trying to secure a non-secured back-end service using a proxy. When
 i create a secure proxy with policies from the ESB and execute the client,
 i get the following exception.







 *Exception in thread main org.apache.axis2.AxisFault: Read timed
 outat org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)at
 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
 at
 org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)*
...
...

 For the testing purpose, when I create a simple pass through proxy and
 execute the client, the sent message actually reaches the proxy with all
 the security headers. (checked using ESB SOAP tracer). So I guess my 
 client
 works fine.

 But the SOAP tracer in ESB does not track the message sent when the
 secure proxy (with policy applied) is used.

 Any idea on what causes this exception?

 I have attached the policy file herewith.

 Thanks,
 Supun

 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




 --
 Best Regards,
  Senior Software Engineer-WSO2 Inc.
 Roshan Wijesena
 Mobile: *+94752126789*
 Email: ros...@wso2.com
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.




 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324

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




 --
 Milinda Perera
 Software Engineer;
 WSO2 Inc. http://wso2.com ,
 Mobile: (+94) 714 115 032




 --
 *Supun Sethunga*
 Software Engineer
 WSO2, Inc.
 lean | enterprise | middleware
 Mobile : +94 716546324




-- 
Milinda Perera
Software Engineer;
WSO2 Inc. http://wso2.com ,
Mobile: (+94) 714 115 032
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need help on AxisFault: Read timed out Exception when reaching a ESB proxy

2014-04-25 Thread Supun Sethunga
Hi Milinda,

Follow is the complete error stack trace.





































*Exception in thread main org.apache.axis2.AxisFault: Read timed out
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
at
client.SecureOrderProcessServiceStub.makeOrder(SecureOrderProcessServiceStub.java:463)
at
client.SecureOrderProcessClient.makeOrder(SecureOrderProcessClient.java:134)
at
client.SecureOrderProcessClient.main(SecureOrderProcessClient.java:55)Caused
by: java.net.SocketTimeoutException: Read timed outat
java.net.SocketInputStream.socketRead0(Native Method)at
java.net.SocketInputStream.read(SocketInputStream.java:150)at
java.net.SocketInputStream.read(SocketInputStream.java:121)at
sun.security.ssl.InputRecord.readFully(InputRecord.java:312)at
sun.security.ssl.InputRecord.read(InputRecord.java:350)at
sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)at
sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)at
sun.security.ssl.AppInputStream.read(AppInputStream.java:102)at
java.io.BufferedInputStream.fill(BufferedInputStream.java:235)at
java.io.BufferedInputStream.read(BufferedInputStream.java:254)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:621)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
... 10 more*

Please find the attachment for the updated code.

Thanks,


On Fri, Apr 25, 2014 at 12:46 PM, Milinda Perera milin...@wso2.com wrote:

 Hi Supun,

 can you send complete error stack trace and updated code.

 Thanks,
 Milinda


 On Fri, Apr 25, 2014 at 12:19 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi Malinda,

 Still gives the same exception.

 Thanks,


 On Fri, Apr 25, 2014 at 11:56 AM, Milinda Perera milin...@wso2.comwrote:

 Hi,

 I think problem is in endpoint. Try It with https endpoint.

 Thanks


 On Fri, Apr 25, 2014 at 11:49 AM, Supun Sethunga sup...@wso2.comwrote:

 attached is the client.

 Thanks!


 On Fri, Apr 25, 2014 at 11:39 AM, Roshan Wijesena ros...@wso2.comwrote:

 can you attache your client also ..


  On Fri, Apr 25, 2014 at 11:14 AM, Supun Sethunga sup...@wso2.comwrote:

 Hi,

 Im trying to secure a non-secured back-end service using a proxy.
 When i create a secure proxy with policies from the ESB and execute the
 client, i get the following exception.







 *Exception in thread main org.apache.axis2.AxisFault: Read timed
 outat org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)at
 org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
 at
 org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
 at
 org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
 at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)*
...
...

 For the testing purpose, when I create a simple pass through proxy
 and execute the client, the sent message actually reaches the proxy with
 all the security headers. (checked using ESB SOAP tracer). So I guess my
 client works fine.

 But the SOAP tracer in ESB does not track the message sent when the
 secure proxy (with policy applied) is used.

 Any idea on 

Re: [Dev] Not getting response in try-it in FF browser

2014-04-25 Thread Waruna Jayaweera
Hi Thilini,
Problem may be with FF version. can we test with different FF version?


On Fri, Apr 25, 2014 at 12:40 PM, Thilini Ishaka thil...@wso2.com wrote:


 Hi All,

 I'm facing the aforementioned issue now. A sceenshot is attached. I don't
 see any error in the Firebug error console. Seeing the correct response on
 Firebug reponse window.
 This should be a try-it issue in FF as it works on chrome without any
 issue.

 This is a blocker for me at the moment for the release work.

 Kindly appreciate quick help on this if you know anything related to this
 or anyway of further debugging the issue.

 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

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




-- 
Regards,

Waruna Lakshitha Jayaweera
Software Engineer
WSO2 Inc; http://wso2.com
phone: +94713255198
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] ESB DBRepot mediator configuration UI is not available after adding a Data-source

2014-04-25 Thread Chathura Dilan
Hi All,

I added a new MYSQL DataSource to the WSO2 ESB 4.8.1 and it was success.
After adding that I tried to create an API which has DBReport mediator and
DBReport mediator configuration UI failed to load when I try to add it to
the API.

I'm also getting following error message in the terminal. Is it a bug? WDYT?

ApplicationDispatcher Servlet.service() for servlet bridgeservlet threw
exception
java.lang.IllegalArgumentException: [=] is not a hexadecimal digit
at
org.apache.catalina.util.RequestUtil.convertHexDigit(RequestUtil.java:316)
at
org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:400)
at
org.apache.catalina.util.RequestUtil.parseParameters(RequestUtil.java:153)
at
org.apache.catalina.core.ApplicationHttpRequest.mergeParameters(ApplicationHttpRequest.java:894)
at
org.apache.catalina.core.ApplicationHttpRequest.parseParameters(ApplicationHttpRequest.java:756)
at
org.apache.catalina.core.ApplicationHttpRequest.getParameter(ApplicationHttpRequest.java:367)
at
javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:184)
at
org.wso2.carbon.ui.CarbonUILoginUtil.getCustomIndexPage(CarbonUILoginUtil.java:153)
at
org.wso2.carbon.ui.CarbonSecuredHttpContext.handleSecurity(CarbonSecuredHttpContext.java:190)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:60)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
at
org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
at
org.apache.jsp.dbreport_002dmediator.edit_002dmediator_jsp._jspService(org.apache.jsp.dbreport_002dmediator.edit_002dmediator_jsp:172)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
at
org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015)
at
org.apache.jsp.sequences.mediator_002dedit_002dajaxprocessor_jsp._jspService(org.apache.jsp.sequences.mediator_002dedit_002dajaxprocessor_jsp:154)
at 

Re: [Dev] Not getting response in try-it in FF browser

2014-04-25 Thread Thilini Ishaka
Hi Waruna,

I don't think so. Same FF version does work for released version of the
product/s. So ideally this should work irrespective of that.

Thanks
Thilini


On Fri, Apr 25, 2014 at 1:01 PM, Waruna Jayaweera waru...@wso2.com wrote:

 Hi Thilini,
 Problem may be with FF version. can we test with different FF version?


 On Fri, Apr 25, 2014 at 12:40 PM, Thilini Ishaka thil...@wso2.com wrote:


 Hi All,

 I'm facing the aforementioned issue now. A sceenshot is attached. I don't
 see any error in the Firebug error console. Seeing the correct response on
 Firebug reponse window.
 This should be a try-it issue in FF as it works on chrome without any
 issue.

 This is a blocker for me at the moment for the release work.

 Kindly appreciate quick help on this if you know anything related to this
 or anyway of further debugging the issue.

 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

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




 --
 Regards,

 Waruna Lakshitha Jayaweera
 Software Engineer
 WSO2 Inc; http://wso2.com
 phone: +94713255198




-- 
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] Exception in calling an API in APIM after integrating APIM and BAM

2014-04-25 Thread Pasanthi Amarasekera
Hi,

When I'm calling an API, after integrating APIM and BAM, I get the
following exception.

ERROR - AsyncDataPublisher Error occurred while finding | defining the event
org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot
define type {  'name':'org.wso2.apimgt.statistics.response',
 'version':'1.0.0',  'nickName': 'API Manager Reponse Data',
 'description': 'Response Data',  'metaData':[
 {'name':'clientType','type':'STRING'}  ],  'payloadData':[
 {'name':'consumerKey','type':'STRING'},
 {'name':'context','type':'STRING'},
 {'name':'api_version','type':'STRING'},
 {'name':'api','type':'STRING'},
 {'name':'resource','type':'STRING'},
 {'name':'method','type':'STRING'},
 {'name':'version','type':'STRING'},
 {'name':'response','type':'INT'},
 {'name':'responseTime','type':'LONG'},
 {'name':'serviceTime','type':'LONG'},
 {'name':'userId','type':'STRING'},
 {'name':'tenantDomain','type':'STRING'},
 {'name':'hostName','type':'STRING'},
 {'name':'apiPublisher','type':'STRING'},
 {'name':'applicationName','type':'STRING'},
 {'name':'applicationId','type':'STRING'}  ]}
at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:234)
at
org.wso2.carbon.databridge.agent.thrift.DataPublisher.defineStream(DataPublisher.java:295)
at
org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$DataPublishWorker.run(AsyncDataPublisher.java:690)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by:
org.wso2.carbon.databridge.agent.thrift.exception.EventPublisherException:
TException
at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:120)
at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:222)
... 7 more
Caused by: org.apache.thrift.transport.TTransportException
at
org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
at
org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:378)
at
org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:297)
at
org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:204)
at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69)
at
org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.recv_defineStream(ThriftEventTransmissionService.java:80)
at
org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.defineStream(ThriftEventTransmissionService.java:66)
at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:109)
... 8 more

Though I tried google couldn't find anything helpful for the version that I
use. Could anyone please explain why this happens.

Thank you

-- 
Pasanthi Amarasekera
WSO2 Inc: http://wso2.com
lean.enterprise.middleware

Mobile: +94 77 9541735
___
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-25 Thread Shazni Nazeer
Hi Amal,

I can't build the kernel due to a cyclic dependency between
javax.cache.wso2 and the org.wso2.carbon.util. IMO CacheInvalidator
interface needs to be moved to some other package.

Shazni Nazeer

Senior Software Engineer

Mob : +94 715 440 607
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com


On Thu, Apr 24, 2014 at 12:17 PM, Amal Gunatilake am...@wso2.com wrote:

 Hi Shezni,

 I have committed the code in my kernel git fork :
 https://github.com/amalhub/carbon4-kernel
 Please proceed and let me know if you have any queries.

 Thank you.

 Thank you   Best regards,

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


 On Thu, Apr 24, 2014 at 10:58 AM, Shazni Nazeer sha...@wso2.com wrote:

 Hi Subash,

 Yes I can proceed now onwards.

 @Amal - Can you provide me the git url where this is committed, so that I
 can get a fork and perform the work.

 regards

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 715 440 607
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com


 On Thu, Apr 24, 2014 at 10:52 AM, Subash Chaturanga sub...@wso2.comwrote:

 Hi Amal,
 You've done a great job on initiating this and implementing to this
 point. Shazni is assigned from G-Reg to work on this with you and refactor
 this from our side. But since you locally test this and seems fine I hope
 Shazni can now get your PULL request and try to verify it in Kernel with
 the  build and then proceed on refactoring registry accordingly.

 Hi Shazni,
 As discussed offline before, since we are running out of time, could you
 please proceed from this point now. I hope Amal will be able to help you if
 we have any issues(steps to setup and etc).

 Thanks




 On Thu, Apr 24, 2014 at 10:42 AM, Amal Gunatilake am...@wso2.comwrote:

 Hi Subash,

 As per the offline discussion we had, I have moved the MB properties to
 cache.xml and the component is finalized now 
 [1]https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v3/.
 I have moved the code into kernel in my local machine and seems fine, but
 before I commit, I have to make sure nothing breaks the kernel build. Since
 I'm in support I'm creating an urgent patch for a support issue and I will
 be able to finish it by today. Then I will commit the code to git after
 testing the component properly.

 [1]
 https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v3/

 Thank you   Best regards,

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


 On Tue, Apr 22, 2014 at 11:31 AM, Subash Chaturanga sub...@wso2.comwrote:

 Hi Amal,
 Please move the code to the aforesaid place and Shazni will be working
 with you on moving registry related caching invalidation to new impl.
 Please help him to configure on how to, and also we need to document this.

 Thanks


 On Tue, Apr 22, 2014 at 11:22 AM, Afkham Azeez az...@wso2.com wrote:




 On Tue, Apr 22, 2014 at 10:48 AM, Subash Chaturanga 
 sub...@wso2.comwrote:

 Hi Amal,
 Yes we have to push this to carbon kernel git repo and AFAIR we
 decided to make this a generic module that can be reused by the 
 platform.
 I believe the package name is also
 finalized(org.wso2.carbon.caching.invalidator) ?

 I think it is better if we can move this in to  carbon4-kernel /
 core / org.wso2.carbon.caching.core  and put this under a new package 
 named
 invalidator and the package name will be
 org.wso2.carbon.caching.core.invalidator . Azeez WDYT ?


 I am fine with that as long as the subscription to the topic does not
 automatically happen if that code is there. In most cases, we will not 
 need
 this global cache invalidation, so that code should not get executed.





 On Mon, Apr 21, 2014 at 2:13 PM, Amal Gunatilake am...@wso2.comwrote:

 Hi Subash,

 Sorry for the delay. Since I'm in support I didn't have much time
 to accelerate the process and during the weekend I managed to finish 
 all
 the TODOs. Currently it's not yet in kernal git repo. I have the latest
 code in
 https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v2/.
 Please let me know into which path I should commit the code and I can 
 add
 it to git repo immediately.

 Thank you   Best regards,

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


 On Thu, Apr 17, 2014 at 9:25 PM, Subash Chaturanga sub...@wso2.com
  wrote:

 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 

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

2014-04-25 Thread Afkham Azeez
Shall we put CacheInvalidator into the  javax.cache.wso2 Maven module,
under an org.wso2.carbon.caching package?


On Fri, Apr 25, 2014 at 2:08 PM, Shazni Nazeer sha...@wso2.com wrote:

 Hi Amal,

 I can't build the kernel due to a cyclic dependency between
 javax.cache.wso2 and the org.wso2.carbon.util. IMO CacheInvalidator
 interface needs to be moved to some other package.

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 715 440 607
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com


 On Thu, Apr 24, 2014 at 12:17 PM, Amal Gunatilake am...@wso2.com wrote:

 Hi Shezni,

 I have committed the code in my kernel git fork :
 https://github.com/amalhub/carbon4-kernel
 Please proceed and let me know if you have any queries.

 Thank you.

 Thank you   Best regards,

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


 On Thu, Apr 24, 2014 at 10:58 AM, Shazni Nazeer sha...@wso2.com wrote:

 Hi Subash,

 Yes I can proceed now onwards.

 @Amal - Can you provide me the git url where this is committed, so that
 I can get a fork and perform the work.

 regards

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 715 440 607
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com


 On Thu, Apr 24, 2014 at 10:52 AM, Subash Chaturanga sub...@wso2.comwrote:

 Hi Amal,
 You've done a great job on initiating this and implementing to this
 point. Shazni is assigned from G-Reg to work on this with you and refactor
 this from our side. But since you locally test this and seems fine I hope
 Shazni can now get your PULL request and try to verify it in Kernel with
 the  build and then proceed on refactoring registry accordingly.

 Hi Shazni,
 As discussed offline before, since we are running out of time, could
 you please proceed from this point now. I hope Amal will be able to help
 you if we have any issues(steps to setup and etc).

 Thanks




 On Thu, Apr 24, 2014 at 10:42 AM, Amal Gunatilake am...@wso2.comwrote:

 Hi Subash,

 As per the offline discussion we had, I have moved the MB properties
 to cache.xml and the component is finalized now 
 [1]https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v3/.
 I have moved the code into kernel in my local machine and seems fine, but
 before I commit, I have to make sure nothing breaks the kernel build. 
 Since
 I'm in support I'm creating an urgent patch for a support issue and I will
 be able to finish it by today. Then I will commit the code to git after
 testing the component properly.

 [1]
 https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v3/

 Thank you   Best regards,

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


 On Tue, Apr 22, 2014 at 11:31 AM, Subash Chaturanga 
 sub...@wso2.comwrote:

 Hi Amal,
 Please move the code to the aforesaid place and Shazni will be
 working with you on moving registry related caching invalidation to new
 impl. Please help him to configure on how to, and also we need to 
 document
 this.

 Thanks


 On Tue, Apr 22, 2014 at 11:22 AM, Afkham Azeez az...@wso2.comwrote:




 On Tue, Apr 22, 2014 at 10:48 AM, Subash Chaturanga sub...@wso2.com
  wrote:

 Hi Amal,
 Yes we have to push this to carbon kernel git repo and AFAIR we
 decided to make this a generic module that can be reused by the 
 platform.
 I believe the package name is also
 finalized(org.wso2.carbon.caching.invalidator) ?

 I think it is better if we can move this in to  carbon4-kernel /
 core / org.wso2.carbon.caching.core  and put this under a new package 
 named
 invalidator and the package name will be
 org.wso2.carbon.caching.core.invalidator . Azeez WDYT ?


 I am fine with that as long as the subscription to the topic does
 not automatically happen if that code is there. In most cases, we will 
 not
 need this global cache invalidation, so that code should not get 
 executed.





 On Mon, Apr 21, 2014 at 2:13 PM, Amal Gunatilake am...@wso2.comwrote:

 Hi Subash,

 Sorry for the delay. Since I'm in support I didn't have much time
 to accelerate the process and during the weekend I managed to finish 
 all
 the TODOs. Currently it's not yet in kernal git repo. I have the 
 latest
 code in
 https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v2/.
 Please let me know into which path I should commit the code and I can 
 add
 it to git repo immediately.

 Thank you   Best regards,

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


 On Thu, Apr 17, 2014 at 9:25 PM, Subash Chaturanga 
 sub...@wso2.com wrote:

 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 

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

2014-04-25 Thread Shazni Nazeer
Yes that would solve the problem and it makes sense the interface to be in
javax.cache.wso2.

Shazni Nazeer

Senior Software Engineer

Mob : +94 715 440 607
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com


On Fri, Apr 25, 2014 at 2:26 PM, Afkham Azeez az...@wso2.com wrote:

 Shall we put CacheInvalidator into the  javax.cache.wso2 Maven module,
 under an org.wso2.carbon.caching package?


 On Fri, Apr 25, 2014 at 2:08 PM, Shazni Nazeer sha...@wso2.com wrote:

 Hi Amal,

 I can't build the kernel due to a cyclic dependency between
 javax.cache.wso2 and the org.wso2.carbon.util. IMO CacheInvalidator
 interface needs to be moved to some other package.

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 715 440 607
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com


 On Thu, Apr 24, 2014 at 12:17 PM, Amal Gunatilake am...@wso2.com wrote:

 Hi Shezni,

 I have committed the code in my kernel git fork :
 https://github.com/amalhub/carbon4-kernel
 Please proceed and let me know if you have any queries.

 Thank you.

 Thank you   Best regards,

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


 On Thu, Apr 24, 2014 at 10:58 AM, Shazni Nazeer sha...@wso2.com wrote:

 Hi Subash,

 Yes I can proceed now onwards.

 @Amal - Can you provide me the git url where this is committed, so that
 I can get a fork and perform the work.

 regards

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 715 440 607
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com


 On Thu, Apr 24, 2014 at 10:52 AM, Subash Chaturanga sub...@wso2.comwrote:

 Hi Amal,
 You've done a great job on initiating this and implementing to this
 point. Shazni is assigned from G-Reg to work on this with you and refactor
 this from our side. But since you locally test this and seems fine I hope
 Shazni can now get your PULL request and try to verify it in Kernel with
 the  build and then proceed on refactoring registry accordingly.

 Hi Shazni,
 As discussed offline before, since we are running out of time, could
 you please proceed from this point now. I hope Amal will be able to help
 you if we have any issues(steps to setup and etc).

 Thanks




 On Thu, Apr 24, 2014 at 10:42 AM, Amal Gunatilake am...@wso2.comwrote:

 Hi Subash,

 As per the offline discussion we had, I have moved the MB properties
 to cache.xml and the component is finalized now 
 [1]https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v3/.
 I have moved the code into kernel in my local machine and seems fine, but
 before I commit, I have to make sure nothing breaks the kernel build. 
 Since
 I'm in support I'm creating an urgent patch for a support issue and I 
 will
 be able to finish it by today. Then I will commit the code to git after
 testing the component properly.

 [1]
 https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v3/

 Thank you   Best regards,

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


 On Tue, Apr 22, 2014 at 11:31 AM, Subash Chaturanga 
 sub...@wso2.comwrote:

 Hi Amal,
 Please move the code to the aforesaid place and Shazni will be
 working with you on moving registry related caching invalidation to new
 impl. Please help him to configure on how to, and also we need to 
 document
 this.

 Thanks


 On Tue, Apr 22, 2014 at 11:22 AM, Afkham Azeez az...@wso2.comwrote:




 On Tue, Apr 22, 2014 at 10:48 AM, Subash Chaturanga 
 sub...@wso2.com wrote:

 Hi Amal,
 Yes we have to push this to carbon kernel git repo and AFAIR we
 decided to make this a generic module that can be reused by the 
 platform.
 I believe the package name is also
 finalized(org.wso2.carbon.caching.invalidator) ?

 I think it is better if we can move this in to  carbon4-kernel /
 core / org.wso2.carbon.caching.core  and put this under a new package 
 named
 invalidator and the package name will be
 org.wso2.carbon.caching.core.invalidator . Azeez WDYT ?


 I am fine with that as long as the subscription to the topic does
 not automatically happen if that code is there. In most cases, we will 
 not
 need this global cache invalidation, so that code should not get 
 executed.





 On Mon, Apr 21, 2014 at 2:13 PM, Amal Gunatilake 
 am...@wso2.comwrote:

 Hi Subash,

 Sorry for the delay. Since I'm in support I didn't have much time
 to accelerate the process and during the weekend I managed to finish 
 all
 the TODOs. Currently it's not yet in kernal git repo. I have the 
 latest
 code in
 https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v2/.
 Please let me know into which path I should commit the code and I 
 can add
 it to git repo immediately.

 Thank you   Best regards,

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


 On Thu, Apr 17, 2014 at 9:25 PM, Subash Chaturanga 
 

Re: [Dev] Not getting response in try-it in FF browser

2014-04-25 Thread Chanaka Jayasena
You are getting the response but it's not rendered in the UI correctly. So
try to find the place where the response is set to the UI. Start debugging
from there.

thanks,
Chanaka


On Fri, Apr 25, 2014 at 12:40 PM, Thilini Ishaka thil...@wso2.com wrote:


 Hi All,

 I'm facing the aforementioned issue now. A sceenshot is attached. I don't
 see any error in the Firebug error console. Seeing the correct response on
 Firebug reponse window.
 This should be a try-it issue in FF as it works on chrome without any
 issue.

 This is a blocker for me at the moment for the release work.

 Kindly appreciate quick help on this if you know anything related to this
 or anyway of further debugging the issue.

 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




-- 
Chanaka Jayasena
Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
email: chan...@wso2.com; cell: +94 77 785 5565
blog: http://chanaka3d.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to use SecVault with Dynamic User Authentication

2014-04-25 Thread Afkham Azeez
I think there is too much emphasis on the management console. This has to
be fixed in DevStudio. We really should be dropping all dev features from
the mgt console.


On Fri, Apr 25, 2014 at 12:21 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Azeez,

 Seems the docs doesn't mention this specifically for this feature.
 Basically, for any XML element in the .dbs file, you can put the
 secretAlias attribute (with it's specific namespace), and at deployment
 time, it will simply replace the content of that element suitably, see [1]
 for more info. So basically, secure vault can be used for any element in
 the data services configuration. But I'm afraid, we are missing the UI
 functionality here to give the secret alias here. So this functionality
 must be done using the XML edit mode. @Chanika, please create a JIRA to
 track this.

 [1] https://docs.wso2.org/display/DSS320/Securing+Passwords

 Cheers,
 Anjana.


 On Fri, Apr 25, 2014 at 12:14 PM, Afkham Azeez az...@wso2.com wrote:

 https://docs.wso2.org/display/DSS320/Dynamic+User+Authentication

 Any docs on that?

 --
 *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*




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




-- 
*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 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


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

2014-04-25 Thread Amal Gunatilake
Hi,

I'll move the interface to javax.cache.wso2 maven module as suggested and
ping asap.

Thank you   Best regards,

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


On Fri, Apr 25, 2014 at 2:33 PM, Shazni Nazeer sha...@wso2.com wrote:

 Yes that would solve the problem and it makes sense the interface to be in
 javax.cache.wso2.

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 715 440 607
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com


 On Fri, Apr 25, 2014 at 2:26 PM, Afkham Azeez az...@wso2.com wrote:

 Shall we put CacheInvalidator into the  javax.cache.wso2 Maven module,
 under an org.wso2.carbon.caching package?


 On Fri, Apr 25, 2014 at 2:08 PM, Shazni Nazeer sha...@wso2.com wrote:

 Hi Amal,

 I can't build the kernel due to a cyclic dependency between
 javax.cache.wso2 and the org.wso2.carbon.util. IMO CacheInvalidator
 interface needs to be moved to some other package.

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 715 440 607
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com


 On Thu, Apr 24, 2014 at 12:17 PM, Amal Gunatilake am...@wso2.comwrote:

 Hi Shezni,

 I have committed the code in my kernel git fork :
 https://github.com/amalhub/carbon4-kernel
 Please proceed and let me know if you have any queries.

 Thank you.

 Thank you   Best regards,

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


 On Thu, Apr 24, 2014 at 10:58 AM, Shazni Nazeer sha...@wso2.comwrote:

 Hi Subash,

 Yes I can proceed now onwards.

 @Amal - Can you provide me the git url where this is committed, so
 that I can get a fork and perform the work.

 regards

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 715 440 607
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com


 On Thu, Apr 24, 2014 at 10:52 AM, Subash Chaturanga 
 sub...@wso2.comwrote:

 Hi Amal,
 You've done a great job on initiating this and implementing to this
 point. Shazni is assigned from G-Reg to work on this with you and 
 refactor
 this from our side. But since you locally test this and seems fine I hope
 Shazni can now get your PULL request and try to verify it in Kernel with
 the  build and then proceed on refactoring registry accordingly.

 Hi Shazni,
 As discussed offline before, since we are running out of time, could
 you please proceed from this point now. I hope Amal will be able to help
 you if we have any issues(steps to setup and etc).

 Thanks




 On Thu, Apr 24, 2014 at 10:42 AM, Amal Gunatilake am...@wso2.comwrote:

 Hi Subash,

 As per the offline discussion we had, I have moved the MB properties
 to cache.xml and the component is finalized now 
 [1]https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v3/.
 I have moved the code into kernel in my local machine and seems fine, 
 but
 before I commit, I have to make sure nothing breaks the kernel build. 
 Since
 I'm in support I'm creating an urgent patch for a support issue and I 
 will
 be able to finish it by today. Then I will commit the code to git after
 testing the component properly.

 [1]
 https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v3/

 Thank you   Best regards,

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


 On Tue, Apr 22, 2014 at 11:31 AM, Subash Chaturanga sub...@wso2.com
  wrote:

 Hi Amal,
 Please move the code to the aforesaid place and Shazni will be
 working with you on moving registry related caching invalidation to new
 impl. Please help him to configure on how to, and also we need to 
 document
 this.

 Thanks


 On Tue, Apr 22, 2014 at 11:22 AM, Afkham Azeez az...@wso2.comwrote:




 On Tue, Apr 22, 2014 at 10:48 AM, Subash Chaturanga 
 sub...@wso2.com wrote:

 Hi Amal,
 Yes we have to push this to carbon kernel git repo and AFAIR we
 decided to make this a generic module that can be reused by the 
 platform.
 I believe the package name is also
 finalized(org.wso2.carbon.caching.invalidator) ?

 I think it is better if we can move this in to  carbon4-kernel /
 core / org.wso2.carbon.caching.core  and put this under a new 
 package named
 invalidator and the package name will be
 org.wso2.carbon.caching.core.invalidator . Azeez WDYT ?


 I am fine with that as long as the subscription to the topic does
 not automatically happen if that code is there. In most cases, we 
 will not
 need this global cache invalidation, so that code should not get 
 executed.





 On Mon, Apr 21, 2014 at 2:13 PM, Amal Gunatilake 
 am...@wso2.comwrote:

 Hi Subash,

 Sorry for the delay. Since I'm in support I didn't have much
 time to accelerate the process and during the weekend I managed to 
 finish
 all the TODOs. Currently it's not yet in kernal git repo. I have 
 the latest
 code in
 https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v2/.
 

[Dev] Please apply the diff on attached to APIMANAGER-2158

2014-04-25 Thread Chamil Jeewantha
$subject.

Thanks!

-- 
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] Exception in calling an API in APIM after integrating APIM and BAM

2014-04-25 Thread Pasanthi Amarasekera
BTW please consider that my environment is mac too.


On Fri, Apr 25, 2014 at 1:45 PM, Pasanthi Amarasekera pasan...@wso2.comwrote:

 Hi,

 When I'm calling an API, after integrating APIM and BAM, I get the
 following exception.

 ERROR - AsyncDataPublisher Error occurred while finding | defining the
 event
 org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot
 define type {  'name':'org.wso2.apimgt.statistics.response',
  'version':'1.0.0',  'nickName': 'API Manager Reponse Data',
  'description': 'Response Data',  'metaData':[
  {'name':'clientType','type':'STRING'}  ],  'payloadData':[
  {'name':'consumerKey','type':'STRING'},
  {'name':'context','type':'STRING'},
  {'name':'api_version','type':'STRING'},
  {'name':'api','type':'STRING'},
  {'name':'resource','type':'STRING'},
  {'name':'method','type':'STRING'},
  {'name':'version','type':'STRING'},
  {'name':'response','type':'INT'},
  {'name':'responseTime','type':'LONG'},
  {'name':'serviceTime','type':'LONG'},
  {'name':'userId','type':'STRING'},
  {'name':'tenantDomain','type':'STRING'},
  {'name':'hostName','type':'STRING'},
  {'name':'apiPublisher','type':'STRING'},
  {'name':'applicationName','type':'STRING'},
  {'name':'applicationId','type':'STRING'}  ]}
  at
 org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:234)
 at
 org.wso2.carbon.databridge.agent.thrift.DataPublisher.defineStream(DataPublisher.java:295)
  at
 org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$DataPublishWorker.run(AsyncDataPublisher.java:690)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  at java.util.concurrent.FutureTask.run(FutureTask.java:262)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)
 Caused by:
 org.wso2.carbon.databridge.agent.thrift.exception.EventPublisherException:
 TException
 at
 org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:120)
  at
 org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:222)
 ... 7 more
 Caused by: org.apache.thrift.transport.TTransportException
 at
 org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
 at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
  at
 org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:378)
 at
 org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:297)
  at
 org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:204)
 at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69)
  at
 org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.recv_defineStream(ThriftEventTransmissionService.java:80)
 at
 org.wso2.carbon.databridge.commons.thrift.service.general.ThriftEventTransmissionService$Client.defineStream(ThriftEventTransmissionService.java:66)
  at
 org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:109)
 ... 8 more

 Though I tried google couldn't find anything helpful for the version that
 I use. Could anyone please explain why this happens.

 Thank you

 --
 Pasanthi Amarasekera
 WSO2 Inc: http://wso2.com
 lean.enterprise.middleware

 Mobile: +94 77 9541735




-- 
Pasanthi Amarasekera
WSO2 Inc: http://wso2.com
lean.enterprise.middleware

Mobile: +94 77 9541735
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Need help on ERROR - ServerCrypto error creating ServerCryto Exception when reaching a ESB proxy

2014-04-25 Thread Supun Sethunga
Hi,

The above Read time out exception at the client side seems to occurs due
to the following Exception thrown at the server side (ESB server).

*[2014-04-25 15:04:19,321] ERROR - ServerCrypto error creating ServerCryto*
*java.lang.NullPointerException*
*at java.security.Provider$ServiceKey.init(Provider.java:517)*
*at java.security.Provider$ServiceKey.init(Provider.java:510)*
*at java.security.Provider.getService(Provider.java:684)*
*at sun.security.jca.ProviderList.getService(ProviderList.java:331)*
*at sun.security.jca.GetInstance.getInstance(GetInstance.java:157)*
*at java.security.Security.getImpl(Security.java:695)*
*at java.security.KeyStore.getInstance(KeyStore.java:613)*
*at
org.wso2.carbon.core.util.KeyStoreManager.getKeyStore(KeyStoreManager.java:138)*
*at
org.wso2.carbon.security.util.ServerCrypto.init(ServerCrypto.java:124)*
*at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)*
*at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)*
*at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)*
*at java.lang.reflect.Constructor.newInstance(Constructor.java:525)*
*at
org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:217)*
*at
org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:95)*
*at
org.apache.rampart.util.RampartUtil.getSignatureCrypto(RampartUtil.java:390)*
*at org.apache.rampart.RampartEngine.process(RampartEngine.java:162)*
*at
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)*
*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:403)*
*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:1110)*
*at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)*
*at java.lang.Thread.run(Thread.java:722)*
*[2014-04-25 15:04:19,323] ERROR - NativeWorkerPool Uncaught exception*
*java.lang.RuntimeException: org.wso2.carbon.security.util.ServerCrypto
cannot create instance*
*at
org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:231)*
*at
org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:95)*
*at
org.apache.rampart.util.RampartUtil.getSignatureCrypto(RampartUtil.java:390)*
*at org.apache.rampart.RampartEngine.process(RampartEngine.java:162)*
*at
org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)*
*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:403)*
*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:1110)*
*at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)*
*at java.lang.Thread.run(Thread.java:722)*
*Caused by: java.lang.reflect.InvocationTargetException*
*at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)*
*at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)*
*at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)*
*at java.lang.reflect.Constructor.newInstance(Constructor.java:525)*
*at
org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:217)*
*... 14 more*
*Caused by: org.apache.ws.security.components.crypto.CredentialException:
Failed to load credentials.*
*at
org.wso2.carbon.security.util.ServerCrypto.init(ServerCrypto.java:131)*
*... 19 more*
*Caused by: java.lang.NullPointerException*
*at java.security.Provider$ServiceKey.init(Provider.java:517)*
*at java.security.Provider$ServiceKey.init(Provider.java:510)*
*at java.security.Provider.getService(Provider.java:684)*
*at sun.security.jca.ProviderList.getService(ProviderList.java:331)*
*at 

[Dev] [Architecture] [App Factory] Provide custom URL for Production deployed application via the URL mapper

2014-04-25 Thread Punnadi Gunarathna
hi All,

In Dimtry's uber stories he came up with URL Mapping requirement for the
applications deployed  in Production.

This is how it will be implemented in App Factory front.

AppOwner only has permissions to domain mapping.

1. If there are more than one version of the same Application in
production, the domain mapping is available only for one version and it is
configuarable in AppHome.
(That is because in reality there can't be multiple versions of the same
application in Production. So only one domain mapping would be enough. But
in App Factory there can be multiple versions of the same application in
production)
2. User can only set the subdomian in App Home page. Subdomain will be
validated for its availability via the API provided in Stratos Manager.
Based on the available subdomain the Production URL will be created and
displayed in AppHome as follows:

http://subdomain.cloudapps.com


3.When a particualr app version is promoted to production, the above url,
cartridge type and the tenant id need to be passed to Stratos Manager via
the API.
4. The App version which has domain mapping will be highlighted. When the
deploy button is hit from Build n Repo page/AppHome page for this App
version, if AS is fronted by LB then LB will forward the request to correct
cluster node or else the request will directly hit AS.
6. Using the Virtual Host concept in AS, the deployed application will be
available in the browser.


-- 
Thanks and Regards,

Punnadi Gunarathna
Senior Software Engineer,
WSO2, Inc.; http://wso2.com http://wso2
Blog: http://hi-my-world.blogspot.com/
Tel : 94 11 214 5345
Fax :94 11 2145300



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


Re: [Dev] How to use SecVault with Dynamic User Authentication

2014-04-25 Thread Anjana Fernando
Hi,

Yeah, DevStudio features needs be updated, but until we drop full dev
support in management console, we have to keep it up to date with all the
features also.

Cheers,
Anjana.


On Fri, Apr 25, 2014 at 2:36 PM, Afkham Azeez az...@wso2.com wrote:

 I think there is too much emphasis on the management console. This has to
 be fixed in DevStudio. We really should be dropping all dev features from
 the mgt console.


 On Fri, Apr 25, 2014 at 12:21 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi Azeez,

 Seems the docs doesn't mention this specifically for this feature.
 Basically, for any XML element in the .dbs file, you can put the
 secretAlias attribute (with it's specific namespace), and at deployment
 time, it will simply replace the content of that element suitably, see [1]
 for more info. So basically, secure vault can be used for any element in
 the data services configuration. But I'm afraid, we are missing the UI
 functionality here to give the secret alias here. So this functionality
 must be done using the XML edit mode. @Chanika, please create a JIRA to
 track this.

 [1] https://docs.wso2.org/display/DSS320/Securing+Passwords

 Cheers,
 Anjana.


 On Fri, Apr 25, 2014 at 12:14 PM, Afkham Azeez az...@wso2.com wrote:

 https://docs.wso2.org/display/DSS320/Dynamic+User+Authentication

 Any docs on that?

 --
 *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*




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




 --
 *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*




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


Re: [Dev] Product repo naming in GitHub

2014-04-25 Thread Sagara Gunathunga
On Wed, Apr 23, 2014 at 1:03 PM, Madhuka Udantha madh...@wso2.com wrote:




 On Tue, Apr 22, 2014 at 11:43 AM, Udara Rathnayake uda...@wso2.comwrote:

 Hi all,

 At the moment we do have our products within GitHub[1][2]. Since we need
 to move in to the Git organizational model with repos in both wso2 and
 wso2-dev organizations we can,

 i) Rename existing repos within wso2 into product-{name}

 ii) Create new repos and move existing source

 By following the 1st approach we can keep our history

 +1, for renaming repo.


We need to follow the same naming convention across the platform for the
simplicity, use of carbon/product prefix make it clear the purpose of
each project. If there is no objection I can rename those projects.

Thanks !



 It help to track commit history
 if we follow (ii), we can have issue in forks, externals,clones. Therefore
 we have try (i)

 (but we are going to work in wso2-dev fresh repo after this move) and
 GitHub will redirect existing information to the new name[3]. Anyway we
 have to create new repos within wso2-dev organization.

 [1] https://github.com/wso2/enterprise-store
 [2] https://github.com/wso2/ues
 [3] https://help.github.com/articles/renaming-a-repository

 Regards,
 UdaraR
 --
 *Udara Rathnayake*
 Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile : +94 772207239
 Twitter : http://twitter.com/udarakr
 Blog: http://udarakr.blogspot.com




 --
 *Madhuka* Udantha
 Senior Software Engineer
 Development Technologies
 WSO2 Inc. : http://wso2.com

 *Mobile*: +94774066336
 *Blog*: http://madhukaudantha.blogspot.com/

 ___
 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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [App Factory] Provide custom URL for Production deployed application via the URL mapper

2014-04-25 Thread Amila Maha Arachchi
On Fri, Apr 25, 2014 at 3:16 PM, Punnadi Gunarathna punn...@wso2.comwrote:

 hi All,

 In Dimtry's uber stories he came up with URL Mapping requirement for the
 applications deployed  in Production.

 This is how it will be implemented in App Factory front.

 AppOwner only has permissions to domain mapping.

 1. If there are more than one version of the same Application in
 production, the domain mapping is available only for one version and it is
 configuarable in AppHome.
 (That is because in reality there can't be multiple versions of the same
 application in Production. So only one domain mapping would be enough. But
 in App Factory there can be multiple versions of the same application in
 production)
 2. User can only set the subdomian in App Home page. Subdomain will be
 validated for its availability via the API provided in Stratos Manager.
 Based on the available subdomain the Production URL will be created and
 displayed in AppHome as follows:

Don't we keep these mapped domains with AF? If we are keeping them, why do
we need to ask from SM?

  http://subdomain.cloudapps.com


 3.When a particualr app version is promoted to production, the above url,
 cartridge type and the tenant id need to be passed to Stratos Manager via
 the API.
 4. The App version which has domain mapping will be highlighted. When the
 deploy button is hit from Build n Repo page/AppHome page for this App
 version, if AS is fronted by LB then LB will forward the request to correct
 cluster node or else the request will directly hit AS.
 6. Using the Virtual Host concept in AS, the deployed application will be
 available in the browser.


 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com http://wso2
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  http://lalajisureshika.blogspot.com/




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [App Factory] Provide custom URL for Production deployed application via the URL mapper

2014-04-25 Thread Punnadi Gunarathna
Hi Amila,

Of course we will store the production url corresponding to the given
Application version in AF side.
But we have to pass the Host | Service | Tenant to Stratos side via SM.
That is what we discussed in the meeting. Please refer the mail thread
[Update] Cloud URL Mapping story for more details.


On Fri, Apr 25, 2014 at 3:35 PM, Amila Maha Arachchi ami...@wso2.comwrote:




 On Fri, Apr 25, 2014 at 3:16 PM, Punnadi Gunarathna punn...@wso2.comwrote:

 hi All,

 In Dimtry's uber stories he came up with URL Mapping requirement for the
 applications deployed  in Production.

 This is how it will be implemented in App Factory front.

 AppOwner only has permissions to domain mapping.

 1. If there are more than one version of the same Application in
 production, the domain mapping is available only for one version and it is
 configuarable in AppHome.
 (That is because in reality there can't be multiple versions of the same
 application in Production. So only one domain mapping would be enough. But
 in App Factory there can be multiple versions of the same application in
 production)
 2. User can only set the subdomian in App Home page. Subdomain will be
 validated for its availability via the API provided in Stratos Manager.
 Based on the available subdomain the Production URL will be created and
 displayed in AppHome as follows:

 Don't we keep these mapped domains with AF? If we are keeping them, why do
 we need to ask from SM?

  http://subdomain.cloudapps.com


 3.When a particualr app version is promoted to production, the above url,
 cartridge type and the tenant id need to be passed to Stratos Manager via
 the API.
 4. The App version which has domain mapping will be highlighted. When the
 deploy button is hit from Build n Repo page/AppHome page for this App
 version, if AS is fronted by LB then LB will forward the request to correct
 cluster node or else the request will directly hit AS.
 6. Using the Virtual Host concept in AS, the deployed application will be
 available in the browser.


 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com http://wso2
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  http://lalajisureshika.blogspot.com/




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




-- 
Thanks and Regards,

Punnadi Gunarathna
Senior Software Engineer,
WSO2, Inc.; http://wso2.com http://wso2
Blog: http://hi-my-world.blogspot.com/
Tel : 94 11 214 5345
Fax :94 11 2145300



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


Re: [Dev] [Architecture] [App Factory] Provide custom URL for Production deployed application via the URL mapper

2014-04-25 Thread Amila Maha Arachchi
My question is based on your statement Subdomain will be *validated* for
its availability via the API provided in Stratos Manager

Why do we need to validate the availability of the subdomain, if we
maintain the list of mapped domains within AF.


On Fri, Apr 25, 2014 at 3:46 PM, Punnadi Gunarathna punn...@wso2.comwrote:

 Hi Amila,

 Of course we will store the production url corresponding to the given
 Application version in AF side.
 But we have to pass the Host | Service | Tenant to Stratos side via SM.
 That is what we discussed in the meeting. Please refer the mail thread
 [Update] Cloud URL Mapping story for more details.


Yes, this I am aware of.



 On Fri, Apr 25, 2014 at 3:35 PM, Amila Maha Arachchi ami...@wso2.comwrote:




 On Fri, Apr 25, 2014 at 3:16 PM, Punnadi Gunarathna punn...@wso2.comwrote:

 hi All,

 In Dimtry's uber stories he came up with URL Mapping requirement for the
 applications deployed  in Production.

 This is how it will be implemented in App Factory front.

 AppOwner only has permissions to domain mapping.

 1. If there are more than one version of the same Application in
 production, the domain mapping is available only for one version and it is
 configuarable in AppHome.
 (That is because in reality there can't be multiple versions of the same
 application in Production. So only one domain mapping would be enough. But
 in App Factory there can be multiple versions of the same application in
 production)
 2. User can only set the subdomian in App Home page. Subdomain will be
 validated for its availability via the API provided in Stratos Manager.
 Based on the available subdomain the Production URL will be created and
 displayed in AppHome as follows:

 Don't we keep these mapped domains with AF? If we are keeping them, why
 do we need to ask from SM?

  http://subdomain.cloudapps.com


 3.When a particualr app version is promoted to production, the above
 url, cartridge type and the tenant id need to be passed to Stratos Manager
 via the API.
 4. The App version which has domain mapping will be highlighted. When
 the deploy button is hit from Build n Repo page/AppHome page for this App
 version, if AS is fronted by LB then LB will forward the request to correct
 cluster node or else the request will directly hit AS.
 6. Using the Virtual Host concept in AS, the deployed application will
 be available in the browser.


 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com http://wso2
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  http://lalajisureshika.blogspot.com/




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 Thanks and Regards,

 Punnadi Gunarathna
 Senior Software Engineer,
 WSO2, Inc.; http://wso2.com http://wso2
 Blog: http://hi-my-world.blogspot.com/
 Tel : 94 11 214 5345
 Fax :94 11 2145300



  http://lalajisureshika.blogspot.com/




-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to use SecVault with Dynamic User Authentication

2014-04-25 Thread Jasintha Dasanayake
Created a jira [1] to track this feature improvement

/Jasintha
[1] -  TOOLS-2447 - provide Use as Secret Alias option for password when
creating data source https://wso2.org/jira/browse/TOOLS-2447


On Fri, Apr 25, 2014 at 3:23 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi,

 Yeah, DevStudio features needs be updated, but until we drop full dev
 support in management console, we have to keep it up to date with all the
 features also.

 Cheers,
 Anjana.


 On Fri, Apr 25, 2014 at 2:36 PM, Afkham Azeez az...@wso2.com wrote:

 I think there is too much emphasis on the management console. This has to
 be fixed in DevStudio. We really should be dropping all dev features from
 the mgt console.


 On Fri, Apr 25, 2014 at 12:21 PM, Anjana Fernando anj...@wso2.comwrote:

 Hi Azeez,

 Seems the docs doesn't mention this specifically for this feature.
 Basically, for any XML element in the .dbs file, you can put the
 secretAlias attribute (with it's specific namespace), and at deployment
 time, it will simply replace the content of that element suitably, see [1]
 for more info. So basically, secure vault can be used for any element in
 the data services configuration. But I'm afraid, we are missing the UI
 functionality here to give the secret alias here. So this functionality
 must be done using the XML edit mode. @Chanika, please create a JIRA to
 track this.

 [1] https://docs.wso2.org/display/DSS320/Securing+Passwords

 Cheers,
 Anjana.


 On Fri, Apr 25, 2014 at 12:14 PM, Afkham Azeez az...@wso2.com wrote:

 https://docs.wso2.org/display/DSS320/Dynamic+User+Authentication

 Any docs on that?

 --
 *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*




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




 --
 *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*




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

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




-- 

*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] Need help on ERROR - ServerCrypto error creating ServerCryto Exception when reaching a ESB proxy

2014-04-25 Thread Supun Sethunga
Hi,


Seemed the policy of the my proxy faulty. Corrected it and Service Crypto
Exceptions are no longer thrown. But instead gets a different Exception as
following.

* NativeWorkerPool Uncaught exception*
*java.lang.NullPointerException*
*at
org.apache.ws.security.message.token.X509Security.getX509Certificate(X509Security.java:94)*
*at
org.apache.ws.security.processor.BinarySecurityTokenProcessor.getCertificatesTokenReference(BinarySecurityTokenProcessor.java:109)*
*at
org.apache.ws.security.processor.BinarySecurityTokenProcessor.handleToken(BinarySecurityTokenProcessor.java:84)*
*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)*
*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:403)*
*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:1110)*
*at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)*
*at java.lang.Thread.run(Thread.java:722)*

This has been discussed in [1] as well. But unlike in [1], in my case, both
the client's and the server's policy is the same. (use the same policy.xml
file, which I have attached herewith).

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

Regards,
Supun



On Fri, Apr 25, 2014 at 3:15 PM, Supun Sethunga sup...@wso2.com wrote:

 Hi,

 The above Read time out exception at the client side seems to occurs due
 to the following Exception thrown at the server side (ESB server).

 *[2014-04-25 15:04:19,321] ERROR - ServerCrypto error creating ServerCryto*
 *java.lang.NullPointerException*
 *at java.security.Provider$ServiceKey.init(Provider.java:517)*
 *at java.security.Provider$ServiceKey.init(Provider.java:510)*
 *at java.security.Provider.getService(Provider.java:684)*
 *at sun.security.jca.ProviderList.getService(ProviderList.java:331)*
 *at sun.security.jca.GetInstance.getInstance(GetInstance.java:157)*
 *at java.security.Security.getImpl(Security.java:695)*
 *at java.security.KeyStore.getInstance(KeyStore.java:613)*
 *at
 org.wso2.carbon.core.util.KeyStoreManager.getKeyStore(KeyStoreManager.java:138)*
 *at
 org.wso2.carbon.security.util.ServerCrypto.init(ServerCrypto.java:124)*
 *at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)*
 *at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)*
 *at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)*
 *at java.lang.reflect.Constructor.newInstance(Constructor.java:525)*
 *at
 org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:217)*
 *at
 org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:95)*
 *at
 org.apache.rampart.util.RampartUtil.getSignatureCrypto(RampartUtil.java:390)*
 *at org.apache.rampart.RampartEngine.process(RampartEngine.java:162)*
 *at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)*
 *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:403)*
 *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:1110)*
 *at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)*
 *at java.lang.Thread.run(Thread.java:722)*
 *[2014-04-25 15:04:19,323] ERROR - NativeWorkerPool Uncaught exception*
 *java.lang.RuntimeException: org.wso2.carbon.security.util.ServerCrypto
 cannot create instance*
 *at
 org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:231)*
 *at
 org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:95)*
 *

[Dev] Build failure in chunk-10 in a clean repo

2014-04-25 Thread Isuru Udana
Hi,

I am getting the following.

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project
org.wso2.carbon.identity.application.authenticator.samlsso: Compilation
failure: Compilation failure:
[ERROR]
/media/isuru/WSO2/svn/public/4.2.0/platform/turing/components/identity/org.wso2.carbon.identity.application.authenticator.samlsso/4.2.1/src/main/java/org/wso2/carbon/identity/application/authenticator/samlsso/SAMLSSOAuthenticator.java:[67,16]
setSubjectAttributes(java.util.Maporg.wso2.carbon.identity.application.common.model.ClaimMapping,java.lang.String)
in
org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext
cannot be applied to (java.util.Mapjava.lang.String,java.lang.String)
[ERROR]
/media/isuru/WSO2/svn/public/4.2.0/platform/turing/components/identity/org.wso2.carbon.identity.application.authenticator.samlsso/4.2.1/src/main/java/org/wso2/carbon/identity/application/authenticator/samlsso/SAMLSSOAuthenticator.java:[168,37]
incompatible types
[ERROR] found   :
java.util.Maporg.wso2.carbon.identity.application.common.model.ClaimMapping,java.lang.String
[ERROR] required: java.util.Mapjava.lang.String,java.lang.String
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn goals -rf
:org.wso2.carbon.identity.application.authenticator.samlsso


-- 
*Isuru Udana*
 Senior
* Software Engineer*
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
twitter: http://twitter.com/isudana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Problem in sending a message in the payload of WSRequest in Jaggery

2014-04-25 Thread Jayanga Dissanayake
Hi All,

I am trying to send some payload in a Jaggey WSRequest, according to the
sample in [1]. But this pay load is not received in the carbon admin server
end.

Following is how I am sending the message in the Jaggery App. But message
is null in the action echoString.

Any idea why message is null at the carbon admin service end?


Jaggery Code

var ws = require('ws');
var options = new Array();
options.useSOAP = false;
options.action = 'urn:echoString';
options.HTTPMethod = GET;
options[HTTPHeaders] = [ { name : Authorization, value : Basic
YWRtaW46YWRtaW4=} ];

ws_request.open(options, node.adminServiceURL + services/
OperationCenterAgentService/echoString, false);

//var test = 'messageABC/message';
var test = 'soap:Envelope xmlns:soap=
http://www.w3.org/2003/05/soap-envelope; xmlns:ser=
http://services.oc.carbon.wso2.org;soap:Header/'
   +
'soap:Bodyser:echoStringser:message![CDATA[metadata
xmlns=http://org.wso2.carbon.oc.services/agents;namead/
name/metadata]]/ser:message/ser:echoString'
   + '/soap:Body/soap:Envelope';
ws_request.send(test);
var result = ws_request.responseE4X;
print(result);


Admin Service
-
public String echoString(String message){
System.out.println(===echoString=== [Message= + message + ]);
return message;
}


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


*Jayanga Dissanayake*
Senior Software Engineer
WSO2 Inc. - http://wso2.com/
lean . enterprise . middleware
email: jaya...@wso2.com
mobile: +94772207259
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Axis2 server shifted with wso2esb-4.9.0-SNAPSHOT can not manage more than one aar service.

2014-04-25 Thread Nuwan Wimalasekara
Hi
Sagara and me did go through all the commits and found the commit[1] which
leads to cause the above issue.  Please fix the issue.

[1]
https://github.com/wso2/wso2-axis2/commit/6292326a39d06deb1ede944afd3e1a6b77621a33

Thanks,
Nuwanw



On Fri, Apr 25, 2014 at 3:32 PM, Nuwan Wimalasekara nuw...@wso2.com wrote:

 Hi Sagara



 On Fri, Apr 25, 2014 at 12:23 AM, Sagara Gunathunga sag...@wso2.comwrote:




 On Thu, Apr 24, 2014 at 8:41 PM, Nuwan Wimalasekara nuw...@wso2.comwrote:

 Hi,
 Once multiple services are deployed in axis2 server shifted with
 wso2esb, It can not serve the requests for all services. It can only
 serve the one service which is initialized first. Then other services can
 not be invoked.

 @ESB Team
 I am getting this issue when running the integration test as well and
 some of test are getting failed. Can you please have a look into this
 issue.


 1. Can please build Axis2  locally [1] and  repeat same  tests ?

 I built axis2[1] locally and issue can be simply reproduced on axis2
 distribution as well.


 2. Did you try same test with AS 5.3.0 M1 pack ?

 [1] - https://github.com/wso2/wso2-axis2/tree/master/modules/distribution

 Thanks !


 Thanks,
 Nuwanw





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

 STEPS
 1) Deploy two axis2 services. (SimpleStockQuoteService1 and
 SimpleStockQuoteService2)
 2) Invoke the SimpleStockQuoteService1 service.
 Then it will work fine.
 3) Invoke the SimpleStockQuoteService2.
 Then bellow exception is observed in axis2 backend and AxisFault is
 received as the response.
 org.apache.axis2.AxisFault: object is not an instance of declaring
 class

 14/04/24 20:15:27 ERROR receivers.RPCMessageReceiver: object is not an
 instance of declaring class
 java.lang.IllegalArgumentException: object is not an instance of
 declaring class
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 atorg.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:496)
 atorg.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:846)
 at org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(
 BeanUtil.java:765)
 atorg.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:674)
 atorg.apache.axis2.rpc.receivers.RPCUtil.processRequest(RPCUtil.java:153)
 at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(
 RPCUtil.java:206)
 at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
 (RPCMessageReceiver.java:117)
 at org.apache.axis2.receivers.AbstractInOutMessageReceiver.
 invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
 at org.apache.axis2.receivers.AbstractMessageReceiver.receive(
 AbstractMessageReceiver.java:110)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 atorg.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
 atorg.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:459)
 at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java
 :279)
 at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(
 NativeWorkerPool.java:172)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
 ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(
 ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 14/04/24 20:15:27 ERROR nhttp.ServerWorker: Error processing POST
 request
 org.apache.axis2.AxisFault: object is not an instance of declaring
 class
 at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
 at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
 (RPCMessageReceiver.java:211)
 at org.apache.axis2.receivers.AbstractInOutMessageReceiver.
 invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
 at org.apache.axis2.receivers.AbstractMessageReceiver.receive(
 AbstractMessageReceiver.java:110)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 atorg.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
 atorg.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:459)
 at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java
 :279)
 at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(
 NativeWorkerPool.java:172)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
 ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(
 ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
 Caused by: java.lang.IllegalArgumentException: object is not an
 instance of declaring class
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 

[Dev] Java Agent in OSGI

2014-04-25 Thread Dhanuka Ranasinghe
HI,

Does java agent loaded before OSGi framework loaded?
If Yes Is there any special mechanism to mention java agents in OSGi ?

Cheers,
Dhanuka
*Dhanuka Ranasinghe*

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

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


[Dev] Support for SessionListener in Jaggery.

2014-04-25 Thread Ramith Jayasinghe
in Appfactory we have a requirement for intercept http sessions being
created and invalidated. in a typical web application this could be done by
having following settings in web.xml:


web-app ...
listener

listener-classorg.wso2.carbon.sample.MyHttpSessionListener/listener-class
/listener/web-app


Could we have something similar in jaggery too?
currently having following in jaggery.conf doesn't seems to do anything:

listener:
{
   listener-class:org.wso2.carbon.sample.MyHttpSessionListener
}

Thoughts Please?

P.S.: we are using Jaggery v 0.9.0.ALPHA4.wso2v1


-- 
Ramith Jayasinghe
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] Issue with deploying JAX-RS webapp in EMM

2014-04-25 Thread Gayan Gunawardana
Hi All,

We are working on Integrating APIM to EMM. According to API security
requirement we have to put oauth feature inside EMM server. There is no
issue with installing the oauth feature but there is a JAX-RS webapp
(oauth2.war) which need to be deployed. Deploying JAX-RS webapps does not
work properly in EMM server.

Artefacts like web app management feature, cxf runtime feature,
context.xml, webapp-classloading.xml, webapp-classloading-environments.xml
already available in the EMM server.  AS team also helped to figure out the
issue but couldn't really find the issue.

with debugging I found while deploying a jax-rs web app it does not hit
CarbonWebappClassLoader.

But org.wso2.carbon.tomcat CarbonTomcat reads configuration files properly.

WDYT regarding this ?

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


Re: [Dev] Issue with deploying JAX-RS webapp in EMM

2014-04-25 Thread Kasun Gajasinghe
Can you list down the features you installed? Can you also check the
assembly bin.xml in AS distribution to identify the additional files AS has
copied that are related to cxf? As we saw, EMM missed context.xml.


On Fri, Apr 25, 2014 at 6:26 PM, Gayan Gunawardana ga...@wso2.com wrote:

 Hi All,

 We are working on Integrating APIM to EMM. According to API security
 requirement we have to put oauth feature inside EMM server. There is no
 issue with installing the oauth feature but there is a JAX-RS webapp
 (oauth2.war) which need to be deployed. Deploying JAX-RS webapps does not
 work properly in EMM server.

 Artefacts like web app management feature, cxf runtime feature,
 context.xml, webapp-classloading.xml, webapp-classloading-environments.xml
 already available in the EMM server.  AS team also helped to figure out the
 issue but couldn't really find the issue.

 with debugging I found while deploying a jax-rs web app it does not hit
 CarbonWebappClassLoader.

 But org.wso2.carbon.tomcat CarbonTomcat reads configuration files properly.

 WDYT regarding this ?

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




-- 

*Kasun Gajasinghe*Senior 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] Support for SessionListener in Jaggery.

2014-04-25 Thread Dilshan Edirisuriya
Hi,

Don't think this is supported in Jaggery. But you can extend Jaggery to
support this. This needs to be added dynamically when server startup
thorugh the tomcat API. Same can be done to filters as well.

Regards,

Dilshan


On Fri, Apr 25, 2014 at 6:20 PM, Ramith Jayasinghe ram...@wso2.com wrote:

 in Appfactory we have a requirement for intercept http sessions being
 created and invalidated. in a typical web application this could be done by
 having following settings in web.xml:


 web-app ...
 listener
   
 listener-classorg.wso2.carbon.sample.MyHttpSessionListener/listener-class
   /listener/web-app


 Could we have something similar in jaggery too?
 currently having following in jaggery.conf doesn't seems to do anything:

 listener:
 {
listener-class:org.wso2.carbon.sample.MyHttpSessionListener
 }

 Thoughts Please?

 P.S.: we are using Jaggery v 0.9.0.ALPHA4.wso2v1


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


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




-- 
Dilshan Edirisuriya
Senior Software Engineer - WSO2
Mob: + 94 777878905
http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Support for SessionListener in Jaggery.

2014-04-25 Thread Ruchira Wageesha
Hi Ramith,

In Jaggery master(from 0.9.0.ALPHA4.wso2v4 onwards), we have added that
support. You can specific scripts to be executed for session create/destroy
events. i.e. In jaggery.conf you can have the following. Within the
scripts, you can also access the session being created/destroyed via
session global.

{
 sessionCreatedListeners: [created.js],
sessionDestroyedListeners: [destroyed.js]
}

/Ruchira


On Fri, Apr 25, 2014 at 6:20 PM, Ramith Jayasinghe ram...@wso2.com wrote:

 in Appfactory we have a requirement for intercept http sessions being
 created and invalidated. in a typical web application this could be done by
 having following settings in web.xml:


 web-app ...
 listener
   
 listener-classorg.wso2.carbon.sample.MyHttpSessionListener/listener-class
   /listener/web-app


 Could we have something similar in jaggery too?
 currently having following in jaggery.conf doesn't seems to do anything:

 listener:
 {
listener-class:org.wso2.carbon.sample.MyHttpSessionListener
 }

 Thoughts Please?

 P.S.: we are using Jaggery v 0.9.0.ALPHA4.wso2v1


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




-- 

*Ruchira Wageesha**Associate Technical Lead*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com*

*email: ruch...@wso2.com ruch...@wso2.com,   blog:
ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
mobile: +94 77 5493444*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] EMM - iOS 7.1 change

2014-04-25 Thread Niranjan Karunanandham
Hi all,

While deploying the EMM in the server, we noticed that for iOS 7.1 (which
came after our release) does not allow the iOS EMM agent to be downloaded
using http. For it to work using https, the SSL certificate needs to be
trusted, else the CA certificate needs to be download before downloading
the agent. In the current pack, the CA certificate is downloaded only after
downloading and installing the agent.

To solve this, the flow needs to be changed so that if the SSL certificate
is not trusted then the CA certificate needs to be downloaded before
downloading the agent.

Regards,
Nira
-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
M: +94 777 749 661 http:///
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Support for SessionListener in Jaggery.

2014-04-25 Thread Ramith Jayasinghe
Nice !!!
thank you for this information.


On Fri, Apr 25, 2014 at 6:35 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Hi Ramith,

 In Jaggery master(from 0.9.0.ALPHA4.wso2v4 onwards), we have added that
 support. You can specific scripts to be executed for session create/destroy
 events. i.e. In jaggery.conf you can have the following. Within the
 scripts, you can also access the session being created/destroyed via
 session global.

 {
  sessionCreatedListeners: [created.js],
  sessionDestroyedListeners: [destroyed.js]
 }

 /Ruchira


 On Fri, Apr 25, 2014 at 6:20 PM, Ramith Jayasinghe ram...@wso2.comwrote:

 in Appfactory we have a requirement for intercept http sessions being
 created and invalidated. in a typical web application this could be done by
 having following settings in web.xml:


 web-app ...
 listener
  
 listener-classorg.wso2.carbon.sample.MyHttpSessionListener/listener-class
  /listener/web-app


 Could we have something similar in jaggery too?
 currently having following in jaggery.conf doesn't seems to do anything:

 listener:
 {
listener-class:org.wso2.carbon.sample.MyHttpSessionListener
 }

 Thoughts Please?

 P.S.: we are using Jaggery v 0.9.0.ALPHA4.wso2v1


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




 --

 *Ruchira Wageesha**Associate Technical Lead*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com*

 *email: ruch...@wso2.com ruch...@wso2.com,   blog:
 ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
 mobile: +94 77 5493444 %2B94%2077%205493444*




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

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


Re: [Dev] Support for SessionListener in Jaggery.

2014-04-25 Thread Dilshan Edirisuriya
Hi,

Sorry didn't know that. Does other session related listeners such as event
listeners and activation listeners are also supported?

[1] -
http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSessionEvent.html
[2] -
http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSessionActivationListener.html

Regards,

Dilshan


On Fri, Apr 25, 2014 at 6:35 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Hi Ramith,

 In Jaggery master(from 0.9.0.ALPHA4.wso2v4 onwards), we have added that
 support. You can specific scripts to be executed for session create/destroy
 events. i.e. In jaggery.conf you can have the following. Within the
 scripts, you can also access the session being created/destroyed via
 session global.

 {
  sessionCreatedListeners: [created.js],
  sessionDestroyedListeners: [destroyed.js]
 }

 /Ruchira


 On Fri, Apr 25, 2014 at 6:20 PM, Ramith Jayasinghe ram...@wso2.comwrote:

 in Appfactory we have a requirement for intercept http sessions being
 created and invalidated. in a typical web application this could be done by
 having following settings in web.xml:


 web-app ...
 listener
  
 listener-classorg.wso2.carbon.sample.MyHttpSessionListener/listener-class
  /listener/web-app


 Could we have something similar in jaggery too?
 currently having following in jaggery.conf doesn't seems to do anything:

 listener:
 {
listener-class:org.wso2.carbon.sample.MyHttpSessionListener
 }

 Thoughts Please?

 P.S.: we are using Jaggery v 0.9.0.ALPHA4.wso2v1


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




 --

 *Ruchira Wageesha**Associate Technical Lead*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com*

 *email: ruch...@wso2.com ruch...@wso2.com,   blog:
 ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
 mobile: +94 77 5493444 %2B94%2077%205493444*

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




-- 
Dilshan Edirisuriya
Senior Software Engineer - WSO2
Mob: + 94 777878905
http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Support for SessionListener in Jaggery.

2014-04-25 Thread Sagara Gunathunga
On Fri, Apr 25, 2014 at 6:35 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Hi Ramith,

 In Jaggery master(from 0.9.0.ALPHA4.wso2v4 onwards), we have added that
 support. You can specific scripts to be executed for session create/destroy
 events. i.e. In jaggery.conf you can have the following. Within the
 scripts, you can also access the session being created/destroyed via
 session global.

 {
  sessionCreatedListeners: [created.js],
  sessionDestroyedListeners: [destroyed.js]
 }


Additionally it would be better to support adding/removing/changing events
for session attributes as well to make this complete.

Thanks !




 /Ruchira


 On Fri, Apr 25, 2014 at 6:20 PM, Ramith Jayasinghe ram...@wso2.comwrote:

 in Appfactory we have a requirement for intercept http sessions being
 created and invalidated. in a typical web application this could be done by
 having following settings in web.xml:


 web-app ...
 listener
  
 listener-classorg.wso2.carbon.sample.MyHttpSessionListener/listener-class
  /listener/web-app


 Could we have something similar in jaggery too?
 currently having following in jaggery.conf doesn't seems to do anything:

 listener:
 {
listener-class:org.wso2.carbon.sample.MyHttpSessionListener
 }

 Thoughts Please?

 P.S.: we are using Jaggery v 0.9.0.ALPHA4.wso2v1


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




 --

 *Ruchira Wageesha**Associate Technical Lead*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com*

 *email: ruch...@wso2.com ruch...@wso2.com,   blog:
 ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
 mobile: +94 77 5493444 %2B94%2077%205493444*

 ___
 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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue with deploying JAX-RS webapp in EMM

2014-04-25 Thread Gayan Gunawardana
Hi,

Thanks for the quick reply.

These are the features I have installed

org.wso2.carbon:org.wso2.carbon.webapp.mgt.server.feature:4.2.2

org.wso2.carbon:org.wso2.carbon.jaxws.webapp.mgt.feature:4.2.0

org.wso2.carbon:org.wso2.carbon.as.runtimes.cxf.feature:4.2.2

I have already updated bin.xml to copy necessary configurations like
context.xml, will double check with AS.


On Fri, Apr 25, 2014 at 6:32 PM, Kasun Gajasinghe kas...@wso2.com wrote:


 Can you list down the features you installed? Can you also check the
 assembly bin.xml in AS distribution to identify the additional files AS has
 copied that are related to cxf? As we saw, EMM missed context.xml.


 On Fri, Apr 25, 2014 at 6:26 PM, Gayan Gunawardana ga...@wso2.com wrote:

 Hi All,

 We are working on Integrating APIM to EMM. According to API security
 requirement we have to put oauth feature inside EMM server. There is no
 issue with installing the oauth feature but there is a JAX-RS webapp
 (oauth2.war) which need to be deployed. Deploying JAX-RS webapps does not
 work properly in EMM server.

 Artefacts like web app management feature, cxf runtime feature,
 context.xml, webapp-classloading.xml, webapp-classloading-environments.xml
 already available in the EMM server.  AS team also helped to figure out the
 issue but couldn't really find the issue.

 with debugging I found while deploying a jax-rs web app it does not hit
 CarbonWebappClassLoader.

 But org.wso2.carbon.tomcat CarbonTomcat reads configuration files
 properly.

 WDYT regarding this ?

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




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






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


Re: [Dev] Support for SessionListener in Jaggery.

2014-04-25 Thread Ramith Jayasinghe
BTW, this means we have to upgrade our jaggery version to
0.9.0.ALPHA4.wso2v4


On Fri, Apr 25, 2014 at 6:35 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Hi Ramith,

 In Jaggery master(from 0.9.0.ALPHA4.wso2v4 onwards), we have added that
 support. You can specific scripts to be executed for session create/destroy
 events. i.e. In jaggery.conf you can have the following. Within the
 scripts, you can also access the session being created/destroyed via
 session global.

 {
  sessionCreatedListeners: [created.js],
  sessionDestroyedListeners: [destroyed.js]
 }

 /Ruchira


 On Fri, Apr 25, 2014 at 6:20 PM, Ramith Jayasinghe ram...@wso2.comwrote:

 in Appfactory we have a requirement for intercept http sessions being
 created and invalidated. in a typical web application this could be done by
 having following settings in web.xml:


 web-app ...
 listener
  
 listener-classorg.wso2.carbon.sample.MyHttpSessionListener/listener-class
  /listener/web-app


 Could we have something similar in jaggery too?
 currently having following in jaggery.conf doesn't seems to do anything:

 listener:
 {
listener-class:org.wso2.carbon.sample.MyHttpSessionListener
 }

 Thoughts Please?

 P.S.: we are using Jaggery v 0.9.0.ALPHA4.wso2v1


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




 --

 *Ruchira Wageesha**Associate Technical Lead*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com*

 *email: ruch...@wso2.com ruch...@wso2.com,   blog:
 ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
 mobile: +94 77 5493444 %2B94%2077%205493444*




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

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


Re: [Dev] EMM - iOS 7.1 change

2014-04-25 Thread Dilshan Edirisuriya
Hi,

Yes this flow needs to be changed. The issue with downloading the CA at
that level is if it was browsed through gmail app or any other mail app
other than the native mail client this will not work. Need a workaround for
this.

Regards,

Dilshan


On Fri, Apr 25, 2014 at 6:36 PM, Niranjan Karunanandham
niran...@wso2.comwrote:

 Hi all,

 While deploying the EMM in the server, we noticed that for iOS 7.1 (which
 came after our release) does not allow the iOS EMM agent to be downloaded
 using http. For it to work using https, the SSL certificate needs to be
 trusted, else the CA certificate needs to be download before downloading
 the agent. In the current pack, the CA certificate is downloaded only after
 downloading and installing the agent.

 To solve this, the flow needs to be changed so that if the SSL certificate
 is not trusted then the CA certificate needs to be downloaded before
 downloading the agent.

 Regards,
 Nira
 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com
 M: +94 777 749 661 http:///




-- 
Dilshan Edirisuriya
Senior Software Engineer - WSO2
Mob: + 94 777878905
http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EMM - iOS 7.1 change

2014-04-25 Thread Niranjan Karunanandham
Hi Dilshan,

For the next release I have added a validation at the Download app page
where if it is an iPhone or iPad then the download CA button appears with a
message that the user needs to first download it before downloading the
app. In the case of Android, this button is hidden. And when the Start
Registration button is clicked, it will display the EMM Login Page for iOS
(not the Download Certificate page). I have tested this and it is working
fine.

I haven't tested it by browsing other mail app. In iOS to download
profiles, you need to go through Safari. Therefore we can have a validation
to check if the Download page is accessed from Safari (from the user-agent)
else we display a link to the same page using openurl to Safari. I think
this will solve the issue.

Regards,
Nira




On Fri, Apr 25, 2014 at 8:55 PM, Dilshan Edirisuriya dils...@wso2.comwrote:

 Hi,

 Yes this flow needs to be changed. The issue with downloading the CA at
 that level is if it was browsed through gmail app or any other mail app
 other than the native mail client this will not work. Need a workaround for
 this.

 Regards,

 Dilshan


 On Fri, Apr 25, 2014 at 6:36 PM, Niranjan Karunanandham niran...@wso2.com
  wrote:

 Hi all,

 While deploying the EMM in the server, we noticed that for iOS 7.1 (which
 came after our release) does not allow the iOS EMM agent to be downloaded
 using http. For it to work using https, the SSL certificate needs to be
 trusted, else the CA certificate needs to be download before downloading
 the agent. In the current pack, the CA certificate is downloaded only after
 downloading and installing the agent.

 To solve this, the flow needs to be changed so that if the SSL
 certificate is not trusted then the CA certificate needs to be downloaded
 before downloading the agent.

 Regards,
 Nira
 --

 *Niranjan Karunanandham*
 Senior Software Engineer - WSO2 Inc.
 WSO2 Inc.: http://www.wso2.com
 M: +94 777 749 661 http:///




 --
 Dilshan Edirisuriya

 Senior Software Engineer - WSO2
 Mob: + 94 777878905
 http://wso2.com/




-- 

*Niranjan Karunanandham*
Senior Software Engineer - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
M: +94 777 749 661 http:///
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] -Dtenant.idle.time property in documentation?

2014-04-25 Thread Bhathiya Jayasekara
Hi all,

Where do we have details about $subject?

Thanks,

-- 
*Bhathiya Jayasekara*
*Software Engineer,*
*WSO2 inc., http://wso2.com http://wso2.com*

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
http://www.linkedin.com/in/bhathiyaj*
*Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax*
*Blog: http://movingaheadblog.blogspot.com
http://movingaheadblog.blogspot.com/*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Error when Stratos Manager tries to add permission at tenant creation from AF

2014-04-25 Thread Amila Maha Arachchi
Hi,

We have configured AF M11 and S4 alpha packs. When a tenant is created in
AF, we see the following exception in Stratos Manager. Because of this,
subscriptions are not created.

AFAIK, AF team has got this fixed for AF M13 and S4 RC1. I got the same
patch applied to M11. But the issue is still there.



TID: [0] [SCC] [2014-04-25 09:35:45,509]  INFO
{org.wso2.carbon.appfactory.stratos.listeners.CloudEnvironmentPermissionListener}
-  *adding permissions**
{org.wso2.carbon.appfactory.stratos.listeners.CloudEnvironmentPermissionListener}

TID: [0] [SCC] [2014-04-25 09:35:46,114]  WARN
{org.wso2.carbon.appfactory.stratos.util.ListenerUtils} -
CloudResourcePermissions.Resources.Resource configuration not defined
{org.wso2.carbon.appfactory.stratos.util.ListenerUtils}

TID: [0] [SCC] [2014-04-25 09:35:47,040]  INFO
{org.wso2.carbon.core.multitenancy.TenantAxisConfigurator} -  Creating
tenant AxisConfiguration for tenant: dom39.com[38]
{org.wso2.carbon.core.multitenancy.TenantAxisConfigurator}

TID: [0] [SCC] [2014-04-25 09:35:47,646] ERROR
{org.wso2.carbon.transaction.manager.TransactionManagerComponent} -  Error
in binding transaction manager for tenant: 38
{org.wso2.carbon.transaction.manager.TransactionManagerComponent}

java.lang.RuntimeException: An error occurred while creating the initial
context for tenant: 38

at
org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.getInitialContext(CarbonContextDataHolder.java:908)

at
org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:951)

at javax.naming.InitialContext.lookup(InitialContext.java:411)

at
org.wso2.carbon.transaction.manager.TransactionManagerComponent.bindTransactionManagerWithJNDIForTenant(TransactionManagerComponent.java:166)

at
org.wso2.carbon.transaction.manager.TransactionManagerAxis2ConfigurationContextObserver.createdConfigurationContext(TransactionManagerAxis2ConfigurationContextObserver.java:34)

at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:344)

at
org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135)

at
org.apache.stratos.rest.endpoint.services.AbstractAdmin.getConfigContext(AbstractAdmin.java:46)

at
org.apache.stratos.rest.endpoint.services.StratosAdmin.subscribe(StratosAdmin.java:361)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)

at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)

at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)

at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)

at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)

at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)

at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)

at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)

at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)

at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)

at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)

at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)

at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)

at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)

at

Re: [Dev] Java Agent in OSGI

2014-04-25 Thread Afkham Azeez
On Fri, Apr 25, 2014 at 6:17 PM, Dhanuka Ranasinghe dhan...@wso2.comwrote:

 HI,

 Does java agent loaded before OSGi framework loaded?


What is Java agent


 If Yes Is there any special mechanism to mention java agents in OSGi ?

 Cheers,
 Dhanuka
 *Dhanuka Ranasinghe*

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

 phone : +94 715381915




-- 
*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 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


Re: [Dev] Java Agent in OSGI

2014-04-25 Thread Dhanuka Ranasinghe
*Dhanuka Ranasinghe*

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

phone : +94 715381915


On Fri, Apr 25, 2014 at 11:24 PM, Afkham Azeez az...@wso2.com wrote:




 On Fri, Apr 25, 2014 at 6:17 PM, Dhanuka Ranasinghe dhan...@wso2.comwrote:

 HI,

 Does java agent loaded before OSGi framework loaded?

 Yes, it's defined in wso2server.sh


 What is Java agent

-javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar
\



 If Yes Is there any special mechanism to mention java agents in OSGi ?

 Cheers,
 Dhanuka
 *Dhanuka Ranasinghe*

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

 phone : +94 715381915




 --
 *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


Re: [Dev] Build failure in chunk-10 in a clean repo

2014-04-25 Thread Johann Nallathamby
This has been fixed with r201130.


On Fri, Apr 25, 2014 at 4:52 PM, Isuru Udana isu...@wso2.com wrote:

 Hi,

 I am getting the following.

 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project
 org.wso2.carbon.identity.application.authenticator.samlsso: Compilation
 failure: Compilation failure:
 [ERROR]
 /media/isuru/WSO2/svn/public/4.2.0/platform/turing/components/identity/org.wso2.carbon.identity.application.authenticator.samlsso/4.2.1/src/main/java/org/wso2/carbon/identity/application/authenticator/samlsso/SAMLSSOAuthenticator.java:[67,16]
 setSubjectAttributes(java.util.Maporg.wso2.carbon.identity.application.common.model.ClaimMapping,java.lang.String)
 in
 org.wso2.carbon.identity.application.authentication.framework.context.AuthenticationContext
 cannot be applied to (java.util.Mapjava.lang.String,java.lang.String)
 [ERROR]
 /media/isuru/WSO2/svn/public/4.2.0/platform/turing/components/identity/org.wso2.carbon.identity.application.authenticator.samlsso/4.2.1/src/main/java/org/wso2/carbon/identity/application/authenticator/samlsso/SAMLSSOAuthenticator.java:[168,37]
 incompatible types
 [ERROR] found   :
 java.util.Maporg.wso2.carbon.identity.application.common.model.ClaimMapping,java.lang.String
 [ERROR] required: java.util.Mapjava.lang.String,java.lang.String
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
 [ERROR]
 [ERROR] After correcting the problems, you can resume the build with the
 command
 [ERROR]   mvn goals -rf
 :org.wso2.carbon.identity.application.authenticator.samlsso


 --
 *Isuru Udana*
  Senior
 * Software Engineer*
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/
 twitter: http://twitter.com/isudana




-- 
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] Support for SessionListener in Jaggery.

2014-04-25 Thread Madhuka Udantha
On Fri, Apr 25, 2014 at 6:57 PM, Ramith Jayasinghe ram...@wso2.com wrote:

 BTW, this means we have to upgrade our jaggery version to
 0.9.0.ALPHA4.wso2v4

Since you used 0.9.0.ALPHA4.wso2v1.
Moving into 0.9.0.ALPHA4.wso2v4 from 0.9.0.ALPHA4.wso2v1 is not much issue
in my idea, there is no much changes.
(Jaggery module level few). Since both version used same carbon version.,
(AFIK there is no API changes)



 On Fri, Apr 25, 2014 at 6:35 PM, Ruchira Wageesha ruch...@wso2.comwrote:

 Hi Ramith,

 In Jaggery master(from 0.9.0.ALPHA4.wso2v4 onwards), we have added that
 support. You can specific scripts to be executed for session create/destroy
 events. i.e. In jaggery.conf you can have the following. Within the
 scripts, you can also access the session being created/destroyed via
 session global.

 {
  sessionCreatedListeners: [created.js],
  sessionDestroyedListeners: [destroyed.js]
 }

 /Ruchira


 On Fri, Apr 25, 2014 at 6:20 PM, Ramith Jayasinghe ram...@wso2.comwrote:

 in Appfactory we have a requirement for intercept http sessions being
 created and invalidated. in a typical web application this could be done by
 having following settings in web.xml:


 web-app ...
 listener
 
 listener-classorg.wso2.carbon.sample.MyHttpSessionListener/listener-class
 /listener/web-app


 Could we have something similar in jaggery too?
 currently having following in jaggery.conf doesn't seems to do anything:

 listener:
 {

 listener-class:org.wso2.carbon.sample.MyHttpSessionListener
 }

 Thoughts Please?

 P.S.: we are using Jaggery v 0.9.0.ALPHA4.wso2v1


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




 --

 *Ruchira Wageesha**Associate Technical Lead*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com*

 *email: ruch...@wso2.com ruch...@wso2.com,   blog:
 ruchirawageesha.blogspot.com http://ruchirawageesha.blogspot.com,
 mobile: +94 77 5493444 %2B94%2077%205493444*




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

 E: ram...@wso2.com
 P: +94 776715671




-- 
*Madhuka* Udantha
Senior Software Engineer
Development Technologies
WSO2 Inc. : http://wso2.com

*Mobile*: +94774066336
*Blog*: http://madhukaudantha.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Java Agent in OSGI

2014-04-25 Thread Afkham Azeez
Ok, can somebody point to any discussion about this agent. I may have
missed it.


On Fri, Apr 25, 2014 at 11:27 PM, Dhanuka Ranasinghe dhan...@wso2.comwrote:



 *Dhanuka Ranasinghe*

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

 phone : +94 715381915


 On Fri, Apr 25, 2014 at 11:24 PM, Afkham Azeez az...@wso2.com wrote:




 On Fri, Apr 25, 2014 at 6:17 PM, Dhanuka Ranasinghe dhan...@wso2.comwrote:

 HI,

 Does java agent loaded before OSGi framework loaded?

 Yes, it's defined in wso2server.sh


 What is Java agent

 -javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar
 \



 If Yes Is there any special mechanism to mention java agents in OSGi ?

 Cheers,
 Dhanuka
 *Dhanuka Ranasinghe*

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

 phone : +94 715381915




 --
 *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*





-- 
*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 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


Re: [Dev] Java Agent in OSGI

2014-04-25 Thread Dhanuka Ranasinghe
http://wso2.com/mailarchive/dev/2012-July/009269.html

*Dhanuka Ranasinghe*

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

phone : +94 715381915


On Fri, Apr 25, 2014 at 11:38 PM, Afkham Azeez az...@wso2.com wrote:

 Ok, can somebody point to any discussion about this agent. I may have
 missed it.


 On Fri, Apr 25, 2014 at 11:27 PM, Dhanuka Ranasinghe dhan...@wso2.comwrote:



 *Dhanuka Ranasinghe*

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

 phone : +94 715381915


 On Fri, Apr 25, 2014 at 11:24 PM, Afkham Azeez az...@wso2.com wrote:




 On Fri, Apr 25, 2014 at 6:17 PM, Dhanuka Ranasinghe dhan...@wso2.comwrote:

 HI,

 Does java agent loaded before OSGi framework loaded?

 Yes, it's defined in wso2server.sh


 What is Java agent

 -javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar
 \



 If Yes Is there any special mechanism to mention java agents in OSGi ?

 Cheers,
 Dhanuka
 *Dhanuka Ranasinghe*

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

 phone : +94 715381915




 --
 *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*





 --
 *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


Re: [Dev] Error when Stratos Manager tries to add permission at tenant creation from AF

2014-04-25 Thread Isuru Haththotuwa
Hi Amila,

Even though this error appears, it doesn't disrupt the flow of the
subscription, therefore it should be working without an issue. The issue in
AF was a 400 response, most probably due to some problem with the request.

@Shamika: Can you please update what was the cause of the issue AF was
experiencing?


On Fri, Apr 25, 2014 at 10:11 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Hi,

 We have configured AF M11 and S4 alpha packs. When a tenant is created in
 AF, we see the following exception in Stratos Manager. Because of this,
 subscriptions are not created.

 AFAIK, AF team has got this fixed for AF M13 and S4 RC1. I got the same
 patch applied to M11. But the issue is still there.



 TID: [0] [SCC] [2014-04-25 09:35:45,509]  INFO
 {org.wso2.carbon.appfactory.stratos.listeners.CloudEnvironmentPermissionListener}
 -  *adding permissions**
 {org.wso2.carbon.appfactory.stratos.listeners.CloudEnvironmentPermissionListener}

 TID: [0] [SCC] [2014-04-25 09:35:46,114]  WARN
 {org.wso2.carbon.appfactory.stratos.util.ListenerUtils} -
 CloudResourcePermissions.Resources.Resource configuration not defined
 {org.wso2.carbon.appfactory.stratos.util.ListenerUtils}

 TID: [0] [SCC] [2014-04-25 09:35:47,040]  INFO
 {org.wso2.carbon.core.multitenancy.TenantAxisConfigurator} -  Creating
 tenant AxisConfiguration for tenant: dom39.com[38]
 {org.wso2.carbon.core.multitenancy.TenantAxisConfigurator}

 TID: [0] [SCC] [2014-04-25 09:35:47,646] ERROR
 {org.wso2.carbon.transaction.manager.TransactionManagerComponent} -  Error
 in binding transaction manager for tenant: 38
 {org.wso2.carbon.transaction.manager.TransactionManagerComponent}

 java.lang.RuntimeException: An error occurred while creating the initial
 context for tenant: 38

 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.getInitialContext(CarbonContextDataHolder.java:908)

 at
 org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:951)

 at javax.naming.InitialContext.lookup(InitialContext.java:411)

 at
 org.wso2.carbon.transaction.manager.TransactionManagerComponent.bindTransactionManagerWithJNDIForTenant(TransactionManagerComponent.java:166)

 at
 org.wso2.carbon.transaction.manager.TransactionManagerAxis2ConfigurationContextObserver.createdConfigurationContext(TransactionManagerAxis2ConfigurationContextObserver.java:34)

 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:344)

 at
 org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135)

 at
 org.apache.stratos.rest.endpoint.services.AbstractAdmin.getConfigContext(AbstractAdmin.java:46)

 at
 org.apache.stratos.rest.endpoint.services.StratosAdmin.subscribe(StratosAdmin.java:361)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.lang.reflect.Method.invoke(Method.java:606)

 at
 org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)

 at
 org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)

 at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)

 at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)

 at
 org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)

 at
 org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)

 at
 org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)

 at
 org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)

 at
 org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)

 at
 org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)

 at
 org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)

 at
 org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)

 at
 org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)

 at
 org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)

 at
 org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

 at
 org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)

 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

 at
 

Re: [Dev] Java Agent in OSGI

2014-04-25 Thread Dhanuka Ranasinghe
Just to have a small ramp up about what is java agent, please refer below
link [1].

[1] http://www.javamex.com/tutorials/memory/instrumentation.shtml

*Dhanuka Ranasinghe*

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

phone : +94 715381915


On Fri, Apr 25, 2014 at 11:42 PM, Dhanuka Ranasinghe dhan...@wso2.comwrote:

 http://wso2.com/mailarchive/dev/2012-July/009269.html

 *Dhanuka Ranasinghe*

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

 phone : +94 715381915


 On Fri, Apr 25, 2014 at 11:38 PM, Afkham Azeez az...@wso2.com wrote:

 Ok, can somebody point to any discussion about this agent. I may have
 missed it.


 On Fri, Apr 25, 2014 at 11:27 PM, Dhanuka Ranasinghe dhan...@wso2.comwrote:



 *Dhanuka Ranasinghe*

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

 phone : +94 715381915


 On Fri, Apr 25, 2014 at 11:24 PM, Afkham Azeez az...@wso2.com wrote:




 On Fri, Apr 25, 2014 at 6:17 PM, Dhanuka Ranasinghe 
 dhan...@wso2.comwrote:

 HI,

 Does java agent loaded before OSGi framework loaded?

 Yes, it's defined in wso2server.sh


 What is Java agent

 -javaagent:$CARBON_HOME/repository/components/plugins/jamm_0.2.5.wso2v2.jar
 \



 If Yes Is there any special mechanism to mention java agents in OSGi ?

 Cheers,
 Dhanuka
 *Dhanuka Ranasinghe*

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

 phone : +94 715381915




 --
 *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*





 --
 *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


[Dev] Please create a new Jaggery version with attached fix

2014-04-25 Thread Dunith Dhanushka
Hi Madhuka,

While fixing BAM-1565 https://wso2.org/jira/browse/BAM-1565 and
BAM-1566https://wso2.org/jira/browse/BAM-1566we figured out Jaggery
core was still using
CarbonContext.getCurrentContext().getTenantId(). Because of this, BAM
toolbox deployment for tenant always got a stackoverflow.

A fix for this is attached here with.  Please make a new Jaggery release
for the upcoming BAM 2.4.1 release.

Note that Jaggery version we used was 0.9.0.ALPHA4.wso2v4.

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
diff --git 
a/components/jaggery-core/org.jaggeryjs.jaggery.core/src/main/java/org/jaggeryjs/jaggery/core/manager/CommonManager.java
 
b/components/jaggery-core/org.jaggeryjs.jaggery.core/src/main/java/org/jaggeryjs/jaggery/core/manager/CommonManager.java
index ccd449d..c103c20 100644
--- 
a/components/jaggery-core/org.jaggeryjs.jaggery.core/src/main/java/org/jaggeryjs/jaggery/core/manager/CommonManager.java
+++ 
b/components/jaggery-core/org.jaggeryjs.jaggery.core/src/main/java/org/jaggeryjs/jaggery/core/manager/CommonManager.java
@@ -15,7 +15,7 @@ import org.mozilla.javascript.Context;
 import org.mozilla.javascript.Function;
 import org.mozilla.javascript.Scriptable;
 import org.mozilla.javascript.ScriptableObject;
-import org.wso2.carbon.context.CarbonContext;
+import org.wso2.carbon.context.PrivilegedCarbonContext;
 
 import java.io.IOException;
 import java.io.InputStream;
@@ -73,7 +73,7 @@ public class CommonManager {
 public static void initContext(JaggeryContext context) throws 
ScriptException {
 context.setEngine(manager.engine);
 context.setScope(manager.engine.getRuntimeScope());
-
context.setTenantId(Integer.toString(CarbonContext.getCurrentContext().getTenantId()));
+
context.setTenantId(Integer.toString(PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId()));
 
 context.addProperty(Constants.JAGGERY_CORE_MANAGER, manager);
 context.addProperty(Constants.JAGGERY_INCLUDED_SCRIPTS, new 
HashMapString, Boolean());
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ES] ES start-up hangs

2014-04-25 Thread Udara Rathnayake
Hi all,

During ES server start up I'm getting[1] due to some OSGI dependency
problem. This occurred after moving ES(latest build) to carbon 4.3.0.

When I try to find the state using OSGI console I got following[2] output.
There are few missing optionally imported packages for
axis2_1.6.1.wso2v11-SNAPSHOT bundle [3].

Any thoughts?

[1]
[2014-04-26 11:02:07,550]  WARN
{org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
delayed due to the following unsatisfied items:
[2014-04-26 11:02:07,550]  WARN
{org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
OSGi Service: org.apache.axis2.engine.AxisObserver

[2]
osgi ss axis2
Framework is launched.

idState   Bundle
14ACTIVE  axis2_1.6.1.wso2v11-SNAPSHOT
15ACTIVE  axis2-json_1.6.1.wso2v11-SNAPSHOT
16ACTIVE  axis2-transport-jms_1.6.1.wso2v11-SNAPSHOT
osgi

[3]

osgi diag 14
reference:file:../plugins/axis2_1.6.1.wso2v11-SNAPSHOT.jar [14]
  Direct constraints which are unresolved:
Missing optionally imported package com.sun.javadoc_0.0.0.
Missing optionally imported package com.sun.tools.javadoc_0.0.0.
Missing optionally imported package javax.ws.rs_0.0.0.
Missing optionally imported package javax.xml.bind_2.1.0.
Missing optionally imported package javax.xml.bind.annotation_2.1.0.
Missing optionally imported package
javax.xml.bind.annotation.adapters_2.1.0.
Missing optionally imported package javax.xml.bind.attachment_2.1.0.
Missing optionally imported package javax.xml.bind.util_2.1.0.
Missing optionally imported package
org.apache.xmlbeans.impl.xpath.saxon_0.0.0.
Missing optionally imported package
org.apache.xmlbeans.impl.xquery.saxon_0.0.0.
Missing optionally imported package org.jivesoftware.smack_0.0.0.
Missing optionally imported package org.jivesoftware.smack.filter_0.0.0.
Missing optionally imported package org.jivesoftware.smack.packet_0.0.0.
Missing optionally imported package org.springframework.beans_0.0.0.
Missing optionally imported package org.springframework.context_0.0.0.
Missing optionally imported package
org.springframework.web.context_0.0.0.
Missing optionally imported package
org.springframework.web.context.support_0.0.0.


Regards,
UdaraR
-- 
*Udara Rathnayake*
Software Engineer
WSO2 Inc. : http://wso2.com

Mobile : +94 772207239
Twitter : http://twitter.com/udarakr
Blog: http://udarakr.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev