Re: [Dev] DSS - disableStreaming

2014-04-29 Thread Anjana Fernando
Hi Azeez,

Actually the reason for this setting was, by default streaming is always
enabled, and we introduced this property later. So to retain backward
compatibility also, we had to introduce a parameter like this. Anyway in
the UI, we have a setting called "Enable Streaming, which is always enabled
by default.

Cheers,
Anjana.


On Wed, Apr 30, 2014 at 12:17 PM, Afkham Azeez  wrote:

> Sometime back, we agreed that when using config elements in files, we need
> to name it with the positive meaning. The main reason is to avoid double
> negatives. This has been violated in DSS.
>
>  disableStreaming="true" ==> should be, enableStreaming="false"
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> * linked-in: **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


[Dev] DSS - disableStreaming

2014-04-29 Thread Afkham Azeez
Sometime back, we agreed that when using config elements in files, we need
to name it with the positive meaning. The main reason is to avoid double
negatives. This has been violated in DSS.

 disableStreaming="true" ==> should be, enableStreaming="false"

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

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


[Dev] FileService sample UI freezes after upload is complete

2014-04-29 Thread Afkham Azeez
https://docs.wso2.org/display/DSS320/File+App+Service+Sample

Requires restarting the sample.

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

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


Re: [Dev] [Coordination] Embedded zookeeper in coordination component doesn't start ZooKeeperSaslServer

2014-04-29 Thread Indika Sampath
Hi Ishara,

Herewith I have attached jaas.conf and java.env files. You need to add
these two files to /repository/conf/etc/ where MB instance start
as zookeeper profile. After that change the path of jaas.conf  in the
java.env. Also check the /repository/conf/security/jaas.conf file
exist. If it is not exist copy the jaas.conf. The issue seems to be MB
server start as zookeeper won't get the SASL configuration properly. Anyway
you can further debug and see with these configuration settings.

Cheers!




On Tue, Apr 29, 2014 at 11:46 PM, Ishara Premadasa  wrote:

> Hi,
>
> From WSO2 MB 2.2.0 onwards we will be supporting zookeeper profiles with
> MB where a message broker instance can be started as a zookeeper server as
> well by using carbon profiles. For this we use embedded zookeeper server
> that getting shipped with Coordination component. However as stated in [1]
> when enabled SASL security for zookeeper server, the coordination server (
> which is zk server here) doesn't seem to initiate a ZooKeeperSaslServer
> object, but still it starts a non-SASL Zookeeper server only.
>
> I enabled the debug logs for zookeeper server and once the client tries to
> connect to server with providing client login data the following error logs
> can be seen at zk server side and client side.
>
> *server side ( MB with zookeeper profile enabled)*
> [2014-04-29 22:06:31,316] DEBUG
> {org.apache.zookeeper.server.ZooKeeperServer} -  Responding to client SASL
> token.
> [2014-04-29 22:06:31,316] DEBUG
> {org.apache.zookeeper.server.ZooKeeperServer} -  Size of client SASL token:
> 0
> [2014-04-29 22:06:31,317] ERROR
> {org.apache.zookeeper.server.ZooKeeperServer} -  cnxn.saslServer is null:
> cnxn object did not initialize its saslServer properly.
>
> *client side ( MB server which connects to zookeeper)*
> [2014-04-29 22:06:31,313] DEBUG
> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
> ClientCnxn:sendSaslPacket:length=0
> [2014-04-29 22:06:31,319] ERROR
> {org.apache.zookeeper.client.ZooKeeperSaslClient} -  SASL authentication
> failed using login context 'Client'.
>
> To get this verified, i tested the same scenario by pointing to an
> external Apache zookeeper server where client was able to successfully
> authenticate through same credentials as below logs.
>
> [2014-04-29 22:12:10,873] DEBUG
> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
> ClientCnxn:sendSaslPacket:length=0
> [2014-04-29 22:12:10,873] DEBUG
> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
> saslClient.evaluateChallenge(len=101)
> [2014-04-29 22:12:10,874] DEBUG
> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
> ClientCnxn:sendSaslPacket:length=276
> [2014-04-29 22:12:10,876] DEBUG
> {org.apache.zookeeper.client.ZooKeeperSaslClient} -
> saslClient.evaluateChallenge(len=40)
> [2014-04-29 22:12:10,877] DEBUG {org.apache.zookeeper.ClientCnxn} -
> Reading reply sessionid:0x145ae5b1d2e0002, packet:: clientPath:null
> serverPath:null finished:false header:: 3,3  replyHeader:: 3,5,-101
> request:: '/queue_workers_parent,F  response::
>
> Therefore it seems coordination server doesn't start zookeeper instance by
> verifying whether security enabled or not. We need to get this fixed for MB
> 2.2.0 and i am currently working on it. If there is any configuration
> available for coordination server to handle this without changing the
> source please mention it here.
>
> Thanks!
> Ishara
>
> [1] https://wso2.org/jira/browse/MB-601
>
> --
> Ishara Premasada
> Software Engineer,
> WSO2 Inc. http://wso2.com/
>
>
> *Blog   :  http://isharapremadasa.blogspot.com/
>  Twitter   :
> https://twitter.com/ishadil Mobile   : +94
> 714445832 <%2B94%20714445832>*
>
>
>


-- 
Indika Sampath
Software Engineer
WSO2 Inc.
http://wso2.com

Phone: +94 716 424 744
Blog: http://indikasampath.blogspot.com/


jaas.conf
Description: Binary data


java.env
Description: Binary data
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES][Jaggery] Getting sender parameters for jaggery file from Axis2.xml

2014-04-29 Thread Chamila Wijayarathna
Hi Madhuka,
Using method you mentioned, I successfully got required values.
Thank You!


On Wed, Apr 30, 2014 at 11:00 AM, Madhuka Udantha  wrote:

> Hi,
>
> Yap, there are few way. one is you can used carbon modules
>
> Here is sample code for you.
>
> <%
> var carbon = require('carbon');
> var conf1 = carbon.server.loadConfig('axis2/axis2.xml');
> print(conf1.*::['clustering'].*::['members']);
> %>
>
> Thanks
>
>
> On Wed, Apr 30, 2014 at 10:32 AM, Chamila Wijayarathna 
> wrote:
>
>> Hi all,
>> I am using email jaggery module for sending email notification in
>> Enterprise Store. I have added following code at
>> /publisher/apis/v1/lifecycle_api_router.jag file.
>>
>> *var email = require('email');*
>> *var sender = new email.Sender("smtp.gmail.com ",
>> "587", "wso2demomail", "mailpassword", "tls");*
>>
>> Can I get the email sender properties for here from
>> repository/conf/axis2/axis2.xml without hardcoding these values here?
>>
>> Thank You!
>>
>> --
>> *Chamila Wijayarathna*
>> Engineering Intern,
>> WSO2 Inc.
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Madhuka* Udantha
> Senior Software Engineer
> Development Technologies
> WSO2 Inc. : http://wso2.com
>
> *Mobile*: +94774066336
> *Blog*: http://madhukaudantha.blogspot.com/
>



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


[Dev] Please merge carbon-governance #1

2014-04-29 Thread Susankha Nirmala
Hi Chandana,

Please merge the pull request -
https://github.com/wso2-dev/carbon-governance/pull/1

Thanks.
/Susankha

-- 
Susankha Nirmala
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
Mobile : +94 77 593 2146
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Commits] [Carbon-platform] svn commit r199557 - in carbon/platform/branches/turing/components/load-balancer: lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/e

2014-04-29 Thread Isuru Udana
Hi Dhanuka,

These commits were done for the already released components. Please revert
these commits and commit to the unreleased versions.




On Fri, Apr 4, 2014 at 2:38 PM,  wrote:

> Author: dhan...@wso2.com
> Date: Fri Apr  4 14:38:03 2014
> New Revision: 199557
> URL: http://wso2.org/svn/browse/wso2?view=rev&revision=199557
>
> Log:
> LB-142
>
> Added:
>
>  
> carbon/platform/branches/turing/components/load-balancer/org.wso2.carbon.lb.common/4.2.0/src/main/java/org/wso2/carbon/lb/common/group/mgt/SessionAwareGroupManagementAgent.java
> Modified:
>
>  
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java
>
>  
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/endpoint/TenantAwareLoadBalanceEndpoint.java
>
>  
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/group/mgt/GroupMgtAgentBuilder.java
>
> Modified:
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java
> URL:
> http://wso2.org/svn/browse/wso2/carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java?rev=199557&r1=199556&r2=199557&view=diff
>
> ==
> ---
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java
>  (original)
> +++
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/cluster/manager/ClusterDomainManagerImpl.java
>  Fri Apr  4 14:38:03 2014
> @@ -31,6 +31,7 @@
>  import org.wso2.carbon.lb.common.conf.util.Constants;
>  import org.wso2.carbon.lb.common.conf.util.HostContext;
>  import org.wso2.carbon.lb.common.conf.util.TenantDomainContext;
> +import
> org.wso2.carbon.lb.common.group.mgt.SessionAwareGroupManagementAgent;
>  import org.wso2.carbon.lb.endpoint.TenantLoadBalanceMembershipHandler;
>  import org.wso2.carbon.lb.endpoint.util.ConfigHolder;
>
> @@ -174,7 +175,7 @@
>   */
>
>  if (clusteringAgent.getGroupManagementAgent(domain, subDomain) ==
> null) {
> -clusteringAgent.addGroupManagementAgent(new
> HazelcastGroupManagementAgent(),
> +clusteringAgent.addGroupManagementAgent(new
> SessionAwareGroupManagementAgent(),
>  domain, subDomain,-1);
>
>  if (log.isDebugEnabled()) {
>
> Modified:
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/endpoint/TenantAwareLoadBalanceEndpoint.java
> URL:
> http://wso2.org/svn/browse/wso2/carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/endpoint/TenantAwareLoadBalanceEndpoint.java?rev=199557&r1=199556&r2=199557&view=diff
>
> ==
> ---
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/endpoint/TenantAwareLoadBalanceEndpoint.java
>   (original)
> +++
> carbon/platform/branches/turing/components/load-balancer/lb-endpoint/org.wso2.carbon.lb.endpoint/4.2.0/src/main/java/org/wso2/carbon/lb/endpoint/endpoint/TenantAwareLoadBalanceEndpoint.java
>   Fri Apr  4 14:38:03 2014
> @@ -44,6 +44,7 @@
>  import org.wso2.carbon.lb.common.conf.LoadBalancerConfiguration;
>  import org.wso2.carbon.lb.common.conf.util.HostContext;
>  import org.wso2.carbon.lb.common.conf.util.TenantDomainContext;
> +import
> org.wso2.carbon.lb.common.group.mgt.SessionAwareGroupManagementAgent;
>  import org.wso2.carbon.lb.common.util.DomainMapping;
>  import
> org.wso2.carbon.lb.endpoint.TenantAwareLoadBalanceEndpointException;
>  import org.wso2.carbon.lb.endpoint.TenantLoadBalanceMembershipHandler;
> @@ -142,7 +143,7 @@
>  throw new
> TenantAwareLoadBalanceEndpointException(msg, e);
>  }
>  } else {
> -groupManagementAgent = new
> HazelcastGroupManagementAgent();
> +groupManagementAgent = new
> SessionAwareGroupManagementAgent();
>  }
>
>  // Addi

Re: [Dev] Flush the 4.3.0 Kernel PR queue

2014-04-29 Thread Ajith Vitharana
Hi Sameera/Kishanthan

There are test failures in the kernel (wso2), did u ran with the test
before merge ?

[1]http://54.84.136.218:8080/jenkins/job/carbon4-kernel/195/consoleFull

Thanks
Ajith.



On Wed, Apr 23, 2014 at 11:42 PM, Sameera Jayasoma  wrote:

>
>
>
> On Wed, Apr 23, 2014 at 11:00 AM, Ajith Vitharana  wrote:
>
>> Sameera,
>>
>>
>> On Wed, Apr 23, 2014 at 9:48 PM, Sameera Jayasoma wrote:
>>
>>> Ajith,
>>>
>>> Yes we were working on this behind the scenes. Specially Kishanthan and
>>> Manoj since I am not available for this work until next week.
>>>
>>> But we cannot simply flush the queue without properly reviewing the
>>> changes.
>>>
>>
>> Understood the process. But we should have at least 2 owners to merge
>> those commits periodically without keeping the commits long time in the
>> queue.
>>
>
> Agreed. I thought the same.
>
> But AFAIK, it is a temporary measure to keep an owner for master product
> repos. In the future only Jenkins will be able to commit.
>
>>
>> -Ajith.
>>
>>
>>>
>>> Sameera.
>>>
>>>
>>> On Wed, Apr 23, 2014 at 2:29 AM, Ajith Vitharana wrote:
>>>



 On Wed, Apr 23, 2014 at 9:26 AM, Ajith Vitharana wrote:

>
>
>
> On Tue, Apr 22, 2014 at 12:18 PM, Kasun Gajasinghe wrote:
>
>> Hi Sameera,
>>
>> Could you please do $subject? There are 15+ commits waiting in the
>> queue.
>>
>> [1] https://github.com/wso2/carbon4-kernel/pull/4
>>
>
> Please review and merge immediately, because  some fixes are blockers
> for the build stabilization hackathon.
>

 Is anyone working on this ?

 -Ajith.


>
> Thanks
> -Ajith.
>
>
>>
>> Thanks,
>> KasunG
>>
>> --
>>
>> *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
>>
>>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +94772217350
>
>


 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350


>>>
>>>
>>> --
>>> Sameera Jayasoma,
>>> Software Architect,
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://sameera.adahas.org
>>> twitter: https://twitter.com/sameerajayasoma
>>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
>>> Mobile: 0094776364456
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +94772217350
>>
>>
>
>
> --
> Sameera Jayasoma,
> Software Architect,
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://sameera.adahas.org
> twitter: https://twitter.com/sameerajayasoma
> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
> Mobile: 0094776364456
>
> Lean . Enterprise . Middleware
>
>


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


[Dev] [IS] Allowing Service Provider configuration to be shared accross tenants

2014-04-29 Thread Suresh Attanayaka
Hi Team,

How we can achieve the $subect ? Think of a scenario where IS is used in
the multi-tenanted mode. One tenant has a web app hosted somewhere outside.
Now this tenant wants other tenants to acess the same application.
In our model, in this case each and every tenant has to do the Service
Provider configuration in order them to be able to access the application.

   1. One option would be to copy the same configuration across the tenants
   who needs to access this application (this means copying the SAML issuer ,
   OAuth key-secretes etc).
   2. Another Option would be to write
   ApplicationDAO, SSOServiceProviderConfigManager, OAuthAppDAO to read
   configurations accross tenants


What would be the best option ? are there other approaches ?

Thanks,
-Suresh

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


Re: [Dev] The type javax.xml.stream.XMLStreamException cannot be resolved. It is indirectly referenced from required .class files

2014-04-29 Thread Dushan Abeyruwan
Hi Kasun,
  Thanks, will take update in kernal.

Cheers,
Dushan



On Wed, Apr 30, 2014 at 11:21 AM, Kasun Gajasinghe  wrote:

> Hi Dushan,
>
> This has been fixed in kernel. It seems there are build failure in there
> hence the commits are not reflected in nexus yet.
>
> Regards,
> KasunG
>
>
> On Wed, Apr 30, 2014 at 10:47 AM, Dushan Abeyruwan wrote:
>
>> Hi
>> Test wso2esb-4.9.0-SNAPSHOT build 24th April.
>>
>>  $subject can I know why this happens ? it seems only JSPs not able to
>> pick the depenecies correctly, to test this class loader issue, I just
>> copied..
>>
>> same code segment.. to  ProxyServiceAdminClient and it works. only issue
>> here IMO JSP compilation has some issue in resolving dependencies..
>>
>>
>>
>>
>> et threw exception
>> org.apache.jasper.JasperException: Unable to compile class for JSP:
>>
>> An error occurred at line: [1] in the generated java file:
>> [/home/dushan/poc/server/5.0.0/wso2esb-4.9.0-SNAPSHOT/lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_1129124789/org/apache/jsp/proxyservices/source_jsp.java]
>> The type javax.xml.stream.XMLStreamException cannot be resolved. It is
>> indirectly referenced from required .class files
>>
>> An error occurred at line: [26] in the generated java file:
>> [/home/dushan/poc/server/5.0.0/wso2esb-4.9.0-SNAPSHOT/lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_1129124789/org/apache/jsp/proxyservices/source_jsp.java]
>> The import javax.xml.stream.XMLStreamException cannot be resolved
>>
>> An error occurred at line: 96 in the jsp file: /proxyservices/source.jsp
>> XMLStreamException cannot be resolved to a type
>> 93: try {
>> 94: elem= AXIOMUtil.stringToOM(source);
>> 95: XMLPrettyPrinter.prettify(elem,stream);
>> 96: } catch (XMLStreamException e) {
>> 97: e.printStackTrace();
>> 98: } catch (Exception e) {
>> 99: e.printStackTrace();
>>
>>
>> An error occurred at line: 97 in the jsp file: /proxyservices/source.jsp
>> e cannot be resolved
>> 94: elem= AXIOMUtil.stringToOM(source);
>> 95: XMLPrettyPrinter.prettify(elem,stream);
>> 96: } catch (XMLStreamException e) {
>> 97: e.printStackTrace();
>> 98: } catch (Exception e) {
>> 99: e.printStackTrace();
>> 100: }
>>
>>
>> Stacktrace:
>>  at
>> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
>> at
>> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
>>  at
>> org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468)
>> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
>>  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
>> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
>>  at
>> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
>> at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
>>  at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> 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:727)
>>  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:727)
>> at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>  at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>>  at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
>>  at
>> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
>> 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:954)
>>  at
>> org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
>> 

Re: [Dev] The type javax.xml.stream.XMLStreamException cannot be resolved. It is indirectly referenced from required .class files

2014-04-29 Thread Kasun Gajasinghe
Hi Dushan,

This has been fixed in kernel. It seems there are build failure in there
hence the commits are not reflected in nexus yet.

Regards,
KasunG


On Wed, Apr 30, 2014 at 10:47 AM, Dushan Abeyruwan  wrote:

> Hi
> Test wso2esb-4.9.0-SNAPSHOT build 24th April.
>
>  $subject can I know why this happens ? it seems only JSPs not able to
> pick the depenecies correctly, to test this class loader issue, I just
> copied..
>
> same code segment.. to  ProxyServiceAdminClient and it works. only issue
> here IMO JSP compilation has some issue in resolving dependencies..
>
>
>
>
> et threw exception
> org.apache.jasper.JasperException: Unable to compile class for JSP:
>
> An error occurred at line: [1] in the generated java file:
> [/home/dushan/poc/server/5.0.0/wso2esb-4.9.0-SNAPSHOT/lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_1129124789/org/apache/jsp/proxyservices/source_jsp.java]
> The type javax.xml.stream.XMLStreamException cannot be resolved. It is
> indirectly referenced from required .class files
>
> An error occurred at line: [26] in the generated java file:
> [/home/dushan/poc/server/5.0.0/wso2esb-4.9.0-SNAPSHOT/lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_1129124789/org/apache/jsp/proxyservices/source_jsp.java]
> The import javax.xml.stream.XMLStreamException cannot be resolved
>
> An error occurred at line: 96 in the jsp file: /proxyservices/source.jsp
> XMLStreamException cannot be resolved to a type
> 93: try {
> 94: elem= AXIOMUtil.stringToOM(source);
> 95: XMLPrettyPrinter.prettify(elem,stream);
> 96: } catch (XMLStreamException e) {
> 97: e.printStackTrace();
> 98: } catch (Exception e) {
> 99: e.printStackTrace();
>
>
> An error occurred at line: 97 in the jsp file: /proxyservices/source.jsp
> e cannot be resolved
> 94: elem= AXIOMUtil.stringToOM(source);
> 95: XMLPrettyPrinter.prettify(elem,stream);
> 96: } catch (XMLStreamException e) {
> 97: e.printStackTrace();
> 98: } catch (Exception e) {
> 99: e.printStackTrace();
> 100: }
>
>
> Stacktrace:
>  at
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
> at
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
>  at
> org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
>  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
>  at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
>  at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> 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:727)
>  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:727)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>  at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
> at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
>  at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
> 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:954)
>  at
> org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
> at
> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
>  at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

[Dev] Test failures while running product integration tests on Jenkins due to SecurityConfigException

2014-04-29 Thread Krishantha Samaraweera
Hi all,

Following error has caused many test failure in Jenkins server. Can someone
please have a look

[2014-04-29 20:51:04,449] ERROR
{org.wso2.carbon.security.config.SecurityConfigAdmin} -  Error when
obtaining the governance registry instance.
[2014-04-29 20:51:04,449] ERROR
{org.wso2.carbon.service.mgt.ServiceAdmin} -  Cannot retrieve security
scenario for service JSONService
org.wso2.carbon.security.SecurityConfigException: Error when obtaining
the governance registry instance.
at 
org.wso2.carbon.security.config.SecurityConfigAdmin.(SecurityConfigAdmin.java:166)
at 
org.wso2.carbon.service.mgt.ServiceAdmin.getSecurityScenario(ServiceAdmin.java:1090)
at 
org.wso2.carbon.service.mgt.ServiceAdmin.listServices(ServiceAdmin.java:586)
at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
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)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at 
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
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:727)
at 
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at 
org.wso2.carbon.statistics.webapp.RequestIntercepterValve.invoke(RequestIntercepterValve.java:43)
at 
org.wso2.carbon.bam.webapp.stat.publisher.WebAppStatisticPublisherValve.invoke(WebAppStatisticPublisherValve.java:104)
at 
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
at 
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at 
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
at 
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at 
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
at 
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at 
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721)
at 
org

Re: [Dev] [ES] ES start-up hangs

2014-04-29 Thread Udara Rathnayake
Found that org.apache.axis2.engine.AxisObserver previously registered by
the org.wso2.carbon.security.mgt and not now(4.3.0)
Not sure whether this is the exact problem.

4.2.1
{org.apache.axis2.engine.AxisObserver}={org.apache.axis2.osgi.config.service=org.apache.axis2.engine.AxisObserver,
service.id=144}
  "Registered by bundle:" org.wso2.carbon.security.mgt_4.2.1 [295]
  "Bundles using service"
org.wso2.carbon.core_4.2.0 [173]




On Wed, Apr 30, 2014 at 11:00 AM, Manoj Kumara  wrote:

> [Adding Kishanthan]
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
>
> On Wed, Apr 30, 2014 at 9:47 AM, Udara Rathnayake  wrote:
>
>> Hi,
>>
>> Finally managed to build the ES in a clean repo but still I'm getting
>> this issue.
>>
>>
>>
>> On Mon, Apr 28, 2014 at 12:51 PM, Manoj Kumara  wrote:
>>
>>> Hi UdaraR,
>>>
>>> As discussed with KasunG this has being fixed. Can you please try get
>>> update and build the product and check.
>>>
>>> Thanks,
>>> Manoj
>>>
>>>
>>> *Manoj Kumara*
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com/
>>> *lean.enterprise.middleware*
>>> Mobile: +94713448188
>>>
>>>
>>> On Sat, Apr 26, 2014 at 11:25 AM, Udara Rathnayake wrote:
>>>
 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


>>>
>>
>>
>> --
>> *Udara Rathnayake*
>> Software Engineer
>> WSO2 Inc. : http://wso2.com
>>
>> Mobile : +94 772207239
>> Twitter : http://twitter.com/udarakr
>> Blog: http://udarakr.blogspot.com
>>
>>
>


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


[Dev] moving httpcore dependency to git

2014-04-29 Thread Sudheera Palihakkara
Hi,

Can we do the $subject. I'm trying to apply the fix for "Congestion HTTP
DELETE issue " and I can't find the dependency in git.

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


Re: [Dev] [ES] ES start-up hangs

2014-04-29 Thread Manoj Kumara
[Adding Kishanthan]


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


On Wed, Apr 30, 2014 at 9:47 AM, Udara Rathnayake  wrote:

> Hi,
>
> Finally managed to build the ES in a clean repo but still I'm getting this
> issue.
>
>
>
> On Mon, Apr 28, 2014 at 12:51 PM, Manoj Kumara  wrote:
>
>> Hi UdaraR,
>>
>> As discussed with KasunG this has being fixed. Can you please try get
>> update and build the product and check.
>>
>> Thanks,
>> Manoj
>>
>>
>> *Manoj Kumara*
>> Software Engineer
>> WSO2 Inc. http://wso2.com/
>> *lean.enterprise.middleware*
>> Mobile: +94713448188
>>
>>
>> On Sat, Apr 26, 2014 at 11:25 AM, Udara Rathnayake wrote:
>>
>>> 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
>>>
>>>
>>
>
>
> --
> *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


Re: [Dev] [ES][Jaggery] Getting sender parameters for jaggery file from Axis2.xml

2014-04-29 Thread Madhuka Udantha
Hi,

Yap, there are few way. one is you can used carbon modules

Here is sample code for you.

<%
var carbon = require('carbon');
var conf1 = carbon.server.loadConfig('axis2/axis2.xml');
print(conf1.*::['clustering'].*::['members']);
%>

Thanks


On Wed, Apr 30, 2014 at 10:32 AM, Chamila Wijayarathna wrote:

> Hi all,
> I am using email jaggery module for sending email notification in
> Enterprise Store. I have added following code at
> /publisher/apis/v1/lifecycle_api_router.jag file.
>
> *var email = require('email');*
> *var sender = new email.Sender("smtp.gmail.com ",
> "587", "wso2demomail", "mailpassword", "tls");*
>
> Can I get the email sender properties for here from
> repository/conf/axis2/axis2.xml without hardcoding these values here?
>
> Thank You!
>
> --
> *Chamila Wijayarathna*
> Engineering Intern,
> WSO2 Inc.
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*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] encounter java.io.UTFDataFormatException: encoded string too long in BAM

2014-04-29 Thread Shavantha Weerasinghe
Hi Chathurika

Thanks, reopened the issue

regards.

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



On Wed, Apr 30, 2014 at 10:40 AM, Chathurika Mahaarachchi <
chathur...@wso2.com> wrote:

> Slimier Issue has been reported [1]
>
> [1] https://wso2.org/jira/browse/BAM-580
>
>
>
> On Wed, Apr 30, 2014 at 9:33 AM, Shavantha Weerasinghe  > wrote:
>
>> Hi All
>>
>> The BAM 241 RC4 release had thrown the below exception on the
>> stand-a-lone instance "java.io.UTFDataFormatException: encoded string too
>> long: " could this be a limitation with the h2 database.
>>
>> I am not sure of the exact steps to reproduce this, but has any one come
>> across a similar exception
>>
>> Warning: generateAlternativeSeed
>> java.io.UTFDataFormatException: encoded string too long: 81297 bytes
>> at java.io.DataOutputStream.writeUTF(DataOutputStream.java:364)
>> at java.io.DataOutputStream.writeUTF(DataOutputStream.java:323)
>> at org.h2.util.MathUtils.generateAlternativeSeed(MathUtils.java:137)
>> at org.h2.util.MathUtils.getSecureRandom(MathUtils.java:89)
>> at org.h2.util.MathUtils.secureRandomBytes(MathUtils.java:383)
>> at org.h2.store.FileLock.setUniqueId(FileLock.java:290)
>> at org.h2.store.FileLock.lockFile(FileLock.java:320)
>> at org.h2.store.FileLock.lock(FileLock.java:129)
>> at org.h2.engine.Database.open(Database.java:523)
>> at org.h2.engine.Database.openDatabase(Database.java:207)
>> at org.h2.engine.Database.(Database.java:202)
>> at org.h2.engine.Engine.openSession(Engine.java:56)
>> at org.h2.engine.Engine.openSession(Engine.java:146)
>> at org.h2.engine.Engine.getSession(Engine.java:125)
>> at org.h2.engine.Session.createSession(Session.java:122)
>> at
>> org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
>> at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
>> at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:111)
>> at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:95)
>> at org.h2.Driver.connect(Driver.java:73)
>> at java.sql.DriverManager.getConnection(DriverManager.java:579)
>> at java.sql.DriverManager.getConnection(DriverManager.java:221)
>> at
>> org.wso2.carbon.hadoop.hive.jdbc.storage.db.DBManager.createConnection(DBManager.java:73)
>> at
>> org.wso2.carbon.hadoop.hive.jdbc.storage.db.DBManager.createConnection(DBManager.java:85)
>> at
>> org.wso2.carbon.hadoop.hive.jdbc.storage.JDBCDataOutputFormat.getHiveRecordWriter(JDBCDataOutputFormat.java:48)
>> at
>> org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getRecordWriter(HiveFileFormatUtils.java:236)
>> at
>> org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getHiveRecordWriter(HiveFileFormatUtils.java:224)
>> at
>> org.apache.hadoop.hive.ql.exec.FileSinkOperator.createBucketFiles(FileSinkOperator.java:478)
>> at
>> org.apache.hadoop.hive.ql.exec.FileSinkOperator.processOp(FileSinkOperator.java:526)
>> at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
>> at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:758)
>> at
>> org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(SelectOperator.java:84)
>> at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
>> at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:758)
>> at
>> org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(SelectOperator.java:84)
>> at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
>> at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:758)
>> at
>> org.apache.hadoop.hive.ql.exec.GroupByOperator.forward(GroupByOperator.java:964)
>> at
>> org.apache.hadoop.hive.ql.exec.GroupByOperator.processAggr(GroupByOperator.java:781)
>> at
>> org.apache.hadoop.hive.ql.exec.GroupByOperator.processOp(GroupByOperator.java:707)
>> at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
>> at
>> org.apache.hadoop.hive.ql.exec.ExecReducer.reduce(ExecReducer.java:248)
>> at
>> org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:518)
>> at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:419)
>> at
>> org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:257)
>>
>> Regards,
>> Shavantha Weerasinghe
>> Senior Software Engineer QA
>> WSO2, Inc.
>> lean.enterprise.middleware.
>> http://wso2.com
>> http://wso2.org
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Chathurika Mahaarachchi*
> Software Engineer, QA.
> WSO2 Inc.: http://wso2.com/
> lean.enterprise.middleware
> Mobile: +94718223950
>
___
Dev mailing list
Dev@wso2.org
http

[Dev] The type javax.xml.stream.XMLStreamException cannot be resolved. It is indirectly referenced from required .class files

2014-04-29 Thread Dushan Abeyruwan
Hi
Test wso2esb-4.9.0-SNAPSHOT build 24th April.

 $subject can I know why this happens ? it seems only JSPs not able to pick
the depenecies correctly, to test this class loader issue, I just copied..

same code segment.. to  ProxyServiceAdminClient and it works. only issue
here IMO JSP compilation has some issue in resolving dependencies..




et threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [1] in the generated java file:
[/home/dushan/poc/server/5.0.0/wso2esb-4.9.0-SNAPSHOT/lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_1129124789/org/apache/jsp/proxyservices/source_jsp.java]
The type javax.xml.stream.XMLStreamException cannot be resolved. It is
indirectly referenced from required .class files

An error occurred at line: [26] in the generated java file:
[/home/dushan/poc/server/5.0.0/wso2esb-4.9.0-SNAPSHOT/lib/tomcat/work/Catalina/localhost/_/proxytemp/hc_1129124789/org/apache/jsp/proxyservices/source_jsp.java]
The import javax.xml.stream.XMLStreamException cannot be resolved

An error occurred at line: 96 in the jsp file: /proxyservices/source.jsp
XMLStreamException cannot be resolved to a type
93: try {
94: elem= AXIOMUtil.stringToOM(source);
95: XMLPrettyPrinter.prettify(elem,stream);
96: } catch (XMLStreamException e) {
97: e.printStackTrace();
98: } catch (Exception e) {
99: e.printStackTrace();


An error occurred at line: 97 in the jsp file: /proxyservices/source.jsp
e cannot be resolved
94: elem= AXIOMUtil.stringToOM(source);
95: XMLPrettyPrinter.prettify(elem,stream);
96: } catch (XMLStreamException e) {
97: e.printStackTrace();
98: } catch (Exception e) {
99: e.printStackTrace();
100: }


Stacktrace:
 at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
 at
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
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:727)
 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:727)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
 at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
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:954)
 at
org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
 at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
 at
org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
at
org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
 at
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:465)
at
org.apa

Re: [Dev] GSOC-Automated test case generation tool for WSO2 products

2014-04-29 Thread Dharshana Warusavitharana
Hi Rukshan,

Did you try out the maven plugin. I think it would be easy for you and
us this is believed you don't need python installed

 http://robotframework.org/MavenPlugin/

Thank You,
Dharshana.


On Wed, Apr 30, 2014 at 8:59 AM, Rukshan Chathuranga
wrote:

> Hi krishantha,
>
> I followed the instruction to install the robot. Most of dependencies
> already had in the system and installation was success. but when installing
> "ride", it give a warning to install wxPython 2.8 toolkit with Unicode
> support. Also it's doesn't work without wxPython.
>
> It suggest the installation guide by this link
> http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/.
>
> But it is hard to find the correct file to install. may be this one is not
> important now.
> if you already encountered this problem let me know how to install.
>
> Thanks.
>
>
> On Tue, Apr 29, 2014 at 10:39 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Selenium2Library API documentation -
>> https://github.com/rtomac/robotframework-selenium2library
>> Source - https://github.com/rtomac/robotframework-selenium2library
>>
>> Thanks,
>> Krishantha.
>>
>>
>> On Tue, Apr 29, 2014 at 10:33 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Robot framework installation on Linux
>>> 
>>>
>>> 1. Install Python if doesn't exists in your machine -
>>>
>>> *easy_install pip*
>>> *pip install python*
>>>
>>> 2. Install Jyton (Optinal)
>>>
>>> *sudo apt-get install jython*
>>>
>>> 3. Install robot framework
>>>
>>> *pip install robotframework *OR* easy_install robotframework  *
>>>
>>> 4. Install ride (The IDE for robot test case writing)
>>>
>>> *pip install robotframework-ride *OR *easy_install robotframework-ride*
>>>
>>> 5. Install Selenium2Library - Selenium implementation compatible with
>>> robot
>>>
>>> *pip install robotframework-selenium2library *OR* easy_install
>>> robotframework-selenium2library*
>>>
>>>
>>> Let me know if you find any difficulty with installation.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>> On Tue, Apr 29, 2014 at 10:23 PM, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Hi Rukshan,

 Some sample robot scripts are attached here with.

 Thanks,
 Krishantha.




 On Tue, Apr 29, 2014 at 10:17 PM, Malintha Adikari 
 wrote:

> adding
>
> 3. WSO2 Application Server Documentation[4]
>
> [4]
> https://docs.wso2.org/display/AS521/WSO2+Application+Server+Documentation
>
>
> On Tue, Apr 29, 2014 at 10:12 PM, Malintha Adikari 
> wrote:
>
>> Hi Rukshan,
>>
>> Following resources would help you to understand the basics of
>> required technologies.
>>
>> 1. Hello world with Axis2 web service [1]
>> 2. Understanding WSDL files.[2], [3]
>>
>> [1]http://wso2.com/library/95/
>> [2]http://oreilly.com/catalog/webservess/chapter/ch06.html
>> [3]http://predic8.com/wsdl-reading.htm
>>
>> Regards,
>> Malintha Adikari
>>
>>
>> On Tue, Apr 29, 2014 at 9:43 PM, Rukshan Chathuranga <
>> rcruksha...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Could understand the ultimate objective of the project and stating
>>> points of the project. Feasibility of the keyword driven testing using
>>> Robot frame, should be evaluate in this week.
>>> Also to get understand about the Admin back-end services and WSDL
>>> experiment, is it possible to give  the required resources and sample 
>>> Test
>>> Script?
>>>
>>> Thanks and regards.
>>>
>>>
>>>
>>> On Mon, Apr 28, 2014 at 6:23 PM, Rukshan Chathuranga <
>>> rcruksha...@gmail.com> wrote:
>>>
 yeah i'm OK with the time and place.
 Thanks.


 On Mon, Apr 28, 2014 at 5:33 PM, Dharshana Warusavitharana <
 dharsha...@wso2.com> wrote:

> Hi Rukshan,
>
> How is your availability at 4.30 PM tomorrow.
>
> If you are ok with the time shall we schedule our discussion at
> that time at WSO2 office.
>
> Thank you,
> Dharshana.
>
>
> On Sun, Apr 27, 2014 at 5:33 PM, Rukshan Chathuranga <
> rcruksha...@gmail.com> wrote:
>
>> Yes. Afternoon is possible.
>>
>> Thanks.
>>
>>
>> On Sun, Apr 27, 2014 at 11:23 AM, Dharshana Warusavitharana <
>> dharsha...@wso2.com> wrote:
>>
>>> Sure Rukshan,
>>>
>>> How is your availability on afternoon sessions. I will discuss
>>> with the team and arrange a discussion.
>>> Meanwhile, if you need any clarifications please feel free to
>>> raise a mail.
>>>
>>> Thank You,
>>> Dharshana.
>>>
>>>
>>> On Sun, Apr 27, 2014 at 10:06 AM, Rukshan Chathuranga <
>>> rcr

Re: [Dev] encounter java.io.UTFDataFormatException: encoded string too long in BAM

2014-04-29 Thread Chathurika Mahaarachchi
Slimier Issue has been reported [1]

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



On Wed, Apr 30, 2014 at 9:33 AM, Shavantha Weerasinghe
wrote:

> Hi All
>
> The BAM 241 RC4 release had thrown the below exception on the stand-a-lone
> instance "java.io.UTFDataFormatException: encoded string too long: " could
> this be a limitation with the h2 database.
>
> I am not sure of the exact steps to reproduce this, but has any one come
> across a similar exception
>
> Warning: generateAlternativeSeed
> java.io.UTFDataFormatException: encoded string too long: 81297 bytes
> at java.io.DataOutputStream.writeUTF(DataOutputStream.java:364)
> at java.io.DataOutputStream.writeUTF(DataOutputStream.java:323)
> at org.h2.util.MathUtils.generateAlternativeSeed(MathUtils.java:137)
> at org.h2.util.MathUtils.getSecureRandom(MathUtils.java:89)
> at org.h2.util.MathUtils.secureRandomBytes(MathUtils.java:383)
> at org.h2.store.FileLock.setUniqueId(FileLock.java:290)
> at org.h2.store.FileLock.lockFile(FileLock.java:320)
> at org.h2.store.FileLock.lock(FileLock.java:129)
> at org.h2.engine.Database.open(Database.java:523)
> at org.h2.engine.Database.openDatabase(Database.java:207)
> at org.h2.engine.Database.(Database.java:202)
> at org.h2.engine.Engine.openSession(Engine.java:56)
> at org.h2.engine.Engine.openSession(Engine.java:146)
> at org.h2.engine.Engine.getSession(Engine.java:125)
> at org.h2.engine.Session.createSession(Session.java:122)
> at
> org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
> at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
> at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:111)
> at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:95)
> at org.h2.Driver.connect(Driver.java:73)
> at java.sql.DriverManager.getConnection(DriverManager.java:579)
> at java.sql.DriverManager.getConnection(DriverManager.java:221)
> at
> org.wso2.carbon.hadoop.hive.jdbc.storage.db.DBManager.createConnection(DBManager.java:73)
> at
> org.wso2.carbon.hadoop.hive.jdbc.storage.db.DBManager.createConnection(DBManager.java:85)
> at
> org.wso2.carbon.hadoop.hive.jdbc.storage.JDBCDataOutputFormat.getHiveRecordWriter(JDBCDataOutputFormat.java:48)
> at
> org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getRecordWriter(HiveFileFormatUtils.java:236)
> at
> org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getHiveRecordWriter(HiveFileFormatUtils.java:224)
> at
> org.apache.hadoop.hive.ql.exec.FileSinkOperator.createBucketFiles(FileSinkOperator.java:478)
> at
> org.apache.hadoop.hive.ql.exec.FileSinkOperator.processOp(FileSinkOperator.java:526)
> at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
> at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:758)
> at
> org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(SelectOperator.java:84)
> at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
> at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:758)
> at
> org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(SelectOperator.java:84)
> at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
> at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:758)
> at
> org.apache.hadoop.hive.ql.exec.GroupByOperator.forward(GroupByOperator.java:964)
> at
> org.apache.hadoop.hive.ql.exec.GroupByOperator.processAggr(GroupByOperator.java:781)
> at
> org.apache.hadoop.hive.ql.exec.GroupByOperator.processOp(GroupByOperator.java:707)
> at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
> at
> org.apache.hadoop.hive.ql.exec.ExecReducer.reduce(ExecReducer.java:248)
> at
> org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:518)
> at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:419)
> at
> org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:257)
>
> Regards,
> Shavantha Weerasinghe
> Senior Software Engineer QA
> WSO2, Inc.
> lean.enterprise.middleware.
> http://wso2.com
> http://wso2.org
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


[Dev] [ES][Jaggery] Getting sender parameters for jaggery file from Axis2.xml

2014-04-29 Thread Chamila Wijayarathna
Hi all,
I am using email jaggery module for sending email notification in
Enterprise Store. I have added following code at
/publisher/apis/v1/lifecycle_api_router.jag file.

*var email = require('email');*
*var sender = new email.Sender("smtp.gmail.com ",
"587", "wso2demomail", "mailpassword", "tls");*

Can I get the email sender properties for here from
repository/conf/axis2/axis2.xml without hardcoding these values here?

Thank You!

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


Re: [Dev] GSOC-Automated test case generation tool for WSO2 products

2014-04-29 Thread Rukshan Chathuranga
Thanks RajKumar,

wxPython installed successfully and ride works fine.

regards.


On Wed, Apr 30, 2014 at 9:53 AM, Rajkumar Rajaratnam wrote:

> Hi Rukshan,
>
> You can install wxPython on Ubuntu by running,
>
> sudo apt-get install python-wxgtk2.8
>
> Thanks.
>
>
> On Wed, Apr 30, 2014 at 8:59 AM, Rukshan Chathuranga <
> rcruksha...@gmail.com> wrote:
>
>> Hi krishantha,
>>
>> I followed the instruction to install the robot. Most of dependencies
>> already had in the system and installation was success. but when installing
>> "ride", it give a warning to install wxPython 2.8 toolkit with Unicode
>> support. Also it's doesn't work without wxPython.
>>
>> It suggest the installation guide by this link
>> http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/.
>>
>> But it is hard to find the correct file to install. may be this one is
>> not important now.
>> if you already encountered this problem let me know how to install.
>>
>> Thanks.
>>
>>
>> On Tue, Apr 29, 2014 at 10:39 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Selenium2Library API documentation -
>>> https://github.com/rtomac/robotframework-selenium2library
>>> Source - https://github.com/rtomac/robotframework-selenium2library
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>> On Tue, Apr 29, 2014 at 10:33 PM, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Robot framework installation on Linux
 

 1. Install Python if doesn't exists in your machine -

 *easy_install pip*
 *pip install python*

 2. Install Jyton (Optinal)

 *sudo apt-get install jython*

 3. Install robot framework

 *pip install robotframework *OR* easy_install robotframework  *

 4. Install ride (The IDE for robot test case writing)

 *pip install robotframework-ride *OR *easy_install robotframework-ride*

 5. Install Selenium2Library - Selenium implementation compatible with
 robot

 *pip install robotframework-selenium2library *OR* easy_install
 robotframework-selenium2library*


 Let me know if you find any difficulty with installation.

 Thanks,
 Krishantha.


 On Tue, Apr 29, 2014 at 10:23 PM, Krishantha Samaraweera <
 krishan...@wso2.com> wrote:

> Hi Rukshan,
>
> Some sample robot scripts are attached here with.
>
> Thanks,
> Krishantha.
>
>
>
>
> On Tue, Apr 29, 2014 at 10:17 PM, Malintha Adikari 
> wrote:
>
>> adding
>>
>> 3. WSO2 Application Server Documentation[4]
>>
>> [4]
>> https://docs.wso2.org/display/AS521/WSO2+Application+Server+Documentation
>>
>>
>> On Tue, Apr 29, 2014 at 10:12 PM, Malintha Adikari > > wrote:
>>
>>> Hi Rukshan,
>>>
>>> Following resources would help you to understand the basics of
>>> required technologies.
>>>
>>> 1. Hello world with Axis2 web service [1]
>>> 2. Understanding WSDL files.[2], [3]
>>>
>>> [1]http://wso2.com/library/95/
>>> [2]http://oreilly.com/catalog/webservess/chapter/ch06.html
>>> [3]http://predic8.com/wsdl-reading.htm
>>>
>>> Regards,
>>> Malintha Adikari
>>>
>>>
>>> On Tue, Apr 29, 2014 at 9:43 PM, Rukshan Chathuranga <
>>> rcruksha...@gmail.com> wrote:
>>>
 Hi,

 Could understand the ultimate objective of the project and stating
 points of the project. Feasibility of the keyword driven testing using
 Robot frame, should be evaluate in this week.
 Also to get understand about the Admin back-end services and WSDL
 experiment, is it possible to give  the required resources and sample 
 Test
 Script?

 Thanks and regards.



 On Mon, Apr 28, 2014 at 6:23 PM, Rukshan Chathuranga <
 rcruksha...@gmail.com> wrote:

> yeah i'm OK with the time and place.
> Thanks.
>
>
> On Mon, Apr 28, 2014 at 5:33 PM, Dharshana Warusavitharana <
> dharsha...@wso2.com> wrote:
>
>> Hi Rukshan,
>>
>> How is your availability at 4.30 PM tomorrow.
>>
>> If you are ok with the time shall we schedule our discussion at
>> that time at WSO2 office.
>>
>> Thank you,
>> Dharshana.
>>
>>
>> On Sun, Apr 27, 2014 at 5:33 PM, Rukshan Chathuranga <
>> rcruksha...@gmail.com> wrote:
>>
>>> Yes. Afternoon is possible.
>>>
>>> Thanks.
>>>
>>>
>>> On Sun, Apr 27, 2014 at 11:23 AM, Dharshana Warusavitharana <
>>> dharsha...@wso2.com> wrote:
>>>
 Sure Rukshan,

 How is your availability on afternoon sessions. I will discuss
 with the team and arrange a discussion.
>>>

Re: [Dev] GSOC-Automated test case generation tool for WSO2 products

2014-04-29 Thread Rajkumar Rajaratnam
Hi Rukshan,

You can install wxPython on Ubuntu by running,

sudo apt-get install python-wxgtk2.8

Thanks.


On Wed, Apr 30, 2014 at 8:59 AM, Rukshan Chathuranga
wrote:

> Hi krishantha,
>
> I followed the instruction to install the robot. Most of dependencies
> already had in the system and installation was success. but when installing
> "ride", it give a warning to install wxPython 2.8 toolkit with Unicode
> support. Also it's doesn't work without wxPython.
>
> It suggest the installation guide by this link
> http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/.
>
> But it is hard to find the correct file to install. may be this one is not
> important now.
> if you already encountered this problem let me know how to install.
>
> Thanks.
>
>
> On Tue, Apr 29, 2014 at 10:39 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Selenium2Library API documentation -
>> https://github.com/rtomac/robotframework-selenium2library
>> Source - https://github.com/rtomac/robotframework-selenium2library
>>
>> Thanks,
>> Krishantha.
>>
>>
>> On Tue, Apr 29, 2014 at 10:33 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Robot framework installation on Linux
>>> 
>>>
>>> 1. Install Python if doesn't exists in your machine -
>>>
>>> *easy_install pip*
>>> *pip install python*
>>>
>>> 2. Install Jyton (Optinal)
>>>
>>> *sudo apt-get install jython*
>>>
>>> 3. Install robot framework
>>>
>>> *pip install robotframework *OR* easy_install robotframework  *
>>>
>>> 4. Install ride (The IDE for robot test case writing)
>>>
>>> *pip install robotframework-ride *OR *easy_install robotframework-ride*
>>>
>>> 5. Install Selenium2Library - Selenium implementation compatible with
>>> robot
>>>
>>> *pip install robotframework-selenium2library *OR* easy_install
>>> robotframework-selenium2library*
>>>
>>>
>>> Let me know if you find any difficulty with installation.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>> On Tue, Apr 29, 2014 at 10:23 PM, Krishantha Samaraweera <
>>> krishan...@wso2.com> wrote:
>>>
 Hi Rukshan,

 Some sample robot scripts are attached here with.

 Thanks,
 Krishantha.




 On Tue, Apr 29, 2014 at 10:17 PM, Malintha Adikari 
 wrote:

> adding
>
> 3. WSO2 Application Server Documentation[4]
>
> [4]
> https://docs.wso2.org/display/AS521/WSO2+Application+Server+Documentation
>
>
> On Tue, Apr 29, 2014 at 10:12 PM, Malintha Adikari 
> wrote:
>
>> Hi Rukshan,
>>
>> Following resources would help you to understand the basics of
>> required technologies.
>>
>> 1. Hello world with Axis2 web service [1]
>> 2. Understanding WSDL files.[2], [3]
>>
>> [1]http://wso2.com/library/95/
>> [2]http://oreilly.com/catalog/webservess/chapter/ch06.html
>> [3]http://predic8.com/wsdl-reading.htm
>>
>> Regards,
>> Malintha Adikari
>>
>>
>> On Tue, Apr 29, 2014 at 9:43 PM, Rukshan Chathuranga <
>> rcruksha...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Could understand the ultimate objective of the project and stating
>>> points of the project. Feasibility of the keyword driven testing using
>>> Robot frame, should be evaluate in this week.
>>> Also to get understand about the Admin back-end services and WSDL
>>> experiment, is it possible to give  the required resources and sample 
>>> Test
>>> Script?
>>>
>>> Thanks and regards.
>>>
>>>
>>>
>>> On Mon, Apr 28, 2014 at 6:23 PM, Rukshan Chathuranga <
>>> rcruksha...@gmail.com> wrote:
>>>
 yeah i'm OK with the time and place.
 Thanks.


 On Mon, Apr 28, 2014 at 5:33 PM, Dharshana Warusavitharana <
 dharsha...@wso2.com> wrote:

> Hi Rukshan,
>
> How is your availability at 4.30 PM tomorrow.
>
> If you are ok with the time shall we schedule our discussion at
> that time at WSO2 office.
>
> Thank you,
> Dharshana.
>
>
> On Sun, Apr 27, 2014 at 5:33 PM, Rukshan Chathuranga <
> rcruksha...@gmail.com> wrote:
>
>> Yes. Afternoon is possible.
>>
>> Thanks.
>>
>>
>> On Sun, Apr 27, 2014 at 11:23 AM, Dharshana Warusavitharana <
>> dharsha...@wso2.com> wrote:
>>
>>> Sure Rukshan,
>>>
>>> How is your availability on afternoon sessions. I will discuss
>>> with the team and arrange a discussion.
>>> Meanwhile, if you need any clarifications please feel free to
>>> raise a mail.
>>>
>>> Thank You,
>>> Dharshana.
>>>
>>>
>>> On Sun, Apr 27, 2014 at 10:06 AM, Rukshan Chathuranga <
>>> rcruksha...@gmail.com> wrote:
>>>

 hi,

>>>

Re: [Dev] [ES] ES start-up hangs

2014-04-29 Thread Udara Rathnayake
Hi,

Finally managed to build the ES in a clean repo but still I'm getting this
issue.



On Mon, Apr 28, 2014 at 12:51 PM, Manoj Kumara  wrote:

> Hi UdaraR,
>
> As discussed with KasunG this has being fixed. Can you please try get
> update and build the product and check.
>
> Thanks,
> Manoj
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
>
> On Sat, Apr 26, 2014 at 11:25 AM, Udara Rathnayake wrote:
>
>> 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
>>
>>
>


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


[Dev] encounter java.io.UTFDataFormatException: encoded string too long in BAM

2014-04-29 Thread Shavantha Weerasinghe
Hi All

The BAM 241 RC4 release had thrown the below exception on the stand-a-lone
instance "java.io.UTFDataFormatException: encoded string too long: " could
this be a limitation with the h2 database.

I am not sure of the exact steps to reproduce this, but has any one come
across a similar exception

Warning: generateAlternativeSeed
java.io.UTFDataFormatException: encoded string too long: 81297 bytes
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:364)
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:323)
at org.h2.util.MathUtils.generateAlternativeSeed(MathUtils.java:137)
at org.h2.util.MathUtils.getSecureRandom(MathUtils.java:89)
at org.h2.util.MathUtils.secureRandomBytes(MathUtils.java:383)
at org.h2.store.FileLock.setUniqueId(FileLock.java:290)
at org.h2.store.FileLock.lockFile(FileLock.java:320)
at org.h2.store.FileLock.lock(FileLock.java:129)
at org.h2.engine.Database.open(Database.java:523)
at org.h2.engine.Database.openDatabase(Database.java:207)
at org.h2.engine.Database.(Database.java:202)
at org.h2.engine.Engine.openSession(Engine.java:56)
at org.h2.engine.Engine.openSession(Engine.java:146)
at org.h2.engine.Engine.getSession(Engine.java:125)
at org.h2.engine.Session.createSession(Session.java:122)
at
org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
at org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:111)
at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:95)
at org.h2.Driver.connect(Driver.java:73)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:221)
at
org.wso2.carbon.hadoop.hive.jdbc.storage.db.DBManager.createConnection(DBManager.java:73)
at
org.wso2.carbon.hadoop.hive.jdbc.storage.db.DBManager.createConnection(DBManager.java:85)
at
org.wso2.carbon.hadoop.hive.jdbc.storage.JDBCDataOutputFormat.getHiveRecordWriter(JDBCDataOutputFormat.java:48)
at
org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getRecordWriter(HiveFileFormatUtils.java:236)
at
org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getHiveRecordWriter(HiveFileFormatUtils.java:224)
at
org.apache.hadoop.hive.ql.exec.FileSinkOperator.createBucketFiles(FileSinkOperator.java:478)
at
org.apache.hadoop.hive.ql.exec.FileSinkOperator.processOp(FileSinkOperator.java:526)
at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:758)
at
org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(SelectOperator.java:84)
at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:758)
at
org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(SelectOperator.java:84)
at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:758)
at
org.apache.hadoop.hive.ql.exec.GroupByOperator.forward(GroupByOperator.java:964)
at
org.apache.hadoop.hive.ql.exec.GroupByOperator.processAggr(GroupByOperator.java:781)
at
org.apache.hadoop.hive.ql.exec.GroupByOperator.processOp(GroupByOperator.java:707)
at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
at
org.apache.hadoop.hive.ql.exec.ExecReducer.reduce(ExecReducer.java:248)
at
org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:518)
at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:419)
at
org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:257)

Regards,
Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC-Automated test case generation tool for WSO2 products

2014-04-29 Thread Rukshan Chathuranga
Hi krishantha,

I followed the instruction to install the robot. Most of dependencies
already had in the system and installation was success. but when installing
"ride", it give a warning to install wxPython 2.8 toolkit with Unicode
support. Also it's doesn't work without wxPython.

It suggest the installation guide by this link
http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/.

But it is hard to find the correct file to install. may be this one is not
important now.
if you already encountered this problem let me know how to install.

Thanks.


On Tue, Apr 29, 2014 at 10:39 PM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> Selenium2Library API documentation -
> https://github.com/rtomac/robotframework-selenium2library
> Source - https://github.com/rtomac/robotframework-selenium2library
>
> Thanks,
> Krishantha.
>
>
> On Tue, Apr 29, 2014 at 10:33 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Robot framework installation on Linux
>> 
>>
>> 1. Install Python if doesn't exists in your machine -
>>
>> *easy_install pip*
>> *pip install python*
>>
>> 2. Install Jyton (Optinal)
>>
>> *sudo apt-get install jython*
>>
>> 3. Install robot framework
>>
>> *pip install robotframework *OR* easy_install robotframework  *
>>
>> 4. Install ride (The IDE for robot test case writing)
>>
>> *pip install robotframework-ride *OR *easy_install robotframework-ride*
>>
>> 5. Install Selenium2Library - Selenium implementation compatible with
>> robot
>>
>> *pip install robotframework-selenium2library *OR* easy_install
>> robotframework-selenium2library*
>>
>>
>> Let me know if you find any difficulty with installation.
>>
>> Thanks,
>> Krishantha.
>>
>>
>> On Tue, Apr 29, 2014 at 10:23 PM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi Rukshan,
>>>
>>> Some sample robot scripts are attached here with.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>>
>>>
>>> On Tue, Apr 29, 2014 at 10:17 PM, Malintha Adikari wrote:
>>>
 adding

 3. WSO2 Application Server Documentation[4]

 [4]
 https://docs.wso2.org/display/AS521/WSO2+Application+Server+Documentation


 On Tue, Apr 29, 2014 at 10:12 PM, Malintha Adikari 
 wrote:

> Hi Rukshan,
>
> Following resources would help you to understand the basics of
> required technologies.
>
> 1. Hello world with Axis2 web service [1]
> 2. Understanding WSDL files.[2], [3]
>
> [1]http://wso2.com/library/95/
> [2]http://oreilly.com/catalog/webservess/chapter/ch06.html
> [3]http://predic8.com/wsdl-reading.htm
>
> Regards,
> Malintha Adikari
>
>
> On Tue, Apr 29, 2014 at 9:43 PM, Rukshan Chathuranga <
> rcruksha...@gmail.com> wrote:
>
>> Hi,
>>
>> Could understand the ultimate objective of the project and stating
>> points of the project. Feasibility of the keyword driven testing using
>> Robot frame, should be evaluate in this week.
>> Also to get understand about the Admin back-end services and WSDL
>> experiment, is it possible to give  the required resources and sample 
>> Test
>> Script?
>>
>> Thanks and regards.
>>
>>
>>
>> On Mon, Apr 28, 2014 at 6:23 PM, Rukshan Chathuranga <
>> rcruksha...@gmail.com> wrote:
>>
>>> yeah i'm OK with the time and place.
>>> Thanks.
>>>
>>>
>>> On Mon, Apr 28, 2014 at 5:33 PM, Dharshana Warusavitharana <
>>> dharsha...@wso2.com> wrote:
>>>
 Hi Rukshan,

 How is your availability at 4.30 PM tomorrow.

 If you are ok with the time shall we schedule our discussion at
 that time at WSO2 office.

 Thank you,
 Dharshana.


 On Sun, Apr 27, 2014 at 5:33 PM, Rukshan Chathuranga <
 rcruksha...@gmail.com> wrote:

> Yes. Afternoon is possible.
>
> Thanks.
>
>
> On Sun, Apr 27, 2014 at 11:23 AM, Dharshana Warusavitharana <
> dharsha...@wso2.com> wrote:
>
>> Sure Rukshan,
>>
>> How is your availability on afternoon sessions. I will discuss
>> with the team and arrange a discussion.
>> Meanwhile, if you need any clarifications please feel free to
>> raise a mail.
>>
>> Thank You,
>> Dharshana.
>>
>>
>> On Sun, Apr 27, 2014 at 10:06 AM, Rukshan Chathuranga <
>> rcruksha...@gmail.com> wrote:
>>
>>>
>>> hi,
>>>
>>> These days i trying to understand my project architecture in
>>> deep. Also i am doing robot and NLP experiments to verify the 
>>> feasibility.
>>>
>>> SO can we arrange a session to discuss more about this next week?
>>>
>>> thanks and regards.
>>>
>>> --
>>> Department Of Computer Sci

Re: [Dev] DSS JSON sample

2014-04-29 Thread Afkham Azeez
On Tue, Apr 29, 2014 at 8:35 PM, Shelan Perera  wrote:

> Hi Azeez,
>
> ContentType should be Content-Type
>

Yes, that was the issue. Thanks Shelan.

>
> Thanks
>
>
> On Tue, Apr 29, 2014 at 5:00 PM, Iranga Muthuthanthri wrote:
>
>> Can you try with  (The POST  request is not required)
>>
>> curl  -H 'Accept: application/json'  -H 'ContentType: application/json'
>> --data "@employee-payload.json" 
>> http://localhost:9763/services/samples/JSONSample/employee/
>> . 
>>
>>
>>
>>
>>
>> 
>>
>>
>> On Tue, Apr 29, 2014 at 8:10 PM, Afkham Azeez  wrote:
>>
>>> Related to https://docs.wso2.org/display/DSS320/JSON+Mapping+Sample,
>>>
>>> It would be great if the DSS sample can give the full curl commands.
>>>
>>>
>>> I tried the following command,
>>>
>>> curl -X POST -H 'Accept: application/json'  -H 'ContentType:
>>> application/json' --data "@employee-payload.json"
>>> http://localhost:9763/services/samples/JSONSample/employee/
>>>
>>>
>>> The employee-payload.json has the following payload:
>>>
>>>
>>> {
>>>
>>>   "_postemployee": {
>>>
>>> "employeeNumber" : "14001",
>>>
>>> "lastName": "Smith",
>>>
>>> "firstName": "Will",
>>>
>>> "email": "w...@google.com",
>>>
>>> "salary": "15500.0"
>>>
>>>   }
>>>
>>> }
>>>
>>>
>>>
>>> However, this call results in the following error;
>>>
>>>
>>> Apache Tomcat/7.0.34 - Error
>>> report
>>> HTTP Status 500 - String index out of range: -1>> size="1" noshade="noshade">type Exception
>>> reportmessage String index out of range:
>>> -1description The server encountered an internal error
>>> that prevented it from fulfilling this request.exception
>>> java.lang.StringIndexOutOfBoundsException: String index out of range:
>>> -1
>>>
>>> java.lang.String.substring(String.java:1911)
>>>
>>>
>>> org.apache.axis2.builder.XFormURLEncodedBuilder.extractParametersFromRequest(XFormURLEncodedBuilder.java:174)
>>>
>>>
>>> org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:112)
>>>
>>>
>>> org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:188)
>>>
>>>
>>> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:146)
>>>
>>>
>>> org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:65)
>>>
>>>
>>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:826)
>>>
>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:227)
>>>
>>>
>>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>>>
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>>
>>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>>
>>>
>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>>
>>>
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>>
>>>
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>>>
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>>
>>>
>>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>>
>>>
>>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>>>
>>> note The full stack trace of the root cause is
>>> available in the Apache Tomcat/7.0.34 logs.>> noshade="noshade">Apache Tomcat/7.0.34
>>>
>>>
>>> What is missing in the curl command?
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: 
>>> **http://twitter.com/afkham_azeez*
>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Iranga Muthuth

[Dev] How can I get the TRACE logging to work?

2014-04-29 Thread Dulanja Liyanage
Hi All,

$subject.

Following are the defaults inside log4j.properties file

log4j.logger.trace.messages=TRACE,CARBON_TRACE_LOGFILE
# Appender config to CARBON_TRACE_LOGFILE
log4j.appender.CARBON_TRACE_LOGFILE=org.apache.log4j.DailyRollingFileAppender
log4j.appender.CARBON_TRACE_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon-trace-messages${instance.log}.log
log4j.appender.CARBON_TRACE_LOGFILE.Append=true
log4j.appender.CARBON_TRACE_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
log4j.appender.CARBON_TRACE_LOGFILE.layout.ConversionPattern=[%d] %P%5p
{%c} - %x %m {%c}%n
log4j.appender.CARBON_TRACE_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S]
log4j.appender.CARBON_TRACE_LOGFILE.threshold=TRACE
log4j.additivity.trace.messages=false


I have enabled TRACE for the component as following:

log4j.logger.org.wso2.carbon.identity.application=TRACE


>From code I'm calling like following:

if (log.isTraceEnabled()) {
  log.trace("Inside handle()");
}


I checked wso2carbon-trace-messages.log, it's empty. However, the DEBUG
logs of log4j.logger.org.wso2.carbon.identity.application are printed in
wso2carbon.log as expected.

Am I missing something here? Or is TRACE broken?

Thanks,
Dulanja

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


Re: [Dev] [DEV][ESB] Inbound EP File/vfs - Memory Leak

2014-04-29 Thread Kasun Indrasiri
Hi Malaka,

I doubt that's 'injectAsync' is the culprit, because this is tested with
Iterate or clone mediators. Rather it could be due to the logic in inbound
file endpoint . What heap dump shows us.. do we have many instances of
mediation workers created and is that over the max limit of the
SynapseThread pool size?


On Tue, Apr 29, 2014 at 6:42 PM, Malaka Silva  wrote:

> Hi,
>
> I ran the inbound file with 10 endpoints and over 1000 files.
>
> However the esb failed after some runs.
>
> I guess this is the something to do with the way we inject the message to
> sequence.
>
>
> https://github.com/wso2-dev/wso2-synapse/tree/master/modules/core/src/main/java/org/apache/synapse/inbound/vfs
>
> org.apache.synapse.util.concurrent.SynapseThreadPool seem to take some
> space.
>
> Any idea?
>
> Following is the heap dump.
>
> https://www.dropbox.com/s/gdw680mvdx3i644/heap-dump.hprof.zip
>
> Best Regards,
>
> Malaka Silva
> Senior Tech Lead
> M: +94 777 219 791
> Tel : 94 11 214 5345
> Fax :94 11 2145300
> Skype : malaka.sampath.silva
> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
> Blog : http://mrmalakasilva.blogspot.com/
>
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
> http://www.wso2.com/about/team/malaka-silva/
>
> Save a tree -Conserve nature & Save the world for your future. Print this
> email only if it is absolutely necessary.
>



-- 
Kasun Indrasiri
Software Architect
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

cell: +94 77 556 5206
Blog : http://kasunpanorama.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Coordination] Embedded zookeeper in coordination component doesn't start ZooKeeperSaslServer

2014-04-29 Thread Ishara Premadasa
Hi,

>From WSO2 MB 2.2.0 onwards we will be supporting zookeeper profiles with MB
where a message broker instance can be started as a zookeeper server as
well by using carbon profiles. For this we use embedded zookeeper server
that getting shipped with Coordination component. However as stated in [1]
when enabled SASL security for zookeeper server, the coordination server (
which is zk server here) doesn't seem to initiate a ZooKeeperSaslServer
object, but still it starts a non-SASL Zookeeper server only.

I enabled the debug logs for zookeeper server and once the client tries to
connect to server with providing client login data the following error logs
can be seen at zk server side and client side.

*server side ( MB with zookeeper profile enabled)*
[2014-04-29 22:06:31,316] DEBUG
{org.apache.zookeeper.server.ZooKeeperServer} -  Responding to client SASL
token.
[2014-04-29 22:06:31,316] DEBUG
{org.apache.zookeeper.server.ZooKeeperServer} -  Size of client SASL token:
0
[2014-04-29 22:06:31,317] ERROR
{org.apache.zookeeper.server.ZooKeeperServer} -  cnxn.saslServer is null:
cnxn object did not initialize its saslServer properly.

*client side ( MB server which connects to zookeeper)*
[2014-04-29 22:06:31,313] DEBUG
{org.apache.zookeeper.client.ZooKeeperSaslClient} -
ClientCnxn:sendSaslPacket:length=0
[2014-04-29 22:06:31,319] ERROR
{org.apache.zookeeper.client.ZooKeeperSaslClient} -  SASL authentication
failed using login context 'Client'.

To get this verified, i tested the same scenario by pointing to an external
Apache zookeeper server where client was able to successfully authenticate
through same credentials as below logs.

[2014-04-29 22:12:10,873] DEBUG
{org.apache.zookeeper.client.ZooKeeperSaslClient} -
ClientCnxn:sendSaslPacket:length=0
[2014-04-29 22:12:10,873] DEBUG
{org.apache.zookeeper.client.ZooKeeperSaslClient} -
saslClient.evaluateChallenge(len=101)
[2014-04-29 22:12:10,874] DEBUG
{org.apache.zookeeper.client.ZooKeeperSaslClient} -
ClientCnxn:sendSaslPacket:length=276
[2014-04-29 22:12:10,876] DEBUG
{org.apache.zookeeper.client.ZooKeeperSaslClient} -
saslClient.evaluateChallenge(len=40)
[2014-04-29 22:12:10,877] DEBUG {org.apache.zookeeper.ClientCnxn} -
Reading reply sessionid:0x145ae5b1d2e0002, packet:: clientPath:null
serverPath:null finished:false header:: 3,3  replyHeader:: 3,5,-101
request:: '/queue_workers_parent,F  response::

Therefore it seems coordination server doesn't start zookeeper instance by
verifying whether security enabled or not. We need to get this fixed for MB
2.2.0 and i am currently working on it. If there is any configuration
available for coordination server to handle this without changing the
source please mention it here.

Thanks!
Ishara

[1] https://wso2.org/jira/browse/MB-601

-- 
Ishara Premasada
Software Engineer,
WSO2 Inc. http://wso2.com/


*Blog   :  http://isharapremadasa.blogspot.com/
Twitter   :
https://twitter.com/ishadil Mobile   : +94
714445832*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Commit the kernel patch0007

2014-04-29 Thread Manoj Kumara
Hi Manjula,

Committed with r201394.

Thanks,
Manoj


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


On Tue, Apr 29, 2014 at 4:09 PM, Manjula Rathnayake wrote:

> Hi Kernel team,
>
> Please apply the patch to resolve issue[1] on session replication.
>
> [1]. https://wso2.org/jira/browse/CARBON-14783
>
> thank you.
>
> --
> Manjula Rathnayaka
> Software Engineer
> WSO2, Inc.
> Mobile:+94 77 743 1987
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Meeting Notes on EMM Carbon

2014-04-29 Thread Gayan Gunawardana
Hi Kishanthan,

As per the discussion we had during the meeting can you specifically
mention the carbon core features we should install into EMM server. We have
seen org.wso2.carbon:org.wso2.carbon.core.feature:4.2.0 and
org.wso2.carbon:org.wso2.carbon.core.runtime.feature:4.2.0 in most of other
products but it differs sometimes.

WDYT ?


On Tue, Apr 29, 2014 at 10:47 PM, Chan  wrote:

> Hi folks,
> We had a meeting today with Kicha to sort out our EMM carbon related
> problems. Attendees - Mobile Team, SameeraP, Kicha. Below are points we
> discussed -
>
>- Finalize on the dependent product versions (specially APIM feature
>version and IS feature version)
>- Use .p2inf to copy feature related files
>- Use bin.xml to copy product related files
>- Get proper changes of files (axis2.xml) done by other teams to EMM
>- Not going to use Carbon Profiles since emm_service app is a
>deployment artifact
>
> Please add anything if I missed.
> ​Cheers~​
> --
> Chan (Dulitha Wijewantha)
> Software Engineer - Mobile Development
> WSO2Mobile
> Lean.Enterprise.Mobileware
>  * ~Email   duli...@wso2.com *
> *  ~Mobile +94712112165 <%2B94712112165>*
> *  ~Website   dulitha.me *
> *  ~Twitter @dulitharw *
>   *~Github @dulichan *
>   *~SO @chan *
>



-- 
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] Same name problem with Enterprise store and API store

2014-04-29 Thread Gayan Gunawardana
Yes Sameera,

We also prefer to go with same approach. But we need small update from APIM
team for api store as per the versions getting updated.


On Tue, Apr 29, 2014 at 10:44 PM, Sameera Medagammaddegedara <
samee...@wso2.com> wrote:

> Hello Gayan,
>
> We had run into the same problem when integrating the ES feature to the
> Greg milestone pack.Our proposed solution to the problem was to;
>
>- Create a temporary ES store feature which would copy the Store and
>Publisher apps as *esstore *and *espublisher* to the p2 temp pack
>- Modify the bin.xml of the Greg product to then copy the esstore and
>espublisher as store and publisher
>
>
> I think a similar approach would address your needs.Please let me know if
> I have missed anything crucial.
>
> Thank You,
> Sameera
>
>
> On Tue, Apr 29, 2014 at 10:21 PM, Gayan Gunawardana wrote:
>
>> The Idea of this mail to address problem having api store, enterprise
>> store in a single product. Exact problem is both are refer same name and in
>> p2 profile there is no way to uniquely identity those two. The solution
>> came up with api-manager team is to modify store as productapistore and
>> this works fine for g-reg 4.6.0 release
>> (org.wso2.carbon.apimgt.store.feature version 1.2.0).
>> But for EMM we install features according to APIM 1.6 release so
>> org.wso2.carbon.apimgt.store.feature version is 1.2.1 and it doesn't work
>> properly. Even though changes done in 1.2.0 is still there because of some
>> other changes done for store and publisher
>> org.wso2.carbon.apimgt.store.feature version 1.2.1 does not work properly.
>>
>> Is there a way we can resolve above problem?
>>
>> --
>> Gayan Gunawardana
>> Software Engineer; WSO2 Inc.; http://wso2.com/
>> Email: ga...@wso2.com
>> Mobile: +94 (71) 8020933
>>
>
>
>
> --
> Sameera Medagammaddegedara
> Software Engineer
>
> Contact:
> Email: samee...@wso2.com
> Mobile: + 94 077 255 3005
>



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


[Dev] Meeting Notes on EMM Carbon

2014-04-29 Thread Chan
Hi folks,
We had a meeting today with Kicha to sort out our EMM carbon related
problems. Attendees - Mobile Team, SameeraP, Kicha. Below are points we
discussed -

   - Finalize on the dependent product versions (specially APIM feature
   version and IS feature version)
   - Use .p2inf to copy feature related files
   - Use bin.xml to copy product related files
   - Get proper changes of files (axis2.xml) done by other teams to EMM
   - Not going to use Carbon Profiles since emm_service app is a deployment
   artifact

Please add anything if I missed.
​Cheers~​
-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2Mobile
Lean.Enterprise.Mobileware
 * ~Email   duli...@wso2.com *
*  ~Mobile +94712112165*
*  ~Website   dulitha.me *
*  ~Twitter @dulitharw *
  *~Github @dulichan *
  *~SO @chan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Same name problem with Enterprise store and API store

2014-04-29 Thread Sameera Medagammaddegedara
Hello Gayan,

We had run into the same problem when integrating the ES feature to the
Greg milestone pack.Our proposed solution to the problem was to;

   - Create a temporary ES store feature which would copy the Store and
   Publisher apps as *esstore *and *espublisher* to the p2 temp pack
   - Modify the bin.xml of the Greg product to then copy the esstore and
   espublisher as store and publisher


I think a similar approach would address your needs.Please let me know if I
have missed anything crucial.

Thank You,
Sameera


On Tue, Apr 29, 2014 at 10:21 PM, Gayan Gunawardana  wrote:

> The Idea of this mail to address problem having api store, enterprise
> store in a single product. Exact problem is both are refer same name and in
> p2 profile there is no way to uniquely identity those two. The solution
> came up with api-manager team is to modify store as productapistore and
> this works fine for g-reg 4.6.0 release
> (org.wso2.carbon.apimgt.store.feature version 1.2.0).
> But for EMM we install features according to APIM 1.6 release so
> org.wso2.carbon.apimgt.store.feature version is 1.2.1 and it doesn't work
> properly. Even though changes done in 1.2.0 is still there because of some
> other changes done for store and publisher
> org.wso2.carbon.apimgt.store.feature version 1.2.1 does not work properly.
>
> Is there a way we can resolve above problem?
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: samee...@wso2.com
Mobile: + 94 077 255 3005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] GSOC-Automated test case generation tool for WSO2 products

2014-04-29 Thread Rukshan Chathuranga
Thanks. i will go through it.

Thanks and regards.


On Tue, Apr 29, 2014 at 10:33 PM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> Robot framework installation on Linux
> 
>
> 1. Install Python if doesn't exists in your machine -
>
> *easy_install pip*
> *pip install python*
>
> 2. Install Jyton (Optinal)
>
> *sudo apt-get install jython*
>
> 3. Install robot framework
>
> *pip install robotframework *OR* easy_install robotframework  *
>
> 4. Install ride (The IDE for robot test case writing)
>
> *pip install robotframework-ride *OR *easy_install robotframework-ride*
>
> 5. Install Selenium2Library - Selenium implementation compatible with
> robot
>
> *pip install robotframework-selenium2library *OR* easy_install
> robotframework-selenium2library*
>
>
> Let me know if you find any difficulty with installation.
>
> Thanks,
> Krishantha.
>
>
> On Tue, Apr 29, 2014 at 10:23 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Hi Rukshan,
>>
>> Some sample robot scripts are attached here with.
>>
>> Thanks,
>> Krishantha.
>>
>>
>>
>>
>> On Tue, Apr 29, 2014 at 10:17 PM, Malintha Adikari wrote:
>>
>>> adding
>>>
>>> 3. WSO2 Application Server Documentation[4]
>>>
>>> [4]
>>> https://docs.wso2.org/display/AS521/WSO2+Application+Server+Documentation
>>>
>>>
>>> On Tue, Apr 29, 2014 at 10:12 PM, Malintha Adikari wrote:
>>>
 Hi Rukshan,

 Following resources would help you to understand the basics of required
 technologies.

 1. Hello world with Axis2 web service [1]
 2. Understanding WSDL files.[2], [3]

 [1]http://wso2.com/library/95/
 [2]http://oreilly.com/catalog/webservess/chapter/ch06.html
 [3]http://predic8.com/wsdl-reading.htm

 Regards,
 Malintha Adikari


 On Tue, Apr 29, 2014 at 9:43 PM, Rukshan Chathuranga <
 rcruksha...@gmail.com> wrote:

> Hi,
>
> Could understand the ultimate objective of the project and stating
> points of the project. Feasibility of the keyword driven testing using
> Robot frame, should be evaluate in this week.
> Also to get understand about the Admin back-end services and WSDL
> experiment, is it possible to give  the required resources and sample Test
> Script?
>
> Thanks and regards.
>
>
>
> On Mon, Apr 28, 2014 at 6:23 PM, Rukshan Chathuranga <
> rcruksha...@gmail.com> wrote:
>
>> yeah i'm OK with the time and place.
>> Thanks.
>>
>>
>> On Mon, Apr 28, 2014 at 5:33 PM, Dharshana Warusavitharana <
>> dharsha...@wso2.com> wrote:
>>
>>> Hi Rukshan,
>>>
>>> How is your availability at 4.30 PM tomorrow.
>>>
>>> If you are ok with the time shall we schedule our discussion at that
>>> time at WSO2 office.
>>>
>>> Thank you,
>>> Dharshana.
>>>
>>>
>>> On Sun, Apr 27, 2014 at 5:33 PM, Rukshan Chathuranga <
>>> rcruksha...@gmail.com> wrote:
>>>
 Yes. Afternoon is possible.

 Thanks.


 On Sun, Apr 27, 2014 at 11:23 AM, Dharshana Warusavitharana <
 dharsha...@wso2.com> wrote:

> Sure Rukshan,
>
> How is your availability on afternoon sessions. I will discuss
> with the team and arrange a discussion.
> Meanwhile, if you need any clarifications please feel free to
> raise a mail.
>
> Thank You,
> Dharshana.
>
>
> On Sun, Apr 27, 2014 at 10:06 AM, Rukshan Chathuranga <
> rcruksha...@gmail.com> wrote:
>
>>
>> hi,
>>
>> These days i trying to understand my project architecture in
>> deep. Also i am doing robot and NLP experiments to verify the 
>> feasibility.
>>
>> SO can we arrange a session to discuss more about this next week?
>>
>> thanks and regards.
>>
>> --
>> Department Of Computer Science & Engineering,
>> Faculty Of Engineering,
>> University Of Moratuwa.
>> Sri lanka.
>> WEB: http://rukspot.com/
>>
>>
>
>
> --
>
> Dharshana Warusavitharana
> Senior Software Engineer , Test Automation
> WSO2 Inc. http://wso2.com
> email : dharsha...@wso2.com 
> Tel  : +94 11 214 5345
> Fax :+94 11 2145300
> cell : +94772202595
> blog : http://dharshanaw.blogspot.com
>
> lean . enterprise . middleware
>



 --
 Department Of Computer Science & Engineering,
 Faculty Of Engineering,
 University Of Moratuwa.
 Sri lanka.
 WEB: http://rukspot.com/


>>>
>>>
>>> --
>>>
>>> Dharshana Warusavitharana
>>> Senior Software Engineer , Test Automation
>>> WSO2 Inc. http://wso2.com

Re: [Dev] GSOC-Automated test case generation tool for WSO2 products

2014-04-29 Thread Krishantha Samaraweera
Selenium2Library API documentation -
https://github.com/rtomac/robotframework-selenium2library
Source - https://github.com/rtomac/robotframework-selenium2library

Thanks,
Krishantha.


On Tue, Apr 29, 2014 at 10:33 PM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> Robot framework installation on Linux
> 
>
> 1. Install Python if doesn't exists in your machine -
>
> *easy_install pip*
> *pip install python*
>
> 2. Install Jyton (Optinal)
>
> *sudo apt-get install jython*
>
> 3. Install robot framework
>
> *pip install robotframework *OR* easy_install robotframework  *
>
> 4. Install ride (The IDE for robot test case writing)
>
> *pip install robotframework-ride *OR *easy_install robotframework-ride*
>
> 5. Install Selenium2Library - Selenium implementation compatible with
> robot
>
> *pip install robotframework-selenium2library *OR* easy_install
> robotframework-selenium2library*
>
>
> Let me know if you find any difficulty with installation.
>
> Thanks,
> Krishantha.
>
>
> On Tue, Apr 29, 2014 at 10:23 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Hi Rukshan,
>>
>> Some sample robot scripts are attached here with.
>>
>> Thanks,
>> Krishantha.
>>
>>
>>
>>
>> On Tue, Apr 29, 2014 at 10:17 PM, Malintha Adikari wrote:
>>
>>> adding
>>>
>>> 3. WSO2 Application Server Documentation[4]
>>>
>>> [4]
>>> https://docs.wso2.org/display/AS521/WSO2+Application+Server+Documentation
>>>
>>>
>>> On Tue, Apr 29, 2014 at 10:12 PM, Malintha Adikari wrote:
>>>
 Hi Rukshan,

 Following resources would help you to understand the basics of required
 technologies.

 1. Hello world with Axis2 web service [1]
 2. Understanding WSDL files.[2], [3]

 [1]http://wso2.com/library/95/
 [2]http://oreilly.com/catalog/webservess/chapter/ch06.html
 [3]http://predic8.com/wsdl-reading.htm

 Regards,
 Malintha Adikari


 On Tue, Apr 29, 2014 at 9:43 PM, Rukshan Chathuranga <
 rcruksha...@gmail.com> wrote:

> Hi,
>
> Could understand the ultimate objective of the project and stating
> points of the project. Feasibility of the keyword driven testing using
> Robot frame, should be evaluate in this week.
> Also to get understand about the Admin back-end services and WSDL
> experiment, is it possible to give  the required resources and sample Test
> Script?
>
> Thanks and regards.
>
>
>
> On Mon, Apr 28, 2014 at 6:23 PM, Rukshan Chathuranga <
> rcruksha...@gmail.com> wrote:
>
>> yeah i'm OK with the time and place.
>> Thanks.
>>
>>
>> On Mon, Apr 28, 2014 at 5:33 PM, Dharshana Warusavitharana <
>> dharsha...@wso2.com> wrote:
>>
>>> Hi Rukshan,
>>>
>>> How is your availability at 4.30 PM tomorrow.
>>>
>>> If you are ok with the time shall we schedule our discussion at that
>>> time at WSO2 office.
>>>
>>> Thank you,
>>> Dharshana.
>>>
>>>
>>> On Sun, Apr 27, 2014 at 5:33 PM, Rukshan Chathuranga <
>>> rcruksha...@gmail.com> wrote:
>>>
 Yes. Afternoon is possible.

 Thanks.


 On Sun, Apr 27, 2014 at 11:23 AM, Dharshana Warusavitharana <
 dharsha...@wso2.com> wrote:

> Sure Rukshan,
>
> How is your availability on afternoon sessions. I will discuss
> with the team and arrange a discussion.
> Meanwhile, if you need any clarifications please feel free to
> raise a mail.
>
> Thank You,
> Dharshana.
>
>
> On Sun, Apr 27, 2014 at 10:06 AM, Rukshan Chathuranga <
> rcruksha...@gmail.com> wrote:
>
>>
>> hi,
>>
>> These days i trying to understand my project architecture in
>> deep. Also i am doing robot and NLP experiments to verify the 
>> feasibility.
>>
>> SO can we arrange a session to discuss more about this next week?
>>
>> thanks and regards.
>>
>> --
>> Department Of Computer Science & Engineering,
>> Faculty Of Engineering,
>> University Of Moratuwa.
>> Sri lanka.
>> WEB: http://rukspot.com/
>>
>>
>
>
> --
>
> Dharshana Warusavitharana
> Senior Software Engineer , Test Automation
> WSO2 Inc. http://wso2.com
> email : dharsha...@wso2.com 
> Tel  : +94 11 214 5345
> Fax :+94 11 2145300
> cell : +94772202595
> blog : http://dharshanaw.blogspot.com
>
> lean . enterprise . middleware
>



 --
 Department Of Computer Science & Engineering,
 Faculty Of Engineering,
 University Of Moratuwa.
 Sri lanka.
 WEB: http://rukspot.com/


>>>
>>>
>>> --

Re: [Dev] GSOC-Automated test case generation tool for WSO2 products

2014-04-29 Thread Krishantha Samaraweera
Robot framework installation on Linux


1. Install Python if doesn't exists in your machine -

*easy_install pip*
*pip install python*

2. Install Jyton (Optinal)

*sudo apt-get install jython*

3. Install robot framework

*pip install robotframework *OR* easy_install robotframework  *

4. Install ride (The IDE for robot test case writing)

*pip install robotframework-ride *OR *easy_install robotframework-ride*

5. Install Selenium2Library - Selenium implementation compatible with robot

*pip install robotframework-selenium2library *OR* easy_install
robotframework-selenium2library*


Let me know if you find any difficulty with installation.

Thanks,
Krishantha.


On Tue, Apr 29, 2014 at 10:23 PM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> Hi Rukshan,
>
> Some sample robot scripts are attached here with.
>
> Thanks,
> Krishantha.
>
>
>
>
> On Tue, Apr 29, 2014 at 10:17 PM, Malintha Adikari wrote:
>
>> adding
>>
>> 3. WSO2 Application Server Documentation[4]
>>
>> [4]
>> https://docs.wso2.org/display/AS521/WSO2+Application+Server+Documentation
>>
>>
>> On Tue, Apr 29, 2014 at 10:12 PM, Malintha Adikari wrote:
>>
>>> Hi Rukshan,
>>>
>>> Following resources would help you to understand the basics of required
>>> technologies.
>>>
>>> 1. Hello world with Axis2 web service [1]
>>> 2. Understanding WSDL files.[2], [3]
>>>
>>> [1]http://wso2.com/library/95/
>>> [2]http://oreilly.com/catalog/webservess/chapter/ch06.html
>>> [3]http://predic8.com/wsdl-reading.htm
>>>
>>> Regards,
>>> Malintha Adikari
>>>
>>>
>>> On Tue, Apr 29, 2014 at 9:43 PM, Rukshan Chathuranga <
>>> rcruksha...@gmail.com> wrote:
>>>
 Hi,

 Could understand the ultimate objective of the project and stating
 points of the project. Feasibility of the keyword driven testing using
 Robot frame, should be evaluate in this week.
 Also to get understand about the Admin back-end services and WSDL
 experiment, is it possible to give  the required resources and sample Test
 Script?

 Thanks and regards.



 On Mon, Apr 28, 2014 at 6:23 PM, Rukshan Chathuranga <
 rcruksha...@gmail.com> wrote:

> yeah i'm OK with the time and place.
> Thanks.
>
>
> On Mon, Apr 28, 2014 at 5:33 PM, Dharshana Warusavitharana <
> dharsha...@wso2.com> wrote:
>
>> Hi Rukshan,
>>
>> How is your availability at 4.30 PM tomorrow.
>>
>> If you are ok with the time shall we schedule our discussion at that
>> time at WSO2 office.
>>
>> Thank you,
>> Dharshana.
>>
>>
>> On Sun, Apr 27, 2014 at 5:33 PM, Rukshan Chathuranga <
>> rcruksha...@gmail.com> wrote:
>>
>>> Yes. Afternoon is possible.
>>>
>>> Thanks.
>>>
>>>
>>> On Sun, Apr 27, 2014 at 11:23 AM, Dharshana Warusavitharana <
>>> dharsha...@wso2.com> wrote:
>>>
 Sure Rukshan,

 How is your availability on afternoon sessions. I will discuss with
 the team and arrange a discussion.
 Meanwhile, if you need any clarifications please feel free to raise
 a mail.

 Thank You,
 Dharshana.


 On Sun, Apr 27, 2014 at 10:06 AM, Rukshan Chathuranga <
 rcruksha...@gmail.com> wrote:

>
> hi,
>
> These days i trying to understand my project architecture in deep.
> Also i am doing robot and NLP experiments to verify the feasibility.
>
> SO can we arrange a session to discuss more about this next week?
>
> thanks and regards.
>
> --
> Department Of Computer Science & Engineering,
> Faculty Of Engineering,
> University Of Moratuwa.
> Sri lanka.
> WEB: http://rukspot.com/
>
>


 --

 Dharshana Warusavitharana
 Senior Software Engineer , Test Automation
 WSO2 Inc. http://wso2.com
 email : dharsha...@wso2.com 
 Tel  : +94 11 214 5345
 Fax :+94 11 2145300
 cell : +94772202595
 blog : http://dharshanaw.blogspot.com

 lean . enterprise . middleware

>>>
>>>
>>>
>>> --
>>> Department Of Computer Science & Engineering,
>>> Faculty Of Engineering,
>>> University Of Moratuwa.
>>> Sri lanka.
>>> WEB: http://rukspot.com/
>>>
>>>
>>
>>
>> --
>>
>> Dharshana Warusavitharana
>> Senior Software Engineer , Test Automation
>> WSO2 Inc. http://wso2.com
>> email : dharsha...@wso2.com 
>> Tel  : +94 11 214 5345
>> Fax :+94 11 2145300
>> cell : +94772202595
>> blog : http://dharshanaw.blogspot.com
>>
>> lean . enterprise . middleware
>>
>
>
>
> --
> Department Of Computer Science & Engineering,
> Faculty Of Engineering,
> University Of Moratuwa.
> Sr

Re: [Dev] [Appfactory]

2014-04-29 Thread Dilshan Edirisuriya
Hi Gayan,

Did you look for commons-imaging capabilities? Not sure whether this is
added in the platform but this should address your need. In order to access
this from Jaggery you may write a module for that. Please look into its
supported formats at [2] as well.

[1] - http://commons.apache.org/proper/commons-imaging/
[2] - http://commons.apache.org/proper/commons-imaging/formatsupport.html

Regards,

Dilshan



On Tue, Apr 29, 2014 at 8:10 PM, Gayan Dhanushka  wrote:

> Hi,
>
> There is a need to resize the application Icons upon upload in appfactory.
> What would be a good image library to be used to serve this purpose? it
> would be good if we can use a good library that can be used throughout the
> entire platform. We should be able to use it in both java and jaggery as
> well.
>
> Any thoughts?
>
> GayanD
>
> Gayan Dhanuska
> Software Engineer
> http://wso2.com/
> Lean Enterprise Middleware
>
> Mobile
> 071 666 2327
>
> Office
> Tel   : 94 11 214 5345
> Fax  : 94 11 214 5300
>
> Twitter : https://twitter.com/gayanlggd
>
> ___
> 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


[Dev] Same name problem with Enterprise store and API store

2014-04-29 Thread Gayan Gunawardana
The Idea of this mail to address problem having api store, enterprise store
in a single product. Exact problem is both are refer same name and in p2
profile there is no way to uniquely identity those two. The solution came
up with api-manager team is to modify store as productapistore and this
works fine for g-reg 4.6.0 release (org.wso2.carbon.apimgt.store.feature
version 1.2.0).
But for EMM we install features according to APIM 1.6 release so
org.wso2.carbon.apimgt.store.feature version is 1.2.1 and it doesn't work
properly. Even though changes done in 1.2.0 is still there because of some
other changes done for store and publisher
org.wso2.carbon.apimgt.store.feature version 1.2.1 does not work properly.

Is there a way we can resolve above problem?

-- 
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] GSOC-Automated test case generation tool for WSO2 products

2014-04-29 Thread Malintha Adikari
adding

3. WSO2 Application Server Documentation[4]

[4]https://docs.wso2.org/display/AS521/WSO2+Application+Server+Documentation


On Tue, Apr 29, 2014 at 10:12 PM, Malintha Adikari wrote:

> Hi Rukshan,
>
> Following resources would help you to understand the basics of required
> technologies.
>
> 1. Hello world with Axis2 web service [1]
> 2. Understanding WSDL files.[2], [3]
>
> [1]http://wso2.com/library/95/
> [2]http://oreilly.com/catalog/webservess/chapter/ch06.html
> [3]http://predic8.com/wsdl-reading.htm
>
> Regards,
> Malintha Adikari
>
>
> On Tue, Apr 29, 2014 at 9:43 PM, Rukshan Chathuranga <
> rcruksha...@gmail.com> wrote:
>
>> Hi,
>>
>> Could understand the ultimate objective of the project and stating points
>> of the project. Feasibility of the keyword driven testing using Robot
>> frame, should be evaluate in this week.
>> Also to get understand about the Admin back-end services and WSDL
>> experiment, is it possible to give  the required resources and sample Test
>> Script?
>>
>> Thanks and regards.
>>
>>
>>
>> On Mon, Apr 28, 2014 at 6:23 PM, Rukshan Chathuranga <
>> rcruksha...@gmail.com> wrote:
>>
>>> yeah i'm OK with the time and place.
>>> Thanks.
>>>
>>>
>>> On Mon, Apr 28, 2014 at 5:33 PM, Dharshana Warusavitharana <
>>> dharsha...@wso2.com> wrote:
>>>
 Hi Rukshan,

 How is your availability at 4.30 PM tomorrow.

 If you are ok with the time shall we schedule our discussion at that
 time at WSO2 office.

 Thank you,
 Dharshana.


 On Sun, Apr 27, 2014 at 5:33 PM, Rukshan Chathuranga <
 rcruksha...@gmail.com> wrote:

> Yes. Afternoon is possible.
>
> Thanks.
>
>
> On Sun, Apr 27, 2014 at 11:23 AM, Dharshana Warusavitharana <
> dharsha...@wso2.com> wrote:
>
>> Sure Rukshan,
>>
>> How is your availability on afternoon sessions. I will discuss with
>> the team and arrange a discussion.
>> Meanwhile, if you need any clarifications please feel free to raise a
>> mail.
>>
>> Thank You,
>> Dharshana.
>>
>>
>> On Sun, Apr 27, 2014 at 10:06 AM, Rukshan Chathuranga <
>> rcruksha...@gmail.com> wrote:
>>
>>>
>>> hi,
>>>
>>> These days i trying to understand my project architecture in deep.
>>> Also i am doing robot and NLP experiments to verify the feasibility.
>>>
>>> SO can we arrange a session to discuss more about this next week?
>>>
>>> thanks and regards.
>>>
>>> --
>>> Department Of Computer Science & Engineering,
>>> Faculty Of Engineering,
>>> University Of Moratuwa.
>>> Sri lanka.
>>> WEB: http://rukspot.com/
>>>
>>>
>>
>>
>> --
>>
>> Dharshana Warusavitharana
>> Senior Software Engineer , Test Automation
>> WSO2 Inc. http://wso2.com
>> email : dharsha...@wso2.com 
>> Tel  : +94 11 214 5345
>> Fax :+94 11 2145300
>> cell : +94772202595
>> blog : http://dharshanaw.blogspot.com
>>
>> lean . enterprise . middleware
>>
>
>
>
> --
> Department Of Computer Science & Engineering,
> Faculty Of Engineering,
> University Of Moratuwa.
> Sri lanka.
> WEB: http://rukspot.com/
>
>


 --

 Dharshana Warusavitharana
 Senior Software Engineer , Test Automation
 WSO2 Inc. http://wso2.com
 email : dharsha...@wso2.com 
 Tel  : +94 11 214 5345
 Fax :+94 11 2145300
 cell : +94772202595
 blog : http://dharshanaw.blogspot.com

 lean . enterprise . middleware

>>>
>>>
>>>
>>> --
>>> Department Of Computer Science & Engineering,
>>> Faculty Of Engineering,
>>> University Of Moratuwa.
>>> Sri lanka.
>>> WEB: http://rukspot.com/
>>>
>>>
>>
>>
>> --
>> Department Of Computer Science & Engineering,
>> Faculty Of Engineering,
>> University Of Moratuwa.
>> Sri lanka.
>> WEB: http://rukspot.com/
>>
>>
>
>
> --
> *Malintha Adikari*
>  Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile: +94 71 2312958
> Blog:http://malinthas.blogspot.com
> Page:   http://about.me/malintha
>



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

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


Re: [Dev] GSOC-Automated test case generation tool for WSO2 products

2014-04-29 Thread Malintha Adikari
Hi Rukshan,

Following resources would help you to understand the basics of required
technologies.

1. Hello world with Axis2 web service [1]
2. Understanding WSDL files.[2], [3]

[1]http://wso2.com/library/95/
[2]http://oreilly.com/catalog/webservess/chapter/ch06.html
[3]http://predic8.com/wsdl-reading.htm

Regards,
Malintha Adikari


On Tue, Apr 29, 2014 at 9:43 PM, Rukshan Chathuranga
wrote:

> Hi,
>
> Could understand the ultimate objective of the project and stating points
> of the project. Feasibility of the keyword driven testing using Robot
> frame, should be evaluate in this week.
> Also to get understand about the Admin back-end services and WSDL
> experiment, is it possible to give  the required resources and sample Test
> Script?
>
> Thanks and regards.
>
>
>
> On Mon, Apr 28, 2014 at 6:23 PM, Rukshan Chathuranga <
> rcruksha...@gmail.com> wrote:
>
>> yeah i'm OK with the time and place.
>> Thanks.
>>
>>
>> On Mon, Apr 28, 2014 at 5:33 PM, Dharshana Warusavitharana <
>> dharsha...@wso2.com> wrote:
>>
>>> Hi Rukshan,
>>>
>>> How is your availability at 4.30 PM tomorrow.
>>>
>>> If you are ok with the time shall we schedule our discussion at that
>>> time at WSO2 office.
>>>
>>> Thank you,
>>> Dharshana.
>>>
>>>
>>> On Sun, Apr 27, 2014 at 5:33 PM, Rukshan Chathuranga <
>>> rcruksha...@gmail.com> wrote:
>>>
 Yes. Afternoon is possible.

 Thanks.


 On Sun, Apr 27, 2014 at 11:23 AM, Dharshana Warusavitharana <
 dharsha...@wso2.com> wrote:

> Sure Rukshan,
>
> How is your availability on afternoon sessions. I will discuss with
> the team and arrange a discussion.
> Meanwhile, if you need any clarifications please feel free to raise a
> mail.
>
> Thank You,
> Dharshana.
>
>
> On Sun, Apr 27, 2014 at 10:06 AM, Rukshan Chathuranga <
> rcruksha...@gmail.com> wrote:
>
>>
>> hi,
>>
>> These days i trying to understand my project architecture in deep.
>> Also i am doing robot and NLP experiments to verify the feasibility.
>>
>> SO can we arrange a session to discuss more about this next week?
>>
>> thanks and regards.
>>
>> --
>> Department Of Computer Science & Engineering,
>> Faculty Of Engineering,
>> University Of Moratuwa.
>> Sri lanka.
>> WEB: http://rukspot.com/
>>
>>
>
>
> --
>
> Dharshana Warusavitharana
> Senior Software Engineer , Test Automation
> WSO2 Inc. http://wso2.com
> email : dharsha...@wso2.com 
> Tel  : +94 11 214 5345
> Fax :+94 11 2145300
> cell : +94772202595
> blog : http://dharshanaw.blogspot.com
>
> lean . enterprise . middleware
>



 --
 Department Of Computer Science & Engineering,
 Faculty Of Engineering,
 University Of Moratuwa.
 Sri lanka.
 WEB: http://rukspot.com/


>>>
>>>
>>> --
>>>
>>> Dharshana Warusavitharana
>>> Senior Software Engineer , Test Automation
>>> WSO2 Inc. http://wso2.com
>>> email : dharsha...@wso2.com 
>>> Tel  : +94 11 214 5345
>>> Fax :+94 11 2145300
>>> cell : +94772202595
>>> blog : http://dharshanaw.blogspot.com
>>>
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> Department Of Computer Science & Engineering,
>> Faculty Of Engineering,
>> University Of Moratuwa.
>> Sri lanka.
>> WEB: http://rukspot.com/
>>
>>
>
>
> --
> Department Of Computer Science & Engineering,
> Faculty Of Engineering,
> University Of Moratuwa.
> Sri lanka.
> WEB: http://rukspot.com/
>
>


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

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


Re: [Dev] [GIT]G-Reg (wso2greg-5.0.0-SNAPSHOT) start up error.

2014-04-29 Thread Ajith Vitharana
On Tue, Apr 29, 2014 at 9:39 PM, Lalaji Sureshika  wrote:

> Hi Ajith,
>
> This could be due to you are referring 
> "org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject"
> class from a module.xml copied as a jaggery-module [probably from bin.xml
> of GReg]  to GReg pack in the location {GReg_Home}/modules.
>

Yes, thanks for the prompt response . We are no longer use that , therefore
should be removed.

-Ajith.

>
> Thanks;
>
>
> On Tue, Apr 29, 2014 at 12:02 PM, Ajith Vitharana  wrote:
>
>> Hi Ruwan/UdaraR,
>>
>> I'm getting the following startup error in the pack built on git
>> (product-greg).
>> The AssetStoreHostObject class is no longer exist in the
>> org.wso2.carbon.apimgt.hostobjects (1.2.2) bundle [1].
>>
>> @UdaraR, We are using org.jaggeryjs.feature : 0.9.0.ALPHA5.wso2v1-SNAPSHOT.
>> ? Do we have newer version ?
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.hostobjects/1.2.2/src/main/java/org/wso2/carbon/apimgt/hostobjects/
>>
>>
>> [2014-04-29 21:18:30,916] *ERROR
>> {org.jaggeryjs.jaggery.core.manager.ModuleManager} -  Error while adding
>> HostObject : AssetStore
>> org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject*
>> *java.lang.ClassNotFoundException:
>> org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject*
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:475)
>>  at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
>>  at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>  at java.lang.Class.forName0(Native Method)
>> at java.lang.Class.forName(Class.java:169)
>> at
>> org.jaggeryjs.jaggery.core.manager.ModuleManager.initHostObjects(ModuleManager.java:251)
>>  at
>> org.jaggeryjs.jaggery.core.manager.ModuleManager.initModule(ModuleManager.java:129)
>> at
>> org.jaggeryjs.jaggery.core.manager.ModuleManager.loadModule(ModuleManager.java:83)
>>  at
>> org.jaggeryjs.jaggery.core.manager.ModuleManager.init(ModuleManager.java:72)
>> at
>> org.jaggeryjs.jaggery.core.manager.ModuleManager.(ModuleManager.java:56)
>>  at
>> org.jaggeryjs.jaggery.core.manager.CommonManager.initialize(CommonManager.java:69)
>> at
>> org.jaggeryjs.jaggery.core.manager.WebAppManager.(WebAppManager.java:83)
>>  at
>> org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer$JaggeryConfListener.lifecycleEvent(TomcatJaggeryWebappsDeployer.java:275)
>> at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>>  at
>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>> at
>> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
>>  at
>> org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531)
>>  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>>  at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
>>  at
>> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:280)
>> at
>> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:202)
>>  at
>> org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleWebappDeployment(TomcatJaggeryWebappsDeployer.java:204)
>> at
>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleExplodedWebappDeployment(TomcatGenericWebappsDeployer.java:213)
>>  at
>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:139)
>> at
>> org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.deploy(TomcatJaggeryWebappsDeployer.java:109)
>>  at
>> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:140)
>> at
>> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:90)
>>  at
>> org.jaggeryjs.jaggery.deployer.JaggeryDeployer.deploy(JaggeryDeployer.java:59)
>> at
>> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
>>  at
>> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
>> at
>> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
>>  at
>> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
>> at
>> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
>>  at
>> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135)
>> at
>> org.wso2.carbon.core.CarbonAx

Re: [Dev] GSOC-Automated test case generation tool for WSO2 products

2014-04-29 Thread Rukshan Chathuranga
Hi,

Could understand the ultimate objective of the project and stating points
of the project. Feasibility of the keyword driven testing using Robot
frame, should be evaluate in this week.
Also to get understand about the Admin back-end services and WSDL
experiment, is it possible to give  the required resources and sample Test
Script?

Thanks and regards.



On Mon, Apr 28, 2014 at 6:23 PM, Rukshan Chathuranga
wrote:

> yeah i'm OK with the time and place.
> Thanks.
>
>
> On Mon, Apr 28, 2014 at 5:33 PM, Dharshana Warusavitharana <
> dharsha...@wso2.com> wrote:
>
>> Hi Rukshan,
>>
>> How is your availability at 4.30 PM tomorrow.
>>
>> If you are ok with the time shall we schedule our discussion at that time
>> at WSO2 office.
>>
>> Thank you,
>> Dharshana.
>>
>>
>> On Sun, Apr 27, 2014 at 5:33 PM, Rukshan Chathuranga <
>> rcruksha...@gmail.com> wrote:
>>
>>> Yes. Afternoon is possible.
>>>
>>> Thanks.
>>>
>>>
>>> On Sun, Apr 27, 2014 at 11:23 AM, Dharshana Warusavitharana <
>>> dharsha...@wso2.com> wrote:
>>>
 Sure Rukshan,

 How is your availability on afternoon sessions. I will discuss with the
 team and arrange a discussion.
 Meanwhile, if you need any clarifications please feel free to raise a
 mail.

 Thank You,
 Dharshana.


 On Sun, Apr 27, 2014 at 10:06 AM, Rukshan Chathuranga <
 rcruksha...@gmail.com> wrote:

>
> hi,
>
> These days i trying to understand my project architecture in deep.
> Also i am doing robot and NLP experiments to verify the feasibility.
>
> SO can we arrange a session to discuss more about this next week?
>
> thanks and regards.
>
> --
> Department Of Computer Science & Engineering,
> Faculty Of Engineering,
> University Of Moratuwa.
> Sri lanka.
> WEB: http://rukspot.com/
>
>


 --

 Dharshana Warusavitharana
 Senior Software Engineer , Test Automation
 WSO2 Inc. http://wso2.com
 email : dharsha...@wso2.com 
 Tel  : +94 11 214 5345
 Fax :+94 11 2145300
 cell : +94772202595
 blog : http://dharshanaw.blogspot.com

 lean . enterprise . middleware

>>>
>>>
>>>
>>> --
>>> Department Of Computer Science & Engineering,
>>> Faculty Of Engineering,
>>> University Of Moratuwa.
>>> Sri lanka.
>>> WEB: http://rukspot.com/
>>>
>>>
>>
>>
>> --
>>
>> Dharshana Warusavitharana
>> Senior Software Engineer , Test Automation
>> WSO2 Inc. http://wso2.com
>> email : dharsha...@wso2.com 
>> Tel  : +94 11 214 5345
>> Fax :+94 11 2145300
>> cell : +94772202595
>> blog : http://dharshanaw.blogspot.com
>>
>> lean . enterprise . middleware
>>
>
>
>
> --
> Department Of Computer Science & Engineering,
> Faculty Of Engineering,
> University Of Moratuwa.
> Sri lanka.
> WEB: http://rukspot.com/
>
>


-- 
Department Of Computer Science & Engineering,
Faculty Of Engineering,
University Of Moratuwa.
Sri lanka.
WEB: http://rukspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GIT]G-Reg (wso2greg-5.0.0-SNAPSHOT) start up error.

2014-04-29 Thread Udara Rathnayake
Hi Ajith,


On Tue, Apr 29, 2014 at 9:32 PM, Ajith Vitharana  wrote:

> Hi Ruwan/UdaraR,
>
> I'm getting the following startup error in the pack built on git
> (product-greg).
> The AssetStoreHostObject class is no longer exist in the
> org.wso2.carbon.apimgt.hostobjects (1.2.2) bundle [1].
>
> @UdaraR, We are using org.jaggeryjs.feature : 0.9.0.ALPHA5.wso2v1-SNAPSHOT.
> ? Do we have newer version ?
>
We are also using the same version within ES(4.3.0 migration) and this is
the latest.

>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.hostobjects/1.2.2/src/main/java/org/wso2/carbon/apimgt/hostobjects/
>
>
> [2014-04-29 21:18:30,916] *ERROR
> {org.jaggeryjs.jaggery.core.manager.ModuleManager} -  Error while adding
> HostObject : AssetStore
> org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject*
> *java.lang.ClassNotFoundException:
> org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject*
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:475)
>  at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
>  at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>  at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:169)
> at
> org.jaggeryjs.jaggery.core.manager.ModuleManager.initHostObjects(ModuleManager.java:251)
>  at
> org.jaggeryjs.jaggery.core.manager.ModuleManager.initModule(ModuleManager.java:129)
> at
> org.jaggeryjs.jaggery.core.manager.ModuleManager.loadModule(ModuleManager.java:83)
>  at
> org.jaggeryjs.jaggery.core.manager.ModuleManager.init(ModuleManager.java:72)
> at
> org.jaggeryjs.jaggery.core.manager.ModuleManager.(ModuleManager.java:56)
>  at
> org.jaggeryjs.jaggery.core.manager.CommonManager.initialize(CommonManager.java:69)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.(WebAppManager.java:83)
>  at
> org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer$JaggeryConfListener.lifecycleEvent(TomcatJaggeryWebappsDeployer.java:275)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>  at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> at
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
>  at
> org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531)
>  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>  at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
>  at
> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:280)
> at
> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:202)
>  at
> org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleWebappDeployment(TomcatJaggeryWebappsDeployer.java:204)
> at
> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleExplodedWebappDeployment(TomcatGenericWebappsDeployer.java:213)
>  at
> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:139)
> at
> org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.deploy(TomcatJaggeryWebappsDeployer.java:109)
>  at
> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:140)
> at
> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:90)
>  at
> org.jaggeryjs.jaggery.deployer.JaggeryDeployer.deploy(JaggeryDeployer.java:59)
> at
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
>  at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
> at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
>  at
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
> at
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
>  at
> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135)
> at
> org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:464)
>  at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
> at
> org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
>  at
> org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398)
> at
> org.ws

Re: [Dev] Usage of "internal" and "Export-Package" in AM components

2014-04-29 Thread Kishanthan Thangarajah
On Tue, Apr 29, 2014 at 6:08 PM, Sanjeewa Malalgoda wrote:

>
>
>
> On Tue, Apr 29, 2014 at 6:06 PM, Ajith Vitharana  wrote:
>
>> Sanjeewa,
>>
>>
>>  On Tue, Apr 29, 2014 at 5:54 PM, Sanjeewa Malalgoda 
>> wrote:
>>
>>>
>>>
>>>
>>> On Tue, Apr 29, 2014 at 5:11 PM, Ajith Vitharana wrote:
>>>
 Hi All,

 The org.wso2.carbon.apimgt.impl has defined the
   org.wso2.carbon.apimgt.impl.internal package as a Private-Package [1] but
 there are some usage inside the other bundles.

 org.wso2.carbon.apimgt.hostobjects,
 org.wso2.carbon.apimgt.usage,
 org.wso2.carbon.apimgt.keymgt ..etc

 
   *  org.wso2.carbon.apimgt.impl.internal*
 
 
  *!org.wso2.carbon.apimgt.impl.internal.APIManagerComponent,*
  org.wso2.carbon.apimgt.impl.*,
 

 We are getting following build failure due to the above wrong usage.
 And why do we have export(not -!) *class* instead of package ?

>>> Here we need to expose only ServiceReferenceHolder to other packages to
>>> get configs and etc. And we do not need to expose APIManagerComponent to
>>> outside. So lets proceed accordingly. Anyway we didn't got any build
>>> failures in builder machine. How it effect here?
>>>
>>
>> If you need to expose the ServiceReferenceHolder class to out side, that
>> class should NOT be inside the "internal" package, because we  don't expose
>> internal package to outside.
>> AFAIK you can only the export(or not) the packages , NOT classes.
>>
> Yes that is exactly what i meant. Ideal solution would be taking
> ServiceReferenceHolder class to outside from internal package.
>

This is wrong.

First, you can only export packages from OSGi bundles, not classes.

Also what is the purpose of exposing ServiceHolder outside of a bundle?

ServiceReferenceHolder (which stores OSGi service reference objects) should
only be used within the bundle and should not be exposed outside. That is
why we, as practice, put them under internal package structure and make
them private. If you want to use the service references in another bundle,
you have to use the same approach with DS components and service reference
holders.


>
> Thanks,
> sanjeewa.
>
>>
>> -Ajith.
>>
>>
>>> Thanks,
>>> sanjeewa.
>>>

 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.impl/1.2.2/pom.xml

 Installation failed.
 Cannot complete the install because one or more required items could
 not be found.
  Software being installed: WSO2 Carbon - API Store Feature
 4.3.0.SNAPSHOT (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT)
  Missing requirement: org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT
 (org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT) requires 'package
 org.wso2.carbon.apimgt.impl.internal 0.0.0' but it could not be found
  Cannot satisfy dependency:
   From: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT
 (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT)
   To: org.wso2.carbon.apimgt.hostobjects [4.3.0.SNAPSHOT]
 Application failed, log file location:
 /home/ajith/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1398770292994.log

 --
 Ajith Vitharana.
 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350


>>>
>>>
>>> --
>>>
>>> *Sanjeewa Malalgoda*
>>> WSO2 Inc.
>>> Mobile : +94713068779
>>>
>>>  blog
>>> :http://sanjeewamalalgoda.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +94772217350
>>
>>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  blog
> :http://sanjeewamalalgoda.blogspot.com/
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GIT]G-Reg (wso2greg-5.0.0-SNAPSHOT) start up error.

2014-04-29 Thread Lalaji Sureshika
Hi Ajith,

This could be due to you are referring
"org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject"
class from a module.xml copied as a jaggery-module [probably from bin.xml
of GReg]  to GReg pack in the location {GReg_Home}/modules.

Thanks;


On Tue, Apr 29, 2014 at 12:02 PM, Ajith Vitharana  wrote:

> Hi Ruwan/UdaraR,
>
> I'm getting the following startup error in the pack built on git
> (product-greg).
> The AssetStoreHostObject class is no longer exist in the
> org.wso2.carbon.apimgt.hostobjects (1.2.2) bundle [1].
>
> @UdaraR, We are using org.jaggeryjs.feature : 0.9.0.ALPHA5.wso2v1-SNAPSHOT.
> ? Do we have newer version ?
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.hostobjects/1.2.2/src/main/java/org/wso2/carbon/apimgt/hostobjects/
>
>
> [2014-04-29 21:18:30,916] *ERROR
> {org.jaggeryjs.jaggery.core.manager.ModuleManager} -  Error while adding
> HostObject : AssetStore
> org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject*
> *java.lang.ClassNotFoundException:
> org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject*
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:475)
>  at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
>  at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>  at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:169)
> at
> org.jaggeryjs.jaggery.core.manager.ModuleManager.initHostObjects(ModuleManager.java:251)
>  at
> org.jaggeryjs.jaggery.core.manager.ModuleManager.initModule(ModuleManager.java:129)
> at
> org.jaggeryjs.jaggery.core.manager.ModuleManager.loadModule(ModuleManager.java:83)
>  at
> org.jaggeryjs.jaggery.core.manager.ModuleManager.init(ModuleManager.java:72)
> at
> org.jaggeryjs.jaggery.core.manager.ModuleManager.(ModuleManager.java:56)
>  at
> org.jaggeryjs.jaggery.core.manager.CommonManager.initialize(CommonManager.java:69)
> at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.(WebAppManager.java:83)
>  at
> org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer$JaggeryConfListener.lifecycleEvent(TomcatJaggeryWebappsDeployer.java:275)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>  at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> at
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
>  at
> org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531)
>  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>  at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
>  at
> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:280)
> at
> org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:202)
>  at
> org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleWebappDeployment(TomcatJaggeryWebappsDeployer.java:204)
> at
> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleExplodedWebappDeployment(TomcatGenericWebappsDeployer.java:213)
>  at
> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:139)
> at
> org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.deploy(TomcatJaggeryWebappsDeployer.java:109)
>  at
> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:140)
> at
> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:90)
>  at
> org.jaggeryjs.jaggery.deployer.JaggeryDeployer.deploy(JaggeryDeployer.java:59)
> at
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
>  at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
> at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
>  at
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
> at
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
>  at
> org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135)
> at
> org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:464)
>  at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
> at
> org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(Carb

[Dev] [GIT]G-Reg (wso2greg-5.0.0-SNAPSHOT) start up error.

2014-04-29 Thread Ajith Vitharana
Hi Ruwan/UdaraR,

I'm getting the following startup error in the pack built on git
(product-greg).
The AssetStoreHostObject class is no longer exist in the
org.wso2.carbon.apimgt.hostobjects (1.2.2) bundle [1].

@UdaraR, We are using org.jaggeryjs.feature : 0.9.0.ALPHA5.wso2v1-SNAPSHOT.
? Do we have newer version ?

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.hostobjects/1.2.2/src/main/java/org/wso2/carbon/apimgt/hostobjects/


[2014-04-29 21:18:30,916] *ERROR
{org.jaggeryjs.jaggery.core.manager.ModuleManager} -  Error while adding
HostObject : AssetStore
org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject*
*java.lang.ClassNotFoundException:
org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject*
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:475)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
org.jaggeryjs.jaggery.core.manager.ModuleManager.initHostObjects(ModuleManager.java:251)
at
org.jaggeryjs.jaggery.core.manager.ModuleManager.initModule(ModuleManager.java:129)
at
org.jaggeryjs.jaggery.core.manager.ModuleManager.loadModule(ModuleManager.java:83)
at
org.jaggeryjs.jaggery.core.manager.ModuleManager.init(ModuleManager.java:72)
at
org.jaggeryjs.jaggery.core.manager.ModuleManager.(ModuleManager.java:56)
at
org.jaggeryjs.jaggery.core.manager.CommonManager.initialize(CommonManager.java:69)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.(WebAppManager.java:83)
at
org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer$JaggeryConfListener.lifecycleEvent(TomcatJaggeryWebappsDeployer.java:275)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:347)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at
org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:280)
at
org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:202)
at
org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.handleWebappDeployment(TomcatJaggeryWebappsDeployer.java:204)
at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleExplodedWebappDeployment(TomcatGenericWebappsDeployer.java:213)
at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:139)
at
org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer.deploy(TomcatJaggeryWebappsDeployer.java:109)
at
org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:140)
at
org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:90)
at
org.jaggeryjs.jaggery.deployer.JaggeryDeployer.deploy(JaggeryDeployer.java:59)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135)
at
org.wso2.carbon.core.CarbonAxisConfigurator.loadServices(CarbonAxisConfigurator.java:464)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
at
org.wso2.carbon.core.CarbonConfigurationContextFactory.createNewConfigurationContext(CarbonConfigurationContextFactory.java:65)
at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:398)
at
org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
at
org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Deleg

Re: [Dev] DSS JSON sample

2014-04-29 Thread Shelan Perera
Hi Azeez,

ContentType should be Content-Type

Thanks


On Tue, Apr 29, 2014 at 5:00 PM, Iranga Muthuthanthri wrote:

> Can you try with  (The POST  request is not required)
>
> curl  -H 'Accept: application/json'  -H 'ContentType: application/json'
> --data "@employee-payload.json" 
> http://localhost:9763/services/samples/JSONSample/employee/
> . 
>
>
>
>
>
> 
>
>
> On Tue, Apr 29, 2014 at 8:10 PM, Afkham Azeez  wrote:
>
>> Related to https://docs.wso2.org/display/DSS320/JSON+Mapping+Sample,
>>
>> It would be great if the DSS sample can give the full curl commands.
>>
>>
>> I tried the following command,
>>
>> curl -X POST -H 'Accept: application/json'  -H 'ContentType:
>> application/json' --data "@employee-payload.json"
>> http://localhost:9763/services/samples/JSONSample/employee/
>>
>>
>> The employee-payload.json has the following payload:
>>
>>
>> {
>>
>>   "_postemployee": {
>>
>> "employeeNumber" : "14001",
>>
>> "lastName": "Smith",
>>
>> "firstName": "Will",
>>
>> "email": "w...@google.com",
>>
>> "salary": "15500.0"
>>
>>   }
>>
>> }
>>
>>
>>
>> However, this call results in the following error;
>>
>>
>> Apache Tomcat/7.0.34 - Error
>> report
>> HTTP Status 500 - String index out of range: -1> size="1" noshade="noshade">type Exception
>> reportmessage String index out of range:
>> -1description The server encountered an internal error
>> that prevented it from fulfilling this request.exception
>> java.lang.StringIndexOutOfBoundsException: String index out of range:
>> -1
>>
>> java.lang.String.substring(String.java:1911)
>>
>>
>> org.apache.axis2.builder.XFormURLEncodedBuilder.extractParametersFromRequest(XFormURLEncodedBuilder.java:174)
>>
>>
>> org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:112)
>>
>>
>> org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:188)
>>
>>
>> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:146)
>>
>>
>> org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:65)
>>
>>
>> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:826)
>>
>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:227)
>>
>>
>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>>
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>
>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>
>>
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>
>>
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>
>>
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>>
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>
>>
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>
>>
>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>>
>> note The full stack trace of the root cause is
>> available in the Apache Tomcat/7.0.34 logs.> noshade="noshade">Apache Tomcat/7.0.34
>>
>>
>> What is missing in the curl command?
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards
>
> Iranga Muthuthanthri
> Technical Lead - QA
> (M) -0777-255773
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Shelan Perera*

Senior Software Engineer
Integration Technology Group
*WSO2, Inc

Re: [Dev] DSS JSON sample

2014-04-29 Thread Iranga Muthuthanthri
Can you try with  (The POST  request is not required)

curl  -H 'Accept: application/json'  -H 'ContentType: application/json'
--data "@employee-payload.json"
http://localhost:9763/services/samples/JSONSample/employee/
. 








On Tue, Apr 29, 2014 at 8:10 PM, Afkham Azeez  wrote:

> Related to https://docs.wso2.org/display/DSS320/JSON+Mapping+Sample,
>
> It would be great if the DSS sample can give the full curl commands.
>
>
> I tried the following command,
>
> curl -X POST -H 'Accept: application/json'  -H 'ContentType:
> application/json' --data "@employee-payload.json"
> http://localhost:9763/services/samples/JSONSample/employee/
>
>
> The employee-payload.json has the following payload:
>
>
> {
>
>   "_postemployee": {
>
> "employeeNumber" : "14001",
>
> "lastName": "Smith",
>
> "firstName": "Will",
>
> "email": "w...@google.com",
>
> "salary": "15500.0"
>
>   }
>
> }
>
>
>
> However, this call results in the following error;
>
>
> Apache Tomcat/7.0.34 - Error
> report
> HTTP Status 500 - String index out of range: -1 size="1" noshade="noshade">type Exception
> reportmessage String index out of range:
> -1description The server encountered an internal error
> that prevented it from fulfilling this request.exception
> java.lang.StringIndexOutOfBoundsException: String index out of range:
> -1
>
> java.lang.String.substring(String.java:1911)
>
>
> org.apache.axis2.builder.XFormURLEncodedBuilder.extractParametersFromRequest(XFormURLEncodedBuilder.java:174)
>
>
> org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:112)
>
>
> org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:188)
>
>
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:146)
>
>
> org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:65)
>
>
> org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:826)
>
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:227)
>
>
> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>
> javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
>
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>
>
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>
>
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>
>
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>
>
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>
> note The full stack trace of the root cause is
> available in the Apache Tomcat/7.0.34 logs. noshade="noshade">Apache Tomcat/7.0.34
>
>
> What is missing in the curl command?
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> * linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards

Iranga Muthuthanthri
Technical Lead - QA
(M) -0777-255773
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] Handling Message Acks MB

2014-04-29 Thread Pamod Sylvester
Hi All,

With regards to the issue [1], it was observed that its due to the client
not sending the rejection ack during a high load

MB caches the message ids in-memory before sending to the client in order
to track the delivery status. It will only remove the stored cache when the
subscriber acknowledges. The issue was produced at a situation where the
subscriber does not send any acknowledgment when the load became high. As a
result MB will infinitely await to the response from the client without re
attempting to send the message.

1) The client needs to be fixed to acknowledge at high loads
2) Also what if there will be situations where the client acknowledgment is
dropped due to a networking issue ? in that case IMO we need to set an
expiry to the message so that it would timeout after a certain period of
time.

WDYT ?

[1] https://wso2.org/jira/browse/MB-586

Thanks,
Pamod

-- 
*Pamod Sylvester *
 *Senior Software Engineer *
Integration Technologies Team, WSO2 Inc.; http://wso2.com
email: pa...@wso2.com cell: +94 77 7779495
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] DSS JSON sample

2014-04-29 Thread Afkham Azeez
Related to https://docs.wso2.org/display/DSS320/JSON+Mapping+Sample,

It would be great if the DSS sample can give the full curl commands.


I tried the following command,

curl -X POST -H 'Accept: application/json'  -H 'ContentType:
application/json' --data "@employee-payload.json"
http://localhost:9763/services/samples/JSONSample/employee/


The employee-payload.json has the following payload:


{

  "_postemployee": {

"employeeNumber" : "14001",

"lastName": "Smith",

"firstName": "Will",

"email": "w...@google.com",

"salary": "15500.0"

  }

}



However, this call results in the following error;


Apache Tomcat/7.0.34 - Error report
HTTP Status 500 - String index out of range: -1type Exception
reportmessage String index out of range:
-1description The server encountered an internal error
that prevented it from fulfilling this request.exception
java.lang.StringIndexOutOfBoundsException: String index out of range:
-1

java.lang.String.substring(String.java:1911)

org.apache.axis2.builder.XFormURLEncodedBuilder.extractParametersFromRequest(XFormURLEncodedBuilder.java:174)

org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:112)

org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:188)

org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:146)

org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:65)

org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processXMLRequest(AxisServlet.java:826)

org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:227)

org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)

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

 javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)

org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)

org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)

javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)

org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)

note The full stack trace of the root cause is
available in the Apache Tomcat/7.0.34 logs.Apache Tomcat/7.0.34


What is missing in the curl command?

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

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


[Dev] [Appfactory]

2014-04-29 Thread Gayan Dhanushka
Hi,

There is a need to resize the application Icons upon upload in appfactory.
What would be a good image library to be used to serve this purpose? it
would be good if we can use a good library that can be used throughout the
entire platform. We should be able to use it in both java and jaggery as
well.

Any thoughts?

GayanD

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Multiple 'Scope' support in API-M 1.7.0

2014-04-29 Thread Nirodha Pramod
 <@dev>

Hi,

Cannot ad scopes for APIs in the latest pack (29 Apr) due to [1], please
have a look.

[1] https://wso2.org/jira/browse/APIMANAGER-2246

regards,
Nirodha


On Mon, Apr 28, 2014 at 8:57 AM, Nuwan Dias  wrote:

> On Sun, Apr 27, 2014 at 10:59 PM, Nirodha Pramod  wrote:
>
>>
>> ​Hi,
>>
>> As we are doing the proper implementation of OAuth2 'scope' this time, do
>> we have the $subject in API-M 1.7.0 release, ​If so,
>>
>
> Yes.
>
>>
>> 1) Is it possible to generate a token for multiple scopes? How?
>>
>
> Just pass in the scopes in the token generation request. For example,
>
> grant_type=password&username=&password=&scope=read_tweet
> update_status
>
>>
>> 2) Is it possible to restrict a particular resource in an API, for
>> multiple scopes?
>>
>
> No, a resource (ex: GET /tweets) can only be given a single scope.
>
>>
>> thanks,
>> Nirodha
>>
>> --
>>
>> *Nirodha Gallage*
>> Senior Software Engineer, QA.
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94716429078
>>
>
>
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 

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


[Dev] [Git Migration] - Product level build failure

2014-04-29 Thread Chamath Gunawardana
Hi,

To resolve the product level build failure please rename the entry
trusted-idp-config.xml to idp-config.xml in your product's assembly/bin.xml


-- 
Thanks,
Best Regards,
Chamath Gunawardana
Technical Lead; WSO2 Inc.
Mobile : +94776322240
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Invitation: Create Application by Uploading Existing Artifacts @ Wed Apr 30, 2014 4pm - 5pm (sham...@wso2.com)

2014-04-29 Thread Shamika Ariyawansa
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20140430T103000Z
DTEND:20140430T113000Z
DTSTAMP:20140429T132511Z
ORGANIZER;CN=Shamika Ariyawansa:mailto:sham...@wso2.com
UID:n10j642oce8iartjgml4a28...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Manjula Rathnayake;X-NUM-GUESTS=0:mailto:manju...@wso2.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE;C
 N=LK 6th Floor Meeting Room - Dijkstra;X-NUM-GUESTS=0:mailto:wso2.com_37373
 634303139362d333...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Harsha Thirimanna;X-NUM-GUESTS=0:mailto:hars...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Gayan Dhanushka;X-NUM-GUESTS=0:mailto:gay...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Shamika Ariyawansa;X-NUM-GUESTS=0:mailto:sham...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Punnadi Gunarathna;X-NUM-GUESTS=0:mailto:punn...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Manisha Gayathri;X-NUM-GUESTS=0:mailto:mani...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Asanka Dissanayake;X-NUM-GUESTS=0:mailto:asan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Janaka Ranabahu;X-NUM-GUESTS=0:mailto:jan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Shiroshica Kulatilake;X-NUM-GUESTS=0:mailto:sh...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Ramith Jayasinghe;X-NUM-GUESTS=0:mailto:ram...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dimuthu Leelarathne;X-NUM-GUESTS=0:mailto:dimut...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=WSO2 Engineering Group;X-NUM-GUESTS=0:mailto:engineering-group@wso2
 .com
CREATED:20140429T131046Z
DESCRIPTION:https://wso2.org/crucible/cru/WAF001-44\nView your event at htt
 p://www.google.com/calendar/event?action=VIEW&eid=bjEwajY0Mm9jZThpYXJ0amdtb
 DRhMjg5OXMgZGV2QHdzbzIub3Jn&tok=MTYjc2hhbWlrYUB3c28yLmNvbWFmZGY3Yzg0NGIwY2N
 lMmRmMTcxYTA2YmMzZDBjNTNjMzBkNGEyN2M&ctz=Asia/Colombo&hl=en.
LAST-MODIFIED:20140429T132510Z
LOCATION:LK 6th Floor Meeting Room - Dijkstra
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Create Application by Uploading Existing Artifacts
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


[Dev] [DEV][ESB] Inbound EP File/vfs - Memory Leak

2014-04-29 Thread Malaka Silva
Hi,

I ran the inbound file with 10 endpoints and over 1000 files.

However the esb failed after some runs.

I guess this is the something to do with the way we inject the message to
sequence.

https://github.com/wso2-dev/wso2-synapse/tree/master/modules/core/src/main/java/org/apache/synapse/inbound/vfs

org.apache.synapse.util.concurrent.SynapseThreadPool seem to take some
space.

Any idea?

Following is the heap dump.

https://www.dropbox.com/s/gdw680mvdx3i644/heap-dump.hprof.zip

Best Regards,

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

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

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


[Dev] 'initAxis2ClientOptions' property of the Callout Mediator

2014-04-29 Thread Sohani Weerasinghe
Hi All,

In ESB Management Console the property 'initAxis2ClientOptions' of the
Callout Mediator displays as a text field. Since it is a Boolean I think it
should be a drop down to select 'true' or 'false'? WDYT?

Thanks,
Sohani



Sohani Weerasinghe
Software Engineer
WSO2, Inc: http://wso2.com

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


Re: [Dev] Usage of "internal" and "Export-Package" in AM components

2014-04-29 Thread Sanjeewa Malalgoda
On Tue, Apr 29, 2014 at 6:06 PM, Ajith Vitharana  wrote:

> Sanjeewa,
>
>
> On Tue, Apr 29, 2014 at 5:54 PM, Sanjeewa Malalgoda wrote:
>
>>
>>
>>
>> On Tue, Apr 29, 2014 at 5:11 PM, Ajith Vitharana  wrote:
>>
>>> Hi All,
>>>
>>> The org.wso2.carbon.apimgt.impl has defined the
>>>   org.wso2.carbon.apimgt.impl.internal package as a Private-Package [1] but
>>> there are some usage inside the other bundles.
>>>
>>> org.wso2.carbon.apimgt.hostobjects,
>>> org.wso2.carbon.apimgt.usage,
>>> org.wso2.carbon.apimgt.keymgt ..etc
>>>
>>> 
>>>   *  org.wso2.carbon.apimgt.impl.internal*
>>> 
>>> 
>>>  *!org.wso2.carbon.apimgt.impl.internal.APIManagerComponent,*
>>>  org.wso2.carbon.apimgt.impl.*,
>>> 
>>>
>>> We are getting following build failure due to the above wrong usage. And
>>> why do we have export(not -!) *class* instead of package ?
>>>
>> Here we need to expose only ServiceReferenceHolder to other packages to
>> get configs and etc. And we do not need to expose APIManagerComponent to
>> outside. So lets proceed accordingly. Anyway we didn't got any build
>> failures in builder machine. How it effect here?
>>
>
> If you need to expose the ServiceReferenceHolder class to out side, that
> class should NOT be inside the "internal" package, because we  don't expose
> internal package to outside.
> AFAIK you can only the export(or not) the packages , NOT classes.
>
Yes that is exactly what i meant. Ideal solution would be taking
ServiceReferenceHolder class to outside from internal package.

Thanks,
sanjeewa.

>
> -Ajith.
>
>
>> Thanks,
>> sanjeewa.
>>
>>>
>>> [1]
>>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.impl/1.2.2/pom.xml
>>>
>>> Installation failed.
>>> Cannot complete the install because one or more required items could not
>>> be found.
>>>  Software being installed: WSO2 Carbon - API Store Feature
>>> 4.3.0.SNAPSHOT (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT)
>>>  Missing requirement: org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT
>>> (org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT) requires 'package
>>> org.wso2.carbon.apimgt.impl.internal 0.0.0' but it could not be found
>>>  Cannot satisfy dependency:
>>>   From: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT
>>> (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT)
>>>   To: org.wso2.carbon.apimgt.hostobjects [4.3.0.SNAPSHOT]
>>> Application failed, log file location:
>>> /home/ajith/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1398770292994.log
>>>
>>> --
>>> Ajith Vitharana.
>>> WSO2 Inc. - http://wso2.org
>>> Email  :  aji...@wso2.com
>>> Mobile : +94772217350
>>>
>>>
>>
>>
>> --
>>
>> *Sanjeewa Malalgoda*
>> WSO2 Inc.
>> Mobile : +94713068779
>>
>>  blog
>> :http://sanjeewamalalgoda.blogspot.com/
>>
>>
>>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +94772217350
>
>


-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

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


Re: [Dev] Usage of "internal" and "Export-Package" in AM components

2014-04-29 Thread Ruwan Yatawara
Hi All,

We encountered a similar set of OSGI issues when working with the APP
Manager Components. It was a different issue however, caused by AM having
references to internal registry components, I have already done the fixes
for same, will port the fixes for AM components and add it to GIT. Ill look
in to this case as well. The fix, I believe is to move ServiceReferenceHolder
to outside, and make it not private.

Thanks and Regards,

Ruwan Yatawara

Senior Software Engineer,
WSO2 Inc.

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://thoughts.ruwan-ace.com/
www: :http://wso2.com



On Tue, Apr 29, 2014 at 5:54 PM, Sanjeewa Malalgoda wrote:

>
>
>
> On Tue, Apr 29, 2014 at 5:11 PM, Ajith Vitharana  wrote:
>
>> Hi All,
>>
>> The org.wso2.carbon.apimgt.impl has defined the
>>   org.wso2.carbon.apimgt.impl.internal package as a Private-Package [1] but
>> there are some usage inside the other bundles.
>>
>> org.wso2.carbon.apimgt.hostobjects,
>> org.wso2.carbon.apimgt.usage,
>> org.wso2.carbon.apimgt.keymgt ..etc
>>
>> 
>>   *  org.wso2.carbon.apimgt.impl.internal*
>> 
>> 
>>  *!org.wso2.carbon.apimgt.impl.internal.APIManagerComponent,*
>>  org.wso2.carbon.apimgt.impl.*,
>> 
>>
>> We are getting following build failure due to the above wrong usage. And
>> why do we have export(not -!) *class* instead of package ?
>>
> Here we need to expose only ServiceReferenceHolder to other packages to
> get configs and etc. And we do not need to expose APIManagerComponent to
> outside. So lets proceed accordingly. Anyway we didn't got any build
> failures in builder machine. How it effect here?
>
> Thanks,
> sanjeewa.
>
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.impl/1.2.2/pom.xml
>>
>> Installation failed.
>> Cannot complete the install because one or more required items could not
>> be found.
>>  Software being installed: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT
>> (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT)
>>  Missing requirement: org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT
>> (org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT) requires 'package
>> org.wso2.carbon.apimgt.impl.internal 0.0.0' but it could not be found
>>  Cannot satisfy dependency:
>>   From: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT
>> (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT)
>>   To: org.wso2.carbon.apimgt.hostobjects [4.3.0.SNAPSHOT]
>> Application failed, log file location:
>> /home/ajith/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1398770292994.log
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +94772217350
>>
>>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  blog
> :http://sanjeewamalalgoda.blogspot.com/
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Usage of "internal" and "Export-Package" in AM components

2014-04-29 Thread Ajith Vitharana
Sanjeewa,


On Tue, Apr 29, 2014 at 5:54 PM, Sanjeewa Malalgoda wrote:

>
>
>
> On Tue, Apr 29, 2014 at 5:11 PM, Ajith Vitharana  wrote:
>
>> Hi All,
>>
>> The org.wso2.carbon.apimgt.impl has defined the
>>   org.wso2.carbon.apimgt.impl.internal package as a Private-Package [1] but
>> there are some usage inside the other bundles.
>>
>> org.wso2.carbon.apimgt.hostobjects,
>> org.wso2.carbon.apimgt.usage,
>> org.wso2.carbon.apimgt.keymgt ..etc
>>
>> 
>>   *  org.wso2.carbon.apimgt.impl.internal*
>> 
>> 
>>  *!org.wso2.carbon.apimgt.impl.internal.APIManagerComponent,*
>>  org.wso2.carbon.apimgt.impl.*,
>> 
>>
>> We are getting following build failure due to the above wrong usage. And
>> why do we have export(not -!) *class* instead of package ?
>>
> Here we need to expose only ServiceReferenceHolder to other packages to
> get configs and etc. And we do not need to expose APIManagerComponent to
> outside. So lets proceed accordingly. Anyway we didn't got any build
> failures in builder machine. How it effect here?
>

If you need to expose the ServiceReferenceHolder class to out side, that
class should NOT be inside the "internal" package, because we  don't expose
internal package to outside.
AFAIK you can only the export(or not) the packages , NOT classes.

-Ajith.


> Thanks,
> sanjeewa.
>
>>
>> [1]
>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.impl/1.2.2/pom.xml
>>
>> Installation failed.
>> Cannot complete the install because one or more required items could not
>> be found.
>>  Software being installed: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT
>> (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT)
>>  Missing requirement: org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT
>> (org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT) requires 'package
>> org.wso2.carbon.apimgt.impl.internal 0.0.0' but it could not be found
>>  Cannot satisfy dependency:
>>   From: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT
>> (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT)
>>   To: org.wso2.carbon.apimgt.hostobjects [4.3.0.SNAPSHOT]
>> Application failed, log file location:
>> /home/ajith/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1398770292994.log
>>
>> --
>> Ajith Vitharana.
>> WSO2 Inc. - http://wso2.org
>> Email  :  aji...@wso2.com
>> Mobile : +94772217350
>>
>>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  blog
> :http://sanjeewamalalgoda.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] Usage of "internal" and "Export-Package" in AM components

2014-04-29 Thread Sanjeewa Malalgoda
On Tue, Apr 29, 2014 at 5:11 PM, Ajith Vitharana  wrote:

> Hi All,
>
> The org.wso2.carbon.apimgt.impl has defined the
>   org.wso2.carbon.apimgt.impl.internal package as a Private-Package [1] but
> there are some usage inside the other bundles.
>
> org.wso2.carbon.apimgt.hostobjects,
> org.wso2.carbon.apimgt.usage,
> org.wso2.carbon.apimgt.keymgt ..etc
>
> 
>   *  org.wso2.carbon.apimgt.impl.internal*
> 
> 
>  *!org.wso2.carbon.apimgt.impl.internal.APIManagerComponent,*
>  org.wso2.carbon.apimgt.impl.*,
> 
>
> We are getting following build failure due to the above wrong usage. And
> why do we have export(not -!) *class* instead of package ?
>
Here we need to expose only ServiceReferenceHolder to other packages to get
configs and etc. And we do not need to expose APIManagerComponent to
outside. So lets proceed accordingly. Anyway we didn't got any build
failures in builder machine. How it effect here?

Thanks,
sanjeewa.

>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.impl/1.2.2/pom.xml
>
> Installation failed.
> Cannot complete the install because one or more required items could not
> be found.
>  Software being installed: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT
> (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT)
>  Missing requirement: org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT
> (org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT) requires 'package
> org.wso2.carbon.apimgt.impl.internal 0.0.0' but it could not be found
>  Cannot satisfy dependency:
>   From: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT
> (org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT)
>   To: org.wso2.carbon.apimgt.hostobjects [4.3.0.SNAPSHOT]
> Application failed, log file location:
> /home/ajith/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1398770292994.log
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  aji...@wso2.com
> Mobile : +94772217350
>
>


-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

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


[Dev] [Carbon] Turing Chunk 09 build fails

2014-04-29 Thread Rushmin Fernando
I'm trying to build carbon turing chunk 09 and the build fails due to the
following error.

http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/org.wso2.carbon.coordination.server/

Failed to execute goal on project org.wso2.carbon.andes: Could not resolve
dependencies for project
org.wso2.carbon:org.wso2.carbon.andes:bundle:4.2.0: Failure to find
org.wso2.carbon:org.wso2.carbon.coordination.server:jar:4.2.0 in
http://maven.wso2.org/nexus/content/groups/wso2-public/

Am I doing something wrong ? Or org.wso2.carbon.coordination.server
artifacts should be uploaded to
http://maven.wso2.org/nexus/content/groups/wso2-public/ ?

Thanks
/rushmin

-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

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


Re: [Dev] What happens if end or abort boxcar is never called?

2014-04-29 Thread Anjana Fernando
Hi Azeez,

This request information is stored in the user's transport session, the
session will eventually gets invalidated and these will be freed up.

Cheers,
Anjana.


On Tue, Apr 29, 2014 at 3:00 PM, Afkham Azeez  wrote:

>
> Can we bring down a DSS instance by calling startBoxCar  followed by a few
> operations, but not call end/abort Boxcar? Will this cause objects to
> accumulate in memory and eventually leads to an OOM error? Is there a task
> that cleans out such objects belonging to stale boxcarring sessions?
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> * linked-in: **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


[Dev] Usage of "internal" and "Export-Package" in AM components

2014-04-29 Thread Ajith Vitharana
Hi All,

The org.wso2.carbon.apimgt.impl has defined the
  org.wso2.carbon.apimgt.impl.internal package as a Private-Package [1] but
there are some usage inside the other bundles.

org.wso2.carbon.apimgt.hostobjects,
org.wso2.carbon.apimgt.usage,
org.wso2.carbon.apimgt.keymgt ..etc


  *  org.wso2.carbon.apimgt.impl.internal*


 *!org.wso2.carbon.apimgt.impl.internal.APIManagerComponent,*
 org.wso2.carbon.apimgt.impl.*,


We are getting following build failure due to the above wrong usage. And
why do we have export(not -!) *class* instead of package ?

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.impl/1.2.2/pom.xml

Installation failed.
Cannot complete the install because one or more required items could not be
found.
 Software being installed: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT
(org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT)
 Missing requirement: org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT
(org.wso2.carbon.apimgt.hostobjects 4.3.0.SNAPSHOT) requires 'package
org.wso2.carbon.apimgt.impl.internal 0.0.0' but it could not be found
 Cannot satisfy dependency:
  From: WSO2 Carbon - API Store Feature 4.3.0.SNAPSHOT
(org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT)
  To: org.wso2.carbon.apimgt.hostobjects [4.3.0.SNAPSHOT]
Application failed, log file location:
/home/ajith/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1398770292994.log

-- 
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] Please merge the platform-integration commit#5 pull request

2014-04-29 Thread Krishantha Samaraweera
Commit merged.

Thanks,
Krishantha.


On Tue, Apr 29, 2014 at 3:53 PM, Nuwan Wimalasekara  wrote:

> Hi Krishantha,
> Please apply the pull request -
> https://github.com/wso2/carbon-platform-integration/pull/5
>
> Thanks,
> Nuwanw
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Commit the kernel patch0007

2014-04-29 Thread Manjula Rathnayake
Hi Kernel team,

Please apply the patch to resolve issue[1] on session replication.

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

thank you.

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


[Dev] Please merge the platform-integration commit#5 pull request

2014-04-29 Thread Nuwan Wimalasekara
Hi Krishantha,
Please apply the pull request -
https://github.com/wso2/carbon-platform-integration/pull/5

Thanks,
Nuwanw

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

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


Re: [Dev] Why do we have two getCustomer operations in the GSpread sample

2014-04-29 Thread Chanika Geeganage
The one (without _ ) is for the getCustomer operation defined in the data
service and the other one is for the REST resource defined with the GET
method and 'customers' resource name.


On Tue, Apr 29, 2014 at 3:35 PM, Afkham Azeez  wrote:

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



-- 
Best Regards..

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


Re: [Dev] [APIM]Test failures due to default API version fixes

2014-04-29 Thread Sanjeewa Malalgoda
Thanks malintha for fixing this quickly.

Thanks,
sanjeewa.


On Tue, Apr 29, 2014 at 2:25 PM, Malintha Amarasinghe wrote:

> Hi,
>
> I am working on this issue.
>
> Thank you.
> Regards,
> Malintha.
>
>
> On Tue, Apr 29, 2014 at 12:26 PM, Sanjeewa Malalgoda wrote:
>
>> Hi Malintha,
>> Please fix this test failures introduced by default api version fixes.
>>
>> Thanks,
>> sanjeewa.
>>
>>
>> ---
>>  T E S T S
>> ---
>> Running org.wso2.carbon.apimgt.impl.dao.test.TestRealmService
>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
>> Running org.wso2.carbon.apimgt.impl.dao.test.TestTenantManager
>> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
>> Running org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest
>> log4j:WARN No appenders could be found for logger
>> (org.apache.axiom.om.util.StAXUtils).
>> log4j:WARN Please initialize the log4j system properly.
>>
>>
>> Tests run: 14, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.557
>> sec <<< FAILURE!
>> Running org.wso2.carbon.apimgt.impl.template.TemplateBuilderTest
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
>> Running org.wso2.carbon.apimgt.impl.token.TokenGenTest
>> Generated Token:
>> eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0=.eyJpc3MiOiJ3c28yLm9yZy9wcm9kdWN0cy9hbSIsImV4cCI6MTM5ODc1NTI1MzIyMCwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9zdWJzY3JpYmVyIjoic2FzdHJ5IiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9hcHBsaWNhdGlvbmlkIjoiMSIsImh0dHA6Ly93c28yLm9yZy9jbGFpbXMvYXBwbGljYXRpb25uYW1lIjoiaHViYXBwIiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9hcHBsaWNhdGlvbnRpZXIiOiJVTkxJTUlURUQiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2FwaWNvbnRleHQiOiJjcmljU2NvcmUiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL3ZlcnNpb24iOiIxLjkuMCIsImh0dHA6Ly93c28yLm9yZy9jbGFpbXMvdGllciI6Im51bGwiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2tleXR5cGUiOiJudWxsIiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy91c2VydHlwZSI6Im51bGwiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2VuZHVzZXIiOiJkZW5pc0BjYXJib24uc3VwZXIiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2VuZHVzZXJUZW5hbnRJZCI6Ii0xMjM0In0=.
>> Header: {"typ":"JWT","alg":"none"}
>> Body: {"iss":"wso2.org/products/am","exp":1398755253220,"
>> http://wso2.org/claims/subscriber":"sastry",";
>> http://wso2.org/claims/applicationid":"1",";
>> http://wso2.org/claims/applicationname":"hubapp",";
>> http://wso2.org/claims/applicationtier":"UNLIMITED",";
>> http://wso2.org/claims/apicontext":"cricScore",";
>> http://wso2.org/claims/version":"1.9.0","http://wso2.org/claims/tier
>> ":"null","http://wso2.org/claims/keytype":"null",";
>> http://wso2.org/claims/usertype":"null","http://wso2.org/claims/enduser
>> ":"denis@carbon.super","http://wso2.org/claims/enduserTenantId":"-1234"}
>> user name denis@carbon.super
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
>>
>> Results :
>>
>> Tests in error:
>>
>> testValidateApplicationKey(org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest):
>> Error while getting default version for API1
>>
>> Tests run: 18, Failures: 0, Errors: 1, Skipped: 0
>>
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 44.691s
>> [INFO] Finished at: Tue Apr 29 12:22:33 IST 2014
>> [INFO] Final Memory: 97M/414M
>> [INFO]
>> 
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on
>> project org.wso2.carbon.apimgt.impl: There are test failures.
>> [ERROR]
>> [ERROR] Please refer to
>> /home/sanjeewa/carbon/turing/components/apimgt/org.wso2.carbon.apimgt.impl/1.2.2/target/surefire-reports
>> for the individual test results.
>> [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:
>>
>>
>> --
>>
>> *Sanjeewa Malalgoda*
>> WSO2 Inc.
>> Mobile : +94713068779
>>
>>  blog
>> :http://sanjeewamalalgoda.blogspot.com/
>>
>>
>>
>


-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

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


[Dev] What happens if end or abort boxcar is never called?

2014-04-29 Thread Afkham Azeez
Can we bring down a DSS instance by calling startBoxCar  followed by a few
operations, but not call end/abort Boxcar? Will this cause objects to
accumulate in memory and eventually leads to an OOM error? Is there a task
that cleans out such objects belonging to stale boxcarring sessions?


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

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


Re: [Dev] [APIM]Test failures due to default API version fixes

2014-04-29 Thread Malintha Amarasinghe
Hi,

I am working on this issue.

Thank you.
Regards,
Malintha.


On Tue, Apr 29, 2014 at 12:26 PM, Sanjeewa Malalgoda wrote:

> Hi Malintha,
> Please fix this test failures introduced by default api version fixes.
>
> Thanks,
> sanjeewa.
>
>
> ---
>  T E S T S
> ---
> Running org.wso2.carbon.apimgt.impl.dao.test.TestRealmService
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running org.wso2.carbon.apimgt.impl.dao.test.TestTenantManager
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest
> log4j:WARN No appenders could be found for logger
> (org.apache.axiom.om.util.StAXUtils).
> log4j:WARN Please initialize the log4j system properly.
>
>
> Tests run: 14, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.557 sec
> <<< FAILURE!
> Running org.wso2.carbon.apimgt.impl.template.TemplateBuilderTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running org.wso2.carbon.apimgt.impl.token.TokenGenTest
> Generated Token:
> eyJ0eXAiOiJKV1QiLCJhbGciOiJub25lIn0=.eyJpc3MiOiJ3c28yLm9yZy9wcm9kdWN0cy9hbSIsImV4cCI6MTM5ODc1NTI1MzIyMCwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9zdWJzY3JpYmVyIjoic2FzdHJ5IiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9hcHBsaWNhdGlvbmlkIjoiMSIsImh0dHA6Ly93c28yLm9yZy9jbGFpbXMvYXBwbGljYXRpb25uYW1lIjoiaHViYXBwIiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy9hcHBsaWNhdGlvbnRpZXIiOiJVTkxJTUlURUQiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2FwaWNvbnRleHQiOiJjcmljU2NvcmUiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL3ZlcnNpb24iOiIxLjkuMCIsImh0dHA6Ly93c28yLm9yZy9jbGFpbXMvdGllciI6Im51bGwiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2tleXR5cGUiOiJudWxsIiwiaHR0cDovL3dzbzIub3JnL2NsYWltcy91c2VydHlwZSI6Im51bGwiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2VuZHVzZXIiOiJkZW5pc0BjYXJib24uc3VwZXIiLCJodHRwOi8vd3NvMi5vcmcvY2xhaW1zL2VuZHVzZXJUZW5hbnRJZCI6Ii0xMjM0In0=.
> Header: {"typ":"JWT","alg":"none"}
> Body: {"iss":"wso2.org/products/am","exp":1398755253220,"
> http://wso2.org/claims/subscriber":"sastry",";
> http://wso2.org/claims/applicationid":"1",";
> http://wso2.org/claims/applicationname":"hubapp",";
> http://wso2.org/claims/applicationtier":"UNLIMITED",";
> http://wso2.org/claims/apicontext":"cricScore",";
> http://wso2.org/claims/version":"1.9.0","http://wso2.org/claims/tier
> ":"null","http://wso2.org/claims/keytype":"null",";
> http://wso2.org/claims/usertype":"null","http://wso2.org/claims/enduser
> ":"denis@carbon.super","http://wso2.org/claims/enduserTenantId":"-1234"}
> user name denis@carbon.super
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
>
> Results :
>
> Tests in error:
>
> testValidateApplicationKey(org.wso2.carbon.apimgt.impl.dao.test.APIMgtDAOTest):
> Error while getting default version for API1
>
> Tests run: 18, Failures: 0, Errors: 1, Skipped: 0
>
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 44.691s
> [INFO] Finished at: Tue Apr 29 12:22:33 IST 2014
> [INFO] Final Memory: 97M/414M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on
> project org.wso2.carbon.apimgt.impl: There are test failures.
> [ERROR]
> [ERROR] Please refer to
> /home/sanjeewa/carbon/turing/components/apimgt/org.wso2.carbon.apimgt.impl/1.2.2/target/surefire-reports
> for the individual test results.
> [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:
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  blog
> :http://sanjeewamalalgoda.blogspot.com/
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Updating /modules/distribution/LICENSE.txt

2014-04-29 Thread Udara Rathnayake
Hi Ruchira,

Noted, as discussed I will update the LICENSE.txt as soon as our new
pack(4.3.0 migrated) is ready.
Thanks.

Regards,
UdaraR


On Tue, Apr 29, 2014 at 12:25 PM, Ruchira Wageesha  wrote:

> Hi Udara,
>
> We will have to update it and keep it in sync. i.e. When the *.jars were
> changed, we will have to update it again.
>
> /Ruchira
>
>
> On Tue, Apr 29, 2014 at 11:14 AM, Udara Rathnayake wrote:
>
>> Hi all,
>>
>> After moving to carbon-4.3.0 are we going to keep the current LICENSE.txt
>> file until next release?
>> I think we normally generate LICENSE.txt during the release. If we keep
>> the current one without updating this will contain wrong information about
>> libraries.
>>
>> Regards,
>> UdaraR
>>
>> --
>> *Udara Rathnayake*
>> Software Engineer
>> WSO2 Inc. : http://wso2.com
>>
>> Mobile : +94 772207239
>> Twitter : http://twitter.com/udarakr
>> Blog: http://udarakr.blogspot.com
>>
>>
>
>
> --
>
> *Ruchira Wageesha**Associate Technical Lead*
> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com *
>
> *email: ruch...@wso2.com ,   blog:
> ruchirawageesha.blogspot.com ,
> mobile: +94 77 5493444 <%2B94%2077%205493444>*
>



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


Re: [Dev] [ES] Clean repo build failure

2014-04-29 Thread Udara Rathnayake
Now I'm getting the following build failure[1]. I tried this also in a
clean repo.
According to this mail thread[2] wso2-rampart is now available in GitHub
and available in Jenkins build too.

[1].
Installation failed.
Cannot complete the install because one or more required items could not be
found.
 Software being installed: WSO2 Tenant Common Composite Feature
4.3.0.SNAPSHOT (org.wso2.carbon.tenant.common.feature.group 4.3.0.SNAPSHOT)
 Missing requirement: org.wso2.carbon.security.mgt 4.3.0.SNAPSHOT
(org.wso2.carbon.security.mgt 4.3.0.SNAPSHOT) requires 'package
org.apache.rampart.policy [1.6.1.wso2v13-SNAPSHOT,2.0.0)' but it could not
be found
 Cannot satisfy dependency:
  From: WSO2 Tenant Common Composite Feature 4.3.0.SNAPSHOT
(org.wso2.carbon.tenant.common.feature.group 4.3.0.SNAPSHOT)
  To: org.wso2.carbon.tenant.common.server.feature.group [4.3.0.SNAPSHOT]
 Cannot satisfy dependency:
  From: WSO2 Tenant Common Core Feature 4.3.0.SNAPSHOT
(org.wso2.carbon.tenant.common.server.feature.group 4.3.0.SNAPSHOT)
  To: org.wso2.carbon.tenant.keystore.mgt [4.3.0.SNAPSHOT]
 Cannot satisfy dependency:
  From: org.wso2.carbon.tenant.keystore.mgt 4.3.0.SNAPSHOT
(org.wso2.carbon.tenant.keystore.mgt 4.3.0.SNAPSHOT)
  To: package org.wso2.carbon.security.keystore [4.3.0,5.0.0)
Application failed, log file location:
/home/udara/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1398757577009.log

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 Enterprise Store - Parent  SUCCESS [0.170s]
[INFO] WSO2 Enterprise Store - UI styles . SUCCESS [6.179s]
[INFO] jaggery-scxml-executors ... SUCCESS
[3:53.193s]
[INFO] WSO2 Carbon - Social - Activiy Publisher .. SUCCESS [8.038s]
[INFO] WSO2 Enterprise Store - sso common module . SUCCESS [1.197s]
[INFO] Enterprise Store - Jaggery Modules  SUCCESS [0.004s]
[INFO] event Module .. SUCCESS [0.003s]
[INFO] event Module - Feature  SUCCESS [0.355s]
[INFO] login Module .. SUCCESS [0.004s]
[INFO] login Module - Feature  SUCCESS [0.038s]
[INFO] permission Module . SUCCESS [0.005s]
[INFO] permission Module - Feature ... SUCCESS [0.035s]
[INFO] registration Module ... SUCCESS [0.005s]
[INFO] registration Module - Feature . SUCCESS [0.032s]
[INFO] sso Module  SUCCESS [0.006s]
[INFO] sso Module - Feature .. SUCCESS [0.027s]
[INFO] store Module .. SUCCESS [0.003s]
[INFO] store Module - Feature  SUCCESS [0.023s]
[INFO] ues Module  SUCCESS [0.004s]
[INFO] ues Module - Feature .. SUCCESS [0.020s]
[INFO] claims Module . SUCCESS [0.005s]
[INFO] claims Module - Feature ... SUCCESS [0.021s]
[INFO] WSO2 Enterprise Store Features  SUCCESS [0.021s]
[INFO] WSO2 Enterprise Store Styles Feature .. SUCCESS [0.151s]
[INFO] WSO2 Enterprise Store Feature . SUCCESS [3.416s]
[INFO] wso2store-profile-gen . FAILURE
[35:14.946s]
[INFO] WSO2 Enterprise Store - Distribution .. SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 39:31.404s
[INFO] Finished at: Tue Apr 29 13:16:20 IST 2014
[INFO] Final Memory: 58M/820M
[INFO]

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
(3-p2-profile-generation) on project wso2store-profile-gen: P2 publisher
return code was 13 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn  -rf :wso2store-profile-gen


[2] [Dev] rampart project is missing in GitHub


Regards,
UdaraR


On Tue, Apr 29, 2014 at 12:20 PM, Udara Rathnayake  wrote:

> Solved this build failure by using the correct snapshot repository[1].
>
> [1]
> 
> wso2-maven2-snapshot-repository
> WSO2 Maven2 Snapshot Repository
> 
> http://maven.wso2.org

[Dev] WSO2 API Manager 1.7.0 Nightly Build- 28-04-2014

2014-04-29 Thread Sanjeewa Malalgoda
Hi,

Please find the $subject at [1].

[1]http://builder1.us1.wso2.org/~apim/29-04-2014/

Thanks,
sanjeewa.

-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

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


[Dev] MB artifacts moved from chunk-09 to chunk-10

2014-04-29 Thread Dunith Dhanushka
Hi Shammi,

I have moved MB release artifacts from chunk-09 to chunk-10. Commited with
r201320.

Regards,

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

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


Re: [Dev] [G-Reg]How to verify non-admin users to registry email notifications?

2014-04-29 Thread Eranda Sooriyabandara
Please find the permissions needed for registry operations in
https://docs.wso2.org/display/Governance460/Roles.

thanks
Eranda


On Tue, Apr 29, 2014 at 11:57 AM, Ajith Vitharana  wrote:

>
>
>
> On Tue, Apr 29, 2014 at 11:39 AM, Chamila Wijayarathna 
> wrote:
>
>> Hi Subash,
>> I selected "notification" permission for everyone role, but still getting
>> the same result.[1] is the complete message I am receiving at terminal.
>> 1. https://gist.github.com/cdwijayarathna/11391761
>>
>
> Under the "1. Notification" section there are three permissions, Did you
> check all (Browse , Notifications, Community Features ) ?
>
>
>1. Notifications
>   1. All Permission>Admin Permissions>Manage>Resources>Browse
>   2. All Permission>Admin Permissions>Manage>Resources>Notifications
>   3. All Permission>Admin Permissions>Manage>Resources>Community
>   Features
>
>
> Thanks.
> Ajith
>
>>
>> Thank You.
>>
>>
>> On Tue, Apr 29, 2014 at 11:14 AM, Subash Chaturanga wrote:
>>
>>> Hi Chamila,
>>> Apparently the user does not have "Notifications" permissions . Refer
>>> [1] to add it to the user.
>>>
>>> [1] - https://docs.wso2.org/display/Governance460/Roles
>>>
>>>
>>> On Tue, Apr 29, 2014 at 11:02 AM, Chamila Wijayarathna >> > wrote:
>>>
 Hello all,
 In Enterprise Store, I'm trying to implement email notification system
 to notify users about new versions of an asset which a particular user has
 already downloaded.
 I used registry notification system to implement this. But when user
 tries to verify subscription, it fails since it requires user to have admin
 privileges.

 *[2014-04-29 10:09:56,720] ERROR {java.lang.Class} -  Access Denied.
 Failed authorization attempt to access service 'InfoAdminService' operation
 'verifyEmail' by 'chamila'*

 Is there any workaround for this which enables normal users to verify
 subscription to email notifications?

 Thank You!


 --
 *Chamila Wijayarathna*
 Engineering Intern,
 WSO2 Inc.


>>>
>>>
>>> --
>>> Thanks
>>> /subash
>>>
>>> *Subash Chaturanga*
>>> Senior Software Engineer :Integration TG; WSO2 Inc. http://wso2.com
>>>
>>> email: sub...@wso2.com
>>> blog:  http://subashsdm.blogspot.com/
>>> twitter: @subash89
>>> phone: +9477 2225922
>>> Lean . Enterprise . Middleware
>>>
>>
>>
>>
>> --
>> *Chamila Wijayarathna*
>> Engineering Intern,
>> WSO2 Inc.
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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
>
>


-- 

*Eranda Sooriyabandara*Senior Software Engineer;
Integration Technologies Team;
WSO2 Inc.; http://wso2.com
Lean . Enterprise . Middleware

E-mail: eranda AT wso2.com
Mobile: +94 716 472 816
Linked-In: http://www.linkedin.com/in/erandasooriyabandara
Blog: http://emsooriyabandara.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] Create a new carbon WebappClassLoader instance in a servlet using reflexion

2014-04-29 Thread Kishanthan Thangarajah
I don't think we have a webapp class loader impl as : "org.
wso2.carbon.webapp.mgt.loader.WebappClassLoader".

And CarbonWebappClassLoader is a extension we have
for org.apache.catalina.loader.WebappClassLoader which is used for webapp
related class loading. So I don't understand the purpose here?


On Mon, Apr 28, 2014 at 5:38 PM, Chamil Jeewantha  wrote:

> Hi All,
>
> In my servlet I want to create another WebappClassLoader instance as
> follows.
>
> public class LoaderServlet extends HttpServlet {
>
> public void init(ServletConfig config) throws ServletException {
>
> ClassLoader catalinaCl = config.getClass().getClassLoader();
> Class webappClClass =
> catalinaCl.loadClass("org.wso2.carbon.webapp.mgt.loader.WebappClassLoader");
>  ClassLoader childCl = (ClassLoader)
> webappClClass.getConstructor(ClassLoader.class).newInstance(catalinaCl);
> }
> }
>
> The above code gives ClassNotFoundException
>
> java.lang.ClassNotFoundException:
> org.wso2.carbon.webapp.mgt.loader.WebappClassLoader
> at
> org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:138)
>
> Please help.
>
> Regards,
> Chamil
>
> --
> 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
>
>


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

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev