Re: [Dev] Error when invoking Salesforce login method using jaggery

2017-07-25 Thread Suhan Dharmasuriya
FYI

We were able to fix this issue in WSO2 AS using the patch [1]

[1]
https://svn.wso2.com/wso2/custom/projects/projects/carbon/wilkes/patches/patch0052

Thanks,
Suhan


On Fri, Jul 14, 2017 at 2:03 PM, Mushthaq Rumy <musht...@wso2.com> wrote:

> Hi All,
>
> I'm getting an error while invoking the Salesforce login operation using
> jaggery. I tried the same payload through SOAP UI and it is working fine.
> The following is the jaggery code block.
>
> var payload =  '' +
>   '' +
> salesforce_username + '' +
>   '' +
> salesforce_password + salesforce_security_token + '' +
>'';
> var options = new Array();
> options.useSOAP = 1.1;
> options.CONNECTION_TIMEOUT = 12;
> salesforce.open(options, salesforce_url, false);
> *salesforce.send(payload);*
>
> The following is the error logged and the full error log is attached
> herewith.
>
> ERROR {org.jaggeryjs.modules.ws.WSRequestHostObject} -  Error occured
> while invoking the service {org.jaggeryjs.modules.ws.WSRequestHostObject}
> java.lang.NullPointerException
>
> Any thoughts or help on this is highly appreciated.
>
> Thanks & Regards,
> Mushthaq
> --
> Mushthaq Rumy
> *Software Engineer*
> Mobile : +94 (0) 779 492140 <%2B94%20%280%29%20773%20451194>
> Email : musht...@wso2.com
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middleware.
>
> <http://wso2.com/signature>
>



-- 
Suhan Dharmasuriya
Software Engineer

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
LinkedIn: https://www.linkedin.com/in/suhan1985
Blog: https://suhan-opensource.blogspot.com/

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


Re: [Dev] Carbon kernel branch 4.2.0 build failure

2016-04-19 Thread Suhan Dharmasuriya

Hi Kishanthan,
Thank you for the reply. I was able to build kernel branch 4.2.0 up to 
patch0005.
However I had to do following changes. Please find the attached diff. 1. 
Removed the missing repo [1] and its dependencies from relevant pom.xml
   files.
2. To fix Unsupported major.minor version 51.0 error.
3. build-helper-maven-plugin version 1.9.1 used [2] maven-bundle-plugin version 
2.5.4 used [3], [4]
4. Added org.wso2.carbon.utils[5] to patch0005/core and included in its pom.xml
   to prevent missing class
   org.wso2.carbon.utils.multitenancy.MultitenantConstants error.
   



[1] http://people.apache.org/repo/m2-incubating-repository/ [2] 
http://repo1.maven.org/maven2/org/codehaus/mojo/build-helper-maven-plugin/ [3] 
http://repo1.maven.org/maven2/org/apache/felix/maven-bundle-plugin/ [4] 
subject: carbon-apimgt-1.2.0, carbon-apimgt-1.2.5 and product-apim-1.9.0
Build failure [5]
https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/patch0004/core/org.wso2.carbon.utils/
It would be great if you can review and confirm the changes done as per the
attached diff file.
Thanks, Suhan

On Thu, Apr 7, 2016 10:25 AM, Kishanthan Thangarajah kishant...@wso2.com wrote:
It could be that particular repo is no longer available at apache site. We may
have to remove it from the pom.
On Mon, Apr 4, 2016 at 2:19 PM, Suhan Dharmasuriya < suh...@wso2.com > wrote:
Hi,
We were building carbon kernel 4.2.0 branch[1]. We used a clean repo and we 
built orbit 4.2.0 prior building kernel 4.2.0. We observed the following build 
failure[4].
We also noted that the following repo[2] at people.apache.org is not available.
Please advice how to proceed.
[1] https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/ [2] 
https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/dependencies/transports/1.1.0-wso2v9/modules/jms/pom.xmlapache-incubating Apache Maven 2 Incubating Repository  http://people.apache.org/repo/m2-incubating-repository/   never   interval:60   

[3] https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.2.0/ [4] [ERROR] 
Failed to execute goal on project axis2-transport-jms: Could not
resolve dependencies for project
org.apache.axis2:axis2-transport-jms:bundle:1.1.0-wso2v9: The following
artifacts could not be resolved:
org.apache.qpid:qpid-broker:jar:1.0-incubating-M2.1,
org.apache.qpid:qpid-client:jar:1.0-incubating-M2.1: Failure to find
org.apache.qpid:qpid-broker:jar:1.0-incubating-M2.1 in 
http://people.apache.org/repo/m2-incubating-repository/ was cached in the local 
repository, resolution will not be reattempted until
the update interval of apache-incubating has elapsed or updates are forced ->
[Help 1]
[5] [INFO] 
 [INFO] 
Building Apache Axis2 - Transport - JMS 1.1.0-wso2v9 [INFO] 
 
[WARNING] The POM for org.apache.qpid:qpid-broker:jar:1.0-incubating-M2.1 is
missing, no dependency information available [WARNING] The POM for 
org.apache.qpid:qpid-client:jar:1.0-incubating-M2.1 is
missing, no dependency information available [INFO] 
 [INFO] 
Reactor Summary: [INFO] [INFO] Axiom Parent POM 
.. SUCCESS [2.144s] [INFO] Axiom Test Utilities 
.. SUCCESS [4.509s] [INFO] Axiom Jaxen Test Suite 
 SUCCESS [1.016s] [INFO] Axiom API 
. SUCCESS [1:02.274s] [INFO] Axiom 
Implementation Test Suite ... SUCCESS [0.811s] [INFO] Axiom 
Impl  SUCCESS [3.110s] [INFO] Axiom DOM 
. SUCCESS [2.334s] [INFO] Axiom C14N 
 SUCCESS [0.397s] [INFO] Axiom Test 
Suite .. SUCCESS [0.603s] [INFO] Axiom OSGI 
Test Suite Parent .. SUCCESS [0.016s] [INFO] Axiom OSGI 
Test Suite - Build . SUCCESS [8.110s] [INFO] Axiom OSGI 
Test Suite - Run ... SUCCESS [53.862s] [INFO] Axiom 
Integration Test Suite .. SUCCESS [25.241s] [INFO] Axiom 
. SUCCESS [1.083s] [INFO] 
axiom.wso2  SUCCESS [1.780s] [INFO] 
Apache Axis2 - Kernel . SUCCESS [16.154s] [INFO] 
Apache Axis2 - Transport - HTTP ... SUCCESS [1.469s] [INFO] 
Apache Axis2 - Transport - Local .. SUCCESS [0.468s] [INFO] 
Apache Axis2 - JSON ... SUCCESS [0.430s] [INFO] 
axis2.wso2  SUCCESS [3.789s] [INFO] 
Apache Axis2 - Transport - JMS  FAILURE [0.140s] [INFO] 
WSS4J . SKIPPED [INFO] w

[Dev] Carbon kernel branch 4.2.0 build failure

2016-04-04 Thread Suhan Dharmasuriya
NFO] 
 [INFO] 
Total time: 3:11.088s [INFO] Finished at: Mon Apr 04 12:00:41 IST 2016 [INFO] 
Final Memory: 74M/1132M [INFO] 
 
[ERROR] Failed to execute goal on project axis2-transport-jms: Could not
resolve dependencies for project
org.apache.axis2:axis2-transport-jms:bundle:1.1.0-wso2v9: The following
artifacts could not be resolved:
org.apache.qpid:qpid-broker:jar:1.0-incubating-M2.1,
org.apache.qpid:qpid-client:jar:1.0-incubating-M2.1: Failure to find
org.apache.qpid:qpid-broker:jar:1.0-incubating-M2.1 in
http://people.apache.org/repo/m2-incubating-repository/ was cached in the local
repository, resolution will not be reattempted until the update interval of
apache-incubating has elapsed or updates are forced -> [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/DependencyResolutionException 
[ERROR] [ERROR] After correcting the problems, you can resume the build with the
command [ERROR] mvn  -rf :axis2-transport-jms
Thanks, Suhan
Suhan Dharmasuriya Software Engineer - Test AutomationWSO2, Inc.

lean . enterprise . middleware

Tel: +94 112 145345 Mob: +94 779 869138 Blog: 
http://suhan-opensource.blogspot.com/___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] APIM 1.10.0 Error when trying to generate keys

2015-12-08 Thread Suhan Dharmasuriya
) 
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) 
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
 at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
 at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739)
 at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698)
 at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.lang.Thread.run(Thread.java:745) Caused by: 
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown
column ' USER_DOMAIN ' in 'where clause' at 
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at 
com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at 
com.mysql.jdbc.Util.getInstance(Util.java:360) at 
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978) at 
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887) at 
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823) at 
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435) at 
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582) at 
com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2530) at
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1907) 
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2030) at
org.wso2.carbon.identity.oauth.dao.OAuthAppDAO.isDuplicateApplication(OAuthAppDAO.java:378)
 ... 59 more
What can be the cause for this error?
Thanks, Suhan
Suhan Dharmasuriya Software Engineer - Test AutomationWSO2, Inc.

lean . enterprise . middleware

Tel: +94 112 145345 Mob: +94 779 869138 Blog: 
http://suhan-opensource.blogspot.com/___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 1.10.0 Error when trying to generate keys

2015-12-08 Thread Suhan Dharmasuriya

Hi,
Thanks Nuwan.
Yes the pack used for mysql db schema is couple of days old and do not contain 
USER_DOMAIN field. We updated the database using latest build pack dbscripts 
and was able to solve
the issue.
Thanks, Suhan


On Tue, Dec 8, 2015 at 3:26 PM, Nuwan Dias < nuw...@wso2.com > wrote:
It seems like the DB schema you are using is outdated. The column USER_DOMAIN
was added recently by the IS folks.
Thanks, NuwanD.
On Tue, Dec 8, 2015 at 3:25 PM, Suhan Dharmasuriya < suh...@wso2.com > wrote:
Hi,
We are running tests on a distributed cluster setup and we are using mysql as
our database. We took the latest build from jenkins [1].
When we try to generate a key, we are getting the following error [2] on our
keymanager instances.
[1] https://wso2.org/jenkins/ job/product-apim_release-1.10.
x/org.wso2.am$wso2am/31/ [2] TID: [-1234] [] [2015-12-08 08:50:40,690] ERROR 
{org.wso2.carbon.apimgt.impl. utils.APIUtil} - Error occurred while creating 
OAuthApp
admin_RefreshTokenTestAPI- Application_PRODUCTION {org.wso2.carbon.apimgt.impl. 
utils.APIUtil} org.wso2.carbon.identity. oauth. IdentityOAuthAdminException: 
Error when executing the SQL : SELECT * FROM
IDN_OAUTH_CONSUMER_APPS WHERE USERNAME=? AND TENANT_ID=? AND USER_DOMAIN=? AND
APP_NAME=? at org.wso2.carbon.identity. oauth.dao.OAuthAppDAO. 
isDuplicateApplication( OAuthAppDAO.java:384) at org.wso2.carbon.identity. 
oauth.dao.OAuthAppDAO. addOAuthApplication( OAuthAppDAO.java:70) at 
org.wso2.carbon.identity. oauth.OAuthAdminService. 
registerOAuthApplicationData( OAuthAdminService.java:249) at 
org.wso2.carbon.apimgt.keymgt. service. APIKeyMgtSubscriberService. 
createOAuthApplication( APIKeyMgtSubscriberService. java:166) at sun.reflect. 
NativeMethodAccessorImpl. invoke0(Native Method) at sun.reflect. 
NativeMethodAccessorImpl. invoke( NativeMethodAccessorImpl.java: 57) at 
sun.reflect. DelegatingMethodAccessorImpl. invoke( 
DelegatingMethodAccessorImpl. java:43) at java.lang.reflect.Method. 
invoke(Method.java:606) at org.apache.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:173) 
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.apache.tomcat.websocket. 
server.WsFilter.doFilter( WsFilter.java:52) at org.apache.catalina.core. 
ApplicationFilterChain. internalDoFilter( ApplicationFilterChain.java: 241) at 
org.apache.catalina.core. ApplicationFilterChain. doFilter( 
ApplicationFilterChain.java: 208) at org.wso2.carbon.ui.filters. 
CSRFPreventionFilter.doFilter( CSRFPreventionFilter.java:88) at 
org.apache.catalina.core. ApplicationFilterChain. internalDoFilter( 
ApplicationFilterChain.java: 241) at org.apache.catalina.core. 
ApplicationFilterChain. doFilter( ApplicationFilterChain.java: 208) at 
org.wso2.carbon.ui.filters. CRLFPreventionFilter.doFilter( 
CRLFPreventionFilter.java:61) at org.apache.catalina.core. 
ApplicationFilterChain. internalDoFilter( ApplicationFilterChain.java: 241) 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. Authenticato

Re: [Dev] APIM 1.10.x - PATCH Access-Control-Allow-Method

2015-11-22 Thread Suhan Dharmasuriya
Hi Nuwan,

Yes, we are incorporating these changes to APIM 1.10.x templates of
deployment automation solution (puppet scripts).

Are their any other dependent configurations to this PATCH config to
function?

Thanks,
Suhan


On Mon, Nov 23, 2015 at 10:20 AM, Nuwan Dias <nuw...@wso2.com> wrote:

> Are you asking why PATCH has been added to the list of
> Access-Control-Allow-Method in the api-manager.xml?
>
> Thanks,
> NuwanD.
>
> On Mon, Nov 23, 2015 at 10:19 AM, Suhan Dharmasuriya <suh...@wso2.com>
> wrote:
>
>> Hi,
>>
>> Under CORS configurations in api-manager.xml of APIM version 1.10.x,
>> can you please elaborate more on the functionality of $subject?
>>
>> Thanks,
>> Suhan
>>
>> --
>> Suhan Dharmasuriya
>> Software Engineer - Test Automation
>>
>> *WSO2, Inc. *
>>
>> lean . enterprise . middleware
>> Tel: +94 112 145345
>> Mob: +94 779 869138
>> Blog: http://suhan-opensource.blogspot.com/
>>
>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 1.10.x - PATCH Access-Control-Allow-Method

2015-11-22 Thread Suhan Dharmasuriya
Hi Nuwan,

Just want to know whether there are other dependent configurations for this
to work as expected.

Thanks,
Suhan


On Mon, Nov 23, 2015 at 10:28 AM, Suhan Dharmasuriya <suh...@wso2.com>
wrote:

> Hi Nuwan,
>
> Yes, we are incorporating these changes to APIM 1.10.x templates of
> deployment automation solution (puppet scripts).
>
> Are their any other dependent configurations to this PATCH config to
> function?
>
> Thanks,
> Suhan
>
>
> On Mon, Nov 23, 2015 at 10:20 AM, Nuwan Dias <nuw...@wso2.com> wrote:
>
>> Are you asking why PATCH has been added to the list of
>> Access-Control-Allow-Method in the api-manager.xml?
>>
>> Thanks,
>> NuwanD.
>>
>> On Mon, Nov 23, 2015 at 10:19 AM, Suhan Dharmasuriya <suh...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> Under CORS configurations in api-manager.xml of APIM version 1.10.x,
>>> can you please elaborate more on the functionality of $subject?
>>>
>>> Thanks,
>>> Suhan
>>>
>>> --
>>> Suhan Dharmasuriya
>>> Software Engineer - Test Automation
>>>
>>> *WSO2, Inc. *
>>>
>>> lean . enterprise . middleware
>>> Tel: +94 112 145345
>>> Mob: +94 779 869138
>>> Blog: http://suhan-opensource.blogspot.com/
>>>
>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Technical Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>
>
> --
> Suhan Dharmasuriya
> Software Engineer - Test Automation
>
> *WSO2, Inc. *
>
> lean . enterprise . middleware
> Tel: +94 112 145345
> Mob: +94 779 869138
> Blog: http://suhan-opensource.blogspot.com/
>



-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] APIM 1.10.x - PATCH Access-Control-Allow-Method

2015-11-22 Thread Suhan Dharmasuriya
Thanks for the info Nuwan.

Thanks,
Suhan

On Mon, Nov 23, 2015 at 10:56 AM, Nuwan Dias <nuw...@wso2.com> wrote:

> Hi Suhan,
>
> No there aren't any other dependant configurations.
>
> This config was introduced because we have a feature to have HTTP PATCH
> support in the API Manager from 1.10.0 onwards. Its required for the CORS
> stuff on the API Store (API Console) to work.
>
> Thanks,
> NuwanD.
>
> On Mon, Nov 23, 2015 at 10:38 AM, Suhan Dharmasuriya <suh...@wso2.com>
> wrote:
>
>> Hi Nuwan,
>>
>> Just want to know whether there are other dependent configurations for
>> this to work as expected.
>>
>> Thanks,
>> Suhan
>>
>>
>> On Mon, Nov 23, 2015 at 10:28 AM, Suhan Dharmasuriya <suh...@wso2.com>
>> wrote:
>>
>>> Hi Nuwan,
>>>
>>> Yes, we are incorporating these changes to APIM 1.10.x templates of
>>> deployment automation solution (puppet scripts).
>>>
>>> Are their any other dependent configurations to this PATCH config to
>>> function?
>>>
>>> Thanks,
>>> Suhan
>>>
>>>
>>> On Mon, Nov 23, 2015 at 10:20 AM, Nuwan Dias <nuw...@wso2.com> wrote:
>>>
>>>> Are you asking why PATCH has been added to the list of
>>>> Access-Control-Allow-Method in the api-manager.xml?
>>>>
>>>> Thanks,
>>>> NuwanD.
>>>>
>>>> On Mon, Nov 23, 2015 at 10:19 AM, Suhan Dharmasuriya <suh...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Under CORS configurations in api-manager.xml of APIM version 1.10.x,
>>>>> can you please elaborate more on the functionality of $subject?
>>>>>
>>>>> Thanks,
>>>>> Suhan
>>>>>
>>>>> --
>>>>> Suhan Dharmasuriya
>>>>> Software Engineer - Test Automation
>>>>>
>>>>> *WSO2, Inc. *
>>>>>
>>>>> lean . enterprise . middleware
>>>>> Tel: +94 112 145345
>>>>> Mob: +94 779 869138
>>>>> Blog: http://suhan-opensource.blogspot.com/
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Nuwan Dias
>>>>
>>>> Technical Lead - WSO2, Inc. http://wso2.com
>>>> email : nuw...@wso2.com
>>>> Phone : +94 777 775 729
>>>>
>>>
>>>
>>>
>>> --
>>> Suhan Dharmasuriya
>>> Software Engineer - Test Automation
>>>
>>> *WSO2, Inc. *
>>>
>>> lean . enterprise . middleware
>>> Tel: +94 112 145345
>>> Mob: +94 779 869138
>>> Blog: http://suhan-opensource.blogspot.com/
>>>
>>
>>
>>
>> --
>> Suhan Dharmasuriya
>> Software Engineer - Test Automation
>>
>> *WSO2, Inc. *
>>
>> lean . enterprise . middleware
>> Tel: +94 112 145345
>> Mob: +94 779 869138
>> Blog: http://suhan-opensource.blogspot.com/
>>
>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] APIM 1.10.x - PATCH Access-Control-Allow-Method

2015-11-22 Thread Suhan Dharmasuriya
Hi,

Under CORS configurations in api-manager.xml of APIM version 1.10.x,
can you please elaborate more on the functionality of $subject?

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] setting up cluster without using -Dprofile - with puppet scripts

2015-11-11 Thread Suhan Dharmasuriya
rce)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
at
org.apache.catalina.startup.ContextConfig.processContextConfig(ContextConfig.java:649)
at
org.apache.catalina.startup.ContextConfig.contextConfig(ContextConfig.java:592)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:850)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:397)
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.init(LifecycleBase.java:110)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException:
org.wso2.carbon.webapp.mgt.loader.CarbonWebappLoader cannot be found by
org.wso2.carbon.tomcat_4.4.2
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
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:358)
at
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:144)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1288)
... 26 more

Thanks,
Suhan


On Wed, Nov 11, 2015 at 11:00 AM, Suhan Dharmasuriya <suh...@wso2.com>
wrote:

> Hi Nuwan,
>
> We will go ahead with profiles and puppet scripts will remove the
> unnecessary webapps from relevant profiles.
>
> For the moment it occurred the issue [2] was resolved but it didn't. We
> were able to completely eliminate the issue
> by removing profiles (which is not a recommended approach).
>
> We will retest with profiles and get back to you.
>
> Thank you for the quick reply.
>
> Thanks,
> Suhan
>
>
> On Wed, Nov 11, 2015 at 10:50 AM, Nuwan Dias <nuw...@wso2.com> wrote:
>
>> IMO its better to start with profiles. Removing the unnecessary webapps
>> from the relevant profiles would still have to be done since profiles do
>> not take care of their removal.
>>
>> When I went through the mail thread at [2] I got the impression that you
>> got it resolved. And I didn't see anything related to profiles in there.
>>
>> Thanks,
>> NuwanD.
>>
>> On Wed, Nov 11, 2015 at 10:33 AM, Suhan Dharmasuriya <suh...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> Currently we are running the APIM cluster without specifying any
>>> profiles [1].
>>> i.e. when templating wso2server.sh file, -Dprofile parameter values
>>> (gateway-worker, gateway-manager, api-key-manager, api-publisher,
>>> api-store) are not given.
>>>
>>> However the required store and publisher jaggeryapps are added/removed
>>> by puppet scripts when starting each profile instance.
>>> As for an example during the initialization of gateway instance, store
>>> and publisher apps are removed as follows.
>>>
>>> exec { "removing_publisher_app_for_gateway":
>>> path=>
>>> "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
>>> command => "rm -rf
>>> $carbon_home/repository/deployment/server/jaggeryapps/publisher",
>>> require => Apimanager::Deploy["${deployment_code}_${amtype}"],
>>> }
>>>
>>> exec { "removing_store_app_for_gateway":
>>> path=>
>>> "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
>>> command => "rm -rf
>>> $carbon_home/repository/deployment/server/jaggeryapps/store",
>>> require => Apimanager::Deploy["${deployment_code}_${amtype}"],
>>> }
>>>
>>> This is performed accordingly in each profile instance of the cluster.
>>> i.e. in store instance publisher app is removed, in publisher instance
>>> store app is removed,
>>> in keymanager instance both apps are removed.
>>>
>>>

[Dev] [APIM] Transferring standalone configurations to cluster based configurations

2015-11-10 Thread Suhan Dharmasuriya
Hi,

Currently we are automating tests to run on a API Manager 1.9.1 clustered
environment.

There are some tests (~110) running on default product configurations.
For these tests, we have created a deployment pattern with default product
configurations and
the relevant tests are passing.

Whereas others need some configuration changes.
For these tests, we have introduced new deployment patterns based on these
configuration changes.

When transferring these test configurations to clustered deployment
environment,
we are copying all specific test configurations to all instances in the
cluster.

WDYT about this approach?

When in standalone mode all the components in API Manager refer the test
configurations
from a single file, i.e. api-manager.xml, axis2.xml

Therefore we have puppetized the scripts in such a way that these
configurations are copied
to all instances in the cluster without considering the profiles of each
instance.

Thanks,
Suhan


-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] setting up cluster without using -Dprofile - with puppet scripts

2015-11-10 Thread Suhan Dharmasuriya
Hi,

Currently we are running the APIM cluster without specifying any profiles
[1].
i.e. when templating wso2server.sh file, -Dprofile parameter values
(gateway-worker, gateway-manager, api-key-manager, api-publisher, api-store)
are not given.

However the required store and publisher jaggeryapps are added/removed by
puppet scripts when starting each profile instance.
As for an example during the initialization of gateway instance, store and
publisher apps are removed as follows.

exec { "removing_publisher_app_for_gateway":
path=>
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
command => "rm -rf
$carbon_home/repository/deployment/server/jaggeryapps/publisher",
require => Apimanager::Deploy["${deployment_code}_${amtype}"],
}

exec { "removing_store_app_for_gateway":
path=>
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
command => "rm -rf
$carbon_home/repository/deployment/server/jaggeryapps/store",
require => Apimanager::Deploy["${deployment_code}_${amtype}"],
}

This is performed accordingly in each profile instance of the cluster.
i.e. in store instance publisher app is removed, in publisher instance
store app is removed,
in keymanager instance both apps are removed.

WDYT about this approach?

We had to go to this approach since we started to get some
NoClassDefFoundError errors [2]
when automating cluster based tests.

[1] https://docs.wso2.com/display/AM191/Product+Profiles
[2] [Dev] OpenIDConnect - Error while accessing UserInfo Endpoint

Thanks,
Suhan



-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] setting up cluster without using -Dprofile - with puppet scripts

2015-11-10 Thread Suhan Dharmasuriya
Hi Nuwan,

We will go ahead with profiles and puppet scripts will remove the
unnecessary webapps from relevant profiles.

For the moment it occurred the issue [2] was resolved but it didn't. We
were able to completely eliminate the issue
by removing profiles (which is not a recommended approach).

We will retest with profiles and get back to you.

Thank you for the quick reply.

Thanks,
Suhan


On Wed, Nov 11, 2015 at 10:50 AM, Nuwan Dias <nuw...@wso2.com> wrote:

> IMO its better to start with profiles. Removing the unnecessary webapps
> from the relevant profiles would still have to be done since profiles do
> not take care of their removal.
>
> When I went through the mail thread at [2] I got the impression that you
> got it resolved. And I didn't see anything related to profiles in there.
>
> Thanks,
> NuwanD.
>
> On Wed, Nov 11, 2015 at 10:33 AM, Suhan Dharmasuriya <suh...@wso2.com>
> wrote:
>
>> Hi,
>>
>> Currently we are running the APIM cluster without specifying any profiles
>> [1].
>> i.e. when templating wso2server.sh file, -Dprofile parameter values
>> (gateway-worker, gateway-manager, api-key-manager, api-publisher,
>> api-store) are not given.
>>
>> However the required store and publisher jaggeryapps are added/removed by
>> puppet scripts when starting each profile instance.
>> As for an example during the initialization of gateway instance, store
>> and publisher apps are removed as follows.
>>
>> exec { "removing_publisher_app_for_gateway":
>> path=>
>> "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
>> command => "rm -rf
>> $carbon_home/repository/deployment/server/jaggeryapps/publisher",
>> require => Apimanager::Deploy["${deployment_code}_${amtype}"],
>> }
>>
>> exec { "removing_store_app_for_gateway":
>> path=>
>> "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
>> command => "rm -rf
>> $carbon_home/repository/deployment/server/jaggeryapps/store",
>> require => Apimanager::Deploy["${deployment_code}_${amtype}"],
>> }
>>
>> This is performed accordingly in each profile instance of the cluster.
>> i.e. in store instance publisher app is removed, in publisher instance
>> store app is removed,
>> in keymanager instance both apps are removed.
>>
>> WDYT about this approach?
>>
>> We had to go to this approach since we started to get some
>> NoClassDefFoundError errors [2]
>> when automating cluster based tests.
>>
>> [1] https://docs.wso2.com/display/AM191/Product+Profiles
>> [2] [Dev] OpenIDConnect - Error while accessing UserInfo Endpoint
>>
>> Thanks,
>> Suhan
>>
>>
>>
>> --
>> Suhan Dharmasuriya
>> Software Engineer - Test Automation
>>
>> *WSO2, Inc. *
>>
>> lean . enterprise . middleware
>> Tel: +94 112 145345
>> Mob: +94 779 869138
>> Blog: http://suhan-opensource.blogspot.com/
>>
>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] STSDeploymentInterceptor - java.lang.SecurityException: Key Store with a name : <>.jks does not exist.

2015-10-29 Thread Suhan Dharmasuriya
)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
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:1070)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1736)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1695)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
TID: [0] [AM] [2015-10-26 04:58:31,472]  INFO
{org.wso2.carbon.core.internal.permission.update.PermissionUpdater} -
 Permission cache updated for tenant 1
{org.wso2.carbon.core.internal.permission.update.PermissionUpdater}

Thanks,
Suhan



-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Swaggers are not showing up after GReg migration 5.0.0 > 5.0.1

2015-10-23 Thread Suhan Dharmasuriya
[1] http://mail.wso2.org/mailarchive/dev/2015-September/054616.html
[2] http://osdir.com/ml/general/2015-09/msg13727.html

On Fri, Oct 23, 2015 at 11:39 AM, Thushara Ranawaka <thusha...@wso2.com>
wrote:

> Hi All,
>
> I try reindexing several times but swaggers didn't show up. Then I changed
> the JSONIndexer to PlainTextIndexer in registry.xml and indexed. Now I can
> see swaggers. Please advice.
>
> --
> Thanks,
> Thushara Kasun Ranawaka
> Software Engineer
> WSO2 Inc.; <http://www.wso2.com>
> lean.enterprise.middleware
> Mobile : *+94 (0) 773438949 <%2B94%20%280%29%20773438949>*
> *thusha...@wso2.com <thusha...@wso2.com>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Platform test automation for multiple cluster patterns

2015-07-29 Thread Suhan Dharmasuriya
Hi,

We are into the process of automating tests at the platform level for
multiple clustering patterns.
As discussed in the preliminary sessions we have identified the
requirements spanning in three different levels.

1. Test Automation - No need to focus on the topology of the cluster. Will
focus on the URLs
e.g.: manager and worker URLs
How ever we will have to identify test suites which are specific to each
pattern.

2. Puppet - Copying latest build packs, starting/stopping carbon server,
multiple JDKs, Nginx, MySQL, SVN

3. Environment - Focussing on the cloud environment, type: EC2, Openstack,
instance spawning, multiple OS types.

WDYT?

Thanks,
Suhan


-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] AS platform test automation for clustering

2015-07-19 Thread Suhan Dharmasuriya
Hi,

We are running a cluster test automation for an AS cluster to test the Dep
Sync functionality.
In AS cluster we have a manger node and two worker nodes fronted by an
Nginx load balancer.

When testing the web app undeployment, we are following the below steps.

1. Undeploy the webapp from the manager node; webapp removed from svn repo
and cluster
message is sent.
2. Worker node receive the cluster message and undeploy the web app with an
svn update.
3. At this point, we are sending an HTTP request to the webapp in a worker
node to see whether
the undeployment has taken place as expected in worker nodes.
4. We are expecting an HTTP 404 (Not Found) response from the worker node.

This test was passing initially and now got failed the reason being that
worker node response
sending the HTTP 302 (Moved Temporarily) response instead of HTTP 404.

What should be the correct behaviour?
After undeploying the webapp and further HTTP requests are received to the
removed webapp,
what should be the node response; HTTP 302 or HTTP 404?

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] User profile management - getNameAssociatedWith

2015-07-17 Thread Suhan Dharmasuriya
Hi Ishara,

Scenario I'm trying is as follows.
I'm trying to test the associated ID functionality regarding the
UserProfileMgtService
in App Server.
Therefore to test the same I have to create an IDP first with basic details.
I have successfully tested the following operations.
1. associateID
2. getAssociatedIDs
3. removeAssociateID

However I'm unable to get a value with getNameAssociatedWith.
I have logged in to my AuthenticatorClient using default admin credentials.

Can you please provide some related documentation or an article regarding
the associated ID functionality?
I would like to further analyse this scenario in depth.

Thanks,
Suhan


On Fri, Jul 17, 2015 at 12:05 PM, Ishara Karunarathna isha...@wso2.com
wrote:

 Hi Suhan,

 On Fri, Jul 17, 2015 at 10:41 AM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Ishara,

 Thank you for the guidance.
 Is it necessary to set the same resident IDP certificate to the IDP that
 we are creating [1] [@109]?
 If not, will it affect the retrieval of the Associated name functionality?

 There shouldn't be a affect with certificate with Associated ID
 functionality.

 I'm not clear what your are going to do.Better if you explain what your
 are going to do here.


 I'm trying to get the resident IDP in App Server but unable to do so.
 Therefore when creating the new IDP, I tried with setting up a dummy
 certificate value with BASE64 encoded.

 [1]
 https://github.com/wso2/product-is/blob/7c3cbe328ea37ecbbee995a9528d4de44495e633/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/identity/mgt/IdentityProviderMgtServiceTestCase.java

 Thanks,
 Suhan


 On Wed, Jul 15, 2015 at 6:07 PM, Ishara Karunarathna isha...@wso2.com
 wrote:

 Hi,

 On Wed, Jul 15, 2015 at 5:46 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 What is the functionality of $subject?

 If you did an account association. Sending Associated IDP, Associated
 subject ID you can get the Associated users (Who exist in the user store)
 user name.

 Thanks,
 Ishara

 I'm observing this operation inside UserProfileMgtService [1] when
 admin services are exposed in App Server latest build.

 I have added an IdP with basic details [2].

  mgt:identityProvider
 xsd:aliashttps://localhost:9443/oauth2/token//xsd:alias
 xsd:certificateBASE64 encoded String goes
 here/xsd:certificate
 xsd:displayNameSample IdP/xsd:displayName
 xsd:enabletrue/xsd:enable
 xsd:federationHubfalse/xsd:federationHub
 xsd:homeRealmIdlocalhost/xsd:homeRealmId
 xsd:identityProviderDescriptionSample
 Description/xsd:identityProviderDescription
 xsd:identityProviderNameTestIdP/xsd:identityProviderName
 xsd:primarytrue/xsd:primary
 xsd:provisioningRoletest/xsd:provisioningRole
  /mgt:identityProvider

 After performing associateID operation, I tried to call
 the getNameAssociatedWith through my custom client but getting a null
 object.

 Relevant sql is as follows [3].

 sql = SELECT DOMAIN_NAME, USER_NAME FROM IDN_ASSOCIATED_ID WHERE
 TENANT_ID = ? AND IDP_ID = (SELECT ID  +
   FROM IDP WHERE NAME = ? AND TENANT_ID = ?) AND
 IDP_USER_ID = ?;

 [1] https://localhost:9443/services/UserProfileMgtService?wsdl
 [2]
 https://github.com/wso2/carbon-identity/blob/master/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/IdentityProviderManagementService.java
 [3]
 https://github.com/wso2/carbon-identity/blob/master/components/user-mgt/org.wso2.carbon.identity.user.profile/src/main/java/org/wso2/carbon/identity/user/profile/mgt/UserProfileAdmin.java

 Thanks,
 Suhan


 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/




 --
 Ishara Karunarathna
 Senior Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
 +94717996791




 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/




 --
 Ishara Karunarathna
 Senior Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
 +94717996791




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] User profile management - getNameAssociatedWith

2015-07-16 Thread Suhan Dharmasuriya
Hi Ishara,

Thank you for the guidance.
Is it necessary to set the same resident IDP certificate to the IDP that we
are creating [1] [@109]?
If not, will it affect the retrieval of the Associated name functionality?

I'm trying to get the resident IDP in App Server but unable to do so.
Therefore when creating the new IDP, I tried with setting up a dummy
certificate value with BASE64 encoded.

[1]
https://github.com/wso2/product-is/blob/7c3cbe328ea37ecbbee995a9528d4de44495e633/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/identity/integration/test/identity/mgt/IdentityProviderMgtServiceTestCase.java

Thanks,
Suhan


On Wed, Jul 15, 2015 at 6:07 PM, Ishara Karunarathna isha...@wso2.com
wrote:

 Hi,

 On Wed, Jul 15, 2015 at 5:46 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 What is the functionality of $subject?

 If you did an account association. Sending Associated IDP, Associated
 subject ID you can get the Associated users (Who exist in the user store)
 user name.

 Thanks,
 Ishara

 I'm observing this operation inside UserProfileMgtService [1] when admin
 services are exposed in App Server latest build.

 I have added an IdP with basic details [2].

  mgt:identityProvider
 xsd:aliashttps://localhost:9443/oauth2/token//xsd:alias
 xsd:certificateBASE64 encoded String goes
 here/xsd:certificate
 xsd:displayNameSample IdP/xsd:displayName
 xsd:enabletrue/xsd:enable
 xsd:federationHubfalse/xsd:federationHub
 xsd:homeRealmIdlocalhost/xsd:homeRealmId
 xsd:identityProviderDescriptionSample
 Description/xsd:identityProviderDescription
 xsd:identityProviderNameTestIdP/xsd:identityProviderName
 xsd:primarytrue/xsd:primary
 xsd:provisioningRoletest/xsd:provisioningRole
  /mgt:identityProvider

 After performing associateID operation, I tried to call
 the getNameAssociatedWith through my custom client but getting a null
 object.

 Relevant sql is as follows [3].

 sql = SELECT DOMAIN_NAME, USER_NAME FROM IDN_ASSOCIATED_ID WHERE
 TENANT_ID = ? AND IDP_ID = (SELECT ID  +
   FROM IDP WHERE NAME = ? AND TENANT_ID = ?) AND
 IDP_USER_ID = ?;

 [1] https://localhost:9443/services/UserProfileMgtService?wsdl
 [2]
 https://github.com/wso2/carbon-identity/blob/master/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/IdentityProviderManagementService.java
 [3]
 https://github.com/wso2/carbon-identity/blob/master/components/user-mgt/org.wso2.carbon.identity.user.profile/src/main/java/org/wso2/carbon/identity/user/profile/mgt/UserProfileAdmin.java

 Thanks,
 Suhan


 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/




 --
 Ishara Karunarathna
 Senior Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
 +94717996791




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] User profile management - getNameAssociatedWith

2015-07-15 Thread Suhan Dharmasuriya
Hi,

What is the functionality of $subject?
I'm observing this operation inside UserProfileMgtService [1] when admin
services are exposed in App Server latest build.

I have added an IdP with basic details [2].

 mgt:identityProvider
xsd:aliashttps://localhost:9443/oauth2/token//xsd:alias
xsd:certificateBASE64 encoded String goes
here/xsd:certificate
xsd:displayNameSample IdP/xsd:displayName
xsd:enabletrue/xsd:enable
xsd:federationHubfalse/xsd:federationHub
xsd:homeRealmIdlocalhost/xsd:homeRealmId
xsd:identityProviderDescriptionSample
Description/xsd:identityProviderDescription
xsd:identityProviderNameTestIdP/xsd:identityProviderName
xsd:primarytrue/xsd:primary
xsd:provisioningRoletest/xsd:provisioningRole
 /mgt:identityProvider

After performing associateID operation, I tried to call
the getNameAssociatedWith through my custom client but getting a null
object.

Relevant sql is as follows [3].

sql = SELECT DOMAIN_NAME, USER_NAME FROM IDN_ASSOCIATED_ID WHERE TENANT_ID
= ? AND IDP_ID = (SELECT ID  +
  FROM IDP WHERE NAME = ? AND TENANT_ID = ?) AND
IDP_USER_ID = ?;

[1] https://localhost:9443/services/UserProfileMgtService?wsdl
[2]
https://github.com/wso2/carbon-identity/blob/master/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/IdentityProviderManagementService.java
[3]
https://github.com/wso2/carbon-identity/blob/master/components/user-mgt/org.wso2.carbon.identity.user.profile/src/main/java/org/wso2/carbon/identity/user/profile/mgt/UserProfileAdmin.java

Thanks,
Suhan


-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Thushara Ranawaka

2015-07-02 Thread Suhan Dharmasuriya
Congrats Thushara!!!

On Thu, Jul 2, 2015 at 4:47 PM, Ashan Dhananjaya ash...@wso2.com wrote:

 All the very best Thushara!

 On Thu, Jul 2, 2015 at 4:46 PM, Damith Wickramasinghe dami...@wso2.com
 wrote:

 Congratz Thushara... !!

 On Thu, Jul 2, 2015 at 11:21 AM, Rajith Roshan raji...@wso2.com wrote:

 Congratulations Thushara !!

 On Thu, Jul 2, 2015 at 10:28 AM, Tharik Kanaka tha...@wso2.com wrote:

 Congratulations Thushara

 On Thu, Jul 2, 2015 at 10:12 AM, Madhawa Gunasekara madha...@wso2.com
 wrote:

 Congratulations Thushara !! :)

 On Thu, Jul 2, 2015 at 9:34 AM, Waruna De Silva waru...@wso2.com
 wrote:

 Hi Devs,

 It's my pleasure to welcome Thushara Ranawaka as a WSO2 Committer.
 Thushara, welcome aboard and keep up the good work!

 Thanks!
 Waruna

 --

 --
 Waruna De Silva.
 Director of Engineering ; WSO2, Inc.;  http://wso2.com/
 cell +94 777 316866

 Lean . Enterprise . Middleware


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




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

 mobile: +94 719411002 +94+719411002
 blog: *http://madhawa-gunasekara.blogspot.com
 http://madhawa-gunasekara.blogspot.com*
 linkedin: *http://lk.linkedin.com/in/mgunasekara
 http://lk.linkedin.com/in/mgunasekara*

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




 --

 *Tharik Kanaka*

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: tha...@wso2.com | Web: www.wso2.com

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




 --
 Rajith Roshan
 Software Engineer, WSO2 Inc.
 Mobile: +94-72-642-8350 %2B94-71-554-8430

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




 --
 Software Engineer
 WSO2 Inc.; http://wso2.com
 http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 lean.enterprise.middleware

 mobile: *+94728671315 %2B94728671315*


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




 --
 Ashan Dhananjaya Kumara
 Trainee Software Engineer, WSO2 Inc.
 Inc: *WSO2 Inc. *
 Phone : +94715547461
 Blog : http://ashandhananjaya.blogspot.com/
 Twitter  : https://twitter.com/Dhananjaya92
 Say ello :https://ello.co/ashandk





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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Get synapse configuration of a Remote ESB server instance via ConfigServiceAdmin

2015-06-30 Thread Suhan Dharmasuriya
Hi,

ESB 4.8.1
I was trying to $subject using the admin service [2] assuming admin console
UI is not available.
There are two operations namely in [2],
1. getConfiguration
2. saveConfigurationToDisk

Using SOAP UI with basic authentication, I successfully managed to get the
configuration
from getConfiguration operation [3].

But when I use operation saveConfigurationToDisk, I'm getting the following
error [4].
What could be the reason?
Are above two methods accumulating synapse configuration in two different
ways?

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/synapse-config-admin/org.wso2.carbon.mediation.configadmin/src/main/java/org/wso2/carbon/mediation/configadmin/ConfigAdmin.java
[2] https://localhost:9443/services/ConfigServiceAdmin?wsdl
[3]
Request:
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://org.apache.synapse/xsd;
   soapenv:Header/
   soapenv:Body
  xsd:getConfiguration/
   /soapenv:Body
/soapenv:Envelope

Response:
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Body
  ns:getConfigurationResponse xmlns:ns=http://org.apache.synapse/xsd;
 ns:return![CDATA[?xml version=1.0 encoding=UTF-8?
definitions xmlns=http://ws.apache.org/ns/synapse;
   registry provider=org.wso2.carbon.mediation.registry.WSO2Registry
  parameter name=cachableDuration15000/parameter
   /registry
   proxy name=StockQuoteSecure
  transports=https http
  startOnLoad=true
  trace=disable
  target
 endpoint
address uri=
http://localhost:9000/services/SimpleStockQuoteService/
 /endpoint
 outSequence
send/
 /outSequence
  /target
   /proxy
   sequence name=fault
  log level=full
 property name=MESSAGE value=Executing default 'fault'
sequence/
 property name=ERROR_CODE
expression=get-property('ERROR_CODE')/
 property name=ERROR_MESSAGE
expression=get-property('ERROR_MESSAGE')/
  /log
  drop/
   /sequence
   sequence name=main
  in
 log level=full/
 filter source=get-property('To') regex=http://localhost:9000.
*
send/
 /filter
  /in
  out
 send/
  /out
  descriptionThe main sequence for the message mediation/description
   /sequence
/definitions]]/ns:return
  /ns:getConfigurationResponse
   /soapenv:Body
/soapenv:Envelope

[4]
HTTP/1.1 500 Internal Server Error
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 30 Jun 2015 08:45:20 GMT
Connection: close
Server: WSO2 Carbon Server

soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
   soapenv:Body
  soapenv:Fault
 faultcodesoapenv:Server/faultcode
 faultstringCould not locate the Synapse configuration file to
save changes/faultstring
 detail/
  /soapenv:Fault
   /soapenv:Body
/soapenv:Envelope

Thanks,
Suhan


-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Two different logout URLs for same SAML provider.

2015-06-11 Thread Suhan Dharmasuriya
Hi,

Using [1] we can configure two different login pages for two domains,
Say www.1stdomain.com and www.2nddomain.com.
This can be done by looking at the issuer request parameter.

How ever the logout url is the same for both domains (configured in the
SAML provider).

Even though we use relayState parameter [2] since SSO Agent [3] is taking
the value from the properties, we can't implement this dynamically.

For login URL
loginUrl = properties.getProperty(LoginUrl);

For logout URL
logoutUrl = properties.getProperty(SAML.LogoutUrl);

Is there any alternative approaches to achieve $subject?

What is the best out of these alternatives?

[1] https://docs.wso2.com/display/IS500/Customizing+Login+Pages
[2] https://docs.wso2.com/display/IS500/Customizing+the+SSO+Redirection+Page
[3]
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/identity/org.wso2.carbon.identity.sso.agent/src/main/java/org/wso2/carbon/identity/sso/agent/util/SSOAgentConfigs.java

Thanks,
Suhan


-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Two different logout URLs for same SAML provider.

2015-06-11 Thread Suhan Dharmasuriya
On Thu, Jun 11, 2015 at 2:54 PM, Suhan Dharmasuriya suh...@wso2.com wrote:

 Hi,

 Using [1] we can configure two different login pages for two domains,
 Say www.1stdomain.com and www.2nddomain.com.
 This can be done by looking at the issuer request parameter.

 How ever the logout url is the same for both domains (configured in the
 SAML provider).

 Even though we use relayState parameter [2] since SSO Agent [3] is taking
 the value from the properties, we can't implement this dynamically.

 For login URL
 loginUrl = properties.getProperty(LoginUrl);

 For logout URL
 logoutUrl = properties.getProperty(SAML.LogoutUrl);

 Is there any alternative approaches to achieve $subject?

 What is the best out of these alternatives?

 [1] https://docs.wso2.com/display/IS500/Customizing+Login+Pages
 [2]
 https://docs.wso2.com/display/IS500/Customizing+the+SSO+Redirection+Page
 [3]
 https://svn.wso2.org/repos/wso2/carbon/platform/trunk/components/identity/org.wso2.carbon.identity.sso.agent/src/main/java/org/wso2/carbon/identity/sso/agent/util/SSOAgentConfigs.java

 Thanks,
 Suhan


 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] Writing a custom user store manager for JIT Provisioning - without user passwords

2015-06-11 Thread Suhan Dharmasuriya
Hi Pushpalanka,

Thank you for the response.


On Thu, Jun 11, 2015 at 11:52 AM, Pushpalanka Jayawardhana la...@wso2.com
wrote:

 Hi Suhan,

 Since you are anyway customizing the user store manager, you can modify
 the addUser method functionality to accept an empty password and generate a
 random password within the method.

 Thanks,
 Pushpalanka.
 --
 Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
 Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
 Mobile: +94779716248
 Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
 lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


 On Thu, Jun 11, 2015 at 10:31 AM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 [image: Inline image 1]

 I will be using JIT provisioning such that the WSO2 IS will be connected
 to an external
 IdP.
 I want to perform actions more than simply inserting claims to the user
 store.
 Goal is to connect already existing user data which we already have in
 our system
 into user profiles.
 Therefore I want to extend the IS functionality by writing a custom user
 store manager.

 How ever we will not be given passwords for JIT provisioned users.

 When considering user store managers these are at the lowest level.
 As per the design, at this level IS is expecting a password value in this
 scenario.
 In SCIM protocol connector level when there is no password, IS generates
 a
 random password and pass to the user store manager level.

 protected String getPassword(MapClaimMapping, ListString
 attributeMap) {
 ListString claimValue =
 ProvisioningUtil.getClaimValues(attributeMap,
 IdentityProvisioningConstants.PASSWORD_CLAIM_URI,
 getUserStoreDomainName());

 if (claimValue != null  claimValue.size()  0 
 claimValue.get(0) != null) {
 return claimValue.get(0);
 }

 return UUID.randomUUID().toString();

 }

 Therefore in our custom user store manager when we try to add users
 with empty passwords we are getting an exception.

 How can we configure our custom user store to accept empty passwords?
 What is the best way to do this?

 Thanks,
 Suhan


 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/





-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Writing a custom user store manager for JIT Provisioning - without user passwords

2015-06-10 Thread Suhan Dharmasuriya
Hi,

[image: Inline image 1]

I will be using JIT provisioning such that the WSO2 IS will be connected to
an external
IdP.
I want to perform actions more than simply inserting claims to the user
store.
Goal is to connect already existing user data which we already have in our
system
into user profiles.
Therefore I want to extend the IS functionality by writing a custom user
store manager.

How ever we will not be given passwords for JIT provisioned users.

When considering user store managers these are at the lowest level.
As per the design, at this level IS is expecting a password value in this
scenario.
In SCIM protocol connector level when there is no password, IS generates a
random password and pass to the user store manager level.

protected String getPassword(MapClaimMapping, ListString attributeMap) {
ListString claimValue =
ProvisioningUtil.getClaimValues(attributeMap,
IdentityProvisioningConstants.PASSWORD_CLAIM_URI,
getUserStoreDomainName());

if (claimValue != null  claimValue.size()  0 
claimValue.get(0) != null) {
return claimValue.get(0);
}

return UUID.randomUUID().toString();

}

Therefore in our custom user store manager when we try to add users
with empty passwords we are getting an exception.

How can we configure our custom user store to accept empty passwords?
What is the best way to do this?

Thanks,
Suhan


-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Saneth Dharmakeerthi

2015-06-09 Thread Suhan Dharmasuriya
Congratulations Saneth !!!

On Tue, Jun 9, 2015 at 11:45 AM, Dharshana Warusavitharana 
dharsha...@wso2.com wrote:

 Congratulations Saneth

 On Tue, Jun 9, 2015 at 11:41 AM, Malith Munasinghe mali...@wso2.com
 wrote:

 Congratulations Saneth!!

 On Tue, Jun 9, 2015 at 11:38 AM, Madhuranga Bandara madhura...@wso2.com
 wrote:

 Congratulations Saneth !!!

 *Madhuranga Sampath Bandara*
 Software Engineer

 WSO2, Inc.;http://wso2.com/
 http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Fsa=Dsntz=1usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ
 lean.enterprise.middleware
 Mobile: +94722241065

 On Tue, Jun 9, 2015 at 11:31 AM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Congratulation...!!

 ___
 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




 --
 Malith Munasinghe | Software Engineer
 M: +94 (071) 9401122
 E: mali...@wso2.com
 W: http://wso2.com

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




 --

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

 lean . enterprise . middleware

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] SOAP data looses xml structure for simple elements with no sub elements

2015-06-03 Thread Suhan Dharmasuriya
Hi,

ESB 4.8.1
I have been testing the following 2 scenarios in a fresh ESB 4.8.1 pack.

As per my observations the header tag extracted is behaving in two
different ways in the following
two scenarios.

*Proxy*
proxy name=PayloadFactoryHeaderTest
  transports=http
  startOnLoad=true
  trace=disable
  target
 inSequence
loopback/
 /inSequence
 outSequence
log level=full/
payloadFactory media-type=xml
   format
  theData xmlns=http://some.namespace;
 theHeader$1/theHeader
 theBody$2/theBody
  /theData
   /format
   args
  arg evaluator=xml expression=$header/*/
  arg evaluator=xml expression=$body/*/
   /args
/payloadFactory
log level=full/
send/
 /outSequence
  /target
   /proxy

*scenario 1*
*SOAP request*
soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   soap:Header
  hd:inHeaderA xmlns:hd=http://some.namespace
InputHeaderValueA/hd:inHeaderA
  hd:inHeaderB xmlns:hd=http://some.namespace
InputHeaderValueB/hd:inHeaderB
   /soap:Header
   soap:Body
  input xmlns=http://some.namespace;
 customData1inputData1/customData1
 customData2inputData2/customData2
  /input
   /soap:Body
/soap:Envelope

*Response*
soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   soap:Header
  hd:inHeaderA xmlns:hd=http://some.namespace
InputHeaderValueA/hd:inHeaderA
  hd:inHeaderB xmlns:hd=http://some.namespace
InputHeaderValueB/hd:inHeaderB
   /soap:Header
   soap:Body
  theData xmlns=http://some.namespace;
 theHeader*InputHeaderValueAInputHeaderValueB*/theHeader
 theBody
input
   customData1inputData1/customData1
   customData2inputData2/customData2
/input
 /theBody
  /theData
   /soap:Body
/soap:Envelope

*scenario 2*
*SOAP request*
soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   soap:Header
  hd:inHeaderA xmlns:hd=http://some.namespace;
 subInputHeaderValueA/sub
  /hd:inHeaderA
  hd:inHeaderB xmlns:hd=http://some.namespace;
 subInputHeaderValueB/sub
  /hd:inHeaderB
   /soap:Header
   soap:Body
  input xmlns=http://some.namespace;
 customData1inputData1/customData1
 customData2inputData2/customData2
  /input
   /soap:Body
/soap:Envelope

*Response*
soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
   soap:Header
  hd:inHeaderA xmlns:hd=http://some.namespace;
 subInputHeaderValueA/sub
  /hd:inHeaderA
  hd:inHeaderB xmlns:hd=http://some.namespace;
 subInputHeaderValueB/sub
  /hd:inHeaderB
   /soap:Header
   soap:Body
  theData xmlns=http://some.namespace;
 theHeader
*hd:inHeaderA xmlns:hd=http://some.namespace
http://some.namespace*
*   subInputHeaderValueA/sub*
*/hd:inHeaderA*
*hd:inHeaderB xmlns:hd=http://some.namespace
http://some.namespace*
*   subInputHeaderValueB/sub*
*/hd:inHeaderB*
 /theHeader
 theBody
input
   customData1inputData1/customData1
   customData2inputData2/customData2
/input
 /theBody
  /theData
   /soap:Body
/soap:Envelope

Here, the header with sub elements is extracted successfully with tags
(scenario 2), whereas the header with a single element (without any sub
elements in scenario 1) has failed to extract the tags in the payload.

Shouldn't the behaviour of ESB be consistent in both the scenarios?

Thanks,
Suhan



-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] SOAP data looses xml structure for simple elements with no sub elements

2015-06-03 Thread Suhan Dharmasuriya
Hi Malaka,

Thank you for the response.
It is working for single header elements without sub elements.

Thanks,
Suhan


On Wed, Jun 3, 2015 at 5:23 PM, Malaka Silva mal...@wso2.com wrote:

 Hi Suhan,

 Try the following,

 ?xml version=1.0 encoding=UTF-8?
 proxy xmlns=http://ws.apache.org/ns/synapse;
name=PayloadFactoryHeaderTest
transports=https,http
statistics=disable
trace=disable
startOnLoad=true
target
   inSequence
  loopback/
   /inSequence
   outSequence
  log level=full/
  payloadFactory media-type=xml
 format
theData xmlns=http://some.namespace;
   theHeader$1/theHeader
   theBody$2/theBody
/theData
 /format
 args
arg evaluator=xml expression=$header/
arg evaluator=xml expression=$body/*/
 /args
  /payloadFactory
  enrich
 source xmlns:the=http://some.namespace;
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
 clone=true
 xpath=//the:theHeader/soap:Header/*/
 target xmlns:the=http://some.namespace;
 xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
 xpath=//the:theHeader/soap:Header/./
  /enrich
  log level=full/
  send/
   /outSequence
/target
description/
 /proxy

 On Wed, Jun 3, 2015 at 4:50 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 ESB 4.8.1
 I have been testing the following 2 scenarios in a fresh ESB 4.8.1 pack.

 As per my observations the header tag extracted is behaving in two
 different ways in the following
 two scenarios.

 *Proxy*
 proxy name=PayloadFactoryHeaderTest
   transports=http
   startOnLoad=true
   trace=disable
   target
  inSequence
 loopback/
  /inSequence
  outSequence
 log level=full/
 payloadFactory media-type=xml
format
   theData xmlns=http://some.namespace;
  theHeader$1/theHeader
  theBody$2/theBody
   /theData
/format
args
   arg evaluator=xml expression=$header/*/
   arg evaluator=xml expression=$body/*/
/args
 /payloadFactory
 log level=full/
 send/
  /outSequence
   /target
/proxy

 *scenario 1*
 *SOAP request*
 soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
soap:Header
   hd:inHeaderA xmlns:hd=http://some.namespace
 InputHeaderValueA/hd:inHeaderA
   hd:inHeaderB xmlns:hd=http://some.namespace
 InputHeaderValueB/hd:inHeaderB
/soap:Header
soap:Body
   input xmlns=http://some.namespace;
  customData1inputData1/customData1
  customData2inputData2/customData2
   /input
/soap:Body
 /soap:Envelope

 *Response*
 soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
soap:Header
   hd:inHeaderA xmlns:hd=http://some.namespace
 InputHeaderValueA/hd:inHeaderA
   hd:inHeaderB xmlns:hd=http://some.namespace
 InputHeaderValueB/hd:inHeaderB
/soap:Header
soap:Body
   theData xmlns=http://some.namespace;
  theHeader*InputHeaderValueAInputHeaderValueB*/theHeader
  theBody
 input
customData1inputData1/customData1
customData2inputData2/customData2
 /input
  /theBody
   /theData
/soap:Body
 /soap:Envelope

 *scenario 2*
 *SOAP request*
 soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
soap:Header
   hd:inHeaderA xmlns:hd=http://some.namespace;
  subInputHeaderValueA/sub
   /hd:inHeaderA
   hd:inHeaderB xmlns:hd=http://some.namespace;
  subInputHeaderValueB/sub
   /hd:inHeaderB
/soap:Header
soap:Body
   input xmlns=http://some.namespace;
  customData1inputData1/customData1
  customData2inputData2/customData2
   /input
/soap:Body
 /soap:Envelope

 *Response*
 soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
soap:Header
   hd:inHeaderA xmlns:hd=http://some.namespace;
  subInputHeaderValueA/sub
   /hd:inHeaderA
   hd:inHeaderB xmlns:hd=http://some.namespace;
  subInputHeaderValueB/sub
   /hd:inHeaderB
/soap:Header
soap:Body
   theData xmlns=http://some.namespace;
  theHeader
 *hd:inHeaderA xmlns:hd=http://some.namespace
 http://some.namespace*
 *   subInputHeaderValueA/sub*
 */hd:inHeaderA*
 *hd:inHeaderB xmlns:hd=http://some.namespace
 http://some.namespace*
 *   subInputHeaderValueB/sub*
 */hd:inHeaderB*
  /theHeader

Re: [Dev] [ESB] Callbacks recycling analysis for standard transports

2015-05-25 Thread Suhan Dharmasuriya
Hi Isuru,

Thanks and Noted...

Thanks,
Suhan

On Mon, May 25, 2015 at 2:27 PM, Isuru Udana isu...@wso2.com wrote:

 Hi Suhan,

 You can enabled debug logs. In debug log statements are getting printed
 for callback addition and removal.

 Thanks.

 On Mon, May 25, 2015 at 2:23 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 How can I analyze whether Callbacks are getting recycled or not for
 standard transports
 (say HTTP) in ESB 4.8.1?
 What is the best way?

 Thanks,
 Suhan

 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/




 --
 *Isuru Udana*
 Associate Technical Lead
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] Callbacks recycling analysis for standard transports

2015-05-25 Thread Suhan Dharmasuriya
Hi,

How can I analyze whether Callbacks are getting recycled or not for
standard transports
(say HTTP) in ESB 4.8.1?
What is the best way?

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Reading 'transport.vfs.FileURI' from governance registry

2015-05-12 Thread Suhan Dharmasuriya
Hi Malaka,

Thanks and noted.

Thanks,
Suhan


On Tue, May 12, 2015 at 11:56 AM, Malaka Silva mal...@wso2.com wrote:

 This is only support in esb 4.9.0 inbound endpoints.

 eg:-
 inboundEndpoint xmlns=http://ws.apache.org/ns/synapse;  name=wso2File
  sequence=request  onError=fault  protocol=file
  suspend=false
parameters
   parameter name=interval1000/parameter
   parameter name=transport.vfs.ActionAfterErrorsNONE/parameter
   parameter name=transport.vfs.LockReleaseSameNodefalse/parameter
   parameter name=transport.vfs.AutoLockReleasefalse/parameter
   parameter name=transport.vfs.ActionAfterFailureNONE/parameter
   parameter name=transport.vfs.ActionAfterProcessNONE/parameter
   parameter name=sequentialfalse/parameter
   parameter name=transport.vfs.FileURI
 *key=conf:/repository/esb/esb-configurations/test*/
   parameter name=transport.vfs.DistributedLockfalse/parameter
   parameter name=transport.vfs.Lockingenable/parameter
/parameters
 /inboundEndpoint

 On Tue, May 12, 2015 at 11:25 AM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Isuru,

 Thanks and noted.

 Thanks,
 Suhan

 On Tue, May 12, 2015 at 11:13 AM, Isuru Udana isu...@wso2.com wrote:

 Hi Suhan,

 Fetching from registry is not supported for service parameters.

 Thanks.




 On Tue, May 12, 2015 at 11:00 AM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 I'm referring [1] and trying to customise the proxy [2] by transferring
 the endpoint and FileURI reading from registry.

 I have tested this for the endpoint successfully.

 Can you please let me know whether the 'transport.vfs.FileURI' can be
 read from governance registry?
 e.g.: *parameter name=transport.vfs.FileURI*
 gov:/elearning/filetransfers/v1/endpoints/articleDownloadInputEP
 */parameter*

 [1]
 http://suhan-opensource.blogspot.com/2015/03/using-file-system-as-transport-medium.html
 [2]
proxy name=StockQuoteProxy
   transports=vfs
   startOnLoad=true
   trace=disable
   description/
   target
  endpoint
 key=gov:/elearning/filetransfers/v1/endpoints/StockQuoteEPNew/
  outSequence
 property name=transport.vfs.ReplyFileName

 expression=fn:concat(fn:substring-after(get-property('MessageID'),
 'urn:uuid:'), '.xml')
   scope=transport/
 property name=OUT_ONLY value=true/
 send
endpoint
   address
 uri=vfs:file:///WSO2/XXX-NN/articledownload/out/
/endpoint
 /send
  /outSequence
   /target
   publishWSDL
 uri=file:repository/samples/resources/proxy/sample_proxy_1.wsdl/
   parameter
 name=transport.vfs.ActionAfterProcessMOVE/parameter
   parameter name=transport.PollInterval15/parameter
   parameter
 name=transport.vfs.MoveAfterProcessfile:///WSO2/XXX-NN/articledownload/original/parameter
 *  parameter
 name=transport.vfs.FileURIfile:///WSO2/XXX-NN/articledownload/in/parameter*
   parameter
 name=transport.vfs.MoveAfterFailurefile:///WSO2/XXX-NN/articledownload/error/parameter
   parameter
 name=transport.vfs.FileNamePattern.*\.xml/parameter
   parameter name=transport.vfs.ContentTypetext/xml/parameter
   parameter
 name=transport.vfs.ActionAfterFailureMOVE/parameter
/proxy

 Thanks,
 Suhan

 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/




 --
 *Isuru Udana*
 Associate Technical Lead
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/




 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/




 --

 Best Regards,

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

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

 Save a tree -Conserve nature  Save the world for your future. Print this
 email only if it is absolutely necessary.




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] Reading 'transport.vfs.FileURI' from governance registry

2015-05-11 Thread Suhan Dharmasuriya
Hi,

I'm referring [1] and trying to customise the proxy [2] by transferring the
endpoint and FileURI reading from registry.

I have tested this for the endpoint successfully.

Can you please let me know whether the 'transport.vfs.FileURI' can be read
from governance registry?
e.g.: *parameter name=transport.vfs.FileURI*
gov:/elearning/filetransfers/v1/endpoints/articleDownloadInputEP
*/parameter*

[1]
http://suhan-opensource.blogspot.com/2015/03/using-file-system-as-transport-medium.html
[2]
   proxy name=StockQuoteProxy
  transports=vfs
  startOnLoad=true
  trace=disable
  description/
  target
 endpoint
key=gov:/elearning/filetransfers/v1/endpoints/StockQuoteEPNew/
 outSequence
property name=transport.vfs.ReplyFileName

expression=fn:concat(fn:substring-after(get-property('MessageID'),
'urn:uuid:'), '.xml')
  scope=transport/
property name=OUT_ONLY value=true/
send
   endpoint
  address
uri=vfs:file:///WSO2/XXX-NN/articledownload/out/
   /endpoint
/send
 /outSequence
  /target
  publishWSDL
uri=file:repository/samples/resources/proxy/sample_proxy_1.wsdl/
  parameter name=transport.vfs.ActionAfterProcessMOVE/parameter
  parameter name=transport.PollInterval15/parameter
  parameter
name=transport.vfs.MoveAfterProcessfile:///WSO2/XXX-NN/articledownload/original/parameter
*  parameter
name=transport.vfs.FileURIfile:///WSO2/XXX-NN/articledownload/in/parameter*
  parameter
name=transport.vfs.MoveAfterFailurefile:///WSO2/XXX-NN/articledownload/error/parameter
  parameter name=transport.vfs.FileNamePattern.*\.xml/parameter
  parameter name=transport.vfs.ContentTypetext/xml/parameter
  parameter name=transport.vfs.ActionAfterFailureMOVE/parameter
   /proxy

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Reading 'transport.vfs.FileURI' from governance registry

2015-05-11 Thread Suhan Dharmasuriya
Hi Isuru,

Thanks and noted.

Thanks,
Suhan

On Tue, May 12, 2015 at 11:13 AM, Isuru Udana isu...@wso2.com wrote:

 Hi Suhan,

 Fetching from registry is not supported for service parameters.

 Thanks.




 On Tue, May 12, 2015 at 11:00 AM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 I'm referring [1] and trying to customise the proxy [2] by transferring
 the endpoint and FileURI reading from registry.

 I have tested this for the endpoint successfully.

 Can you please let me know whether the 'transport.vfs.FileURI' can be
 read from governance registry?
 e.g.: *parameter name=transport.vfs.FileURI*
 gov:/elearning/filetransfers/v1/endpoints/articleDownloadInputEP
 */parameter*

 [1]
 http://suhan-opensource.blogspot.com/2015/03/using-file-system-as-transport-medium.html
 [2]
proxy name=StockQuoteProxy
   transports=vfs
   startOnLoad=true
   trace=disable
   description/
   target
  endpoint
 key=gov:/elearning/filetransfers/v1/endpoints/StockQuoteEPNew/
  outSequence
 property name=transport.vfs.ReplyFileName

 expression=fn:concat(fn:substring-after(get-property('MessageID'),
 'urn:uuid:'), '.xml')
   scope=transport/
 property name=OUT_ONLY value=true/
 send
endpoint
   address
 uri=vfs:file:///WSO2/XXX-NN/articledownload/out/
/endpoint
 /send
  /outSequence
   /target
   publishWSDL
 uri=file:repository/samples/resources/proxy/sample_proxy_1.wsdl/
   parameter name=transport.vfs.ActionAfterProcessMOVE/parameter
   parameter name=transport.PollInterval15/parameter
   parameter
 name=transport.vfs.MoveAfterProcessfile:///WSO2/XXX-NN/articledownload/original/parameter
 *  parameter
 name=transport.vfs.FileURIfile:///WSO2/XXX-NN/articledownload/in/parameter*
   parameter
 name=transport.vfs.MoveAfterFailurefile:///WSO2/XXX-NN/articledownload/error/parameter
   parameter name=transport.vfs.FileNamePattern.*\.xml/parameter
   parameter name=transport.vfs.ContentTypetext/xml/parameter
   parameter name=transport.vfs.ActionAfterFailureMOVE/parameter
/proxy

 Thanks,
 Suhan

 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/




 --
 *Isuru Udana*
 Associate Technical Lead
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB+MB] JMSSender Did not receive a JMS response

2015-04-29 Thread Suhan Dharmasuriya
(AxisEngine.java:442)
at
org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.send(DynamicAxisOperation.java:185)
at
org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.executeImpl(DynamicAxisOperation.java:167)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
at
org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:482)
at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:59)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:309)
at
org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:333)
at
org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:59)
at
org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:97)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:268)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:488)
at
org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[2015-04-23 23:25:48,619]  WARN - EndpointContext Endpoint :
AnonymousEndpoint will be marked SUSPENDED as it failed
[2015-04-23 23:25:48,620]  WARN - EndpointContext Suspending endpoint :
AnonymousEndpoint - last suspend duration was : 3ms and current suspend
duration is : 3ms - Next retry after : Thu Apr 23 23:26:18 IST 2015
[2015-04-23 23:25:48,620]  INFO - LogMediator To:
http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: ,
MessageID: urn:uuid:d4ed03e0-0ab2-4c4f-ac82-b64b227d73f5, Direction:
response, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 0,
ERROR_MESSAGE = Unexpected error during sending message out, Envelope:
?xml version=1.0 encoding=utf-8?soapenv:Envelope xmlns:soapenv=
http://schemas.xmlsoap.org/soap/envelope/;soapenv:Bodyurn:Response
xmlns:urn=http://esb.wso2.org
urn:elementAPQR/urn:elementAurn:elementBXYZ/urn:elementB/urn:Response/soapenv:Body/soapenv:Envelope

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] Rule Mediator - Accessing rule set via Registry Lookup

2015-04-28 Thread Suhan Dharmasuriya
: urn:mediate, MessageID:
ID:13a1befb-c725-3f04-9c92-a05a5d7c5b5d, Direction: request, Envelope:
?xml version=1.0 encoding=utf-8?soapenv:Envelope xmlns:soapenv=
http://schemas.xmlsoap.org/soap/envelope/;soapenv:Bodym:getQuote
xmlns:m=http://services.samples;
m:request
m:symbolIBM/m:symbol
/m:request
/m:getQuote/soapenv:Body/soapenv:Envelope
[2015-04-29 10:46:31,908]  INFO - LogMediator *** Message Payload
 = IBM
[2015-04-29 10:46:31,912]  WARN - SwitchCase Provided character sequence
for switch case condition is 'null'. Switch case will not be executed.
[2015-04-29 10:46:31,912]  WARN - SwitchCase Provided character sequence
for switch case condition is 'null'. Switch case will not be executed.

[4]  messageRoutingRules.xml file content
package SimpleRoutingRules;

rule Invoke IBM no-loop true
when
symbol: String() eval( symbol.equals(IBM) )
then

 update(drools.getWorkingMemory().getFactHandle(symbol),javaVendorEndPoint);
end

rule Invoke SUN no-loop true
when
symbol: String() eval( symbol.equals(SUN) )
then

 update(drools.getWorkingMemory().getFactHandle(symbol),javaVendorEndPoint);
end

rule Invoke MFST no-loop true
when
symbol: String() eval( symbol.equals(MFST) )
then

 update(drools.getWorkingMemory().getFactHandle(symbol),otherVendorEndPoint);
end

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB] API The endpoint reference (EPR) for the Operation not found, WSA Action = null

2015-04-16 Thread Suhan Dharmasuriya
. If
this EPR was previously reachable, please contact the server
administrator./faultstring[\r][\n]
[2015-04-16 12:47:21,481] DEBUG - wire  0[\r][\n]
[2015-04-16 12:47:21,481] DEBUG - wire  [\r][\n]



Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DSS/MySQL] Retrieve data from a MySQL table with or without stored procedure

2015-04-05 Thread Suhan Dharmasuriya
On Sun, Apr 5, 2015 at 8:13 PM, Suhan Dharmasuriya suh...@wso2.com wrote:

 Hi,

 I'm using WSO2 DSS 3.2.1 with local MySQL DB.

 Please find the data service XML configuration below[1].

 There are two ways to retrieve data from a mysql database table as I have
 tested.

 1. Using a stored procedure created as follows in MySQL DB.
 Here the query logic is inside MySQL DB as stored procedures.
 CREATE PROCEDURE GetAllEmployees() SELECT FirstName , LastName , Team FROM
 Employee;
 Refer Query getAllEmployeesQuery in below configuration[1].

 2. Directly using the select statement inside data service configuration.
 Here the query logic is embedded inside the data service configuration.
 Refer Query getAllEmployeesSQLQuery in below configuration[1].

 What is the recommended way/best practice to retrieve data from the above
 given two alternatives?

 Or is there a better third alternative?

 [1]
 data xmlns:svns=http://org.wso2.securevault/configuration;
 name=SampleDataSource serviceNamespace=www.wso2.org/dss
descriptiontest with or without stored procedure/description
config id=dss_sampleDB
   property name=driverClassNamecom.mysql.jdbc.Driver/property
   property name=urljdbc:mysql://127.0.0.1:3306/dss_sample
 /property
   property name=usernameroot/property
   property name=password svns:secretAlias=yourMySQLDBPassword/
/config
query id=*getAllEmployeesQuery* useConfig=dss_sampleDB
   sqlcall GetAllEmployees;/sql
   result element=Employees rowName=Employee
  element column=FirstName name=FirstNameValue
 xsdType=string/
  element column=LastName name=LastNameValue xsdType=string/
  element column=Team name=TeamValue xsdType=string/
   /result
/query
query id=*getAllEmployeesSQLQuery* useConfig=dss_sampleDB
   sqlSELECT FirstName , LastName , Team FROM Employee;/sql
   result element=Employees rowName=Employee
  element column=FirstName name=FirstNameValue
 xsdType=string/
  element column=LastName name=LastNameValue xsdType=string/
  element column=Team name=TeamValue xsdType=string/
   /result
/query
operation name=getAllEmployees
   descriptionusing a stored procedure/description
   call-query href=getAllEmployeesQuery/
/operation
operation name=getAllEmployeesSQL
   descriptionwithout using a stored procedure/description
   call-query href=getAllEmployeesSQLQuery/
/operation
 /data

 Thanks,
 Suhan

 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DSS/MySQL] Retrieve data from a MySQL table with or without stored procedure

2015-04-05 Thread Suhan Dharmasuriya
Thanks Sajith for sharing.

Thanks,
Suhan

On Mon, Apr 6, 2015 at 11:11 AM, Sajith Kariyawasam saj...@wso2.com wrote:

 Hi Suhan,

 IMO, whether to use stored procedure or not depends on how complex the
 queries are.

 For eg, to get a result if you have to do multiple database calls (a
 complex query), better you create an SP in the database and expose, so that
 from the service layer
 you can avoid multiple database calls. For simple searches, better to use
 direct SQL than SPs because if you are to create more SPs for simple
 searches, it would not be manageable.

 SPs are database specific so it would not be easily port an SP written in
 MySQL to Oracle, but direct SQLs are portable provided that those are
 written with ANSI complaint way.


 Thanks,
 Sajith

 On Mon, Apr 6, 2015 at 9:43 AM, Suhan Dharmasuriya suh...@wso2.com
 wrote:



 On Sun, Apr 5, 2015 at 8:13 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 I'm using WSO2 DSS 3.2.1 with local MySQL DB.

 Please find the data service XML configuration below[1].

 There are two ways to retrieve data from a mysql database table as I
 have tested.

 1. Using a stored procedure created as follows in MySQL DB.
 Here the query logic is inside MySQL DB as stored procedures.
 CREATE PROCEDURE GetAllEmployees() SELECT FirstName , LastName , Team
 FROM Employee;
 Refer Query getAllEmployeesQuery in below configuration[1].

 2. Directly using the select statement inside data service configuration.
 Here the query logic is embedded inside the data service configuration.
 Refer Query getAllEmployeesSQLQuery in below configuration[1].

 What is the recommended way/best practice to retrieve data from the
 above given two alternatives?

 Or is there a better third alternative?

 [1]
 data xmlns:svns=http://org.wso2.securevault/configuration;
 name=SampleDataSource serviceNamespace=www.wso2.org/dss
descriptiontest with or without stored procedure/description
config id=dss_sampleDB
   property name=driverClassNamecom.mysql.jdbc.Driver/property
   property name=urljdbc:mysql://127.0.0.1:3306/dss_sample
 /property
   property name=usernameroot/property
   property name=password svns:secretAlias=yourMySQLDBPassword/
/config
query id=*getAllEmployeesQuery* useConfig=dss_sampleDB
   sqlcall GetAllEmployees;/sql
   result element=Employees rowName=Employee
  element column=FirstName name=FirstNameValue
 xsdType=string/
  element column=LastName name=LastNameValue
 xsdType=string/
  element column=Team name=TeamValue xsdType=string/
   /result
/query
query id=*getAllEmployeesSQLQuery* useConfig=dss_sampleDB
   sqlSELECT FirstName , LastName , Team FROM Employee;/sql
   result element=Employees rowName=Employee
  element column=FirstName name=FirstNameValue
 xsdType=string/
  element column=LastName name=LastNameValue
 xsdType=string/
  element column=Team name=TeamValue xsdType=string/
   /result
/query
operation name=getAllEmployees
   descriptionusing a stored procedure/description
   call-query href=getAllEmployeesQuery/
/operation
operation name=getAllEmployeesSQL
   descriptionwithout using a stored procedure/description
   call-query href=getAllEmployeesSQLQuery/
/operation
 /data

 Thanks,
 Suhan

 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/




 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/

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





-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DSS/MySQL] Retrieve data from a MySQL table with or without stored procedure

2015-04-05 Thread Suhan Dharmasuriya
Hi,

I'm using WSO2 DSS 3.2.1 with local MySQL DB.

Please find the data service XML configuration below[1].

There are two ways to retrieve data from a mysql database table as I have
tested.

1. Using a stored procedure created as follows in MySQL DB.
Here the query logic is inside MySQL DB as stored procedures.
CREATE PROCEDURE GetAllEmployees() SELECT FirstName , LastName , Team FROM
Employee;
Refer Query getAllEmployeesQuery in below configuration[1].

2. Directly using the select statement inside data service configuration.
Here the query logic is embedded inside the data service configuration.
Refer Query getAllEmployeesSQLQuery in below configuration[1].

What is the recommended way/best practice to retrieve data from the above
given two alternatives?

Or is there a better third alternative?

[1]
data xmlns:svns=http://org.wso2.securevault/configuration;
name=SampleDataSource serviceNamespace=www.wso2.org/dss
   descriptiontest with or without stored procedure/description
   config id=dss_sampleDB
  property name=driverClassNamecom.mysql.jdbc.Driver/property
  property name=urljdbc:mysql://127.0.0.1:3306/dss_sample/property
  property name=usernameroot/property
  property name=password svns:secretAlias=yourMySQLDBPassword/
   /config
   query id=*getAllEmployeesQuery* useConfig=dss_sampleDB
  sqlcall GetAllEmployees;/sql
  result element=Employees rowName=Employee
 element column=FirstName name=FirstNameValue
xsdType=string/
 element column=LastName name=LastNameValue xsdType=string/
 element column=Team name=TeamValue xsdType=string/
  /result
   /query
   query id=*getAllEmployeesSQLQuery* useConfig=dss_sampleDB
  sqlSELECT FirstName , LastName , Team FROM Employee;/sql
  result element=Employees rowName=Employee
 element column=FirstName name=FirstNameValue
xsdType=string/
 element column=LastName name=LastNameValue xsdType=string/
 element column=Team name=TeamValue xsdType=string/
  /result
   /query
   operation name=getAllEmployees
  descriptionusing a stored procedure/description
  call-query href=getAllEmployeesQuery/
   /operation
   operation name=getAllEmployeesSQL
  descriptionwithout using a stored procedure/description
  call-query href=getAllEmployeesSQLQuery/
   /operation
/data

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Automation] Please merge pull request #46 for carbon-platform-integration

2015-03-23 Thread Suhan Dharmasuriya
Hi,

Please merge [1] to carbon-platform-integration.

[1] https://github.com/wso2/carbon-platform-integration/pull/46
[2] subject: Deployment Automation Progress Update
[3] subject: GIT repo for deployment automation

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 ESB - XSLT Transformation

2015-03-10 Thread Suhan Dharmasuriya
(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at
org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:166)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:403)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.xml.transform.TransformerConfigurationException: Failed to
compile stylesheet. 1 error detected.
at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:220)
at
net.sf.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:132)
at
org.apache.synapse.mediators.transform.XSLTMediator.createTemplate(XSLTMediator.java:383)
... 13 more
[2015-03-10 13:04:18,326] DEBUG - wire  HTTP/1.1 202 Accepted[\r][\n]
[2015-03-10 13:04:18,326] DEBUG - wire  Date: Tue, 10 Mar 2015 07:34:18
GMT[\r][\n]
[2015-03-10 13:04:18,327] DEBUG - wire  Server:
WSO2-PassThrough-HTTP[\r][\n]
[2015-03-10 13:04:18,327] DEBUG - wire  Transfer-Encoding:
chunked[\r][\n]
[2015-03-10 13:04:18,327] DEBUG - wire  Connection: Keep-Alive[\r][\n]
[2015-03-10 13:04:18,327] DEBUG - wire  [\r][\n]
[2015-03-10 13:04:18,327] DEBUG - wire  0[\r][\n]
[2015-03-10 13:04:18,328] DEBUG - wire  [\r][\n]

Thanks,
Suhan

On Tue, Mar 10, 2015 at 12:47 PM, Milan Perera mi...@wso2.com wrote:

 Hi Suhan, Dilan,

 SOAP request of example 3 in the documentation [1]
 https://docs.wso2.com/display/ESB481/XSLT+Mediator#XSLTMediator-Example3-AddingXSLTimportsasresources
 (which Suhan followed) is out of order. Since this request contains nothing
 in its header, it can be removed. So it has to be like this

 soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/
 
 soapenv:Body
 people
 person
 firstnameIsuru/firstname
 lastnameUdana/lastname
 genderMale/gender
 age26/age
 countrySriLanka/country
 /person
 person
 firstnameIshan/firstname
 lastnameJayawardena/lastname
 genderMale/gender
 age26/age
 countrySriLanka/country
 /person
 /people
 /soapenv:Body
 /soapenv:Envelope

 [1]
 https://docs.wso2.com/display/ESB481/XSLT+Mediator#XSLTMediator-Example3-AddingXSLTimportsasresources

 On Tue, Mar 10, 2015 at 11:59 AM, Dilan Udara Ariyaratne dil...@wso2.com
 wrote:

 Hi Suhan,

 It seems that your SOAP message is out of order. Message body should
 basically come outside the header element as follows.






 *soapenv:Envelope   soapenv:Header   /soapenv:Header   soapenv:Body   
 /soapenv:Body/soapenv:Envelope*

 Can you double check and verify?

 Regards,
 Dilan.



 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Mar 10, 2015 at 11:52 AM, Dilan Udara Ariyaratne dil...@wso2.com
  wrote:

 Hi Suhan,

 Can you check the same flow with having the SOAP Message in following
 order?

 soapenv:Envelope
soapenv:Header
   /soapenv:Header
   soapenv:Body
   /soapenv:Body
 /soapenv:Envelope





 *Dilan U. Ariyaratne*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 Mobile: +94775149066
 lean . enterprise . middleware

 On Tue, Mar 10, 2015 at 10:09 AM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 I'm following the documentation [1] with WSO2 ESB 4.8.0.
 I have enabled the wire logs and response attached herewith [2].

 My XSLT files are as follows.
 I have uploaded them to /_system/config registry (conf:/).

 *xslt1.xslt*

 xsl:stylesheet version=1.0 xmlns:xsl=
 http://www.w3.org/1999/XSL/Transform;
 xsl:template match=//people/person name=FILL_PPL
 client
 firstname
 xsl:value-of select=firstname
 /xsl:value-of/firstname
 lastname
 xsl:value-of select=lastname
 /xsl:value-of/lastname
 age
 xsl:value-of select=age
 /xsl:value-of/age
 country
 xsl:value-of select=country
 /xsl:value-of/country
 /client
 /xsl:template
 /xsl:stylesheet

 *xslt2.xslt*

 xsl:stylesheet version=1.0 xmlns:xsl=
 http://www.w3.org/1999/XSL/Transform;
 xsl:include href=xslt1.xslt
 xsl:template match=/
 clients
 xsl:for-each select=//people/person
 xsl:call-template name=FILL_PPL
 /xsl:call-template/xsl:for-each
 /clients
 /xsl:template

Re: [Dev] WSO2 Committers += Irham Iqbal

2015-03-10 Thread Suhan Dharmasuriya
Congratulations Irham!!!

On Tue, Mar 10, 2015 at 1:59 PM, Malith Munasinghe mali...@wso2.com wrote:

 Congratulation Irham!!

 On Tue, Mar 10, 2015 at 1:53 PM, Milan Perera mi...@wso2.com wrote:

 Congratz Irham..!

 On Tue, Mar 10, 2015 at 1:45 PM, Tharik Kanaka tha...@wso2.com wrote:

 congratulations Irham

 On Tue, Mar 10, 2015 at 1:40 PM, Harsha Kumara hars...@wso2.com wrote:

 Congratulation Irham.

 On Tue, Mar 10, 2015 at 1:38 PM, Pirinthapan Mahendran 
 pirintha...@wso2.com wrote:

 Congratulation Irham.



 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.

 On Tue, Mar 10, 2015 at 1:35 PM, Jagath Sisirakumara Ariyarathne 
 jaga...@wso2.com wrote:

 Congratulations Irham

 On Tue, Mar 10, 2015 at 1:29 PM, Dimuthu De Lanerolle 
 dimut...@wso2.com wrote:

 Congratz Irham !!!

 On Tue, Mar 10, 2015 at 1:27 PM, Saneth Dharmakeerthi 
 sane...@wso2.com wrote:

 Congratulations Irham...

 Thanks and Best Regards,

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

 On Tue, Mar 10, 2015 at 1:23 PM, Malintha Adikari 
 malin...@wso2.com wrote:

 Congratulations Irham!

 On Tue, Mar 10, 2015 at 7:51 AM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi all,

 It's my pleasure to welcome Irham Iqbal as a WSO2 Committer.

 Irham, welcome aboard and keep up the good work!

 Thanks,
 Krishantha.

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




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



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




 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email :
 dimut...@wso2.com


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




 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob  : +94 77 386 7048


 ___
 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




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

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




 --

 *Tharik Kanaka* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: tha...@wso2.com | Web: www.wso2.com

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




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera

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




 --
 Malith Munasinghe | Software Engineer
 M: +94 (071) 9401122
 E: mali...@wso2.com
 W: http://wso2.com

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 ESB - XSLT Transformation

2015-03-09 Thread Suhan Dharmasuriya
 XPath : s11:Body/child::*[position()=1] |
s12:Body/child::*[position()=1] reason : null
java.lang.NullPointerException
at
org.apache.synapse.util.xpath.SourceXPathSupport.selectOMNode(SourceXPathSupport.java:87)
at
org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:211)
at
org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:191)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
at
org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:166)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:403)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[2015-03-10 10:00:41,548] ERROR - NativeWorkerPool Uncaught exception
java.lang.NullPointerException
at
org.apache.synapse.transport.passthru.util.PassThroughTransportUtils.determineHttpStatusCode(PassThroughTransportUtils.java:170)
at
org.apache.synapse.transport.passthru.util.SourceResponseFactory.create(SourceResponseFactory.java:46)
at
org.apache.synapse.transport.passthru.ServerWorker.sendAck(ServerWorker.java:288)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:192)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

[3]
[2015-03-10 10:01:41,644]  WARN - SourceHandler Connection time out after
request is read: http-incoming-1

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Automation] Please merge pull request #45 for carbon-platform-integration

2015-03-03 Thread Suhan Dharmasuriya
Hi,

Please merge [1] for [2], [3].

[1] https://github.com/wso2/carbon-platform-integration/pull/45
[2] subject: Deployment Automation Progress Update
[3] subject: GIT repo for deployment automation

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Enable streaming in service and operational level - AS 5.1.0 not working

2015-02-19 Thread Suhan Dharmasuriya
Hi,

Since addEmployee is not having a response hence the HTTP 500 response with
a fault message.
Streaming works only for data services which has a result in return.

By following [1] I was able to reproduce HTTP 200 response with a soap
fault for employeesByNumber operation.
Due to the default streaming behaviour of data services requests, which has
a result
will respond with HTTP 200 and a fault message.

When creating a data service/using existing sample data service, the
streaming has been turned ON by default.

Due to this HTTP 200 + soap response, ESB 4.8.0 is unable to hit the fault
sequence in an in sequence of a proxy configuration.
Using FORCE_ERROR_ON_SOAP_FAULT property was ineffective even after the fix
applied [4].

As a workaround we can configure setup to hit the fault sequence with HTTP
500 response + fault message.

As per [1] to get an HTTP 500 response you have to disable this streaming
behaviour in both service level and operation level.

Here is how to do it.

First go to Home  Manage  Services  List
Select the data service to edit.

Now we have to disable streaming at service+operations level.

Edit Data Service (XML Edit)
i. Include disableStreaming=true property to the data element [2],
which will disable streaming at service level.
ii. Include disableStreaming=true property to the operation being
used/other operations planning to use [2],
which will disable streaming at operation level.
iii. Save/Update the configuration.

This disableStreaming=true property is defined to retain backward
compatibility
since from the beginning default streaming was always enabled and this
property was introduced later [3].

We can perform the above said configuration from UI.

I have tested this scenario by AS 5.1.0 DSS samples and ESB 4.8.0 +
patch0315 and
was able to recreate the scenario and successfully test the workaround
solution.

[1]
https://docs.wso2.com/display/DSS301/FAQ#FAQ-WhyisHTTPstatuscode200OKreturnedfordataservicerequests
?
[2] Attachment: RDBMSSample.dbs
[3]
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-DSS-disableStreaming-td96022.html
[4] https://wso2.org/jira/browse/ESBJAVA-3386

Thanks,
Suhan

On Wed, Feb 18, 2015 at 5:54 PM, Suhan Dharmasuriya suh...@wso2.com wrote:

 Hi,

 I have deployed data services samples on AS 5.1.0 as per [1].
 Even though documentation article [1] is for AS 5.2.0, I found data
 services samples in
 AS-5.1.0 HOME/samples/dataServiceSamples location and I deployed the
 said samples.

 In my scenario I'm trying to get a soap fault from a particular data
 service (which is in AS 5.1.0)
 and feed it to the in sequence of a proxy which is in ESB 4.8.0.
 I have selected the samples/RDBMSSample sample's addEmployee operation for
 my testing.

 By using FORCE_ERROR_ON_SOAP_FAULT property as per [2], I was able to hit
 the fault
 sequence coming from data service at AS 5.1.0.
 To use this property successfully I have to use this fix in issue [3] also.

 Here the response I got was [8] HTTP 500 with fault sequence which I
 expected.

 Now I have to get the HTTP 200 with a fault sequence as [5] and to
 test the behaviour of ESB 4.8.0's fault sequence capturing capability with
 FORCE_ERROR_ON_SOAP_FAULT property with HTTP 200 response [5].

 I have tried using [6], [4] disableStreaming=false (also tried to enable
 streaming tick box from UI) at both service and operation level and the
 result was the
 same (HTTP 500) response.
 Regardless of true/false value for the field I'm getting HTTP 500 with
 soap fault.

 My /samples/dataServiceSamples/dbs/rdbms/RDBMSSample.dbs file is attached
 herewith [7].

 Am I missing any configuration?

 [1] https://docs.wso2.com/display/AS520/Data+Services+Samples
 [2] https://docs.wso2.com/display/ESB481/Generic+Properties
 [3] https://wso2.org/jira/browse/ESBJAVA-3386
 [4]
 https://docs.wso2.com/display/DSS310/Creating+Using+Various+Data+Sources#CreatingUsingVariousDataSources-Enablestreaming
 [5]
 https://docs.wso2.com/display/DSS301/FAQ#FAQ-WhyisHTTPstatuscode200OKreturnedfordataservicerequests
 ?
 [6]
 http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-DSS-disableStreaming-td96022.html
 [7] Attachment: [RDBMSSample.dbs]
 [8]
 [2015-02-18 17:21:03,086] DEBUG - wire  HTTP/1.1 500 Internal Server
 Error[\r][\n]
 [2015-02-18 17:21:03,087] DEBUG - wire  Set-Cookie:
 JSESSIONID=0237C1E4DE9BF80352E1CB6C63D9B01B; Path=/; HttpOnly[\r][\n]
 [2015-02-18 17:21:03,088] DEBUG - wire  Content-Type:
 text/xml;charset=UTF-8[\r][\n]
 [2015-02-18 17:21:03,088] DEBUG - wire  Transfer-Encoding:
 chunked[\r][\n]
 [2015-02-18 17:21:03,088] DEBUG - wire  Date: Wed, 18 Feb 2015 11:51:03
 GMT[\r][\n]
 [2015-02-18 17:21:03,088] DEBUG - wire  Connection: close[\r][\n]
 [2015-02-18 17:21:03,088] DEBUG - wire  Server: WSO2 Carbon
 Server[\r][\n]
 [2015-02-18 17:21:03,089] DEBUG - wire  [\r][\n]
 [2015-02-18 17:21:03,089] DEBUG - wire  5da[\r][\n]
 [2015-02-18 17:21:03,089] DEBUG - wire  ?xml version='1.0'
 encoding='UTF-8'?soapenv:Envelope

[Dev] Enable streaming in service and operational level - AS 5.1.0 not working

2015-02-18 Thread Suhan Dharmasuriya
 Params: {lastName=?,
email=?, salary=?, employeeNumber=?, firstName=?}[\n]
[2015-02-18 17:21:03,092] DEBUG - wire  Nested Exception:-[\n]
[2015-02-18 17:21:03,092] DEBUG - wire  The value length must be between
3 and 20[\n]
[2015-02-18 17:21:03,092] DEBUG - wire  Field Name: lastName[\n]
[2015-02-18 17:21:03,093] DEBUG - wire  Field Value: ?[\n]
[2015-02-18 17:21:03,093] DEBUG - wire  [\n]
[2015-02-18 17:21:03,093] DEBUG - wire 
/axis2ns1:DataServiceFault/detail/soapenv:Fault/soapenv:Body/soapenv:Envelope[\r][\n]
[2015-02-18 17:21:03,094] DEBUG - wire  0[\r][\n]
[2015-02-18 17:21:03,094] DEBUG - wire  [\r][\n]

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/


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


Re: [Dev] JAX-WS client stub generation error via WSDL using wsimport tool

2015-02-13 Thread Suhan Dharmasuriya
Hi,

As per [1] it is recommended to add an output element to the oneway
operation.

Is this the acceptable solution?

[1] http://soasecurity.org/2015/01/26/jax-ws-client-for-wso2-admin-service/

Thanks,
Suhan

On Tue, Feb 10, 2015 at 5:08 PM, Suhan Dharmasuriya suh...@wso2.com wrote:

 Hi,

 I have downloaded IS 5.0.0 and exposed admin services as per [1].
 Then as per [2] by using RemoteUserStoreManagerService WSDL URL, I tried
 to generate
 JAX-WS client code using wsimport tool (located at $JDK/bin).

 Then I got the following error.
 Suhans-MacBook-Pro:bin suhanr$ wsimport -d
 /WSO2/sup_dev/Feb_2015/XXX_NN/client/
 http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
 parsing WSDL...
 [ERROR] operation updateCredential has an invalid style
   line 721 of
 http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
 [ERROR] operation setUserClaimValue has an invalid style
   line 725 of
 http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
 [ERROR] operation deleteUserClaimValues has an invalid style
   line 734 of
 http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
 [ERROR] operation deleteUserClaimValue has an invalid style
   line 738 of
 http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
 [ERROR] operation updateCredentialByAdmin has an invalid style
   line 747 of
 http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
 [ERROR] operation deleteRole has an invalid style
   line 781 of
 http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
 [ERROR] operation deleteUser has an invalid style
   line 790 of
 http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
 [ERROR] operation updateRoleName has an invalid style
   line 804 of
 http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
 [ERROR] operation updateRoleListOfUser has an invalid style
   line 808 of
 http://localhost:9763/services/RemoteUserStoreManagerService?wsdl

 ...

 [ERROR] operation updateUserListOfRole has an invalid style
   line 1561 of
 http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
 [ERROR] operation setUserClaimValues has an invalid style
   line 1570 of
 http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
 [ERROR] operation addUserClaimValue has an invalid style
   line 1591 of
 http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
 [ERROR] missing required property style of element operation
 Failed to parse the WSDL.

 As per the blogs [3], [4] we have to modify WSDL files such that to add
 output message element
 for void return type.

 Users have come across this issue recently and we are issuing modified
 WSDL files to generate JAX-WS clients via wsimport tool.

 Is this workaround acceptable or we have to give a permanent solution?

 [1] https://docs.wso2.com/display/IS500/Managing+Users+and+Roles+with+APIs
 [2] http://www.mkyong.com/webservices/jax-ws/jax-ws-wsimport-tool-example/
 [3]
 http://soasecurity.org/2015/01/26/jax-ws-client-for-wso2-admin-service/
 [4]
 http://ajithvblogs.blogspot.com/2015/02/jax-ws-client-for-authenticate-to-wso2.html

 Thanks,
 Suhan

 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] JAX-WS client stub generation error via WSDL using wsimport tool

2015-02-10 Thread Suhan Dharmasuriya
Hi,

I have downloaded IS 5.0.0 and exposed admin services as per [1].
Then as per [2] by using RemoteUserStoreManagerService WSDL URL, I tried to
generate
JAX-WS client code using wsimport tool (located at $JDK/bin).

Then I got the following error.
Suhans-MacBook-Pro:bin suhanr$ wsimport -d
/WSO2/sup_dev/Feb_2015/XXX_NN/client/
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
parsing WSDL...
[ERROR] operation updateCredential has an invalid style
  line 721 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation setUserClaimValue has an invalid style
  line 725 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation deleteUserClaimValues has an invalid style
  line 734 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation deleteUserClaimValue has an invalid style
  line 738 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation updateCredentialByAdmin has an invalid style
  line 747 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation deleteRole has an invalid style
  line 781 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation deleteUser has an invalid style
  line 790 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation updateRoleName has an invalid style
  line 804 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation updateRoleListOfUser has an invalid style
  line 808 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl

...

[ERROR] operation updateUserListOfRole has an invalid style
  line 1561 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation setUserClaimValues has an invalid style
  line 1570 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] operation addUserClaimValue has an invalid style
  line 1591 of
http://localhost:9763/services/RemoteUserStoreManagerService?wsdl
[ERROR] missing required property style of element operation
Failed to parse the WSDL.

As per the blogs [3], [4] we have to modify WSDL files such that to add
output message element
for void return type.

Users have come across this issue recently and we are issuing modified
WSDL files to generate JAX-WS clients via wsimport tool.

Is this workaround acceptable or we have to give a permanent solution?

[1] https://docs.wso2.com/display/IS500/Managing+Users+and+Roles+with+APIs
[2] http://www.mkyong.com/webservices/jax-ws/jax-ws-wsimport-tool-example/
[3] http://soasecurity.org/2015/01/26/jax-ws-client-for-wso2-admin-service/
[4]
http://ajithvblogs.blogspot.com/2015/02/jax-ws-client-for-authenticate-to-wso2.html

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] InvalidSecurity exception on using WS-Security

2015-02-08 Thread Suhan Dharmasuriya
[4]
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Error-Running-wso2esb-4-8-0-Sample-200-Using-WS-Security-with-policy-attachments-for-proxy-servis-td90015.html

On Mon, Feb 9, 2015 at 10:59 AM, Suhan Dharmasuriya suh...@wso2.com wrote:

 Hi,

 Refer these mail threads and blog article [1], [2], [3].

 [1]
 http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Exception-occurs-when-running-ESB-sample-200-td89572.html
 [2] http://mail.wso2.org/mailarchive/dev/2014-February/027876.html
 [3]
 http://evanthika.blogspot.com/2014/02/solving-orgapachewssecuritywssecurityex.html

 Thanks,
 Suhan

 On Mon, Feb 9, 2015 at 10:41 AM, Ruwan Abeykoon ruw...@wso2.com wrote:

 Hi All,
 The same error happens on Default JDK 1.6 which comes with Mac OS-X
 (10.10.2).

 Cheers,

 On Mon, Feb 9, 2015 at 10:33 AM, Malith Munasinghe mali...@wso2.com
 wrote:


 While doing ESB 4.8.1 sample #100 Using WS-Security for Outgoing
 Messages I encountered the following error [1] on ESB.  Also the
 axis2Server threw the error [2].  JDK 1.7u75 is used with necessary
 prerequisites mentioned on the documentation.

 Also I referred to [3], [4] links for a resolution as well but the error
 continues.

 When I ran the same sample using JDK 1.8 expected results were achieved.

 Is there anything that I have to do to get it working on JDK 1.7 as well
 ?


 *[1] ESB Error*

 [2015-02-09 09:45:38,191] ERROR - AxisEngine InvalidSecurity
 org.apache.axis2.AxisFault: InvalidSecurity
 at
 org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)
 [2015-02-09 09:45:38,193] ERROR - ClientWorker Fault processing response
 message through Axis2
 org.apache.axis2.AxisFault: InvalidSecurity
 at
 org.apache.rampart.handler.PostDispatchVerificationHandler.invoke(PostDispatchVerificationHandler.java:164)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)



 *[2] axis2Server error*

 15/02/09 09:45:37 ERROR engine.AxisEngine: An unsupported signature or
 encryption algorithm was used (unsupported key transport encryption
 algorithm: No such algorithm:
 http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p); nested exception is:
 java.security.NoSuchAlgorithmException: Cannot find any provider
 supporting RSA/ECB/OAEPPadding
 org.apache.axis2.AxisFault: An unsupported signature or encryption
 algorithm was used (unsupported key transport encryption algorithm: No such
 algorithm: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p); nested
 exception is:
 java.security.NoSuchAlgorithmException: Cannot find any provider
 supporting RSA/ECB/OAEPPadding
 at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
 at
 org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:459)
 at
 org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:279)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)
 Caused by: org.apache.ws.security.WSSecurityException: An unsupported
 signature or encryption algorithm was used (unsupported key

Re: [Dev] [ESB] InvalidSecurity exception on using WS-Security

2015-02-08 Thread Suhan Dharmasuriya
 at
 org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:785)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:156)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95)
 at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
 at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249)
 at org.apache.rampart.RampartEngine.process(RampartEngine.java:214)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
 ... 11 more
 Caused by: java.security.NoSuchAlgorithmException: Cannot find any
 provider supporting RSA/ECB/OAEPPadding
 at javax.crypto.Cipher.getInstance(Cipher.java:524)
 at
 org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:777)
 ... 18 more
 15/02/09 09:45:37 ERROR nhttp.ServerWorker: Error processing POST request
 org.apache.axis2.AxisFault: An unsupported signature or encryption
 algorithm was used (unsupported key transport encryption algorithm: No such
 algorithm: http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p); nested
 exception is:
 java.security.NoSuchAlgorithmException: Cannot find any provider
 supporting RSA/ECB/OAEPPadding
 at
 org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:95)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at
 org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
 at
 org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:459)
 at
 org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:279)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:745)
 Caused by: org.apache.ws.security.WSSecurityException: An unsupported
 signature or encryption algorithm was used (unsupported key transport
 encryption algorithm: No such algorithm:
 http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p); nested exception is:
 java.security.NoSuchAlgorithmException: Cannot find any provider
 supporting RSA/ECB/OAEPPadding
 at
 org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:785)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:156)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleEncryptedKey(EncryptedKeyProcessor.java:119)
 at
 org.apache.ws.security.processor.EncryptedKeyProcessor.handleToken(EncryptedKeyProcessor.java:95)
 at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:332)
 at
 org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:249)
 at org.apache.rampart.RampartEngine.process(RampartEngine.java:214)
 at
 org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
 ... 11 more
 Caused by: java.security.NoSuchAlgorithmException: Cannot find any
 provider supporting RSA/ECB/OAEPPadding
 at javax.crypto.Cipher.getInstance(Cipher.java:524)
 at
 org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:777)
 ... 18 more

 [3]
 http://evanthika.blogspot.com/2014/02/solving-orgapachewssecuritywssecurityex.html

 [4]
 http://stackoverflow.com/questions/20182314/error-engine-axisengine-an-unsupported-signature-or-encryption-algorithm-was-us


 --
 Malith Munasinghe | Software Engineer
 M: +94 (071) 9401122
 E: mali...@wso2.com
 W: http://wso2.com

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




 --

 *Ruwan Abeykoon*
 *Architect,*
 *WSO2, Inc. http://wso2.com http://wso2.com/ *
 *lean.enterprise.middleware.*

 email: ruw...@wso2.com
 phone:(+94) 39736

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] wso2/carbon-apimgt build failure

2015-02-02 Thread Suhan Dharmasuriya
I had a build failure in p2 profile generation.

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 API Manager - Styles . SUCCESS [2.127s]
[INFO] WSO2 Stratos  API Manager - UI styles . SUCCESS [1.232s]
[INFO] WSO2 API Manager - Styles Parent .. SUCCESS [0.084s]
[INFO] WSO2 Stratos  API Manager - Dashboard UI .. SUCCESS [0.790s]
[INFO] WSO2 AM - Login User Interface  SUCCESS [0.708s]
[INFO] WSO2 API Manager - Styles Features  SUCCESS [0.342s]
[INFO] WSO2 API Manager - Features Aggregator Module . SUCCESS [0.007s]
[INFO] WSO2 Stratos  API Manager - Style Features  SUCCESS [0.075s]
[INFO] WSO2 Stratos  API Manager - Utils Features  SUCCESS [0.598s]
[INFO] WSO2 Stratos  API Manager - Dashboard UI Features . SUCCESS [0.124s]
[INFO] WSO2 Stratos  API Manager - Deployment Features ... SUCCESS [0.072s]
[INFO] WSO2 Stratos  API Manager - Features Aggregator Module  SUCCESS
[0.006s]
[INFO] WSO2 API Manager - Features Parent  SUCCESS [0.010s]
[INFO] WSO2 API Manager - P2 Profile Generation .. FAILURE [2.073s]
[INFO] WSO2 API Manager - P2 Profile Generation Parent ... SKIPPED
[INFO] WSO2 API Manager - BAM Toolbox  SKIPPED
[INFO] WSO2 API Manager - Distribution ... SKIPPED
[INFO] WSO2 API Manager - Distribution Parent  SKIPPED
[INFO] WSO2 API Manager - Aggregator Module .. SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]


On Mon, Feb 2, 2015 at 4:53 PM, Suhan Dharmasuriya suh...@wso2.com wrote:

 Hi Dimuthu,

 Can u please share the git branch release-1.9.0 location?

 Thanks,
 Suhan

 On Mon, Feb 2, 2015 at 4:39 PM, Dimuthu De Lanerolle dimut...@wso2.com
 wrote:

 Building git branch release-1.9.0 solved the issue.

 Regards

 On Mon, Feb 2, 2015 at 3:17 PM, Dimuthu De Lanerolle dimut...@wso2.com
 wrote:

 Hi,

 Getting this build failure for clean repo. Any help?

 [INFO] WSO2 Carbon - API Key Mgt Client .. SUCCESS
 [1:20.157s]
 [INFO] WSO2 Carbon - API Management Implementation ... FAILURE
 [2:02.189s]
 [INFO] WSO2 Carbon - API Gateway . SKIPPED
 [INFO] WSO2 Carbon - API Management Usage Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - API Management Usage Publisher .. SKIPPED
 [INFO] WSO2 Carbon - API Management Usage Client . SKIPPED
 [INFO] WSO2 Carbon - HostObject for API management ... SKIPPED
 [INFO] WSO2 Carbon - API Key Mgt . SKIPPED
 [INFO] WSO2 Carbon - API Management Usage Analyzer ... SKIPPED
 [INFO] WSO2 Carbon - API Management Core . SKIPPED
 [INFO] WSO2 Carbon - API Management Interceptor .. SKIPPED
 [INFO] WSO2 Carbon - API Management Startup Publisher  SKIPPED
 [INFO] Forum . SKIPPED
 [INFO] WSO2 Carbon - Forum Component . SKIPPED
 [INFO] WSO2 Carbon - API management Feature Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - Api management Core Feature . SKIPPED
 [INFO] WSO2 Carbon - Api management Gateway Feature .. SKIPPED
 [INFO] WSO2 Carbon - API Publisher Feature ... SKIPPED
 [INFO] WSO2 Carbon - API Store Feature ... SKIPPED
 [INFO] WSO2 Carbon - Api management Server Interceptor Feature  SKIPPED
 [INFO] WSO2 Carbon - Api management Server Startup Publisher Feature
  SKIPPED
 [INFO] WSO2 Carbon - Api management Feature .. SKIPPED
 [INFO] WSO2 Carbon - Forum Feature Aggregator Module . SKIPPED
 [INFO] WSO2 Carbon - Forum Server Feature  SKIPPED
 [INFO] WSO2 Carbon - Forum Feature ... SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 6:50.623s
 [INFO] Finished at: Mon Feb 02 15:12:51 IST 2015
 [INFO] Final Memory: 42M/499M
 [INFO]
 
 [ERROR] Failed to execute goal on project org.wso2.carbon.apimgt.impl:
 Could not resolve dependencies for project
 org.wso2.carbon:org.wso2.carbon.apimgt.impl:bundle:4.3.0-SNAPSHOT: The
 following artifacts could not be resolved:
 org.wso2.carbon:org.wso2.carbon.governance.api:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.registry.ws.client:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.identity.core:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.identity.oauth:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.rest.api.stub:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.user.mgt.stub:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2

Re: [Dev] wso2/carbon-apimgt build failure

2015-02-02 Thread Suhan Dharmasuriya
Thanks...

On Mon, Feb 2, 2015 at 5:20 PM, Dimuthu De Lanerolle dimut...@wso2.com
wrote:

 Pls find the location [1] https://github.com/wso2/carbon-apimgt *
 release-1.9.0 branch

 On Mon, Feb 2, 2015 at 5:01 PM, Dimuthu De Lanerolle dimut...@wso2.com
 wrote:

 Hi Suhan,

 Pls start with building carbon-apimgt * release-1.9.0 branch first.

 On Mon, Feb 2, 2015 at 4:55 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 I had a build failure in p2 profile generation.

 [INFO]
 
 [INFO] Reactor Summary:
 [INFO]
 [INFO] WSO2 API Manager - Styles . SUCCESS
 [2.127s]
 [INFO] WSO2 Stratos  API Manager - UI styles . SUCCESS
 [1.232s]
 [INFO] WSO2 API Manager - Styles Parent .. SUCCESS
 [0.084s]
 [INFO] WSO2 Stratos  API Manager - Dashboard UI .. SUCCESS
 [0.790s]
 [INFO] WSO2 AM - Login User Interface  SUCCESS
 [0.708s]
 [INFO] WSO2 API Manager - Styles Features  SUCCESS
 [0.342s]
 [INFO] WSO2 API Manager - Features Aggregator Module . SUCCESS
 [0.007s]
 [INFO] WSO2 Stratos  API Manager - Style Features  SUCCESS
 [0.075s]
 [INFO] WSO2 Stratos  API Manager - Utils Features  SUCCESS
 [0.598s]
 [INFO] WSO2 Stratos  API Manager - Dashboard UI Features . SUCCESS
 [0.124s]
 [INFO] WSO2 Stratos  API Manager - Deployment Features ... SUCCESS
 [0.072s]
 [INFO] WSO2 Stratos  API Manager - Features Aggregator Module  SUCCESS
 [0.006s]
 [INFO] WSO2 API Manager - Features Parent  SUCCESS
 [0.010s]
 [INFO] WSO2 API Manager - P2 Profile Generation .. FAILURE
 [2.073s]
 [INFO] WSO2 API Manager - P2 Profile Generation Parent ... SKIPPED
 [INFO] WSO2 API Manager - BAM Toolbox  SKIPPED
 [INFO] WSO2 API Manager - Distribution ... SKIPPED
 [INFO] WSO2 API Manager - Distribution Parent  SKIPPED
 [INFO] WSO2 API Manager - Aggregator Module .. SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 

 On Mon, Feb 2, 2015 at 4:53 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Dimuthu,

 Can u please share the git branch release-1.9.0 location?

 Thanks,
 Suhan

 On Mon, Feb 2, 2015 at 4:39 PM, Dimuthu De Lanerolle dimut...@wso2.com
  wrote:

 Building git branch release-1.9.0 solved the issue.

 Regards

 On Mon, Feb 2, 2015 at 3:17 PM, Dimuthu De Lanerolle 
 dimut...@wso2.com wrote:

 Hi,

 Getting this build failure for clean repo. Any help?

 [INFO] WSO2 Carbon - API Key Mgt Client .. SUCCESS
 [1:20.157s]
 [INFO] WSO2 Carbon - API Management Implementation ... FAILURE
 [2:02.189s]
 [INFO] WSO2 Carbon - API Gateway . SKIPPED
 [INFO] WSO2 Carbon - API Management Usage Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - API Management Usage Publisher .. SKIPPED
 [INFO] WSO2 Carbon - API Management Usage Client . SKIPPED
 [INFO] WSO2 Carbon - HostObject for API management ... SKIPPED
 [INFO] WSO2 Carbon - API Key Mgt . SKIPPED
 [INFO] WSO2 Carbon - API Management Usage Analyzer ... SKIPPED
 [INFO] WSO2 Carbon - API Management Core . SKIPPED
 [INFO] WSO2 Carbon - API Management Interceptor .. SKIPPED
 [INFO] WSO2 Carbon - API Management Startup Publisher  SKIPPED
 [INFO] Forum . SKIPPED
 [INFO] WSO2 Carbon - Forum Component . SKIPPED
 [INFO] WSO2 Carbon - API management Feature Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - Api management Core Feature . SKIPPED
 [INFO] WSO2 Carbon - Api management Gateway Feature .. SKIPPED
 [INFO] WSO2 Carbon - API Publisher Feature ... SKIPPED
 [INFO] WSO2 Carbon - API Store Feature ... SKIPPED
 [INFO] WSO2 Carbon - Api management Server Interceptor Feature
  SKIPPED
 [INFO] WSO2 Carbon - Api management Server Startup Publisher Feature
  SKIPPED
 [INFO] WSO2 Carbon - Api management Feature .. SKIPPED
 [INFO] WSO2 Carbon - Forum Feature Aggregator Module . SKIPPED
 [INFO] WSO2 Carbon - Forum Server Feature  SKIPPED
 [INFO] WSO2 Carbon - Forum Feature ... SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 6:50.623s
 [INFO] Finished at: Mon Feb 02 15:12:51 IST 2015
 [INFO] Final Memory: 42M/499M
 [INFO]
 
 [ERROR] Failed to execute goal on project
 org.wso2.carbon.apimgt.impl: Could not resolve dependencies for project
 org.wso2.carbon:org.wso2.carbon.apimgt.impl:bundle:4.3.0-SNAPSHOT: The
 following

Re: [Dev] wso2/carbon-apimgt build failure

2015-02-02 Thread Suhan Dharmasuriya
Hi Dimuthu,

Can u please share the git branch release-1.9.0 location?

Thanks,
Suhan

On Mon, Feb 2, 2015 at 4:39 PM, Dimuthu De Lanerolle dimut...@wso2.com
wrote:

 Building git branch release-1.9.0 solved the issue.

 Regards

 On Mon, Feb 2, 2015 at 3:17 PM, Dimuthu De Lanerolle dimut...@wso2.com
 wrote:

 Hi,

 Getting this build failure for clean repo. Any help?

 [INFO] WSO2 Carbon - API Key Mgt Client .. SUCCESS
 [1:20.157s]
 [INFO] WSO2 Carbon - API Management Implementation ... FAILURE
 [2:02.189s]
 [INFO] WSO2 Carbon - API Gateway . SKIPPED
 [INFO] WSO2 Carbon - API Management Usage Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - API Management Usage Publisher .. SKIPPED
 [INFO] WSO2 Carbon - API Management Usage Client . SKIPPED
 [INFO] WSO2 Carbon - HostObject for API management ... SKIPPED
 [INFO] WSO2 Carbon - API Key Mgt . SKIPPED
 [INFO] WSO2 Carbon - API Management Usage Analyzer ... SKIPPED
 [INFO] WSO2 Carbon - API Management Core . SKIPPED
 [INFO] WSO2 Carbon - API Management Interceptor .. SKIPPED
 [INFO] WSO2 Carbon - API Management Startup Publisher  SKIPPED
 [INFO] Forum . SKIPPED
 [INFO] WSO2 Carbon - Forum Component . SKIPPED
 [INFO] WSO2 Carbon - API management Feature Aggregator Module  SKIPPED
 [INFO] WSO2 Carbon - Api management Core Feature . SKIPPED
 [INFO] WSO2 Carbon - Api management Gateway Feature .. SKIPPED
 [INFO] WSO2 Carbon - API Publisher Feature ... SKIPPED
 [INFO] WSO2 Carbon - API Store Feature ... SKIPPED
 [INFO] WSO2 Carbon - Api management Server Interceptor Feature  SKIPPED
 [INFO] WSO2 Carbon - Api management Server Startup Publisher Feature
  SKIPPED
 [INFO] WSO2 Carbon - Api management Feature .. SKIPPED
 [INFO] WSO2 Carbon - Forum Feature Aggregator Module . SKIPPED
 [INFO] WSO2 Carbon - Forum Server Feature  SKIPPED
 [INFO] WSO2 Carbon - Forum Feature ... SKIPPED
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 6:50.623s
 [INFO] Finished at: Mon Feb 02 15:12:51 IST 2015
 [INFO] Final Memory: 42M/499M
 [INFO]
 
 [ERROR] Failed to execute goal on project org.wso2.carbon.apimgt.impl:
 Could not resolve dependencies for project
 org.wso2.carbon:org.wso2.carbon.apimgt.impl:bundle:4.3.0-SNAPSHOT: The
 following artifacts could not be resolved:
 org.wso2.carbon:org.wso2.carbon.governance.api:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.registry.ws.client:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.identity.core:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.identity.oauth:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.rest.api.stub:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.user.mgt.stub:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.um.ws.api:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.mediation.dependency.mgt:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.mediation.registry:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.event.core:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.mediation.initializer:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.sequences.stub:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.mediation.security.stub:jar:4.3.0-SNAPSHOT,
 org.wso2.carbon:org.wso2.carbon.registry.indexing:jar:4.3.0-SNAPSHOT: Could
 not find artifact
 org.wso2.carbon:org.wso2.carbon.governance.api:jar:4.3.0-SNAPSHOT in
 wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) -
 [Help 1]
 [ERROR]


 Regards

 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com




 --
 Dimuthu De Lanerolle
 Software Engineer
 WSO2 Inc.
 lean . enterprise . middlewear.
 http://wso2.com/
 Tel. : +94 11 2145345  Fax : +94 11 2145300  email : dimut...@wso2.com


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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AM Publisher - API Visibility - Search API test case.

2015-01-29 Thread Suhan Dharmasuriya
Hi Lakshman,

Will try and let you know. Thanks.

Thanks,
Suhan

On Thu, Jan 29, 2015 at 2:24 PM, Lakshman Udayakantha lakshm...@wso2.com
wrote:

 Hi Suhan,

 Seems like curl command is not supported for any search parameter numbers
 behaviour. UI also not providing feature to search with several commands.
 Ex: name and provider together. Anyway you can do a selenium ui test. Arn't
 you?

 Thanks

 On Thu, Jan 29, 2015 at 12:04 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 Currently I'm writing test cases for API Manager: API Visibility (search
 behaviour).
 I'm referring following documentation [1].
 I tried the Get an API section [1] curl command and it was successful.

 Suhans-MacBook-Pro:integration suhanr$ *curl -X POST -b cookies
 http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag
 http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag -d
 action=getAPIname=APILifeCycleTestAPIversion=1.0.0provider=admin*
 {error : false, api : {name : APILifeCycleTestAPI, version :
 1.0.0, description : This is test API create by API manager
 integration test, endpoint : , wsdl :
 /registry/resource/_system/governance/apimgt/applicationdata/wsdls/admin--APILifeCycleTestAPI1.0.0.wsdl,
 tags : updated, availableTiers : Gold, status : PUBLISHED,
 thumb : null, context : /testAPI, lastUpdated : 1422445208156,
 subs : 1, templates : [[/*, GET, Application, Unlimited]],
 sandbox : , tierDescs : Allows 20 request(s) per minute.,
 bizOwner : , bizOwnerMail : , techOwner : , techOwnerMail :
 , wadl : , visibility : restricted, roles : admin, tenants
 : , epUsername : , epPassword : , endpointTypeSecured :
 false, provider : admin, transport_http : checked,
 transport_https : checked, apiStores : null, inSequence : ,
 outSequence : , subscriptionAvailability : , subscriptionTenants
 : , endpointConfig :
 {\production_endpoints\:{\config\:null,\url\:\
 http://gdata.youtube.com/feeds/api/standardfeeds\},\endpoint_type\:\http\};,
 responseCache : Disabled, cacheTimeout : 300,
 availableTiersDisplayNames : Gold, faultSequence : ,
 destinationStats : Disabled, resources :
 [{\http_verbs\:{\GET\:{\auth_type\:\Application
 \,\throttling_tier\:\Unlimited\}},\url_pattern\:\\\/*\}],
 scopes : [], isDefaultVersion : false, implementation :
 ENDPOINT, hasDefaultVersion : false, currentDefaultVersion :
 null}}Suhans-MacBook-Pro:integration suhanr$

 Publisher front end API search behaviour is as follows.
 *sample url: https://10.100.5.175:9443/publisher/site/pages/index.jag
 https://10.100.5.175:9443/publisher/site/pages/index.jag*

 Search Options
 By API Name [Default] or
 By API Provider [Syntax - provider: ] or
 By API Version [Syntax - version: ] or
 By Context [Syntax - context: ] or
 By Status [Syntax - status: ] or
 By Description [Syntax - description: ] or
 By Subcontext [Syntax - subcontext: ] or
 By Documentation Content [Syntax - doc: ]

 To simulate above search options, I tried the following and it failed.

 Suhans-MacBook-Pro:integration suhanr$ curl -X POST -b cookies
 http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag
 -d action=getAPI*name=APILifeCycleTestAPIprovider=admin*
 {error : true, message :  Invalid number of parameters or their
 types.}Suhans-MacBook-Pro:integration suhanr$

 Suhans-MacBook-Pro:integration suhanr$ curl -X POST -b cookies
 http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag
 -d action=getAPI*version=1.0.0provider=admin*
 {error : true, message :  Invalid number of parameters or their
 types.}Suhans-MacBook-Pro:integration suhanr$


- How can I modify the curl command to search APIs by other means
(search by: provider/description/context/documentation content) ?


- To automate above search behaviour, do I have to modify (e.g.:
overload getApi method) the

 wso2am-1.9.0/1.9.0/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/publisher/utils/
*APIPublisherRestClient*.java?
   - If so how can I find the search behaviour/number of parameters
   implemented in service?

 [1] https://docs.wso2.com/display/AM180/Publisher+APIs

 Thanks,
 Suhan

 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/

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




 --
 Lakshman Udayakantha
 WSO2 Inc. www.wso2.com
 lean.enterprise.middleware
 Mobile: *0711241005*




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AM Publisher - API Visibility - Search API test case.

2015-01-29 Thread Suhan Dharmasuriya
Hi Waruna,

There is only getApi(APIName, providerName) and version is set to 1.0.0.
I want to automate following search options.
Search Options
By API Name [Default] or
By API Provider [Syntax - provider: ] or
By API Version [Syntax - version: ] or
By Context [Syntax - context: ] or
By Status [Syntax - status: ] or
By Description [Syntax - description: ] or
By Subcontext [Syntax - subcontext: ] or
By Documentation Content [Syntax - doc: ]

How to automate these search options?

Thanks,
Suhan

On Thu, Jan 29, 2015 at 3:18 PM, Waruna Perera waru...@wso2.com wrote:

 Hi Suhan,

 I think your case can be achieved via host objects. [1]

 [1]
 https://github.com/wso2-dev/product-apim/blob/master/modules/integration/tests-integration/tests-scenario/src/test/java/org/wso2/carbon/am/tests/sample/HostObjectTestCase.java

 On Thu, Jan 29, 2015 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Lakshman,

 Will try and let you know. Thanks.

 Thanks,
 Suhan

 On Thu, Jan 29, 2015 at 2:24 PM, Lakshman Udayakantha lakshm...@wso2.com
  wrote:

 Hi Suhan,

 Seems like curl command is not supported for any search parameter
 numbers behaviour. UI also not providing feature to search with several
 commands. Ex: name and provider together. Anyway you can do a selenium ui
 test. Arn't you?

 Thanks

 On Thu, Jan 29, 2015 at 12:04 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 Currently I'm writing test cases for API Manager: API Visibility
 (search behaviour).
 I'm referring following documentation [1].
 I tried the Get an API section [1] curl command and it was successful.

 Suhans-MacBook-Pro:integration suhanr$ *curl -X POST -b cookies
 http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag
 http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag -d
 action=getAPIname=APILifeCycleTestAPIversion=1.0.0provider=admin*
 {error : false, api : {name : APILifeCycleTestAPI, version :
 1.0.0, description : This is test API create by API manager
 integration test, endpoint : , wsdl :
 /registry/resource/_system/governance/apimgt/applicationdata/wsdls/admin--APILifeCycleTestAPI1.0.0.wsdl,
 tags : updated, availableTiers : Gold, status : PUBLISHED,
 thumb : null, context : /testAPI, lastUpdated : 1422445208156,
 subs : 1, templates : [[/*, GET, Application, Unlimited]],
 sandbox : , tierDescs : Allows 20 request(s) per minute.,
 bizOwner : , bizOwnerMail : , techOwner : , techOwnerMail :
 , wadl : , visibility : restricted, roles : admin, tenants
 : , epUsername : , epPassword : , endpointTypeSecured :
 false, provider : admin, transport_http : checked,
 transport_https : checked, apiStores : null, inSequence : ,
 outSequence : , subscriptionAvailability : , subscriptionTenants
 : , endpointConfig :
 {\production_endpoints\:{\config\:null,\url\:\
 http://gdata.youtube.com/feeds/api/standardfeeds\},\endpoint_type\:\http\};,
 responseCache : Disabled, cacheTimeout : 300,
 availableTiersDisplayNames : Gold, faultSequence : ,
 destinationStats : Disabled, resources :
 [{\http_verbs\:{\GET\:{\auth_type\:\Application
 \,\throttling_tier\:\Unlimited\}},\url_pattern\:\\\/*\}],
 scopes : [], isDefaultVersion : false, implementation :
 ENDPOINT, hasDefaultVersion : false, currentDefaultVersion :
 null}}Suhans-MacBook-Pro:integration suhanr$

 Publisher front end API search behaviour is as follows.
 *sample url: https://10.100.5.175:9443/publisher/site/pages/index.jag
 https://10.100.5.175:9443/publisher/site/pages/index.jag*

 Search Options
 By API Name [Default] or
 By API Provider [Syntax - provider: ] or
 By API Version [Syntax - version: ] or
 By Context [Syntax - context: ] or
 By Status [Syntax - status: ] or
 By Description [Syntax - description: ] or
 By Subcontext [Syntax - subcontext: ] or
 By Documentation Content [Syntax - doc: ]

 To simulate above search options, I tried the following and it failed.

 Suhans-MacBook-Pro:integration suhanr$ curl -X POST -b cookies
 http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag
 -d action=getAPI*name=APILifeCycleTestAPIprovider=admin*
 {error : true, message :  Invalid number of parameters or their
 types.}Suhans-MacBook-Pro:integration suhanr$

 Suhans-MacBook-Pro:integration suhanr$ curl -X POST -b cookies
 http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag
 -d action=getAPI*version=1.0.0provider=admin*
 {error : true, message :  Invalid number of parameters or their
 types.}Suhans-MacBook-Pro:integration suhanr$


- How can I modify the curl command to search APIs by other means
(search by: provider/description/context/documentation content) ?


- To automate above search behaviour, do I have to modify (e.g.:
overload getApi method) the

 wso2am-1.9.0/1.9.0/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/publisher/utils/
*APIPublisherRestClient*.java?
   - If so

Re: [Dev] AM Publisher - API Visibility - Search API test case.

2015-01-29 Thread Suhan Dharmasuriya
Hi Waruna,

Thanks a lot. Will go through the said mail threads.

Thanks,
Suhan

On Thu, Jan 29, 2015 at 4:30 PM, Waruna Perera waru...@wso2.com wrote:

 Hi Suhan,

 In addition to that please go through following mail threads which I
 started while writing test cases for APIM for any reference.

 [DEV][APIM] writing automation tests for APIM

 Get created API list without login in APIM

 Can not subscribe to API with user has subscriber permission

 Thanks,

 On Thu, Jan 29, 2015 at 4:25 PM, Waruna Perera waru...@wso2.com wrote:

 Hi,

 Can you check testStore.jag and other jag file. There are methods
 available. If not we can raise issues.

 print(storeHostObj.searchAPIbyType(name:*,carbon.super))

 Thanks,

 Waruna

 On Thu, Jan 29, 2015 at 3:54 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Waruna,

 There is only getApi(APIName, providerName) and version is set to 1.0.0.
 I want to automate following search options.
 Search Options
 By API Name [Default] or
 By API Provider [Syntax - provider: ] or
 By API Version [Syntax - version: ] or
 By Context [Syntax - context: ] or
 By Status [Syntax - status: ] or
 By Description [Syntax - description: ] or
 By Subcontext [Syntax - subcontext: ] or
 By Documentation Content [Syntax - doc: ]

 How to automate these search options?

 Thanks,
 Suhan

 On Thu, Jan 29, 2015 at 3:18 PM, Waruna Perera waru...@wso2.com wrote:

 Hi Suhan,

 I think your case can be achieved via host objects. [1]

 [1]
 https://github.com/wso2-dev/product-apim/blob/master/modules/integration/tests-integration/tests-scenario/src/test/java/org/wso2/carbon/am/tests/sample/HostObjectTestCase.java

 On Thu, Jan 29, 2015 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Lakshman,

 Will try and let you know. Thanks.

 Thanks,
 Suhan

 On Thu, Jan 29, 2015 at 2:24 PM, Lakshman Udayakantha 
 lakshm...@wso2.com wrote:

 Hi Suhan,

 Seems like curl command is not supported for any search parameter
 numbers behaviour. UI also not providing feature to search with several
 commands. Ex: name and provider together. Anyway you can do a selenium ui
 test. Arn't you?

 Thanks

 On Thu, Jan 29, 2015 at 12:04 PM, Suhan Dharmasuriya suh...@wso2.com
  wrote:

 Hi,

 Currently I'm writing test cases for API Manager: API Visibility
 (search behaviour).
 I'm referring following documentation [1].
 I tried the Get an API section [1] curl command and it was
 successful.

 Suhans-MacBook-Pro:integration suhanr$ *curl -X POST -b cookies
 http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag
 http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag
  -d
 action=getAPIname=APILifeCycleTestAPIversion=1.0.0provider=admin*
 {error : false, api : {name : APILifeCycleTestAPI, version
 : 1.0.0, description : This is test API create by API manager
 integration test, endpoint : , wsdl :
 /registry/resource/_system/governance/apimgt/applicationdata/wsdls/admin--APILifeCycleTestAPI1.0.0.wsdl,
 tags : updated, availableTiers : Gold, status : PUBLISHED,
 thumb : null, context : /testAPI, lastUpdated : 1422445208156,
 subs : 1, templates : [[/*, GET, Application, Unlimited]],
 sandbox : , tierDescs : Allows 20 request(s) per minute.,
 bizOwner : , bizOwnerMail : , techOwner : , techOwnerMail 
 :
 , wadl : , visibility : restricted, roles : admin, 
 tenants
 : , epUsername : , epPassword : , endpointTypeSecured :
 false, provider : admin, transport_http : checked,
 transport_https : checked, apiStores : null, inSequence : ,
 outSequence : , subscriptionAvailability : , 
 subscriptionTenants
 : , endpointConfig :
 {\production_endpoints\:{\config\:null,\url\:\
 http://gdata.youtube.com/feeds/api/standardfeeds\},\endpoint_type\:\http\};,
 responseCache : Disabled, cacheTimeout : 300,
 availableTiersDisplayNames : Gold, faultSequence : ,
 destinationStats : Disabled, resources :
 [{\http_verbs\:{\GET\:{\auth_type\:\Application
 \,\throttling_tier\:\Unlimited\}},\url_pattern\:\\\/*\}],
 scopes : [], isDefaultVersion : false, implementation :
 ENDPOINT, hasDefaultVersion : false, currentDefaultVersion :
 null}}Suhans-MacBook-Pro:integration suhanr$

 Publisher front end API search behaviour is as follows.
 *sample url:
 https://10.100.5.175:9443/publisher/site/pages/index.jag
 https://10.100.5.175:9443/publisher/site/pages/index.jag*

 Search Options
 By API Name [Default] or
 By API Provider [Syntax - provider: ] or
 By API Version [Syntax - version: ] or
 By Context [Syntax - context: ] or
 By Status [Syntax - status: ] or
 By Description [Syntax - description: ] or
 By Subcontext [Syntax - subcontext: ] or
 By Documentation Content [Syntax - doc: ]

 To simulate above search options, I tried the following and it
 failed.

 Suhans-MacBook-Pro:integration suhanr$ curl -X POST -b cookies
 http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag
 -d action=getAPI*name=APILifeCycleTestAPIprovider=admin*
 {error : true

Re: [Dev] Error, build the connector external pom

2015-01-29 Thread Suhan Dharmasuriya
Hi Sabashan,

It is recommended to use Apache Maven versions *3.0.* *
e.g.: [1].

[1] https://docs.wso2.com/display/AM180/Installation+Prerequisites

Thanks,
Suhan

On Fri, Jan 30, 2015 at 12:04 PM, Shiva Balachandran sh...@wso2.com wrote:

 Hi Sabashan,

 This might be due to your java version being 1.7, try building with 1.6
 version.

 Thank you.

 Regards
 Shiva Balachandran

 On Thu, Jan 29, 2015 at 5:15 PM, Sabashan Baladevan sabashan...@gmail.com
  wrote:

 Hi all,

 My environment is .

 Apache Maven *3.2.3* (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4;
 2014-08-12T02:28:10+05:30)
 Maven home: /home/sabashan/apache-maven-3.2.3
 Java version: *1.7*.0_76, vendor: *Oracle Corporation*
 Java home: /usr/lib/jvm/java-7-oracle/jre
 Default locale: en_US, platform encoding: UTF-8
 OS name: linux, version: 3.13.0-44-generic, arch: amd64, family:
 unix

 -

 I got the following error while I build the *cloud connectors' external
 pom *
 but, I have built *integration-base* pom *successfully*


 Error logs:
 org.apache.maven.project.ProjectBuildingException:* Some problems* were
 encountered while processing the POMs:

 at
 org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:416)
 at
 org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:663)
 at
 org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:654)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:243)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)


 Thanks  Regards,
 Sabashan

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




 --
 Shiva Balachandran
 Software Engineer
 WSO2 Inc.

 Mobile - +94 774445788
 Blog - https://shivabalachandran.wordpress.com/

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] AM Publisher - API Visibility - Search API test case.

2015-01-28 Thread Suhan Dharmasuriya
Hi,

Currently I'm writing test cases for API Manager: API Visibility (search
behaviour).
I'm referring following documentation [1].
I tried the Get an API section [1] curl command and it was successful.

Suhans-MacBook-Pro:integration suhanr$ *curl -X POST -b cookies
http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag
http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag -d
action=getAPIname=APILifeCycleTestAPIversion=1.0.0provider=admin*
{error : false, api : {name : APILifeCycleTestAPI, version :
1.0.0, description : This is test API create by API manager
integration test, endpoint : , wsdl :
/registry/resource/_system/governance/apimgt/applicationdata/wsdls/admin--APILifeCycleTestAPI1.0.0.wsdl,
tags : updated, availableTiers : Gold, status : PUBLISHED,
thumb : null, context : /testAPI, lastUpdated : 1422445208156,
subs : 1, templates : [[/*, GET, Application, Unlimited]],
sandbox : , tierDescs : Allows 20 request(s) per minute.,
bizOwner : , bizOwnerMail : , techOwner : , techOwnerMail :
, wadl : , visibility : restricted, roles : admin, tenants
: , epUsername : , epPassword : , endpointTypeSecured :
false, provider : admin, transport_http : checked,
transport_https : checked, apiStores : null, inSequence : ,
outSequence : , subscriptionAvailability : , subscriptionTenants
: , endpointConfig :
{\production_endpoints\:{\config\:null,\url\:\
http://gdata.youtube.com/feeds/api/standardfeeds\},\endpoint_type\:\http\};,
responseCache : Disabled, cacheTimeout : 300,
availableTiersDisplayNames : Gold, faultSequence : ,
destinationStats : Disabled, resources :
[{\http_verbs\:{\GET\:{\auth_type\:\Application
\,\throttling_tier\:\Unlimited\}},\url_pattern\:\\\/*\}],
scopes : [], isDefaultVersion : false, implementation :
ENDPOINT, hasDefaultVersion : false, currentDefaultVersion :
null}}Suhans-MacBook-Pro:integration suhanr$

Publisher front end API search behaviour is as follows.
*sample url: https://10.100.5.175:9443/publisher/site/pages/index.jag
https://10.100.5.175:9443/publisher/site/pages/index.jag*

Search Options
By API Name [Default] or
By API Provider [Syntax - provider: ] or
By API Version [Syntax - version: ] or
By Context [Syntax - context: ] or
By Status [Syntax - status: ] or
By Description [Syntax - description: ] or
By Subcontext [Syntax - subcontext: ] or
By Documentation Content [Syntax - doc: ]

To simulate above search options, I tried the following and it failed.

Suhans-MacBook-Pro:integration suhanr$ curl -X POST -b cookies
http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag -d
action=getAPI*name=APILifeCycleTestAPIprovider=admin*
{error : true, message :  Invalid number of parameters or their
types.}Suhans-MacBook-Pro:integration suhanr$

Suhans-MacBook-Pro:integration suhanr$ curl -X POST -b cookies
http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag -d
action=getAPI*version=1.0.0provider=admin*
{error : true, message :  Invalid number of parameters or their
types.}Suhans-MacBook-Pro:integration suhanr$


   - How can I modify the curl command to search APIs by other means
   (search by: provider/description/context/documentation content) ?


   - To automate above search behaviour, do I have to modify (e.g.:
   overload getApi method) the
   
wso2am-1.9.0/1.9.0/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/publisher/utils/
   *APIPublisherRestClient*.java?
  - If so how can I find the search behaviour/number of parameters
  implemented in service?

[1] https://docs.wso2.com/display/AM180/Publisher+APIs

Thanks,
Suhan

-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error connecting to the back end

2015-01-26 Thread Suhan Dharmasuriya
Adding documentation team regarding the mismatch.

[1] https://docs.wso2.com/display/*ESB470*
/Sample+5%3A+Creating+SOAP+Fault+Messages+and+Changing+the+Direction+of+a+Message
[2] https://docs.wso2.com/display/*ESB480*
/Sample+5%3A+Creating+SOAP+Fault+Messages+and+Changing+the+Direction+of+a+Message
[3] https://docs.wso2.com/display/*ESB481*
/Sample+5%3A+Creating+SOAP+Fault+Messages+and+Changing+the+Direction+of+a+Message
[4] https://docs.wso2.com/display/*ESB490*
/Sample+5%3A+Creating+SOAP+Fault+Messages+and+Changing+the+Direction+of+a+Message

Thanks,
Suhan

On Mon, Jan 26, 2015 at 1:53 PM, Chathura Priyankara chathu...@wso2.com
wrote:

 Hi,

 As Thusitha said I think there is a mismatch between actual
 synapse_sample_5.xml in the samples repository and what is mentioned in the
 documentation*. *The actual one is  missing the property mediator as
 pointed out, even after adding that I'm getting the same issue that
 mentioned above mail. So what I'm doing wrong here ?

 Thanks!
 Regards,

 On Mon, Jan 26, 2015 at 1:35 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Chathura,


 I think actual repo code in *synapse_sample_5.xml *should be changed from

 sequence name=myFaultHandler
 makefault
 code value=tns:Receiver/
 reason expression=get-property('ERROR_MESSAGE')/
 /makefault
 send/
 /sequence

 to (bold text segment should be added)

 sequence name=myFaultHandler makefault code value=tns:Receiver 
 *xmlns:tns=http://www.w3.org/2003/05/soap-envelope
 http://www.w3.org/2003/05/soap-envelope*/ reason
 expression=get-property('ERROR_MESSAGE')/ /makefault * property
 name=RESPONSE value=true/ header name=To
 expression=get-property('ReplyTo')/ send/ */sequence

 On Mon, Jan 26, 2015 at 12:46 PM, Chathura Priyankara chathu...@wso2.com
  wrote:

 Hi,
 When I'm running 5th sample of ESB getting the following error:

  [java] org.apache.axis2.AxisFault: Error connecting to the back end
  [java] at
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
  [java] at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
  [java] at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
  [java] at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
  [java] at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
  [java] at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
  [java] at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
  [java] at samples.userguide.StockQuoteClient.executeClient(Unknown
 Source)
  [java] at samples.userguide.StockQuoteClient.main(Unknown Source)

 What can be the issue for this ?

 Thanks!
 Regards,


 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com

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




 --
 Thusitha Dayaratne
 Software Engineer | WSO2 Inc

 Mobile : +94712756809
 Blog: alokayasoya.blogspot.com




 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error connecting to the back end

2015-01-26 Thread Suhan Dharmasuriya
Hi,

FYI

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

Thanks,
Suhan

On Mon, Jan 26, 2015 at 5:09 PM, Jagath Sisirakumara Ariyarathne 
jaga...@wso2.com wrote:

 Hi,

 Regarding the documentation link [1] last two sections, it is mentioned
 that the below error message is returned to the original client.

 soapenv:Fault xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 http://schemas.xmlsoap.org/soap/envelope/
 faultcodesoapenv:Client/faultcode
 faultstringConnection refused or failed for : bogus:9000 /
 faultstring
 detail /
 /soapenv:Fault

 [1] -
 https://docs.wso2.com/display/ESB481/Sample+5%3A+Creating+SOAP+Fault+Messages+and+Changing+the+Direction+of+a+Message

 But it is not there in XML configuration file or any client/server logs.
 Where we can set this in configuration?

 On Mon, Jan 26, 2015 at 2:15 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Adding documentation team regarding the mismatch.

 [1] https://docs.wso2.com/display/*ESB470*
 /Sample+5%3A+Creating+SOAP+Fault+Messages+and+Changing+the+Direction+of+a+Message
 [2] https://docs.wso2.com/display/*ESB480*
 /Sample+5%3A+Creating+SOAP+Fault+Messages+and+Changing+the+Direction+of+a+Message
 [3] https://docs.wso2.com/display/*ESB481*
 /Sample+5%3A+Creating+SOAP+Fault+Messages+and+Changing+the+Direction+of+a+Message
 [4] https://docs.wso2.com/display/*ESB490*
 /Sample+5%3A+Creating+SOAP+Fault+Messages+and+Changing+the+Direction+of+a+Message

 Thanks,
 Suhan

 On Mon, Jan 26, 2015 at 1:53 PM, Chathura Priyankara chathu...@wso2.com
 wrote:

 Hi,

 As Thusitha said I think there is a mismatch between actual
 synapse_sample_5.xml in the samples repository and what is mentioned in the
 documentation*. *The actual one is  missing the property mediator as
 pointed out, even after adding that I'm getting the same issue that
 mentioned above mail. So what I'm doing wrong here ?

 Thanks!
 Regards,

 On Mon, Jan 26, 2015 at 1:35 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi Chathura,


 I think actual repo code in *synapse_sample_5.xml *should be changed
 from

 sequence name=myFaultHandler
 makefault
 code value=tns:Receiver/
 reason expression=get-property('ERROR_MESSAGE')/
 /makefault
 send/
 /sequence

 to (bold text segment should be added)

 sequence name=myFaultHandler makefault code value=tns:Receiver 
 *xmlns:tns=http://www.w3.org/2003/05/soap-envelope
 http://www.w3.org/2003/05/soap-envelope*/ reason
 expression=get-property('ERROR_MESSAGE')/ /makefault * property
 name=RESPONSE value=true/ header name=To
 expression=get-property('ReplyTo')/ send/ */sequence

 On Mon, Jan 26, 2015 at 12:46 PM, Chathura Priyankara 
 chathu...@wso2.com wrote:

 Hi,
 When I'm running 5th sample of ESB getting the following error:

  [java] org.apache.axis2.AxisFault: Error connecting to the back end
  [java] at
 org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
  [java] at
 org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
  [java] at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
  [java] at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
  [java] at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
  [java] at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
  [java] at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
  [java] at
 samples.userguide.StockQuoteClient.executeClient(Unknown Source)
  [java] at samples.userguide.StockQuoteClient.main(Unknown Source)

 What can be the issue for this ?

 Thanks!
 Regards,


 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com

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




 --
 Thusitha Dayaratne
 Software Engineer | WSO2 Inc

 Mobile : +94712756809
 Blog: alokayasoya.blogspot.com




 --
 Chathura Priyankara
 Software Engineer | WSO2 Inc.
 Mobile : +94718795340
 Blog : www.codeoncloud.blogspot.com

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




 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/

 --
 You received this message because you are subscribed to the Google Groups
 WSO2 Documentation group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to documentation+unsubscr...@wso2.com.
 For more options, visit https://groups.google.com/a/wso2.com/d/optout.




 --
 Jagath Ariyarathne
 Technical Lead
 WSO2 Inc.  http://wso2.com/
 Email: jaga...@wso2.com
 Mob

Re: [Dev] [ML] Waiting for required Modules

2015-01-12 Thread Suhan Dharmasuriya
Hi,

You may find these articles useful for debugging your OSGi application.

[1]
http://pradeepfernando.blogspot.com/2011/10/debugging-your-osgi-application-using.html
[2] https://isurues.wordpress.com/2009/01/01/useful-equinox-osgi-commands/

Thanks,
Suhan

On Mon, Jan 12, 2015 at 2:07 PM, Aruna Karunarathna ar...@wso2.com wrote:

 Hi Athuraliya,

 This is because some services have not started properly, maybe because of
 some dependencies not satisfied.
 Use the OSGi Console to debug to find the root cause.

 Regards,
 Aruna

 On Mon, Jan 12, 2015 at 12:07 PM, CD Athuraliya chathur...@wso2.com
 wrote:

 Hi all,

 I just built ML product and when I am trying to run it following WARN
 (highlighted) appears repeatedly.

 [2015-01-12 11:30:16,174]  INFO
 {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -  Configured
 Registry in 351ms
 [2015-01-12 11:30:17,418]  INFO
 {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
  Registry Mode: READ-WRITE
 [2015-01-12 11:30:18,221]  INFO
 {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} -  Carbon
 UserStoreMgtDSComponent activated successfully.
 [2015-01-12 11:34:44,340]  INFO
 {org.apache.catalina.startup.TaglibUriRule} -  TLD skipped. URI:
 http://tiles.apache.org/tags-tiles is already defined
 [2015-01-12 11:39:17,250]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Carbon initialization is
 delayed due to the following unsatisfied items:
 [2015-01-12 11:39:17,251]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 Module: org.wso2.carbon.security.mgt-4.3.0-SNAPSHOT
 [2015-01-12 11:39:17,251]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 Module: rampart-trust-1.6.1.wso2v13-SNAPSHOT
 [2015-01-12 11:39:17,252]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 Module: rampart-core-1.6.1.wso2v13-SNAPSHOT
 [2015-01-12 11:39:17,252]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 OSGi Service: org.apache.axis2.engine.AxisObserver
 [2015-01-12 11:39:17,252]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 OSGiAxis2Service: org.wso2.carbon.ml.model-0.1.0.SNAPSHOT
 [2015-01-12 11:39:17,252]  WARN
 {org.wso2.carbon.core.init.CarbonServerManager} -  Waiting for required
 OSGiAxis2Service: org.wso2.carbon.security.mgt-4.3.0.SNAPSHOT

 Any workaround for this would be much apprenticed.

 Thanks.

 --
 *CD Athuraliya*
 Software Engineering Intern
 WSO2, Inc.
 lean . enterprise . middleware
 Mobile: +94 716288847
 LinkedIn http://lk.linkedin.com/in/cdathuraliya | Twitter
 https://twitter.com/cdathuraliya | Blog
 http://cdathuraliya.tumblr.com/

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




 --

 *Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Puppet directory creation fails if parent directory does not exist

2015-01-05 Thread Suhan Dharmasuriya
Hi Harsha,

I think it is a suggestion [1] #12. Tried again after setting mode. It
didn't work.

Hi Manula,

It worked after slight modification.

$path = '/tmp/dbscripts/mysql'
exec { creating_base_dirs:
   path=
'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
   command = mkdir -p ${path},
 }

Sure, going forward will participate in puppet mailing lists/forums... :)

[1] http://projects.puppetlabs.com/issues/86#note-12

Thanks all. :)

Suhan

On Tue, Jan 6, 2015 at 11:35 AM, Manula Waidyanatha man...@wso2.com wrote:

 Hi Suhan,
 You can create a resource[1] for creating directories and use it to create
 directories with parents.
 For example

 define create_dir ($path){
   exec {
 command = mkdir ${path},
   }
 }

 (I think you should ask puppet related stuff on puppet mailing
 lists/forums :) )

 [1]
 https://docs.puppetlabs.com/puppet/latest/reference/lang_defined_types.html

 On Tue, Jan 6, 2015 at 11:08 AM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 I'm using ubuntu 14.04 and puppet version 3.4.3 for both master and agent.

 Say currently there are no folders or file inside agent's /tmp/ directory.
 When attempting to create a directory structure as follows,
 # create a directory
 file { /tmp/dbscripts/mysql/:
 ensure = directory,
   }

 Error thrown saying,
 root@elb-1:~# puppet agent -t
 Info: Retrieving plugin
 Info: Loading facts in /var/lib/puppet/lib/facter/java_home.rb
 Info: Caching catalog for elb-1.openstacklocal
 Info: Applying configuration version '1420519752'
 *Error: Cannot create /tmp/dbscripts/mysql; parent directory
 /tmp/dbscripts does not exist*
 Error: /Stage[main]/Main/Node[elb-1]/File[/tmp/dbscripts/mysql/]/ensure:
 change from absent to directory failed: Cannot create /tmp/dbscripts/mysql;
 parent directory /tmp/dbscripts does not exist
 Notice: /Stage[main]/Main/Node[elb-1]/File[/tmp/dbscripts/mysql/welcome
 file.xml]: Dependency File[/tmp/dbscripts/mysql/] has failures: true
 Warning: /Stage[main]/Main/Node[elb-1]/File[/tmp/dbscripts/mysql/welcome
 file.xml]: Skipping because of failed dependencies
 Notice: Finished catalog run in 0.06 seconds

 There is a Feature logged in puppetlabs (Feature #86) to address this
 issue [1].

 Workaround provided by puppetlabs is as follows.
 # create a directory
 file {['/tmp/dbscripts','/tmp/dbscripts/mysql']:
 ensure = directory,
   }

 It is successful.

 When more number of non-existing parent directories present in the path,
 more array elements to be given.
 file {['/top','/top/second','/top/second/deep','/top/second/deep/deepest
 ']:
   ensure = directory
 }

 We are planning to parameterise the path of the directories to be created.

 After parameterising if we do as above workaround, we have to retrieve
 the path and break down it into an array as above and then create the
 folder structure.

 Is there a better, cleaner puppet workaround than the given one above?

 [1] http://projects.puppetlabs.com/issues/86
 [2]
 https://github.com/ghoneycutt/puppet-module-common/blob/master/manifests/mkdir_p.pp

 Thanks,
 Suhan
 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/




 --
 Regards,
 Manula Waidyanatha
 Systems Engineer, WSO2, Inc.
 Phone: +94 774 195853
 Blog: blog.manula.org




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Puppet directory creation fails if parent directory does not exist

2015-01-05 Thread Suhan Dharmasuriya
Hi Harsha,

Yes, I tried. It failed.

root@elb-1:~# puppet agent -t
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/java_home.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Invalid parameter create_parents at /etc/puppet/manifests/site.pp:31 on
node elb-1.openstacklocal
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

I think they have not yet implemented it, isn't it?

On Tue, Jan 6, 2015 at 11:22 AM, Harsha Thirimanna hars...@wso2.com wrote:

 Did you try this ,

 file{“/some/very/deep/path”: ensure = directory, owner = ‘root’,
 create_parents = true }


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

 *Lean . Enterprise . Middleware*


 On Tue, Jan 6, 2015 at 11:08 AM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 I'm using ubuntu 14.04 and puppet version 3.4.3 for both master and agent.

 Say currently there are no folders or file inside agent's /tmp/ directory.
 When attempting to create a directory structure as follows,
 # create a directory
 file { /tmp/dbscripts/mysql/:
 ensure = directory,
   }

 Error thrown saying,
 root@elb-1:~# puppet agent -t
 Info: Retrieving plugin
 Info: Loading facts in /var/lib/puppet/lib/facter/java_home.rb
 Info: Caching catalog for elb-1.openstacklocal
 Info: Applying configuration version '1420519752'
 *Error: Cannot create /tmp/dbscripts/mysql; parent directory
 /tmp/dbscripts does not exist*
 Error: /Stage[main]/Main/Node[elb-1]/File[/tmp/dbscripts/mysql/]/ensure:
 change from absent to directory failed: Cannot create /tmp/dbscripts/mysql;
 parent directory /tmp/dbscripts does not exist
 Notice: /Stage[main]/Main/Node[elb-1]/File[/tmp/dbscripts/mysql/welcome
 file.xml]: Dependency File[/tmp/dbscripts/mysql/] has failures: true
 Warning: /Stage[main]/Main/Node[elb-1]/File[/tmp/dbscripts/mysql/welcome
 file.xml]: Skipping because of failed dependencies
 Notice: Finished catalog run in 0.06 seconds

 There is a Feature logged in puppetlabs (Feature #86) to address this
 issue [1].

 Workaround provided by puppetlabs is as follows.
 # create a directory
 file {['/tmp/dbscripts','/tmp/dbscripts/mysql']:
 ensure = directory,
   }

 It is successful.

 When more number of non-existing parent directories present in the path,
 more array elements to be given.
 file {['/top','/top/second','/top/second/deep','/top/second/deep/deepest
 ']:
   ensure = directory
 }

 We are planning to parameterise the path of the directories to be created.

 After parameterising if we do as above workaround, we have to retrieve
 the path and break down it into an array as above and then create the
 folder structure.

 Is there a better, cleaner puppet workaround than the given one above?

 [1] http://projects.puppetlabs.com/issues/86
 [2]
 https://github.com/ghoneycutt/puppet-module-common/blob/master/manifests/mkdir_p.pp

 Thanks,
 Suhan
 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/

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





-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Puppet directory creation fails if parent directory does not exist

2015-01-05 Thread Suhan Dharmasuriya
Hi,

I'm using ubuntu 14.04 and puppet version 3.4.3 for both master and agent.

Say currently there are no folders or file inside agent's /tmp/ directory.
When attempting to create a directory structure as follows,
# create a directory
file { /tmp/dbscripts/mysql/:
ensure = directory,
  }

Error thrown saying,
root@elb-1:~# puppet agent -t
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/java_home.rb
Info: Caching catalog for elb-1.openstacklocal
Info: Applying configuration version '1420519752'
*Error: Cannot create /tmp/dbscripts/mysql; parent directory /tmp/dbscripts
does not exist*
Error: /Stage[main]/Main/Node[elb-1]/File[/tmp/dbscripts/mysql/]/ensure:
change from absent to directory failed: Cannot create /tmp/dbscripts/mysql;
parent directory /tmp/dbscripts does not exist
Notice: /Stage[main]/Main/Node[elb-1]/File[/tmp/dbscripts/mysql/welcome
file.xml]: Dependency File[/tmp/dbscripts/mysql/] has failures: true
Warning: /Stage[main]/Main/Node[elb-1]/File[/tmp/dbscripts/mysql/welcome
file.xml]: Skipping because of failed dependencies
Notice: Finished catalog run in 0.06 seconds

There is a Feature logged in puppetlabs (Feature #86) to address this issue
[1].

Workaround provided by puppetlabs is as follows.
# create a directory
file {['/tmp/dbscripts','/tmp/dbscripts/mysql']:
ensure = directory,
  }

It is successful.

When more number of non-existing parent directories present in the path,
more array elements to be given.
file {['/top','/top/second','/top/second/deep','/top/second/deep/deepest']:
  ensure = directory
}

We are planning to parameterise the path of the directories to be created.

After parameterising if we do as above workaround, we have to retrieve the
path and break down it into an array as above and then create the folder
structure.

Is there a better, cleaner puppet workaround than the given one above?

[1] http://projects.puppetlabs.com/issues/86
[2]
https://github.com/ghoneycutt/puppet-module-common/blob/master/manifests/mkdir_p.pp

Thanks,
Suhan
-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Invoke a python script through java

2014-12-02 Thread Suhan Dharmasuriya
Hi,

I'm currently using a python script to create instances in OpenStack via
python NovaClient.
My script sets up a cluster and is to perform some platform tests in a
clustered environment.

I want to invoke this python script inside a java plugin (which is yet to
be written) as an extension to
the WSO2 Test Automation Framework.

What are the standard approaches for invoking python scripts inside java?
Are there any svn/git WSO2 repositories I can refer?

Thanks,
Suhan
-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Invoke a python script through java

2014-12-02 Thread Suhan Dharmasuriya
Hi Malintha/Thushara/Krishantha/Imesh,

Thanks everyone for your valuable guidance.
I'll analyze all options and select the best one which aligns with the
scenario.

Thanks,
Suhan

On Wed, Dec 3, 2014 at 7:31 AM, Imesh Gunaratne im...@wso2.com wrote:

 Hi Suhan,

 IMO it is better to use Apache jclouds for this:
 https://jclouds.apache.org/guides/openstack/

 If we do, we could simply switch to any other IaaS without a much of a
 problem.

 Thanks

 On Tue, Dec 2, 2014 at 6:38 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Malintha,

 Yes malintha I agree with you. Then Jython is the best approach Suhan
 have.

 Thanks,

 On Tue, Dec 2, 2014 at 6:17 PM, Malintha Adikari malin...@wso2.com
 wrote:

 Hi Thushara,

 On Tue, Dec 2, 2014 at 12:37 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Suhan,

 I had a similar kind of a issue few months ago, Kindly find this
 answer[1].

 [1]-
 http://stackoverflow.com/questions/23054880/execute-a-python-separate-application-in-a-java-application


 Yes this is also an option. AFAIK, here we  here we call python language
 from a process. Calling,  from platform Independent language(Java) to a
 native application (Python) is not good approach IMO.


 Thanks,
 Thushara

 On Tue, Dec 2, 2014 at 5:55 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 I'm currently using a python script to create instances in OpenStack
 via python NovaClient.
 My script sets up a cluster and is to perform some platform tests in a
 clustered environment.

 I want to invoke this python script inside a java plugin (which is yet
 to be written) as an extension to
 the WSO2 Test Automation Framework.

 What are the standard approaches for invoking python scripts inside
 java?
 Are there any svn/git WSO2 repositories I can refer?

 Thanks,
 Suhan
 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/

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




 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com thusha...@wso2.com*

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




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




 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com thusha...@wso2.com*

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




 --
 *Imesh Gunaratne*
 Technical Lead
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057
 W: http://imesh.gunaratne.org
 Lean . Enterprise . Middleware


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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Puppet fill templates with cluster configurations and ip addresses of newly spawned instances

2014-11-28 Thread Suhan Dharmasuriya
Hi,

We are setting up a simple WSO2 Application Server cluster with one master
node and one worker node. This is done via spawning instances in OpenStack
cloud via python NovaClient API.

After spawning instances we need to get their ip addresses and use them to
fill puppet template values. (say master's ip address under members tag of
axis2.xml file in worker node [1]) But to copy template values, the
instances must be up and running.

We tackled this successfully with xml configuration file with a combination
of suspending and resuming newly spawned VM appserver instances via python.
The xml file contained all the configuration values required to fill the
puppet templates (axis2.xml.erb, carbon.xml.erb, etc...).

Now we have to try it without xml configuration and by only using puppet
configuration files. Our configuration information should be kept inside
puppet files.

We have a module called appserver inside /etc/puppet/modules/ in the
current setup.

current site.pp file contents in /etc/puppet/manifests

import 'appserver'
node 'appserver-mgr' {
include appserver::config_mgr}

node 'appserver-wkr' {
include appserver::config_wkr}

inside /etc/puppet/modules/appserver/manifests/ there are two configuration
files

config_mgr.pp
config_wkr.pp

We have not used init.pp.

1. How do we retrieve and keep ip addresses of newly spawned instances? Is
there a standard way?

2. What should be our approach in keeping cluster configuration data?


   - Should we keep our cluster configuration inside *nodes.pp* file
   itself?
   - If so how to import the configuration to site.pp?


   - Or should we keep our config information in *params.pp* file in
   /modules/appserver/manifests location?
   - If we follow this approach where should we keep the central
   configuration file, if we use a mix of product clusters (AS and ESB)?

Please be kind enough to guide us through this scenario.

[1]
https://docs.wso2.com/display/CLUSTER420/Configuring+the+Worker+Node#ConfiguringtheWorkerNode-Settingupclusterconfigurationsfortheworkernodes
Thanks,
Suhan
-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Puppet fill templates with cluster configurations and ip addresses of newly spawned instances

2014-11-28 Thread Suhan Dharmasuriya
Hi Chamila,

Thanks you for the prompt reply.
Will check with Hiera and revert.

Thanks,
Suhan

On Fri, Nov 28, 2014 at 2:39 PM, Chamila De Alwis chami...@wso2.com wrote:

 Hi Suhan,

 nodes.pp file can contain the generic information that are used by almost
 all of the modules. However, as far as I understand, you can go for a
 better pattern using Puppet's Hiera key value store[1]. Its main purpose is
 to separate data from the manifests, so in your case you can store config
 data per node in Hiera.

 [1] - https://docs.puppetlabs.com/hiera/1/complete_example.html


 Regards,
 Chamila de Alwis
 Software Engineer | WSO2 | +94772207163
 Blog: code.chamiladealwis.com



 On Fri, Nov 28, 2014 at 1:41 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 We are setting up a simple WSO2 Application Server cluster with one
 master node and one worker node. This is done via spawning instances in
 OpenStack cloud via python NovaClient API.

 After spawning instances we need to get their ip addresses and use them
 to fill puppet template values. (say master's ip address under members tag
 of axis2.xml file in worker node [1]) But to copy template values, the
 instances must be up and running.

 We tackled this successfully with xml configuration file with a
 combination of suspending and resuming newly spawned VM appserver instances
 via python. The xml file contained all the configuration values required to
 fill the puppet templates (axis2.xml.erb, carbon.xml.erb, etc...).

 Now we have to try it without xml configuration and by only using puppet
 configuration files. Our configuration information should be kept inside
 puppet files.

 We have a module called appserver inside /etc/puppet/modules/ in the
 current setup.

 current site.pp file contents in /etc/puppet/manifests

 import 'appserver'
 node 'appserver-mgr' {
 include appserver::config_mgr}

 node 'appserver-wkr' {
 include appserver::config_wkr}

 inside /etc/puppet/modules/appserver/manifests/ there are two
 configuration files

 config_mgr.pp
 config_wkr.pp

 We have not used init.pp.

 1. How do we retrieve and keep ip addresses of newly spawned instances?
 Is there a standard way?

 2. What should be our approach in keeping cluster configuration data?


- Should we keep our cluster configuration inside *nodes.pp* file
itself?
- If so how to import the configuration to site.pp?


- Or should we keep our config information in *params.pp* file in
/modules/appserver/manifests location?
- If we follow this approach where should we keep the central
configuration file, if we use a mix of product clusters (AS and ESB)?

 Please be kind enough to guide us through this scenario.

 [1]
 https://docs.wso2.com/display/CLUSTER420/Configuring+the+Worker+Node#ConfiguringtheWorkerNode-Settingupclusterconfigurationsfortheworkernodes
 Thanks,
 Suhan
 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhan-opensource.blogspot.com/

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





-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Programmatically shutdown servers in a cluster using puppet master to agent communication

2014-11-25 Thread Suhan Dharmasuriya
Hi,

Currently Malintha and I are in to RD of deployment automation.

We have a requirement to shutdown a application server temporarily in a
cluster node.
For that we are thinking of pushing a configuration from puppet master to
agent node.

Can we use puppet kick or mCollective commands to perform this task?
Is there a better alternative other than using puppet?

Thanks,
Suhan
-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sajini De Silva

2014-11-18 Thread Suhan Dharmasuriya
Congrats Sajini!!!

On Tue, Nov 18, 2014 at 2:41 PM, Damith Wickramasinghe dami...@wso2.com
wrote:

 Congratzz... !!! :)

 On Tue, Nov 18, 2014 at 2:37 PM, Shashika Karunatilaka shashi...@wso2.com
  wrote:

 Congrats Sajini

 On Tue, Nov 18, 2014 at 2:17 PM, Supun Malinga sup...@wso2.com wrote:

 Congrats Sajini! :)

 On Tue, Nov 18, 2014 at 2:13 PM, Godwin Amila Shrimal god...@wso2.com
 wrote:

 Congratulations Sajini !!!

 On Tue, Nov 18, 2014 at 2:08 PM, Malintha Adikari malin...@wso2.com
 wrote:

 Congratulations Sajini !!!

 On Tue, Nov 18, 2014 at 8:13 AM, Ashan Dhananjaya ash...@wso2.com
 wrote:

 congratzz sajini. all da very best!! happy for u.

 On Tue, Nov 18, 2014 at 1:26 PM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sajini,
 Congratulations!
 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!

 thanks and best regards

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

 E: ram...@wso2.com

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




 --
 Ashan Dhananjaya Kumara
 Trainee Software Engineer, WSO2 Inc.
 Inc: *WSO2 Inc. *
 Phone : +94715547461
 Blog : http://ashandhananjaya.blogspot.com/
 Twitter  : https://twitter.com/Dhananjaya92
 Say ello :https://ello.co/ashandk





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




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




 --
 *Godwin Amila Shrimal*
 Senior Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila

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




 --
 Supun Malinga,

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

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




 --
 Shashika Prabath Karunatilaka,
 Software Engineer,
 WSO2, Inc: http://wso2.com/
 mobile : +94 77 7487792

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




 --
 Software Engineer
 WSO2 Inc.; http://wso2.com
 http://www.google.com/url?q=http%3A%2F%2Fwso2.comsa=Dsntz=1usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg
 lean.enterprise.middleware

 mobile: *+94728671315 %2B94728671315*


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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] puppet agent hang during catalog run for file transfers

2014-11-12 Thread Suhan Dharmasuriya
/lib]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring
File[/var/lib/puppet/ssl]
debug:
/File[/var/lib/puppet/ssl/private_keys/appserver-mgr.openstacklocal.pem]:
Autorequiring File[/var/lib/puppet/ssl/private_keys]
debug:
/File[/var/lib/puppet/ssl/public_keys/appserver-mgr.openstacklocal.pem]:
Autorequiring File[/var/lib/puppet/ssl/public_keys]
debug: Finishing transaction 70295832914200
debug: Using cached certificate for ca
debug: Using cached certificate for appserver-mgr.openstacklocal
debug: Finishing transaction 70295832397140
debug: Loaded state in 0.00 seconds
dnsdomainname: Name or service not known
debug: Executing '/etc/puppet/etckeeper-commit-pre'
debug: catalog supports formats: b64_zlib_yaml dot pson raw yaml; using pson
debug: Using cached certificate for ca
debug: Using cached certificate for appserver-mgr.openstacklocal
debug: Using cached certificate_revocation_list for ca
info: Caching catalog for appserver-mgr.openstacklocal
debug: Puppet::Type::Package::ProviderPorts: file
/usr/local/sbin/portversion does not exist
debug: Puppet::Type::Package::ProviderOpenbsd: file pkg_delete does not
exist
debug: Puppet::Type::Package::ProviderZypper: file /usr/bin/zypper does not
exist
debug: Puppet::Type::Package::ProviderAptrpm: file rpm does not exist
debug: Puppet::Type::Package::ProviderRug: file /usr/bin/rug does not exist
debug: Puppet::Type::Package::ProviderNim: file /usr/sbin/nimclient does
not exist
debug: Puppet::Type::Package::ProviderYum: file yum does not exist
debug: Puppet::Type::Package::ProviderSunfreeware: file pkg-get does not
exist
debug: Puppet::Type::Package::ProviderPkg: file /usr/bin/pkg does not exist
debug: Puppet::Type::Package::ProviderPortage: file /usr/bin/emerge does
not exist
debug: Puppet::Type::Package::ProviderUrpmi: file urpmi does not exist
debug: Puppet::Type::Package::ProviderGem: file gem does not exist
debug: Puppet::Type::Package::ProviderAix: file /usr/sbin/installp does not
exist
debug: Puppet::Type::Package::ProviderPacman: file /usr/bin/pacman does not
exist
debug: Puppet::Type::Package::ProviderSun: file /usr/sbin/pkgrm does not
exist
debug: Puppet::Type::Package::ProviderUp2date: file /usr/sbin/up2date-nox
does not exist
debug: Puppet::Type::Package::ProviderRpm: file rpm does not exist
debug: Puppet::Type::Package::ProviderFink: file /sw/bin/fink does not exist
debug: Puppet::Type::Package::ProviderFreebsd: file /usr/sbin/pkg_delete
does not exist
debug: Puppet::Type::Package::ProviderHpux: file /usr/sbin/swinstall does
not exist
debug: Puppet::Type::Package::ProviderPortupgrade: file
/usr/local/sbin/portinstall does not exist
debug: Creating default schedules
debug: Loaded state in 0.00 seconds
info: Applying configuration version '1415774185'
debug: /Schedule[daily]: Skipping device resources because running on a host
debug: /Schedule[monthly]: Skipping device resources because running on a
host
debug: /Schedule[hourly]: Skipping device resources because running on a
host
debug: Prefetching apt resources for package
debug: Executing '/usr/bin/dpkg-query -W --showformat '${Status} ${Package}
${Version}\n''
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query
-W --showformat '${Status} ${Package} ${Version}\n''
debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using
pson


Please provide a direction to solve this issue.

Thanks,
Suhan
-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] puppet agent hang during catalog run for file transfers

2014-11-12 Thread Suhan Dharmasuriya
File is not copied to the target folder.

On Wed, Nov 12, 2014 at 1:53 PM, Suhan Dharmasuriya suh...@wso2.com wrote:

 Hi,

 I have spawned two OpenStack instances of ubuntu 12.04 (via Python
 NovaClient API).
 One is configured as puppet master and the other one is as puppet agent.
 Both have internet and intranet connectivity.
 I have pushed a simple configuration to puppet agent (say installing
 'vim') and it was successful.

 site.pp content for the node.
 node 'appserver-mgr' {
 package { 'vim':
 ensure = present,
 }
 }

 Terminal output:
 root@appserver-mgr:/# puppet agent --test
 dnsdomainname: Name or service not known
 dnsdomainname: Name or service not known
 info: Caching catalog for appserver-mgr.openstacklocal
 info: Applying configuration version '1415779058'
 notice: /Stage[main]//Node[appserver-mgr]/Package[vim]/ensure: ensure
 changed 'purged' to 'present'
 notice: Finished catalog run in 7.21 seconds
 root@appserver-mgr:/#

 But when I tried with some file transfer, the catalog run is halted until
 I terminate the process manually.
 File is also present and required privileges are given.

 new site.pp content for the node.
 node 'appserver-mgr' {
 package { 'vim':
 ensure = present,
 }
 file { '/opt/wso2as-5.2.1.zip':
 replace = no,
 ensure = present,
 source = puppet:///appserver/wso2as-5.2.1.zip,
 }
 }

 Terminal output:
 root@appserver-mgr:/# puppet agent --test --debug
 dnsdomainname: Name or service not known
 debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl
 does not exist
 debug: Puppet::Type::User::ProviderUser_role_add: file rolemod does not
 exist
 debug: Puppet::Type::User::ProviderPw: file pw does not exist
 debug: Failed to load library 'ldap' for feature 'ldap'
 debug: Puppet::Type::User::ProviderLdap: feature ldap is missing
 debug: Failed to load library 'rubygems' for feature 'rubygems'
 debug: Failed to load library 'selinux' for feature 'selinux'
 debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/client_yaml]: Autorequiring
 File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/client_data]: Autorequiring
 File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/state/resources.txt]: Autorequiring
 File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring
 File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/state/last_run_report.yaml]: Autorequiring
 File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/state/graphs]: Autorequiring
 File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring
 File[/var/lib/puppet/ssl]
 debug: /File[/var/lib/puppet/ssl/certs/appserver-mgr.openstacklocal.pem]:
 Autorequiring File[/var/lib/puppet/ssl/certs]
 debug: /File[/var/run/puppet/agent.pid]: Autorequiring
 File[/var/run/puppet]
 debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring
 File[/var/lib/puppet/ssl]
 debug:
 /File[/var/lib/puppet/ssl/public_keys/appserver-mgr.openstacklocal.pem]:
 Autorequiring File[/var/lib/puppet/ssl/public_keys]
 debug: /File[/var/lib/puppet/state/classes.txt]: Autorequiring
 File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring
 File[/var/lib/puppet/ssl]
 debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet]
 debug:
 /File[/var/lib/puppet/ssl/private_keys/appserver-mgr.openstacklocal.pem]:
 Autorequiring File[/var/lib/puppet/ssl/private_keys]
 debug: /File[/var/lib/puppet/ssl/private]: Autorequiring
 File[/var/lib/puppet/ssl]
 debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring
 File[/var/lib/puppet/ssl]
 debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring
 File[/var/lib/puppet/ssl/certs]
 debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring
 File[/var/lib/puppet/ssl]
 debug: /File[/var/lib/puppet/clientbucket]: Autorequiring
 File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/state/last_run_summary.yaml]: Autorequiring
 File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
 debug: Finishing transaction 70295833066680
 debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring
 File[/var/lib/puppet/ssl]
 debug: /File[/var/lib/puppet/ssl/certs/appserver-mgr.openstacklocal.pem]:
 Autorequiring File[/var/lib/puppet/ssl/certs]
 debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring
 File[/var/lib/puppet/ssl]
 debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring
 File[/var/lib/puppet/ssl/certs]
 debug: /File[/var/lib/puppet/ssl/certificate_requests

Re: [Dev] puppet agent hang during catalog run for file transfers

2014-11-12 Thread Suhan Dharmasuriya
Hi,

Puppet Master/Agent version: 2.7.11
I'm suspecting may be due to a network slowness.
After trying again and after couple of hours files I were transferred
(95MB).

Thanks,
Suhan

On Wed, Nov 12, 2014 at 2:49 PM, Harsha Thirimanna hars...@wso2.com wrote:

 Hi,

 What are the version of puppet master and agent that you are using ?


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

 *Lean . Enterprise . Middleware*


 On Wed, Nov 12, 2014 at 2:28 PM, Dunith Dhanushka dun...@wso2.com wrote:

 Hi,

 I also experienced above issue while trying to copy JDK installation file
 from puppet master to another node in OpenStack cloud. During the file
 transfer, script hanged and never continued further.
 Apart from that once we download a file using wget, file download happens
 partially at the first time. We need to execute puppet agent -tv multiple
 times to get it downloaded fully.


 Regards,
 Dunith

 On Wed, Nov 12, 2014 at 1:55 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 File is not copied to the target folder.

 On Wed, Nov 12, 2014 at 1:53 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 I have spawned two OpenStack instances of ubuntu 12.04 (via Python
 NovaClient API).
 One is configured as puppet master and the other one is as puppet agent.
 Both have internet and intranet connectivity.
 I have pushed a simple configuration to puppet agent (say installing
 'vim') and it was successful.

 site.pp content for the node.
 node 'appserver-mgr' {
 package { 'vim':
 ensure = present,
 }
 }

 Terminal output:
 root@appserver-mgr:/# puppet agent --test
 dnsdomainname: Name or service not known
 dnsdomainname: Name or service not known
 info: Caching catalog for appserver-mgr.openstacklocal
 info: Applying configuration version '1415779058'
 notice: /Stage[main]//Node[appserver-mgr]/Package[vim]/ensure: ensure
 changed 'purged' to 'present'
 notice: Finished catalog run in 7.21 seconds
 root@appserver-mgr:/#

 But when I tried with some file transfer, the catalog run is halted
 until I terminate the process manually.
 File is also present and required privileges are given.

 new site.pp content for the node.
 node 'appserver-mgr' {
 package { 'vim':
 ensure = present,
 }
 file { '/opt/wso2as-5.2.1.zip':
 replace = no,
 ensure = present,
 source = puppet:///appserver/wso2as-5.2.1.zip,
 }
 }

 Terminal output:
 root@appserver-mgr:/# puppet agent --test --debug
 dnsdomainname: Name or service not known
 debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl
 does not exist
 debug: Puppet::Type::User::ProviderUser_role_add: file rolemod does not
 exist
 debug: Puppet::Type::User::ProviderPw: file pw does not exist
 debug: Failed to load library 'ldap' for feature 'ldap'
 debug: Puppet::Type::User::ProviderLdap: feature ldap is missing
 debug: Failed to load library 'rubygems' for feature 'rubygems'
 debug: Failed to load library 'selinux' for feature 'selinux'
 debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/client_yaml]: Autorequiring
 File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/client_data]: Autorequiring
 File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/state/resources.txt]: Autorequiring
 File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring
 File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/state/last_run_report.yaml]: Autorequiring
 File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/state/graphs]: Autorequiring
 File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring
 File[/var/lib/puppet/ssl]
 debug:
 /File[/var/lib/puppet/ssl/certs/appserver-mgr.openstacklocal.pem]:
 Autorequiring File[/var/lib/puppet/ssl/certs]
 debug: /File[/var/run/puppet/agent.pid]: Autorequiring
 File[/var/run/puppet]
 debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring
 File[/var/lib/puppet/ssl]
 debug:
 /File[/var/lib/puppet/ssl/public_keys/appserver-mgr.openstacklocal.pem]:
 Autorequiring File[/var/lib/puppet/ssl/public_keys]
 debug: /File[/var/lib/puppet/state/classes.txt]: Autorequiring
 File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring
 File[/var/lib/puppet/ssl]
 debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet]
 debug

Re: [Dev] puppet agent hang during catalog run for file transfers

2014-11-12 Thread Suhan Dharmasuriya
Thanks Harsha, Udara, Dunith.
I'll try with passenger first and will contact Dev ops team.

Thanks,
Suhan

On Thu, Nov 13, 2014 at 1:34 AM, Harsha Thirimanna hars...@wso2.com wrote:

 This can be an issue with default puppet (webrick) server time to time
 when downloading large files. It is better if you can install passenger to
 the puppet master. Then this will be stable more.
 Please contact our Dev ops team and get the correct approach.

 harshat@mobile
 On Nov 12, 2014 11:51 AM, Suhan Dharmasuriya suh...@wso2.com wrote:

 Hi,

 Puppet Master/Agent version: 2.7.11
 I'm suspecting may be due to a network slowness.
 After trying again and after couple of hours files I were transferred
 (95MB).

 Thanks,
 Suhan

 On Wed, Nov 12, 2014 at 2:49 PM, Harsha Thirimanna hars...@wso2.com
 wrote:

 Hi,

 What are the version of puppet master and agent that you are using ?


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

 *Lean . Enterprise . Middleware*


 On Wed, Nov 12, 2014 at 2:28 PM, Dunith Dhanushka dun...@wso2.com
 wrote:

 Hi,

 I also experienced above issue while trying to copy JDK installation
 file from puppet master to another node in OpenStack cloud. During the file
 transfer, script hanged and never continued further.
 Apart from that once we download a file using wget, file download
 happens partially at the first time. We need to execute puppet agent -tv
 multiple times to get it downloaded fully.


 Regards,
 Dunith

 On Wed, Nov 12, 2014 at 1:55 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 File is not copied to the target folder.

 On Wed, Nov 12, 2014 at 1:53 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 I have spawned two OpenStack instances of ubuntu 12.04 (via Python
 NovaClient API).
 One is configured as puppet master and the other one is as puppet
 agent.
 Both have internet and intranet connectivity.
 I have pushed a simple configuration to puppet agent (say installing
 'vim') and it was successful.

 site.pp content for the node.
 node 'appserver-mgr' {
 package { 'vim':
 ensure = present,
 }
 }

 Terminal output:
 root@appserver-mgr:/# puppet agent --test
 dnsdomainname: Name or service not known
 dnsdomainname: Name or service not known
 info: Caching catalog for appserver-mgr.openstacklocal
 info: Applying configuration version '1415779058'
 notice: /Stage[main]//Node[appserver-mgr]/Package[vim]/ensure: ensure
 changed 'purged' to 'present'
 notice: Finished catalog run in 7.21 seconds
 root@appserver-mgr:/#

 But when I tried with some file transfer, the catalog run is halted
 until I terminate the process manually.
 File is also present and required privileges are given.

 new site.pp content for the node.
 node 'appserver-mgr' {
 package { 'vim':
 ensure = present,
 }
 file { '/opt/wso2as-5.2.1.zip':
 replace = no,
 ensure = present,
 source = puppet:///appserver/wso2as-5.2.1.zip,
 }
 }

 Terminal output:
 root@appserver-mgr:/# puppet agent --test --debug
 dnsdomainname: Name or service not known
 debug: Puppet::Type::User::ProviderDirectoryservice: file
 /usr/bin/dscl does not exist
 debug: Puppet::Type::User::ProviderUser_role_add: file rolemod does
 not exist
 debug: Puppet::Type::User::ProviderPw: file pw does not exist
 debug: Failed to load library 'ldap' for feature 'ldap'
 debug: Puppet::Type::User::ProviderLdap: feature ldap is missing
 debug: Failed to load library 'rubygems' for feature 'rubygems'
 debug: Failed to load library 'selinux' for feature 'selinux'
 debug: /File[/var/lib/puppet/state]: Autorequiring
 File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/facts]: Autorequiring
 File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/client_yaml]: Autorequiring
 File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/client_data]: Autorequiring
 File[/var/lib/puppet]
 debug: /File[/var/lib/puppet/state/resources.txt]: Autorequiring
 File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring
 File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/state/last_run_report.yaml]:
 Autorequiring File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/state/graphs]: Autorequiring
 File[/var/lib/puppet/state]
 debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring
 File[/var/lib/puppet/ssl]
 debug:
 /File[/var/lib/puppet/ssl/certs/appserver-mgr.openstacklocal.pem]:
 Autorequiring File[/var/lib/puppet/ssl/certs]
 debug: /File[/var/run/puppet/agent.pid]: Autorequiring
 File[/var/run/puppet]
 debug: /File[/var

Re: [Dev] WSO2 Committers += Asanka Abeyweera

2014-11-05 Thread Suhan Dharmasuriya
 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




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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Niranjan Karunanandham

2014-11-04 Thread Suhan Dharmasuriya
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila

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




 --

 *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




 --
 Isuruwan Herath
 Technical Lead

 Contact: +94 776 273 296

 ___
 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




 --
 Shiroshica Kulatilake

 Architect,
 WSO2, Inc. http://wso2.com/
 Phone: +94 776523867

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Milinda Perera

2014-10-28 Thread Suhan Dharmasuriya
Congrats Milinda!!!

On Tue, Oct 28, 2014 at 3:00 PM, Kalpa Welivitigoda kal...@wso2.com wrote:

 Congratulations Milinda !

 On Tue, Oct 28, 2014 at 2:58 PM, Gayashan Amarasinghe gayas...@wso2.com
 wrote:

 Congratulations Milinda!!! :)

 On Tue, Oct 28, 2014 at 2:53 PM, Nandika Jayawardana nand...@wso2.com
 wrote:

 Hi all,

 It's my pleasure to announce Milinda Perera as a WSO2 Committer. Milinda
 has been a valuable contributor to WSO2 BPS product and in recognition of
 his contribution he has been voted as a WSO2 Committer.

 Milinda, welcome aboard and keep up the good work!.

 Regards
 Nandika

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




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com

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




 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Gayashan Amarasinghe

2014-10-21 Thread Suhan Dharmasuriya
Congrats Gayashan!!!

On Tue, Oct 21, 2014 at 3:17 PM, Abimaran Kugathasan abima...@wso2.com
wrote:

 Congrats!

 On Tue, Oct 21, 2014 at 2:46 PM, Vinuri Perera vinu...@wso2.com wrote:

 Congrats !! :)

 On Tue, Oct 21, 2014 at 2:44 PM, Pulasthi Supun pulas...@wso2.com
 wrote:

 Congrats!!

 On Tue, Oct 21, 2014 at 2:33 PM, Rajith Siriwardena raj...@wso2.com
 wrote:

 Congratulations Gayashan!!!

 On Mon, Oct 20, 2014 at 11:50 AM, Sameera Jayasoma same...@wso2.com
 wrote:

 Hi Gayashan,

 It's my pleasure to welcome you to WSO2 Committers club. You've been
 contributing to WSO2 in various forms, hence you deserve this. Please keep
 up with good work you've been doing so far.

 Congratulations!!!

 Thanks,
 Sameera.

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


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




 --
 *Rajith Siriwardana*
 Software Engineer | Cloud Team
 WSO2 Inc. ; http://wso2.com
 *lean. enterprise. middleware*

 ---
 *http://people.apache.org/~siriwardana
 http://people.apache.org/~siriwardana*

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




 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi

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




 --
 Vinuri Perera
 Software Engineer | WSO2 Inc

 M : 0711518805


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




 --
 Thanks
 Abimaran Kugathasan

 Software Engineer | WSO2 Inc
 Data  APIs Technologies Team
 Mobile : +94 773922820

 http://stackoverflow.com/users/515034
 http://lk.linkedin.com/in/abimaran
 http://www.lkabimaran.blogspot.com/  https://github.com/abimaran
 https://twitter.com/abimaran


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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Lasindu Charith

2014-10-20 Thread Suhan Dharmasuriya
Congrats Lasindu!!!

On Tue, Oct 21, 2014 at 9:18 AM, Kasun De Silva kas...@wso2.com wrote:

 Congrats Lasindu !!!

 *Kasun de Silva*
 Software Engineer | *WSO2 Inc.*; http://wso2.com
 lean.enterprise.middleware

 email   : kas...@wso2.com
 mobile : +94 77 794 4260


 On Tue, Oct 21, 2014 at 9:09 AM, Lakmal Warusawithana lak...@wso2.com
 wrote:

 Hi all,

 It's my pleasure to announce Lasindu as a WSO2 Committer. Lasindu has
 done great contributions to Apache Stratos and WSO2 Private PaaS products.
 And in recognition of his contribution he has been voted as a WSO2 commiter.

 Lasindu, welcome aboard and keep up the good work!.

 --
 Lakmal Warusawithana
 Vice President, Apache Stratos
 Director - Cloud Architecture; WSO2 Inc.
 Mobile : +94714289692
 Blog : http://lakmalsview.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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Rajkumar Rajaratnam

2014-10-20 Thread Suhan Dharmasuriya
Congrats Rajkumar!!!

On Tue, Oct 21, 2014 at 9:22 AM, Shiroshica Kulatilake sh...@wso2.com
wrote:

 Congrats !!

 On Tue, Oct 21, 2014 at 9:19 AM, Kasun De Silva kas...@wso2.com wrote:

 Congrats Rajkumar !!!

 *Kasun de Silva*
 Software Engineer | *WSO2 Inc.*; http://wso2.com
 lean.enterprise.middleware

 email   : kas...@wso2.com
 mobile : +94 77 794 4260


 On Tue, Oct 21, 2014 at 9:07 AM, Lakmal Warusawithana lak...@wso2.com
 wrote:

 Hi all,

 It's my pleasure to announce Raj as a WSO2 Committer. Raj has done great
 contributions to Apache Stratos and WSO2 Private PaaS products. And in
 recognition of his contribution he has been voted as a WSO2 commiter.

 Raj, welcome aboard and keep up the good work!.

 --
 Lakmal Warusawithana
 Vice President, Apache Stratos
 Director - Cloud Architecture; WSO2 Inc.
 Mobile : +94714289692
 Blog : http://lakmalsview.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




 --
 Shiroshica Kulatilake

 Architect,
 WSO2, Inc. http://wso2.com/
 Phone: +94 776523867

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Tishan Dahanayakage

2014-10-17 Thread Suhan Dharmasuriya
Congrats Tishan

On Fri, Oct 17, 2014 at 11:26 AM, Shashika Karunatilaka shashi...@wso2.com
wrote:

 Congrats Tishan

 On Fri, Oct 17, 2014 at 11:22 AM, Danesh Kuruppu dan...@wso2.com wrote:

 Congrats Tishan!!!

 On Fri, Oct 17, 2014 at 11:11 AM, Denuwanthi De Silva 
 denuwan...@wso2.com wrote:

 Congratulations Tishan!!

 On Fri, Oct 17, 2014 at 11:08 AM, Niranda Perera nira...@wso2.com
 wrote:

 Congrats Tishan!

 On Fri, Oct 17, 2014 at 11:04 AM, Ashan Dhananjaya ash...@wso2.com
 wrote:

 happy for you Tishan  :)

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




 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44

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




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



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




 --

 Danesh Kuruppu
 Software Engineer
 WSO2 Inc,
 Mobile: +94 (77) 1690552

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




 --
 Shashika Prabath Karunatilaka,
 Software Engineer,
 WSO2, Inc: http://wso2.com/
 mobile : +94 77 7487792

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sachini Jayasekara

2014-10-17 Thread Suhan Dharmasuriya
Congrats Sachini

On Fri, Oct 17, 2014 at 11:27 AM, Shashika Karunatilaka shashi...@wso2.com
wrote:

 Congrats Sachini

 On Fri, Oct 17, 2014 at 11:10 AM, Niranda Perera nira...@wso2.com wrote:

 Congrats Sachini!

 On Fri, Oct 17, 2014 at 11:03 AM, Anuruddha Premalal anurud...@wso2.com
 wrote:

 Congratulation Sachini!!

 On Fri, Oct 17, 2014 at 10:59 AM, Harsha Kumara hars...@wso2.com
 wrote:

 Congratulations Sachini!

 On Fri, Oct 17, 2014 at 10:57 AM, Thilini Shanika thili...@wso2.com
 wrote:

 Congratulations Sachini :)

 On Fri, Oct 17, 2014 at 10:54 AM, Sithumini Senevirathne 
 sithumi...@wso2.com wrote:

 Congratulations Sachini!!!

 On Fri, Oct 17, 2014 at 10:52 AM, Kasun De Silva kas...@wso2.com
 wrote:

 Congratulations Sachini !!

 *Kasun de Silva*
 Software Engineer | *WSO2 Inc.*; http://wso2.com
 lean.enterprise.middleware

 email   : kas...@wso2.com
 mobile : +94 77 794 4260


 On Fri, Oct 17, 2014 at 10:51 AM, Vijitha Ekanayake 
 vijit...@wso2.com wrote:

 Congratulations Sachini !!!

 On Fri, Oct 17, 2014 at 10:43 AM, Kalpa Welivitigoda 
 kal...@wso2.com wrote:

 Congratulations Sachini !

 On Fri, Oct 17, 2014 at 10:41 AM, Sriskandarajah Suhothayan 
 s...@wso2.com wrote:

 Hi all,

 It's our pleasure to welcome Sachini Jayasekara as a WSO2
 Committer. Sachini has contributed immensely to WSO2 Complex Event
 Processor especially on Siddhi and shown great commitment.
 In recognition of her contribution, she has been voted as a WSO2
 Commiter.

 Welcome aboard and keep up the good work !

 Regards
 Suho

 --

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


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

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




 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215

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




 --
 Vijitha Ekanayake
 Software Engineer*, *WSO2, Inc.; http://wso2.com/
 Mobile : +94 777 24 73 39 | +94 718 74 44 08
 lean.enterprise.middleware

 ___
 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




 --
 --
 Sithumini Senevirathne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: sithumi...@wso2.com,   mobile: +94 756977999

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




 --
 Thilini Shanika
 Software Engineer
 WSO2, Inc.; http://wso2.com
 20, Palmgrove Avenue, Colombo 3

 E-mail: tgtshan...@gmail.com


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




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

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




 --
 *Anuruddha Premalal*
 Software Eng. | WSO2 Inc.
 Mobile : +94710461070
 Web site : www.regilandvalley.com


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




 --
 *Niranda Perera*
 Software Engineer, WSO2 Inc.
 Mobile: +94-71-554-8430
 Twitter: @n1r44 https://twitter.com/N1R44

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




 --
 Shashika Prabath Karunatilaka,
 Software Engineer,
 WSO2, Inc: http://wso2.com/
 mobile : +94 77 7487792

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Successfully built docker image pushing to glance takes multiple attempts

2014-10-02 Thread Suhan Dharmasuriya
1a7959cf8089: Image successfully pushed
84dbad4e9c5e: Image successfully pushed
d0b01fd1050f: Image successfully pushed
*42c7e6c26e94: Pushing
[==] 10.24 kB/10.24 kB*
2014/10/02 14:02:56 Received HTTP code 500 while uploading layer: !DOCTYPE
HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN
title500 Internal Server Error/title
h1Internal Server Error/h1
pThe server encountered an internal error and was unable to complete your
request.  Either the server is overloaded or there is an error in the
application./p
stratos@Dev-PC:/media/sf_Documents/python-cartridge$ docker push
192.168.57.30:5042/python-cartridge
The push refers to a repository [192.168.57.30:5042/python-cartridge] (len:
1)
Sending image list
Pushing repository 192.168.57.30:5042/python-cartridge (1 tags)
511136ea3c5a: Image already pushed, skipping
93c381d2c255: Image already pushed, skipping
a5208e800234: Image already pushed, skipping
9fccf650672f: Image already pushed, skipping
1186c90e2e28: Image already pushed, skipping
f6a1afb93adb: Image already pushed, skipping
822a01ae9a15: Image already pushed, skipping
58289e4edf48: Image already pushed, skipping
14038705f31b: Image already pushed, skipping
4964a7873791: Image already pushed, skipping
3383f5683202: Image already pushed, skipping
879f1e46757d: Image already pushed, skipping
2f481f76bdf4: Image already pushed, skipping
1d20646d583a: Image already pushed, skipping
80398cfadbf5: Image already pushed, skipping
23140aec711d: Image already pushed, skipping
b9c205cf9b1e: Image already pushed, skipping
fbdd77ab1c21: Image already pushed, skipping
62327691f5fe: Image already pushed, skipping
6f9dc220429b: Image already pushed, skipping
902641b82a20: Image already pushed, skipping
7056dc8a0f43: Image already pushed, skipping
0a68c498151e: Image already pushed, skipping
041aa28f35db: Image already pushed, skipping
80c098f255e8: Image already pushed, skipping
688df381ae85: Image already pushed, skipping
0252eb0dd868: Image already pushed, skipping
393377611c14: Image already pushed, skipping
*19abf97b8fdf: Image already pushed, skipping *
c6d90da0dc39: Image already pushed, skipping
b6122163af1f: Image already pushed, skipping
6bdf5cd2ceca: Image already pushed, skipping
643de533274c: Image already pushed, skipping
5a632f856c9f: Image already pushed, skipping
*056103298b94: Image already pushed, skipping *
44bbcce89b2c: Image already pushed, skipping
eef39a6a5fde: Image already pushed, skipping
562b86f90cc9: Image already pushed, skipping
*cd2c710519ff: Image already pushed, skipping *
0b989a3d0fa4: Image already pushed, skipping
a0f8142afbb2: Image already pushed, skipping
22cf4a3ed8f2: Image already pushed, skipping
80b93db9c8a8: Image already pushed, skipping
7a71ae8afc77: Image already pushed, skipping
8a25fe73dddc: Image already pushed, skipping
4eba50c06df9: Image already pushed, skipping
0626d6d4b8b8: Image already pushed, skipping
3ef5cacb7a39: Image already pushed, skipping
9c737e96e6e6: Image already pushed, skipping
9682681f00bb: Image already pushed, skipping
1a7959cf8089: Image already pushed, skipping
84dbad4e9c5e: Image already pushed, skipping
d0b01fd1050f: Image already pushed, skipping
*42c7e6c26e94: Image successfully pushed *
14bdb2a9340a: Image successfully pushed
bb87083124f4: Image successfully pushed
04c5faccd34c: Image successfully pushed
df9fd2ec4d62: Image successfully pushed
b11a1fed0606: Image successfully pushed
aee39974ed29: Image successfully pushed
fc895aec07bb: Image successfully pushed
175f2036520b: Image successfully pushed
Pushing tags for rev [175f2036520b] on {
http://192.168.57.30:5042/v1/repositories/python-cartridge/tags/latest}
stratos@Dev-PC:/media/sf_Documents/python-cartridge$

Any idea why this is happening?
This is not a blocking issue.

Thanks,
Suhan
-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Samith Dassanayake

2014-10-01 Thread Suhan Dharmasuriya
Congrats Samith!

On Thu, Oct 2, 2014 at 11:27 AM, Vijitha Ekanayake vijit...@wso2.com
wrote:

 Congratulations Samith!!!

 On Thu, Oct 2, 2014 at 11:25 AM, Gayashan Amarasinghe gayas...@wso2.com
 wrote:

 Congratulations Samith!!!

 On Thu, Oct 2, 2014 at 11:24 AM, Kasun Dissanayake kas...@wso2.com
 wrote:

 Congradzz Samith

 On Thu, Oct 2, 2014 at 10:46 AM, Roshan Wijesena ros...@wso2.com
 wrote:

 Congratulations!!

 On Thu, Oct 2, 2014 at 10:43 AM, Lasindu Charith lasi...@wso2.com
 wrote:

 Congratz Samith ...!!!

 On Thu, Oct 2, 2014 at 10:40 AM, Kasun De Silva kas...@wso2.com
 wrote:

 Congratz Samith 

 *Kasun de Silva*
 Software Engineer | *WSO2 Inc.*; http://wso2.com
 lean.enterprise.middleware

 email   : kas...@wso2.com
 mobile : +94 77 794 4260


 On Thu, Oct 2, 2014 at 10:39 AM, Dimuthu Leelarathne 
 dimut...@wso2.com wrote:

 Hi all,

 Its my pleasure to welcome Samith Dassanayake  as a WSO2 Committer.
 Samith has contributed immensely to WSO2 App Factory and has shown great
 commitment. In recognition of his contribution, he has been voted as a 
 WSO2
 Committer.

 Samith, welcome aboard!

 thanks,
 dimuthu

 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

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

 Lean . Enterprise . Middleware

 ___
 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




 --
 *Lasindu Charith*
 Software Engineer, WSO2 Inc.
 Mobile: +94714427192
 Web: blog.lasindu.com

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




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

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




 --
 Kasun Dissanayake
 Software Engineer
 WSO2 Inc.
 Lean | Enterprise | Middleware
 Tel - +94 77 086 2860
 Skype - kasun.dissanayake4
 LinkedIn - lk.linkedin.com/in/kasundis/

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




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com

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




 --
 Vijitha Ekanayake
 Software Engineer*, *WSO2, Inc.; http://wso2.com/
 Mobile : +94 777 24 73 39 | +94 718 74 44 08
 lean.enterprise.middleware

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Anuruddha Premalal

2014-09-28 Thread Suhan Dharmasuriya
Congratz Anuruddha!

On Mon, Sep 29, 2014 at 9:14 AM, Inosh Perera ino...@wso2.com wrote:

 Congrats Anuruddha!!

 On Mon, Sep 29, 2014 at 9:10 AM, Jayanga Dissanayake jaya...@wso2.com
 wrote:

 Congratulations Anuruddha...

 *Jayanga Dissanayake*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.com/
 lean . enterprise . middleware
 email: jaya...@wso2.com
 mobile: +94772207259

 On Mon, Sep 29, 2014 at 9:07 AM, Dakshika Jayathilaka daksh...@wso2.com
 wrote:

 Congratulations Anuruddha.!!

 *Dakshika Jayathilaka*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911

 On Mon, Sep 29, 2014 at 9:06 AM, Danesh Kuruppu dan...@wso2.com wrote:

 Congrats Anuruddha.!!

 On Mon, Sep 29, 2014 at 9:01 AM, Tharindu Dharmarathna 
 tharin...@wso2.com wrote:

 Congratz Anuruddha!!

 On Mon, Sep 29, 2014 at 8:58 AM, Rajith Siriwardena raj...@wso2.com
 wrote:

 Congratulations Anuruddha.!!

 On Mon, Sep 29, 2014 at 8:53 AM, Dimuthu Leelarathne 
 dimut...@wso2.com wrote:

 Hi all,

 Its my pleasure to welcome Anuruddha Premalal  as a WSO2 Committer.
 Anuruddha has contributed immensely to WSO2 App Factory and has shown 
 great
 commitment. In recognition of his contribution, he has been voted as a 
 WSO2
 Committer.

 Anuruddha, welcome aboard!

 Regards,
 Amila.

 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

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

 Lean . Enterprise . Middleware

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




 --
 *Rajith Siriwardana*
 Software Engineer | Cloud Team
 WSO2 Inc. ; http://wso2.com
 *lean. enterprise. middleware*

 ---
 *http://people.apache.org/~siriwardana
 http://people.apache.org/~siriwardana*

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




 --

 *Tharindu Dharmarathna*Associate Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94779109091 %2B94779109091*

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




 --

 Danesh Kuruppu
 Software Engineer
 WSO2 Inc,
 Mobile: +94 (77) 1690552

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



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



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




 --
 Inosh Perera
 Software Engineer, WSO2 Inc.
 Tel: 0785293686

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Commiters += Rajith Siriwardena

2014-09-26 Thread Suhan Dharmasuriya
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhan-opensource.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Suhan Dharmasuriya
Thanks Lasindu,

Thushara and I are in the process of modifying the shell scripts suitable
for osx.
We contacted Nirmal, Lakmal, Waruna and Udara and had a quick discussion.

After the discussion, the solution we found was to delete the
USERSTORE_DB_SCHEMA database from mysql manually.

As mentioned earlier, once $ sudo ./setup.sh -p default -s command is run
we get the following error.
outputEventAdaptor name=JMSOutputAdaptor statistics=disable
  trace=enable type=jms xmlns=
http://wso2.org/carbon/eventadaptormanager;
  !--property
name=java.naming.provider.urlCEP_HOME/repository/conf/jndi.properties/property--
  property name=java.naming.provider.urltcp://10.100.5.175:61616
/property
  property
name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/property
  property
name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/property
  property name=transport.jms.DestinationTypetopic/property
/outputEventAdaptor
End configuring the Complex Event Processor
/WSO2/Products/stratos/opt/stratos-installer
Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
chown: suhanr: illegal group name

*After the second attempt we were getting the said error. $subject.*

As a temporary solution we deleted the said database from mysql.
mysql show databases;
+-+
| Database|
+-+
| information_schema  |
| *USERSTORE_DB_SCHEMA* |
| mysql   |
| performance_schema  |
| test|
+-+
5 rows in set (0.00 sec)

mysql drop database *USERSTORE_DB_SCHEMA*;
Query OK, 39 rows affected (0.05 sec)

mysql show databases;
++
| Database   |
++
| information_schema |
| mysql  |
| performance_schema |
| test   |
++
4 rows in set (0.00 sec)

Then we were able to avoid the mentioned error in $subject.

Thanks,
Suhan

On Wed, Sep 17, 2014 at 11:21 AM, Lasindu Charith lasi...@wso2.com wrote:

 Hi Thushara and Suhan,

 Better if you can discuss the issues related to Apaches Stratos in
 stratos-dev list (http://stratos.apache.org/community/mailing-lists.html)
 But for now, regarding the issues you have when setting up Stratos in osx,
 Nirmal, Reka or Prasanna might be able to help (Added).

 Thanks,

 On Tue, Sep 16, 2014 at 3:57 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 We have installed mysql for OSX 10.9 [1]

 [1] http://www.macminivault.com/mysql-mavericks/

 On Tue, Sep 16, 2014 at 3:55 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi,

 Myself and Thushara were following the tutorial [1] installing apache
 Stratos and came to the following section.

- Run the stratos-setup.sh file as the root.

 $ sudo ./setup.sh -p default

 After running the command we got the following error in our mac book
 pros.
 Detail terminal output is attached in the mail for reference.

 /WSO2/Products/stratos/opt/stratos-installer
 Warning: Using a password on the command line interface can be insecure.
 *ERROR 1061 (42000) at line 57: Duplicate key name
 'REG_PATH_IND_BY_PATH_VALUE'*

 We also followed the apache stratos wiki [3].
 Please provide a direction to proceed from here.

 *Note*: *earlier setup.sh file gave an error saying,*
 sed: illegal option --r
 *Then the shell script was changed accordingly[2].*
 *Please note that we are using Mac OSX 10.9.4*

 *Then again an error appeared stating -i switch is not supported.*

 *Therefore the following shell script files were modified removing -i
 switch.*
 *ec2.sh*
 *openstack.sh*
 *setup.sh*
 *setup.conf*

 *Scripts are attached for reference. *

 [1]
 http://blog.ravihansa3000.com/2014/04/installing-apache-stratos-40-with.html
 [2] http://www.flashesofpanic.com/panic/002596.php
 [3]
 https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Cloud+Controller+Configuration

 Thanks,
 Suhan and Thushara
 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhancoold.blogspot.com/




 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhancoold.blogspot.com/

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




 --
 *Lasindu Charith*
 Software Engineer, WSO2 Inc.
 Mobile: +94714427192
 Web: blog.lasindu.com




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhancoold.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sewwandhi Perera

2014-09-17 Thread Suhan Dharmasuriya
Congrats... :)

On Wed, Sep 17, 2014 at 12:17 PM, Rajith Vitharana raji...@wso2.com wrote:

 Congrags ... :)

 On Wed, Sep 17, 2014 at 12:16 PM, Nipuni Perera nip...@wso2.com wrote:


 Congradulations Sewwandi

 On Wed, Sep 17, 2014 at 12:13 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Congratulations !!!

 On Wed, Sep 17, 2014 at 12:09 PM, Sinthuja Ragendran sinth...@wso2.com
 wrote:

 Congratz sewwandi!

 On Wed, Sep 17, 2014 at 11:56 AM, Ramith Jayasinghe ram...@wso2.com
 wrote:

 Hi Sewwandhi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Keep up the good work!
 thanks and best regards,

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

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


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




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

 Blog: http://sinthu-rajan.blogspot.com/
 Mobile: +94774273955



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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




 --
 Nipuni Perera
 Software Engineer; WSO2 Inc.; http://wso2.com
 Email: nip...@wso2.com
 Git hub profile: https://github.com/nipuni
 Mobile: +94 (71) 5626680
 http://wso2.com


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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhancoold.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Suhan Dharmasuriya
Hi Manula,

Nirmal, Thushara and I did try running clean.sh script but had no luck.
Sample output is as follows.
Note that mysql root password is 'pass'.
Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u root -p pass
Please confirm that you want to remove stratos databases, servers and logs
[y/n] y
Stopping all java processes
No matching processes were found
Waiting for applications to exit
Removing userstore database
Warning: Using a password on the command line interface can be insecure.
Removing Stratos
Removing logs
Suhans-MacBook-Pro:stratos-installer suhanr$

According to the mysql server output the database is still there.
mysql show databases;
+-+
| Database|
+-+
| information_schema  |
| USERSTORE_DB_SCHEMA |
| mysql   |
| performance_schema  |
| test|
+-+
5 rows in set (0.00 sec)

mysql show databases;
+-+
| Database|
+-+
| information_schema  |
| USERSTORE_DB_SCHEMA |
| mysql   |
| performance_schema  |
| test|
+-+
5 rows in set (0.00 sec)

Thanks,
Suhan

On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla prasa...@wso2.com
wrote:

 HI,

 The sed issue came to me also.  I modifed the scripts and changed all sed
 to gsed.


 On Wed, Sep 17, 2014 at 12:52 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 The $subject error occurs because in the first time the script fails, and
 at that time it already create the database. Since you didn't run the
 clean.sh databases are already in the environment. After you run the
 setup.sh in second time you will get the $subject error.

 Thanks !


 On Wed, Sep 17, 2014 at 12:46 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Udara,
 Yes, We will do the needful.

 Thanks,
 Thushara.

 On Wed, Sep 17, 2014 at 12:43 PM, Udara Liyanage ud...@wso2.com wrote:



 On Wed, Sep 17, 2014 at 12:16 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Thanks Lasindu,

 Thushara and I are in the process of modifying the shell scripts
 suitable for osx.
 We contacted Nirmal, Lakmal, Waruna and Udara and had a quick
 discussion.

 After the discussion, the solution we found was to delete the
 USERSTORE_DB_SCHEMA database from mysql manually.

 As mentioned earlier, once $ sudo ./setup.sh -p default -s command
 is run we get the following error.
 outputEventAdaptor name=JMSOutputAdaptor statistics=disable
   trace=enable type=jms xmlns=
 http://wso2.org/carbon/eventadaptormanager;
   !--property
 name=java.naming.provider.urlCEP_HOME/repository/conf/jndi.properties/property--
   property name=java.naming.provider.urltcp://10.100.5.175:61616
 /property
   property
 name=java.naming.factory.initialorg.apache.activemq.jndi.ActiveMQInitialContextFactory/property
   property
 name=transport.jms.ConnectionFactoryJNDINameTopicConnectionFactory/property
   property name=transport.jms.DestinationTypetopic/property
 /outputEventAdaptor
 End configuring the Complex Event Processor
 /WSO2/Products/stratos/opt/stratos-installer
 Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
 chown: suhanr: illegal group name

 What it tries to do is changing the ownership of installer to user
 suhanr that he can start Stratos. I guess the user group suhanr  is not
 present in your environment. Please check with the command groups.

 *After the second attempt we were getting the said error. $subject.*

 As a temporary solution we deleted the said database from mysql.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | *USERSTORE_DB_SCHEMA* |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql drop database *USERSTORE_DB_SCHEMA*;
 Query OK, 39 rows affected (0.05 sec)

 mysql show databases;
 ++
 | Database   |
 ++
 | information_schema |
 | mysql  |
 | performance_schema |
 | test   |
 ++
 4 rows in set (0.00 sec)

 Then we were able to avoid the mentioned error in $subject.

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 11:21 AM, Lasindu Charith lasi...@wso2.com
 wrote:

 Hi Thushara and Suhan,

 Better if you can discuss the issues related to Apaches Stratos in
 stratos-dev list (
 http://stratos.apache.org/community/mailing-lists.html)
 But for now, regarding the issues you have when setting up Stratos in
 osx, Nirmal, Reka or Prasanna might be able to help (Added).

 Thanks,

 On Tue, Sep 16, 2014 at 3:57 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 We have installed mysql for OSX 10.9 [1]

 [1] http://www.macminivault.com/mysql-mavericks/

 On Tue, Sep 16, 2014 at 3:55 PM, Suhan Dharmasuriya suh...@wso2.com
  wrote:

 Hi,

 Myself and Thushara were following the tutorial [1] installing
 apache Stratos

Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-17 Thread Suhan Dharmasuriya
Hi all,

Adding to Prasanna's comment.

Following issue,
Changing owner of /WSO2/Products/stratos/opt/stratos to suhanr:suhanr
chown: suhanr: illegal group name
was solved by,
1. Adding a user group as suhanr in mac osx (System Preferences - Users 
Groups (Unlock to change) - new Group as 'suhanr')
2.  sudo chown -R suhanr:suhanr *

Thanks,
Suhan

On Wed, Sep 17, 2014 at 4:39 PM, Prasanna Dangalla prasa...@wso2.com
wrote:

 Hi all,

 Issue was with the sed and database name.

 Fixed those in suhanr's  mac and stratos installed successfully :D .

 Step followed

 1. Installed homerew
 ruby -e $(curl -fsSL
 https://raw.githubusercontent.com/Homebrew/install/master/install)
 2. Installed gnu-sed
 brew install gnu-sed
 3. Changed 'sed' to 'gsed' in setup.sh and openstack.sh scripts
 4. Run setup.sh

 No issues in clean.sh


 On Wed, Sep 17, 2014 at 3:24 PM, Nirmal Fernando nir...@wso2.com wrote:

 Please check the place where it creates this database. Seems like it's
 not properly replaced.

 On Wed, Sep 17, 2014 at 3:22 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi Manula,
 Yes it is.


 On Wed, Sep 17, 2014 at 3:18 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi,

 It might be a problem. Then it create the database as
 USERSTORE_DB_SCHEMA. Isn't it ?

 On Wed, Sep 17, 2014 at 3:10 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Hi,

 Issue was the database name.
 I did the following changes in the setup.conf and now clean.sh is
 working properly.

 # export userstore_db_schema=userstore
 export userstore_db_schema=USERSTORE_DB_SCHEMA # for mac osx

 Is there any issue or conflict in above setup?

 Thanks,
 Thushara

 On Wed, Sep 17, 2014 at 2:50 PM, Thushara Ranawaka thusha...@wso2.com
  wrote:

 Hi Manula,

 FYI

 In mac when we run mysql -u $mysql_user -p$mysql_pass -e DROP
 DATABASE IF EXISTS $userstore_db_schema;  it works without any
 issue. we will debug the shell script and let you know.

 mysql show databases;

 +-+

 | Database|

 +-+

 | information_schema  |

 | USERSTORE_DB_SCHEMA |

 | mysql   |

 | performance_schema  |

 | test|

 +-+

 5 rows in set (0.00 sec)


 mysql exit

 Bye

 Thusharas-MacBook-Pro:~ thushara$ mysql -u root -ppassword -e DROP
 DATABASE IF EXISTS USERSTORE_DB_SCHEMA;

 Warning: Using a password on the command line interface can be
 insecure.

 Thusharas-MacBook-Pro:~ thushara$ mysql

 Welcome to the MySQL monitor.  Commands end with ; or \g.

 Your MySQL connection id is 28

 Server version: 5.6.20 MySQL Community Server (GPL)


 Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights
 reserved.


 Oracle is a registered trademark of Oracle Corporation and/or its

 affiliates. Other names may be trademarks of their respective

 owners.


 Type 'help;' or '\h' for help. Type '\c' to clear the current input
 statement.


 mysql show databases;

 ++

 | Database   |

 ++

 | information_schema |

 | mysql  |

 | performance_schema |

 | test   |

 ++

 4 rows in set (0.00 sec)



 On Wed, Sep 17, 2014 at 2:41 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Hi Suhan,

 Can you please debug and see the username and the password is
 actually there in the database cleanup function. You can simply use echo
 statement inside the drop database function and verify that. clean.sh
 script work perfectly in ubuntu. I'm not sure is there any impact on 
 MAC.

 Thanks !


 On Wed, Sep 17, 2014 at 2:29 PM, Suhan Dharmasuriya suh...@wso2.com
  wrote:

 Hi Manula,

 Nirmal, Thushara and I did try running clean.sh script but had no
 luck.
 Sample output is as follows.
 Note that mysql root password is 'pass'.
 Suhans-MacBook-Pro:stratos-installer suhanr$ sudo ./clean.sh -u
 root -p pass
 Please confirm that you want to remove stratos databases, servers
 and logs [y/n] y
 Stopping all java processes
 No matching processes were found
 Waiting for applications to exit
 Removing userstore database
 Warning: Using a password on the command line interface can be
 insecure.
 Removing Stratos
 Removing logs
 Suhans-MacBook-Pro:stratos-installer suhanr$

 According to the mysql server output the database is still there.
 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 mysql show databases;
 +-+
 | Database|
 +-+
 | information_schema  |
 | USERSTORE_DB_SCHEMA |
 | mysql   |
 | performance_schema  |
 | test|
 +-+
 5 rows in set (0.00 sec)

 Thanks,
 Suhan

 On Wed, Sep 17, 2014 at 1:38 PM, Prasanna Dangalla 
 prasa...@wso2.com

Re: [Dev] WSO2 Committers += Harshan Liyanage

2014-09-17 Thread Suhan Dharmasuriya
/

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




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



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




 --
 Regards,

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

 Mobile - +94 71 8615744
 Blog - dunithd.wordpress.com http://blog.dunith.com
 Twitter - @dunithd http://twitter.com/dunithd

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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhancoold.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Apache Stratos configuration - Duplicate key name 'REG_PATH_IND_BY_PATH_VALUE'

2014-09-16 Thread Suhan Dharmasuriya
We have installed mysql for OSX 10.9 [1]

[1] http://www.macminivault.com/mysql-mavericks/

On Tue, Sep 16, 2014 at 3:55 PM, Suhan Dharmasuriya suh...@wso2.com wrote:

 Hi,

 Myself and Thushara were following the tutorial [1] installing apache
 Stratos and came to the following section.

- Run the stratos-setup.sh file as the root.

 $ sudo ./setup.sh -p default

 After running the command we got the following error in our mac book pros.
 Detail terminal output is attached in the mail for reference.

 /WSO2/Products/stratos/opt/stratos-installer
 Warning: Using a password on the command line interface can be insecure.
 *ERROR 1061 (42000) at line 57: Duplicate key name
 'REG_PATH_IND_BY_PATH_VALUE'*

 We also followed the apache stratos wiki [3].
 Please provide a direction to proceed from here.

 *Note*: *earlier setup.sh file gave an error saying,*
 sed: illegal option --r
 *Then the shell script was changed accordingly[2].*
 *Please note that we are using Mac OSX 10.9.4*

 *Then again an error appeared stating -i switch is not supported.*

 *Therefore the following shell script files were modified removing -i
 switch.*
 *ec2.sh*
 *openstack.sh*
 *setup.sh*
 *setup.conf*

 *Scripts are attached for reference. *

 [1]
 http://blog.ravihansa3000.com/2014/04/installing-apache-stratos-40-with.html
 [2] http://www.flashesofpanic.com/panic/002596.php
 [3]
 https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Cloud+Controller+Configuration

 Thanks,
 Suhan and Thushara
 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138
 Blog: http://suhancoold.blogspot.com/




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhancoold.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when creating a feature from WSO2 Carbon Component

2014-08-30 Thread Suhan Dharmasuriya
-p2-plugin:1.5.3 or one of its
 dependencies could not be resolved: Failed to read artifact descriptor for
 org.wso2.maven:carbon-p2-plugin:jar:1.5.3: Failure to find
 org.wso2.maven:carbon-p2-plugin:pom:1.5.3 in
 http://repo.maven.apache.org/maven2 was cached in the local
 repository, resolution will not be reattempted until the update interval of
 central has elapsed or updates are forced - [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/PluginResolutionException

 Piyums-MacBook-Pro:student-manager sithumini$

 Thank you,
 Regards,
 Sithumini
 --
 --
 Sithumini Senevirathne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email: sithumi...@wso2.com,   mobile: +94 756977999




 --
 *Senduran *
 Software Engineer,
 WSO2, Inc.;  http://wso2.com/ http://wso2.com/
 Mobile: +94 77 952 6548




 --
 Lochana Menikarachchi
 Senior Tech Lead
 WSO2 Inc.





-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
Blog: http://suhancoold.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Carbon OSGi bundle ID lost upon uninstalling and reinstalling same bundle

2014-08-25 Thread Suhan Dharmasuriya
Hi,

I was following the tutorials[1], [2] regarding OSGi bundle installing and
uninstalling.
Just out of curiosity I uninstalled and reinstalled the same bundle.

before uninstallation...
154 ACTIVE  tomcat-ha_7.0.34.wso2v1
155 ACTIVE  tribes_7.0.34.wso2v1
156 ACTIVE  woden_1.0.0.M8-wso2v1
157 ACTIVE  wsdl4j_1.6.2.wso2v4
158 ACTIVE  wss4j_1.5.11.wso2v6
159 ACTIVE  xmlbeans_2.3.0.wso2v1
160 ACTIVE  org.wso2.carbon.student.mgt_4.2.0

Uninstalled...
osgi uninstall 160

Bundle status...
154 ACTIVE  tomcat-ha_7.0.34.wso2v1
155 ACTIVE  tribes_7.0.34.wso2v1
156 ACTIVE  woden_1.0.0.M8-wso2v1
157 ACTIVE  wsdl4j_1.6.2.wso2v4
158 ACTIVE  wss4j_1.5.11.wso2v6
159 ACTIVE  xmlbeans_2.3.0.wso2v1

Reinstallation...
osgi install file:/WSO2/temp/org.wso2.carbon.student.mgt-4.2.0.jar
Bundle id is 161
ClassLoader  null
RegisteredServices   null
ServicesInUsenull
Fragmentsnull
LoaderProxy  org.wso2.carbon.student.mgt; bundle-version=4.2.0
ProtectionDomain null
Key  161
Location file:/WSO2/temp/org.wso2.carbon.student.mgt-4.2.0.jar
State2
Bundle 161|Installed  |1|org.wso2.carbon.student.mgt
(4.2.0)
BundleContextnull
BundleId 161
SymbolicName org.wso2.carbon.student.mgt
BundleData   org.wso2.carbon.student.mgt_4.2.0
KeyHashCode  161
StateChangingnull
BundleDescriptionorg.wso2.carbon.student.mgt_4.2.0
Framework
 org.eclipse.osgi.framework.internal.core.Framework@371ce84e
ResolutionFailureException org.osgi.framework.BundleException: The bundle
org.wso2.carbon.student.mgt_4.2.0 [161] could not be resolved
Revisions[org.wso2.carbon.student.mgt_4.2.0]
StartLevel   1
Version  4.2.0
LastModified 1408949755925
Headers   Bnd-LastModified = 1408938710105
 Build-Jdk = 1.7.0_67
 Built-By = suhanr
 Bundle-ManifestVersion = 2
 Bundle-Name = org.wso2.carbon.student.mgt
 Bundle-SymbolicName = org.wso2.carbon.student.mgt
 Bundle-Version = 4.2.0
 Created-By = Apache Maven Bundle Plugin
 Export-Package =
org.wso2.carbon.student.mgt;version=4.2.0;uses:=org.wso2.carbon.student.mgt.data,org.wso2.carbon.student.mgt.data;version=4.2.0
 Manifest-Version = 1.0
 Require-Capability = osgi.ee;filter:=((osgi.ee=JavaSE)(version=1.5))
 Tool = Bnd-2.3.0.201405100607

Bundle status...
154 ACTIVE  tomcat-ha_7.0.34.wso2v1
155 ACTIVE  tribes_7.0.34.wso2v1
156 ACTIVE  woden_1.0.0.M8-wso2v1
157 ACTIVE  wsdl4j_1.6.2.wso2v4
158 ACTIVE  wss4j_1.5.11.wso2v6
159 ACTIVE  xmlbeans_2.3.0.wso2v1
161 INSTALLED   org.wso2.carbon.student.mgt_4.2.0

Start the bundle...
osgi start 161
osgi [2014-08-25 12:26:37,587]  INFO
{org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
service: StudentManager {super-tenant}

Bundle status...
154 ACTIVE  tomcat-ha_7.0.34.wso2v1
155 ACTIVE  tribes_7.0.34.wso2v1
156 ACTIVE  woden_1.0.0.M8-wso2v1
157 ACTIVE  wsdl4j_1.6.2.wso2v4
158 ACTIVE  wss4j_1.5.11.wso2v6
159 ACTIVE  xmlbeans_2.3.0.wso2v1
161 ACTIVE  org.wso2.carbon.student.mgt_4.2.0

Each time I perform the operation, I'm loosing the previous bundle ID and
new ID is assigned again.
154 ACTIVE  tomcat-ha_7.0.34.wso2v1
155 ACTIVE  tribes_7.0.34.wso2v1
156 ACTIVE  woden_1.0.0.M8-wso2v1
157 ACTIVE  wsdl4j_1.6.2.wso2v4
158 ACTIVE  wss4j_1.5.11.wso2v6
159 ACTIVE  xmlbeans_2.3.0.wso2v1
162 INSTALLED   org.wso2.carbon.student.mgt_4.2.0

Is this the expected behaviour? Is it acceptable to have gaps between
bundle IDs?

Please note that this has no impact to the workflow, just an observation.

[1] http://wso2.com/library/articles/getting-started-wso2-carbon/#carbon
[2]
http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

Thanks and Regards,
Suhan
-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Carbon OSGi bundle ID lost upon uninstalling and reinstalling same bundle

2014-08-25 Thread Suhan Dharmasuriya
Thanks Harshana for the info.

Thanks and Regards,
Suhan


On Mon, Aug 25, 2014 at 1:15 PM, Harshana Eranga Martin 
harshan...@gmail.com wrote:

 Hi Suhan,

 This is the expected behavior and it does not cause any problem in anyway.

 Thanks and Regards,
 Harshana
 --
 Harshana Eranga Martin
 Senior Software Engineer
 Asian Mobile Banking
 Web: https://www.commbank.com.au/ http://wso2.com

 ECF Committer: http://www.eclipse.org/ecf/
 Blog: http://harshana05.blogspot.com
 Profile: https://www.google.com/profiles/harshana05


 On 25 August 2014 15:39, Suhan Dharmasuriya suh...@wso2.com wrote:

 Hi,

 I was following the tutorials[1], [2] regarding OSGi bundle installing
 and uninstalling.
 Just out of curiosity I uninstalled and reinstalled the same bundle.

  before uninstallation...
 154 ACTIVE  tomcat-ha_7.0.34.wso2v1
 155 ACTIVE  tribes_7.0.34.wso2v1
 156 ACTIVE  woden_1.0.0.M8-wso2v1
 157 ACTIVE  wsdl4j_1.6.2.wso2v4
 158 ACTIVE  wss4j_1.5.11.wso2v6
 159 ACTIVE  xmlbeans_2.3.0.wso2v1
 160 ACTIVE  org.wso2.carbon.student.mgt_4.2.0

 Uninstalled...
 osgi uninstall 160

 Bundle status...
 154 ACTIVE  tomcat-ha_7.0.34.wso2v1
 155 ACTIVE  tribes_7.0.34.wso2v1
 156 ACTIVE  woden_1.0.0.M8-wso2v1
 157 ACTIVE  wsdl4j_1.6.2.wso2v4
 158 ACTIVE  wss4j_1.5.11.wso2v6
 159 ACTIVE  xmlbeans_2.3.0.wso2v1

 Reinstallation...
 osgi install file:/WSO2/temp/org.wso2.carbon.student.mgt-4.2.0.jar
 Bundle id is 161
 ClassLoader  null
 RegisteredServices   null
 ServicesInUsenull
 Fragmentsnull
 LoaderProxy  org.wso2.carbon.student.mgt; bundle-version=4.2.0
 ProtectionDomain null
 Key  161
 Location file:/WSO2/temp/org.wso2.carbon.student.mgt-4.2.0.jar
 State2
 Bundle 161|Installed  |1|org.wso2.carbon.student.mgt
 (4.2.0)
 BundleContextnull
 BundleId 161
 SymbolicName org.wso2.carbon.student.mgt
 BundleData   org.wso2.carbon.student.mgt_4.2.0
 KeyHashCode  161
 StateChangingnull
 BundleDescriptionorg.wso2.carbon.student.mgt_4.2.0
 Framework
  org.eclipse.osgi.framework.internal.core.Framework@371ce84e
 ResolutionFailureException org.osgi.framework.BundleException: The bundle
 org.wso2.carbon.student.mgt_4.2.0 [161] could not be resolved
 Revisions[org.wso2.carbon.student.mgt_4.2.0]
 StartLevel   1
 Version  4.2.0
 LastModified 1408949755925
 Headers   Bnd-LastModified = 1408938710105
  Build-Jdk = 1.7.0_67
  Built-By = suhanr
  Bundle-ManifestVersion = 2
  Bundle-Name = org.wso2.carbon.student.mgt
  Bundle-SymbolicName = org.wso2.carbon.student.mgt
  Bundle-Version = 4.2.0
  Created-By = Apache Maven Bundle Plugin
  Export-Package =
 org.wso2.carbon.student.mgt;version=4.2.0;uses:=org.wso2.carbon.student.mgt.data,org.wso2.carbon.student.mgt.data;version=4.2.0
  Manifest-Version = 1.0
  Require-Capability = osgi.ee;filter:=((osgi.ee=JavaSE)(version=1.5))
  Tool = Bnd-2.3.0.201405100607

 Bundle status...
 154 ACTIVE  tomcat-ha_7.0.34.wso2v1
 155 ACTIVE  tribes_7.0.34.wso2v1
 156 ACTIVE  woden_1.0.0.M8-wso2v1
 157 ACTIVE  wsdl4j_1.6.2.wso2v4
 158 ACTIVE  wss4j_1.5.11.wso2v6
 159 ACTIVE  xmlbeans_2.3.0.wso2v1
 161 INSTALLED   org.wso2.carbon.student.mgt_4.2.0

 Start the bundle...
 osgi start 161
 osgi [2014-08-25 12:26:37,587]  INFO
 {org.wso2.carbon.core.deployment.DeploymentInterceptor} -  Deploying Axis2
 service: StudentManager {super-tenant}

 Bundle status...
 154 ACTIVE  tomcat-ha_7.0.34.wso2v1
 155 ACTIVE  tribes_7.0.34.wso2v1
 156 ACTIVE  woden_1.0.0.M8-wso2v1
 157 ACTIVE  wsdl4j_1.6.2.wso2v4
 158 ACTIVE  wss4j_1.5.11.wso2v6
 159 ACTIVE  xmlbeans_2.3.0.wso2v1
 161 ACTIVE  org.wso2.carbon.student.mgt_4.2.0

 Each time I perform the operation, I'm loosing the previous bundle ID and
 new ID is assigned again.
 154 ACTIVE  tomcat-ha_7.0.34.wso2v1
 155 ACTIVE  tribes_7.0.34.wso2v1
 156 ACTIVE  woden_1.0.0.M8-wso2v1
 157 ACTIVE  wsdl4j_1.6.2.wso2v4
 158 ACTIVE  wss4j_1.5.11.wso2v6
 159 ACTIVE  xmlbeans_2.3.0.wso2v1
 162 INSTALLED   org.wso2.carbon.student.mgt_4.2.0

 Is this the expected behaviour? Is it acceptable to have gaps between
 bundle IDs?

 Please note that this has no impact to the workflow, just an observation.

 [1] http://wso2.com/library/articles/getting-started-wso2-carbon/#carbon
 [2]
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

 Thanks and Regards,
 Suhan
 --
 Suhan Dharmasuriya
 Software Engineer - Test Automation

 *WSO2, Inc. *

 lean . enterprise . middleware
 Tel: +94 112 145345
 Mob: +94 779 869138

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





-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware

Re: [Dev] Writing WSO2 carbon component - stub generation error

2014-08-25 Thread Suhan Dharmasuriya
/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/target/org.wso2.carbon.student.mgt.stub-4.2.0.jar
 to
 /Users/thushara/.m2/repository/org/wso2/carbon/org.wso2.carbon.student.mgt.stub/4.2.0/org.wso2.carbon.student.mgt.stub-4.2.0.jar

 [INFO] Installing
 /Users/thushara/Documents/workspaceluna/student-manager/student-manager-components/org.wso2.carbon.student.mgt.stub/pom.xml
 to
 /Users/thushara/.m2/repository/org/wso2/carbon/org.wso2.carbon.student.mgt.stub/4.2.0/org.wso2.carbon.student.mgt.stub-4.2.0.pom

 [INFO]

 [INFO] --- maven-bundle-plugin:2.5.0:install (default-install) @
 org.wso2.carbon.student.mgt.stub ---

 [INFO] Installing
 org/wso2/carbon/org.wso2.carbon.student.mgt.stub/4.2.0/org.wso2.carbon.student.mgt.stub-4.2.0.jar

 [INFO] Writing OBR metadata

 [INFO]
 

 [INFO] BUILD SUCCESS

 [INFO]
 

 [INFO] Total time: 8.935s

 [INFO] Finished at: Mon Aug 25 12:14:50 IST 2014

 [INFO] Final Memory: 17M/51M

 [INFO]
 

 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com thusha...@wso2.com*

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





 --
 Thushara Kasun Ranawaka
 Software Engineer
 WSO2 Inc.; http://www.wso2.com
 lean.enterprise.middleware
 Mobile : *+94 (0) 773438949 %2B94%20%280%29%20773438949*
 *thusha...@wso2.com thusha...@wso2.com*



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




-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 869138
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Writing WSO2 carbon component - stub generation error

2014-08-25 Thread Suhan Dharmasuriya
Thanks a lot Rajith,

It is working now... :) :) :)

plugin
groupIdorg.apache.axis2/groupId
artifactIdaxis2-wsdl2code-maven-plugin/artifactId
version1.6.2/version
executions
execution
goals
goalwsdl2code/goal
/goals
configuration
generateServerSidefalse/generateServerSide

packageNameorg.wso2.carbon.student.mgt.stub/packageName

wsdlFilesrc/main/resources/StudentManager.wsdl/wsdlFile
databindingNameadb/databindingName

outputDirectorytarget/generated-code/outputDirectory
/configuration
/execution
/executions
/plugin

Thanks and Regards,
Suhan


On Mon, Aug 25, 2014 at 4:00 PM, Rajith Vitharana raji...@wso2.com wrote:

 Hi Thushara, Suhan,

 Try using axis2-wsdl2code-maven-plugin to generate the stub, instead of
 using maven-antrun-plugin.

 plugin
 groupIdorg.apache.axis2/groupId
 artifactIdaxis2-wsdl2code-maven-plugin/artifactId
 version1.6.2/version
 executions
 execution
 goals
 goalwsdl2code/goal
 /goals
 configuration
 generateServerSidefalse/generateServerSide

 packageNameorg.wso2.carbon.order.mgt.ui/packageName

 wsdlFilesrc/main/resources/OrderManager.wsdl/wsdlFile
 databindingNameadb/databindingName

 outputDirectorytarget/generated-code/outputDirectory
 /configuration
 /execution
 /executions
 /plugin

 Thanks,


 On Mon, Aug 25, 2014 at 3:24 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Danushka,

 I also was getting the same error and I tried build with the pom file
 updated with namespaces.

 configuration
tasks
path id=wsdl2java.classpath
pathelement
 location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/
 pathelement
 location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar
 /
 pathelement
 location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar
 /
 /path
 java
 classname=org.apache.axis2.wsdl.WSDL2Java fork=true
 classpath
 refid=wsdl2java.classpath /
 arg line=-uri
 src/main/resources/StudentManager.wsdl -u -uw
  -o target/generated-code -p
 org.wso2.carbon.student.mgt.stub
  -ns2p
 http://mgt.student.carbon.wso2.org=org.wso2.carbon.student.mgt.stub,

 http://data.mgt.student.carbon.wso2.org/xsd=org.wso2.carbon.student.mgt.stub.xsd
 ,

 http://org.apache.axis2/xsd=org.wso2.carbon.student.mgt.stub.axis2.xsd/
  /java
 /tasks
 /configuration

 But still getting the same error.

 Please be kind enough to give further advice.

 The tutorial we are following[1].

 [1]
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

 Thanks,
 Suhan


 On Mon, Aug 25, 2014 at 2:24 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Seems you haven't defined the namespaces in the pom. Check [1]. There
 you can see following line which defines the namespaces mentioned in wsdl.

 arg line=-uri src/main/resources/ApplicationDeployer.wsdl -u -uw
 -o target/generated-code -p
 org.wso2.carbon.appfactory.application.deployer.stub
 -ns2p
 http://deploy.core.appfactory.carbon.wso2.org
 =org.wso2.carbon.appfactory.application.deployer.stub,
 http://deploy.core.appfactory.carbon.wso2.org/xsd=org.wso2.carbon.appfactory.application.deployer.stub.xsd,http://org.apache.axis2/xsd=org.wso2.carbon.appfactory.application.deployer.stub.axis2.xsd
 /


 [1]
 https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/service-stubs/org.wso2.carbon.appfactory.application.deployer.stub/2.0.1

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


 On Mon, Aug 25, 2014 at 2:03 PM, Thushara Ranawaka thusha...@wso2.com
 wrote:

 Kindly fine the requested files.


 On Mon, Aug 25, 2014 at 1:14 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi
 Can you add the pom.xml and the wsdl used for stub generation?

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


 On Mon, Aug 25, 2014 at 12:43 PM, Thushara Ranawaka 
 thusha...@wso2.com wrote:

 Hi

Re: [Dev] Writing WSO2 carbon component - stub generation error

2014-08-25 Thread Suhan Dharmasuriya
Thanks Ajith,

moving forward, will compare pom file with SVN existing stubs... :)

Thanks and Regards,
Suhan


On Mon, Aug 25, 2014 at 4:55 PM, Ajith Vitharana aji...@wso2.com wrote:




 On Mon, Aug 25, 2014 at 4:42 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Thanks a lot Rajith,

 It is working now... :) :) :)


 Why don't you compare the pom file with existing stubs in SVN ? :)

 -Ajith


 plugin
 groupIdorg.apache.axis2/groupId
 artifactIdaxis2-wsdl2code-maven-plugin/artifactId
 version1.6.2/version
 executions
 execution
 goals
 goalwsdl2code/goal
 /goals
 configuration
 generateServerSidefalse/generateServerSide

 packageNameorg.wso2.carbon.student.mgt.stub/packageName

 wsdlFilesrc/main/resources/StudentManager.wsdl/wsdlFile
 databindingNameadb/databindingName

 outputDirectorytarget/generated-code/outputDirectory
 /configuration
 /execution
 /executions
 /plugin

 Thanks and Regards,
 Suhan


 On Mon, Aug 25, 2014 at 4:00 PM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Thushara, Suhan,

 Try using axis2-wsdl2code-maven-plugin to generate the stub, instead
 of using maven-antrun-plugin.

 plugin
 groupIdorg.apache.axis2/groupId
 artifactIdaxis2-wsdl2code-maven-plugin/artifactId
 version1.6.2/version
 executions
 execution
 goals
 goalwsdl2code/goal
 /goals
 configuration

 generateServerSidefalse/generateServerSide

 packageNameorg.wso2.carbon.order.mgt.ui/packageName

 wsdlFilesrc/main/resources/OrderManager.wsdl/wsdlFile
 databindingNameadb/databindingName

 outputDirectorytarget/generated-code/outputDirectory
 /configuration
 /execution
 /executions
 /plugin

 Thanks,


 On Mon, Aug 25, 2014 at 3:24 PM, Suhan Dharmasuriya suh...@wso2.com
 wrote:

 Hi Danushka,

 I also was getting the same error and I tried build with the pom file
 updated with namespaces.

 configuration
tasks
path id=wsdl2java.classpath
pathelement
 location=${settings.localRepository}/org/apache/ws/commons/axiom/wso2/axiom/1.2.11.wso2v4/axiom-1.2.11.wso2v4.jar/
 pathelement
 location=${settings.localRepository}/org/apache/axis2/wso2/axis2-client/1.6.1.wso2v10/axis2-client-1.6.1.wso2v10.jar
 /
 pathelement
 location=${settings.localRepository}/org/apache/axis2/wso2/axis2/1.6.1.wso2v10/axis2-1.6.1.wso2v10.jar
 /
 /path
 java
 classname=org.apache.axis2.wsdl.WSDL2Java fork=true
 classpath
 refid=wsdl2java.classpath /
 arg line=-uri
 src/main/resources/StudentManager.wsdl -u -uw
  -o target/generated-code -p
 org.wso2.carbon.student.mgt.stub
  -ns2p
 http://mgt.student.carbon.wso2.org=org.wso2.carbon.student.mgt.stub,

 http://data.mgt.student.carbon.wso2.org/xsd=org.wso2.carbon.student.mgt.stub.xsd
 ,

 http://org.apache.axis2/xsd=org.wso2.carbon.student.mgt.stub.axis2.xsd
 /
  /java
 /tasks
 /configuration

 But still getting the same error.

 Please be kind enough to give further advice.

 The tutorial we are following[1].

 [1]
 http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

 Thanks,
 Suhan


 On Mon, Aug 25, 2014 at 2:24 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Seems you haven't defined the namespaces in the pom. Check [1]. There
 you can see following line which defines the namespaces mentioned in wsdl.

 arg line=-uri src/main/resources/ApplicationDeployer.wsdl -u -uw
 -o target/generated-code -p
 org.wso2.carbon.appfactory.application.deployer.stub
 -ns2p
 http://deploy.core.appfactory.carbon.wso2.org
 =org.wso2.carbon.appfactory.application.deployer.stub,
 http://deploy.core.appfactory.carbon.wso2.org/xsd=org.wso2.carbon.appfactory.application.deployer.stub.xsd,http://org.apache.axis2/xsd=org.wso2.carbon.appfactory.application.deployer.stub.axis2.xsd
 /


 [1]
 https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/service-stubs/org.wso2.carbon.appfactory.application.deployer.stub/2.0.1

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


 On Mon, Aug 25, 2014 at 2:03 PM, Thushara Ranawaka thusha...@wso2.com
  wrote:

 Kindly fine the requested files

[Dev] Writing WSO2 carbon component - stub generation error

2014-08-24 Thread Suhan Dharmasuriya
]

[INFO] Total time: 9.441 s
[INFO] Finished at: 2014-08-25T09:47:17+05:30
[INFO] Final Memory: 11M/156M
[INFO]

[ERROR] Failed to execute goal on project org.wso2.carbon.student.mgt.stub:
Could not resolve dependencies for project
org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0: The
following artifacts could not be resolved:
org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10,
org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v4,
wsdl4j.wso2:wsdl4j:jar:1.6.2.wso2v4: Could not find artifact
org.apache.axis2.wso2:axis2:jar:1.6.1.wso2v10 in central (
http://repo.maven.apache.org/maven2) - [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/DependencyResolutionException

Please be kind enough to provide a direction to proceed from here.

[1]
http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/

Thanks and Regards,
-- 
Suhan Dharmasuriya
Software Engineer - Test Automation

*WSO2, Inc. *

lean . enterprise . middleware
Tel: +94 112 145345
Mob: +94 779 86913
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   >