Re: [Dev] Deny to add same app context for Web Apps in EAM

2014-08-20 Thread Kasun Dissanayake
[Excluding architecture]

Hi all,

Changes of plan.

When I'm doing this I will follow following work flow

1) Check the context from EAM cache for the first time when the save/edit
triggered.
2) If not found the context will be cached.

Is this okay ?

Cheers



On Thu, Aug 21, 2014 at 11:17 AM, Kasun Dissanayake  wrote:

>
> Hi All,
>
> I'm working on jira issue [1] and try to resolve that using following
> manner.
>
> 1) Go through other application's' context using GReg
> 2) If found send true to front end.
> 3) Trigger the method on 'focus out' of "Contect" field and save button
> click event when in the add web app page
> 4) Trigger the same in edit web app.
>
> to carry on this I just need to get information from GReg about the web
> app. Any Idea how to get all application details from rxt using jaggery?
>
> [1] https://wso2.org/jira/browse/APPM-96
>
> --
> Kasun Dissanayake
> Software Engineer
> WSO2 Inc.
> Lean | Enterprise | Middleware
> Tel - +94 77 086 2860
> Skype - kasun.dissanayake4
> LinkedIn - lk.linkedin.com/in/kasundis
>



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


Re: [Dev] OSGI bundle conflict when starting up APIM GIT latest.

2014-08-20 Thread Roshan Wijesena
Hi Krishantha,

We are working on a it. Still could  not find the root cause for this. will
update you guys ASAP.

Regards
Roshan.


On Thu, Aug 21, 2014 at 11:31 AM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> Hi all,
>
> Is this startup problem sorted out. We gonna start writing auto tests for
> APIM. But this is a blocker at the moment.
>
> Thanks,
> Krishantha.
>
>
> On Sat, Aug 16, 2014 at 9:17 AM, Aruna Karunarathna 
> wrote:
>
>> Hi Roshan,
>>
>> Can you check whether the same imported package version are being
>> imported?.
>> This looks like a osgi import-export version conflict or resolution error.
>>
>> Regards,
>> Aruna
>>
>>
>> On Fri, Aug 15, 2014 at 9:39 PM, Roshan Wijesena  wrote:
>>
>>> Hi Devs,
>>>
>>> I am trying to start up APIM GIT build , that i have built recently.
>>> While doing that, I am getting following OSGI conflicts,
>>>
>>> osgi> ss apim
>>> "Framework is launched."
>>>
>>> id State   Bundle
>>> 161 ACTIVE  org.wso2.carbon.apimgt.api_4.3.0.SNAPSHOT
>>> 162 INSTALLED   org.wso2.carbon.apimgt.core_4.3.0.SNAPSHOT
>>> 163 INSTALLED   org.wso2.carbon.apimgt.gateway_4.3.0.SNAPSHOT
>>> 164 ACTIVE
>>>  org.wso2.carbon.apimgt.handlers.security.stub_4.3.0.SNAPSHOT
>>> 165 ACTIVE  org.wso2.carbon.apimgt.hostobjects_4.3.0.SNAPSHOT
>>> 166 ACTIVE  org.wso2.carbon.apimgt.impl_4.3.0.SNAPSHOT
>>> 167 ACTIVE  org.wso2.carbon.apimgt.keymgt_4.3.0.SNAPSHOT
>>> 168 ACTIVE  org.wso2.carbon.apimgt.keymgt.client_4.3.0.SNAPSHOT
>>> 169 ACTIVE  org.wso2.carbon.apimgt.keymgt.stub_4.3.0.SNAPSHOT
>>> 170 ACTIVE  org.wso2.carbon.apimgt.startup.publisher_4.3.0.SNAPSHOT
>>> 171 ACTIVE  org.wso2.carbon.apimgt.usage.client_4.3.0.SNAPSHOT
>>> 172 ACTIVE  org.wso2.carbon.apimgt.usage.publisher_4.3.0.SNAPSHOT
>>>
>>> osgi> diag 163
>>> reference:file:../plugins/org.wso2.carbon.apimgt.gateway_4.3.0.SNAPSHOT.jar
>>> [163]
>>>   *Package uses conflict: Import-Package: org.wso2.carbon.apimgt.impl;
>>> version="0.0.0"*
>>> *  Package uses conflict: Import-Package:
>>> org.wso2.carbon.apimgt.impl.utils; version="0.0.0"*
>>>   Direct constraints which are unresolved:
>>> Missing optionally imported package javax.activation_1.1.0.
>>> Missing optionally imported package
>>> org.apache.http.client_4.1.1.wso2v1.
>>> Missing optionally imported package
>>> org.apache.http.conn_4.1.1.wso2v1.
>>> Missing optionally imported package
>>> org.apache.http.conn.scheme_4.1.1.wso2v1.
>>> Missing optionally imported package
>>> org.apache.http.conn.ssl_4.1.1.wso2v1.
>>> Missing optionally imported package
>>> org.apache.http.impl.client_4.1.1.wso2v1.
>>> Missing optionally imported package
>>> org.apache.http.impl.conn_4.1.1.wso2v1.
>>> Missing optionally imported package
>>> org.wso2.carbon.apimgt.gateway.handlers_0.0.0.
>>> Missing optionally imported package
>>> org.wso2.carbon.apimgt.gateway.handlers.common_0.0.0.
>>> Missing optionally imported package
>>> org.wso2.carbon.apimgt.gateway.handlers.ext_0.0.0.
>>> Missing optionally imported package
>>> org.wso2.carbon.apimgt.gateway.handlers.security_0.0.0.
>>> Missing optionally imported package
>>> org.wso2.carbon.apimgt.gateway.handlers.security.keys_0.0.0.
>>> Missing optionally imported package
>>> org.wso2.carbon.apimgt.gateway.handlers.security.oauth_0.0.0.
>>> Missing optionally imported package
>>> org.wso2.carbon.apimgt.gateway.handlers.security.service_0.0.0.
>>> Missing optionally imported package
>>> org.wso2.carbon.apimgt.gateway.handlers.security.thrift_0.0.0.
>>> Missing optionally imported package
>>> org.wso2.carbon.apimgt.gateway.handlers.throttling_0.0.0.
>>> Missing optionally imported package
>>> org.wso2.carbon.apimgt.gateway.mediators_0.0.0.
>>>
>>>
>>> what's wrong here?
>>>
>>> --
>>>  Roshan Wijesena.
>>> Senior Software Engineer-WSO2 Inc.
>>> Mobile: *+94752126789*
>>> Email: ros...@wso2.com
>>> *WSO2, Inc. :** wso2.com *
>>> lean.enterprise.middleware.
>>>
>>> ___
>>> 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
>>
>>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94752126789*
Email: ros...@wso2.com
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.o

Re: [Dev] OSGI bundle conflict when starting up APIM GIT latest.

2014-08-20 Thread Krishantha Samaraweera
Hi all,

Is this startup problem sorted out. We gonna start writing auto tests for
APIM. But this is a blocker at the moment.

Thanks,
Krishantha.


On Sat, Aug 16, 2014 at 9:17 AM, Aruna Karunarathna  wrote:

> Hi Roshan,
>
> Can you check whether the same imported package version are being
> imported?.
> This looks like a osgi import-export version conflict or resolution error.
>
> Regards,
> Aruna
>
>
> On Fri, Aug 15, 2014 at 9:39 PM, Roshan Wijesena  wrote:
>
>> Hi Devs,
>>
>> I am trying to start up APIM GIT build , that i have built recently.
>> While doing that, I am getting following OSGI conflicts,
>>
>> osgi> ss apim
>> "Framework is launched."
>>
>> id State   Bundle
>> 161 ACTIVE  org.wso2.carbon.apimgt.api_4.3.0.SNAPSHOT
>> 162 INSTALLED   org.wso2.carbon.apimgt.core_4.3.0.SNAPSHOT
>> 163 INSTALLED   org.wso2.carbon.apimgt.gateway_4.3.0.SNAPSHOT
>> 164 ACTIVE
>>  org.wso2.carbon.apimgt.handlers.security.stub_4.3.0.SNAPSHOT
>> 165 ACTIVE  org.wso2.carbon.apimgt.hostobjects_4.3.0.SNAPSHOT
>> 166 ACTIVE  org.wso2.carbon.apimgt.impl_4.3.0.SNAPSHOT
>> 167 ACTIVE  org.wso2.carbon.apimgt.keymgt_4.3.0.SNAPSHOT
>> 168 ACTIVE  org.wso2.carbon.apimgt.keymgt.client_4.3.0.SNAPSHOT
>> 169 ACTIVE  org.wso2.carbon.apimgt.keymgt.stub_4.3.0.SNAPSHOT
>> 170 ACTIVE  org.wso2.carbon.apimgt.startup.publisher_4.3.0.SNAPSHOT
>> 171 ACTIVE  org.wso2.carbon.apimgt.usage.client_4.3.0.SNAPSHOT
>> 172 ACTIVE  org.wso2.carbon.apimgt.usage.publisher_4.3.0.SNAPSHOT
>>
>> osgi> diag 163
>> reference:file:../plugins/org.wso2.carbon.apimgt.gateway_4.3.0.SNAPSHOT.jar
>> [163]
>>   *Package uses conflict: Import-Package: org.wso2.carbon.apimgt.impl;
>> version="0.0.0"*
>> *  Package uses conflict: Import-Package:
>> org.wso2.carbon.apimgt.impl.utils; version="0.0.0"*
>>   Direct constraints which are unresolved:
>> Missing optionally imported package javax.activation_1.1.0.
>> Missing optionally imported package
>> org.apache.http.client_4.1.1.wso2v1.
>> Missing optionally imported package org.apache.http.conn_4.1.1.wso2v1.
>> Missing optionally imported package
>> org.apache.http.conn.scheme_4.1.1.wso2v1.
>> Missing optionally imported package
>> org.apache.http.conn.ssl_4.1.1.wso2v1.
>> Missing optionally imported package
>> org.apache.http.impl.client_4.1.1.wso2v1.
>> Missing optionally imported package
>> org.apache.http.impl.conn_4.1.1.wso2v1.
>> Missing optionally imported package
>> org.wso2.carbon.apimgt.gateway.handlers_0.0.0.
>> Missing optionally imported package
>> org.wso2.carbon.apimgt.gateway.handlers.common_0.0.0.
>> Missing optionally imported package
>> org.wso2.carbon.apimgt.gateway.handlers.ext_0.0.0.
>> Missing optionally imported package
>> org.wso2.carbon.apimgt.gateway.handlers.security_0.0.0.
>> Missing optionally imported package
>> org.wso2.carbon.apimgt.gateway.handlers.security.keys_0.0.0.
>> Missing optionally imported package
>> org.wso2.carbon.apimgt.gateway.handlers.security.oauth_0.0.0.
>> Missing optionally imported package
>> org.wso2.carbon.apimgt.gateway.handlers.security.service_0.0.0.
>> Missing optionally imported package
>> org.wso2.carbon.apimgt.gateway.handlers.security.thrift_0.0.0.
>> Missing optionally imported package
>> org.wso2.carbon.apimgt.gateway.handlers.throttling_0.0.0.
>> Missing optionally imported package
>> org.wso2.carbon.apimgt.gateway.mediators_0.0.0.
>>
>>
>> what's wrong here?
>>
>> --
>>  Roshan Wijesena.
>> Senior Software Engineer-WSO2 Inc.
>> Mobile: *+94752126789*
>> Email: ros...@wso2.com
>> *WSO2, Inc. :** wso2.com *
>> lean.enterprise.middleware.
>>
>> ___
>> 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
>
>


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


Re: [Dev] [App Factory] - Delete application created in a tenant

2014-08-20 Thread Godwin Amila Shrimal
Hi Manisha,

Thanks, I checked in the wso2.docs in earlier. This solve our problem.


On Thu, Aug 21, 2014 at 10:42 AM, Manisha Gayathri  wrote:

> Hi Godwin,
>
> Delete Application too is already implemented. 
> *ApplicationManagementService.deleteApplication
> *is available.
>
>
> On Thu, Aug 21, 2014 at 10:24 AM, Udara Liyanage  wrote:
>
>> Hi Godwin,
>>
>> May be DELETE method is not yet implemented. @Danuska can you confirm.
>>
>>
>> On Thu, Aug 21, 2014 at 10:19 AM, Godwin Amila Shrimal 
>> wrote:
>>
>>> Hi Udara,
>>>
>>> Thanks, as you pointed, there is a REST API to the the applications (
>>> getApplicationsOfUser
>>> ),
>>> But I did't see any delete application operation there. How can we delete
>>> them ?
>>>
>>>
>>> On Thu, Aug 21, 2014 at 1:06 AM, Udara Liyanage  wrote:
>>>
 Hi,

 You can call AppFac REST API for this. Please refer to [1]

 [1]
 https://docs.wso2.com/plugins/servlet/mobile#RESTAPIs-getApplicationsOfUser



 Touched, not typed. Erroneous words are a feature, not a typo.
 On Aug 20, 2014 7:40 PM, "Godwin Amila Shrimal" 
 wrote:

> Hi,
>
> How can we check the already created application for a specific tenant
> and delete them in App Factory. Is there any admin service to perform 
> this ?
>
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
>  Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> 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 *
>>> twitter: https://twitter.com/godwinamila
>>>
>>
>>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>>  WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> ~Regards
> *Manisha Eleperuma*
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean.enterprise.middleware
>
> *blog:  http://manisha-eleperuma.blogspot.com/
> *
> *mobile:  +94 71 8279777 <%2B94%2071%208279777>*
>
>


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

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Deny to add same app context for Web Apps in EAM

2014-08-20 Thread Kasun Dissanayake
Hi All,

I'm working on jira issue [1] and try to resolve that using following
manner.

1) Go through other application's' context using GReg
2) If found send true to front end.
3) Trigger the method on 'focus out' of "Contect" field and save button
click event when in the add web app page
4) Trigger the same in edit web app.

to carry on this I just need to get information from GReg about the web
app. Any Idea how to get all application details from rxt using jaggery?

[1] https://wso2.org/jira/browse/APPM-96

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


Re: [Dev] [GREG 4.6.0] Server startup hangs - user core bundle wont start

2014-08-20 Thread Hasitha Amal De Silva
Hi Isuru,

Thanks for checking. I tried to start the bundle from the console and got :

"gogo: BundleException: State change in progress for bundle
"reference:file:../plugins/org.wso2.carbon.user.core_4.2.0.jar" by thread
"Start Level Event Dispatcher".




On Thu, Aug 21, 2014 at 11:06 AM, Isuru Haththotuwa  wrote:

> Hi Amal,
>
> Can you start the user-core bundle manually and see if you get any errors?
>
>
> On Thu, Aug 21, 2014 at 11:03 AM, Hasitha Amal De Silva  > wrote:
>
>> Hi,
>>
>> I was working with a GREG 4.6.0 pack for the last couple of days,
>> applying carbon kernel patches to it. The server was starting up without
>> any issues. But now, even a fresh GREG 4.6.0 pack does not start on my
>> machine. (other products work fine.)
>>
>> When i refer to the osgiConsole, the "user-core" bundle seems to be
>> hanging on STARTING state.
>>
>> Any clue ? I think it should be an external configuration issue, since
>> even an untouched GREG pack won't start now.
>>
>> The startup log stops at :
>>
>> 
>> INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon
>> Home  :
>> /home/hasithad/Documents/Softwares/fresh_products/wso2greg-4.6.0-i2/wso2greg-4.6.0
>> INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp
>> Dir:
>> /home/hasithad/Documents/Softwares/fresh_products/wso2greg-4.6.0-i2/wso2greg-4.6.0/tmp
>> INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -
>> User : hasithad, en-US, Asia/Colombo
>> WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter}
>> -  The default keystore (wso2carbon.jks) is currently being used. To
>> maximize security when deploying to a production environment, configure a
>> new keystore with a unique password in the production server profile.
>> INFO {org.wso2.carbon.databridge.agent.thrift.AgentHolder} -  Agent
>> created !
>> INFO {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} -
>> Successfully deployed Agent Client
>> INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -
>> Configured Registry in 30ms
>>
>> INFO
>> {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} -
>> Registry Mode: READ-WRITE
>> INFO {org.apache.catalina.startup.TaglibUriRule} -  TLD skipped. URI:
>> http://tiles.apache.org/tags-tiles is already defined
>>
>>
>> thanks in advance for any help.
>>
>> --
>> Cheers,
>>
>>  Hasitha Amal De Silva
>>  Software Engineer
>> Mobile : 0718133463
>> Blog: http://hastef.wordpress.com/
>> WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


-- 
Cheers,

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


Re: [Dev] [GREG 4.6.0] Server startup hangs - user core bundle wont start

2014-08-20 Thread Isuru Haththotuwa
Hi Amal,

Can you start the user-core bundle manually and see if you get any errors?


On Thu, Aug 21, 2014 at 11:03 AM, Hasitha Amal De Silva 
wrote:

> Hi,
>
> I was working with a GREG 4.6.0 pack for the last couple of days, applying
> carbon kernel patches to it. The server was starting up without any issues.
> But now, even a fresh GREG 4.6.0 pack does not start on my machine. (other
> products work fine.)
>
> When i refer to the osgiConsole, the "user-core" bundle seems to be
> hanging on STARTING state.
>
> Any clue ? I think it should be an external configuration issue, since
> even an untouched GREG pack won't start now.
>
> The startup log stops at :
>
> 
> INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon
> Home  :
> /home/hasithad/Documents/Softwares/fresh_products/wso2greg-4.6.0-i2/wso2greg-4.6.0
> INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp
> Dir:
> /home/hasithad/Documents/Softwares/fresh_products/wso2greg-4.6.0-i2/wso2greg-4.6.0/tmp
> INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -
> User : hasithad, en-US, Asia/Colombo
> WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter}
> -  The default keystore (wso2carbon.jks) is currently being used. To
> maximize security when deploying to a production environment, configure a
> new keystore with a unique password in the production server profile.
> INFO {org.wso2.carbon.databridge.agent.thrift.AgentHolder} -  Agent
> created !
> INFO {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} -
> Successfully deployed Agent Client
> INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -
> Configured Registry in 30ms
>
> INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent}
> -  Registry Mode: READ-WRITE
> INFO {org.apache.catalina.startup.TaglibUriRule} -  TLD skipped. URI:
> http://tiles.apache.org/tags-tiles is already defined
>
>
> thanks in advance for any help.
>
> --
> Cheers,
>
>  Hasitha Amal De Silva
>  Software Engineer
> Mobile : 0718133463
> Blog: http://hastef.wordpress.com/
> WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. )
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failure on wso2-dev/product-apim git repo

2014-08-20 Thread Roshan Wijesena
Hi Amalka,

This issue is persist for while now, it has been discussed here also  "OSGI
bundle conflict when starting up APIM GIT latest." ATM we are looking in to
a fix for this.

Regards
Roshan.


On Wed, Aug 20, 2014 at 8:46 PM, Amalka Subasinghe  wrote:

> Hi,
>
> I'm getting the following error when trying to build the product-apim, any
> idea of what is missing?
>
> An error occurred while configuring the installed items
>  session context was:(profile=default,
> phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null
> --> [R]org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT,
> action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
>  I/O Error while copying
> /home/amalka/amalkas/product-apim/modules/p2-profile/product/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/default/../features/org.wso2.carbon.apimgt.store_4.3.0.SNAPSHOT/admin-dashboard
> - see details.
> Caused by:  java.io.IOException: Source:
> /home/amalka/amalkas/product-apim/modules/p2-profile/product/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/default/../features/org.wso2.carbon.apimgt.store_4.3.0.SNAPSHOT/admin-dashboarddoes
> not exists
> Application failed, log file location:
> /home/amalka/amalka/maven_repo/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1408547531357.log
>
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 API Manager - Aggregator Module .. SUCCESS [0.112s]
> [INFO] WSO2 API Manager - Styles Parent .. SUCCESS [0.007s]
> [INFO] WSO2 API Manager - Styles . SUCCESS [1.499s]
> [INFO] WSO2 Stratos  API Manager - UI styles . SUCCESS [0.663s]
> [INFO] WSO2 Stratos  API Manager - Dashboard UI .. SUCCESS [0.314s]
> [INFO] WSO2 AM - Login User Interface  SUCCESS [0.343s]
> [INFO] WSO2 API Manager - Features Parent  SUCCESS [0.004s]
> [INFO] WSO2 API Manager - Features Aggregator Module . SUCCESS [0.004s]
> [INFO] WSO2 API Manager - Styles Features  SUCCESS [0.222s]
> [INFO] WSO2 Stratos  API Manager - Style Features  SUCCESS [0.012s]
> [INFO] WSO2 Stratos  API Manager - Utils Features  SUCCESS [0.359s]
> [INFO] WSO2 Stratos  API Manager - Dashboard UI Features . SUCCESS [0.016s]
> [INFO] WSO2 Stratos  API Manager - Deployment Features ... SUCCESS [0.016s]
> [INFO] WSO2 Stratos  API Manager - Features Aggregator Module  SUCCESS
> [0.003s]
> [INFO] WSO2 API Manager - P2 Profile Generation Parent ... SUCCESS [0.003s]
> [INFO] WSO2 API Manager - P2 Profile Generation .. FAILURE
> [34.959s]
> [INFO] WSO2 API Manager - BAM Toolbox  SKIPPED
> [INFO] WSO2 API Manager - Distribution Parent  SKIPPED
> [INFO] WSO2 API Manager - Distribution ... SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 39.462s
> [INFO] Finished at: Wed Aug 20 20:42:20 IST 2014
> [INFO] Final Memory: 29M/1237M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
> (3-p2-profile-generation) on project am-p2-profile: P2 publisher return
> code was 13 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
> (3-p2-profile-generation) on project am-p2-profile: P2 publisher return
> code was 13
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.Dele

[Dev] [GREG 4.6.0] Server startup hangs - user core bundle wont start

2014-08-20 Thread Hasitha Amal De Silva
Hi,

I was working with a GREG 4.6.0 pack for the last couple of days, applying
carbon kernel patches to it. The server was starting up without any issues.
But now, even a fresh GREG 4.6.0 pack does not start on my machine. (other
products work fine.)

When i refer to the osgiConsole, the "user-core" bundle seems to be hanging
on STARTING state.

Any clue ? I think it should be an external configuration issue, since even
an untouched GREG pack won't start now.

The startup log stops at :


INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Carbon
Home  :
/home/hasithad/Documents/Softwares/fresh_products/wso2greg-4.6.0-i2/wso2greg-4.6.0
INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Temp
Dir:
/home/hasithad/Documents/Softwares/fresh_products/wso2greg-4.6.0-i2/wso2greg-4.6.0/tmp
INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} -
User : hasithad, en-US, Asia/Colombo
WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter}
-  The default keystore (wso2carbon.jks) is currently being used. To
maximize security when deploying to a production environment, configure a
new keystore with a unique password in the production server profile.
INFO {org.wso2.carbon.databridge.agent.thrift.AgentHolder} -  Agent created
!
INFO {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} -
Successfully deployed Agent Client
INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} -
Configured Registry in 30ms

INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent}
-  Registry Mode: READ-WRITE
INFO {org.apache.catalina.startup.TaglibUriRule} -  TLD skipped. URI:
http://tiles.apache.org/tags-tiles is already defined


thanks in advance for any help.

-- 
Cheers,

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


Re: [Dev] [ESB] [DOC] 'FORCE_ERROR_ON_SOAP_FAULT' Property not mentioned in 'Properties Reference' page

2014-08-20 Thread Rukshani Weerasinha
Hi,

Thank you for mentioning this. Now the jira issue [3] is created to monitor
the progress of this documentation task.

[3] https://wso2.org/jira/browse/DOCUMENTATION-1074

Best Regards,
Rukshani.


On Thu, Aug 21, 2014 at 9:39 AM, Ishara Premadasa  wrote:

> Hi all,
>
> The property 'FORCE_ERROR_ON_SOAP_FAULT' is a useful entry when it comes
> to re-direct a SOAPFault thrown by a back end service into a Fault
> sequence. [1] If this is not set the SOAPFault will be received by the
> OutSequence as a usual response message.
>
> 
>
> Currently ESB 4.8.1 docs doesn't explain the use of this property
> anywhere. I think this should be properly documented in the 'Generic
> Properties' [2] section of the docs.
>
> Adding the Dev list here, as this information will be useful for someone.
>
> Thanks!
> Ishara
>
> [1]
> http://vvratha.blogspot.com/2014/05/executing-faultsequence-for-soapfaults.html
> [2] https://docs.wso2.com/display/ESB481/Generic+Properties
>
> --
> Ishara Premasada
> Software Engineer,
> WSO2 Inc. http://wso2.com/
>
>
> *Blog   :  http://isharapremadasa.blogspot.com/
>  Twitter   :
> https://twitter.com/ishadil Mobile   : +94
> 714445832 <%2B94%20714445832>*
>
>
>


-- 
Rukshani Weerasinha

WSO2 Inc.
Web:http://wso2.com
Mobile: 0777 683 738
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] - Delete application created in a tenant

2014-08-20 Thread Manisha Gayathri
Hi Godwin,

Delete Application too is already implemented.
*ApplicationManagementService.deleteApplication
*is available.


On Thu, Aug 21, 2014 at 10:24 AM, Udara Liyanage  wrote:

> Hi Godwin,
>
> May be DELETE method is not yet implemented. @Danuska can you confirm.
>
>
> On Thu, Aug 21, 2014 at 10:19 AM, Godwin Amila Shrimal 
> wrote:
>
>> Hi Udara,
>>
>> Thanks, as you pointed, there is a REST API to the the applications (
>> getApplicationsOfUser
>> ),
>> But I did't see any delete application operation there. How can we delete
>> them ?
>>
>>
>> On Thu, Aug 21, 2014 at 1:06 AM, Udara Liyanage  wrote:
>>
>>> Hi,
>>>
>>> You can call AppFac REST API for this. Please refer to [1]
>>>
>>> [1]
>>> https://docs.wso2.com/plugins/servlet/mobile#RESTAPIs-getApplicationsOfUser
>>>
>>>
>>>
>>> Touched, not typed. Erroneous words are a feature, not a typo.
>>> On Aug 20, 2014 7:40 PM, "Godwin Amila Shrimal"  wrote:
>>>
 Hi,

 How can we check the already created application for a specific tenant
 and delete them in App Factory. Is there any admin service to perform this 
 ?


 Thanks
 Godwin

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

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

 ___
 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 *
>> twitter: https://twitter.com/godwinamila
>>
>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
~Regards
*Manisha Eleperuma*
Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware

*blog:  http://manisha-eleperuma.blogspot.com/
*
*mobile:  +94 71 8279777*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] - Delete application created in a tenant

2014-08-20 Thread Udara Liyanage
Hi Godwin,

May be DELETE method is not yet implemented. @Danuska can you confirm.


On Thu, Aug 21, 2014 at 10:19 AM, Godwin Amila Shrimal 
wrote:

> Hi Udara,
>
> Thanks, as you pointed, there is a REST API to the the applications (
> getApplicationsOfUser
> ),
> But I did't see any delete application operation there. How can we delete
> them ?
>
>
> On Thu, Aug 21, 2014 at 1:06 AM, Udara Liyanage  wrote:
>
>> Hi,
>>
>> You can call AppFac REST API for this. Please refer to [1]
>>
>> [1]
>> https://docs.wso2.com/plugins/servlet/mobile#RESTAPIs-getApplicationsOfUser
>>
>>
>>
>> Touched, not typed. Erroneous words are a feature, not a typo.
>> On Aug 20, 2014 7:40 PM, "Godwin Amila Shrimal"  wrote:
>>
>>> Hi,
>>>
>>> How can we check the already created application for a specific tenant
>>> and delete them in App Factory. Is there any admin service to perform this ?
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>>  Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>>
>>> ___
>>> 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 *
> twitter: https://twitter.com/godwinamila
>



-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] - Delete application created in a tenant

2014-08-20 Thread Godwin Amila Shrimal
Hi Danushka,

Thanks. we'll contact you.


On Thu, Aug 21, 2014 at 6:03 AM, Danushka Fernando 
wrote:

> Hi Godwin
> You can check the AF list appplications code and delete application code.
> I can help with that.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
>
> On Thu, Aug 21, 2014 at 1:06 AM, Udara Liyanage  wrote:
>
>> Hi,
>>
>> You can call AppFac REST API for this. Please refer to [1]
>>
>> [1]
>> https://docs.wso2.com/plugins/servlet/mobile#RESTAPIs-getApplicationsOfUser
>>
>>
>>
>> Touched, not typed. Erroneous words are a feature, not a typo.
>> On Aug 20, 2014 7:40 PM, "Godwin Amila Shrimal"  wrote:
>>
>>> Hi,
>>>
>>> How can we check the already created application for a specific tenant
>>> and delete them in App Factory. Is there any admin service to perform this ?
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>>  Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>>
>>> ___
>>> 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
>>
>>
>


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

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] - Delete application created in a tenant

2014-08-20 Thread Godwin Amila Shrimal
Hi Udara,

Thanks, as you pointed, there is a REST API to the the applications (
getApplicationsOfUser
),
But I did't see any delete application operation there. How can we delete
them ?


On Thu, Aug 21, 2014 at 1:06 AM, Udara Liyanage  wrote:

> Hi,
>
> You can call AppFac REST API for this. Please refer to [1]
>
> [1]
> https://docs.wso2.com/plugins/servlet/mobile#RESTAPIs-getApplicationsOfUser
>
>
>
> Touched, not typed. Erroneous words are a feature, not a typo.
> On Aug 20, 2014 7:40 PM, "Godwin Amila Shrimal"  wrote:
>
>> Hi,
>>
>> How can we check the already created application for a specific tenant
>> and delete them in App Factory. Is there any admin service to perform this ?
>>
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>>  Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> 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 *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Optimize file read operation in Jaggery

2014-08-20 Thread Waruna Perera
Hi,

What about population your file data to temp db and access it and
update/delete when needed?

Thanks


On Thu, Aug 21, 2014 at 1:23 AM, Udara Liyanage  wrote:

>
> Hi,
>
> If the file content is stored in memory, memory consumption would grow if
> it reads a big file or several files. How about using a cache of a fix
> size?
>
> What kind of files it would read multiple times, if they are configuration
> files only the important data could be stored in the memory.
> Could you please elaborate more of your task with an example in order to
> get a better understanding.
>
> Touched, not typed. Erroneous words are a feature, not a typo.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] [Private PAAS] Private pass cartrige agent still triggering the subscription-* scripts.

2014-08-20 Thread Udara Liyanage
Hi Danushka,

>From Stratos side extension is there to trigger when an subscription domain
is added. You can change the extension script according to your needs.
There is no global cartridge agent concept, Cartrdige agent should be
edited/extended according to your cartridge.


On Thu, Aug 21, 2014 at 6:01 AM, Danushka Fernando 
wrote:

> Udara
> AFAIR the decision took at the discussion is to remove these extension
> points.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
>
> On Thu, Aug 21, 2014 at 1:13 AM, Udara Liyanage  wrote:
>
>> Hi,
>>
>> I guess subscription-domain-added cartridge extension is called when a
>> subscription domain is added. This is the default behavior right?
>> When a subscription domain is added, LB too get a notification so that it
>> start load balancing request to that domain. Additionally
>> subscription-domain-added extension is called. You can edit the extension
>> according to your cartridge.
>>
>>
>> Touched, not typed. Erroneous words are a feature, not a typo.
>>
>
>


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failure on wso2-dev/product-apim git repo

2014-08-20 Thread Amalka Subasinghe
Hi,

I could build the product-apim after doing the following

1. build carbon-apim
2. copy encoder-1.1.jar & httpmime-4.2.5.jar jars to the
module/distribution/product/src/main/resources location

then when I run the tests, again build failed saying can't resolve the
dependency org.wso2.am.backend.service.1.7.0.jar
so I changed the dependency version to 1.7.0-SNAPSHOT

Now the problem is when starting the apim it gives following warning and
hangs

[2014-08-21 08:58:31,302]  WARN - CarbonServerManager Carbon initialization
is delayed due to the following unsatisfied items:
[2014-08-21 08:58:31,304]  WARN - CarbonServerManager Waiting for required
OSGiAxis2Service: org.wso2.carbon.apimgt.gateway-4.3.0.SNAPSHOT
[2014-08-21 08:59:31,301]  WARN - CarbonServerManager Carbon initialization
is delayed due to the following unsatisfied items:
[2014-08-21 08:59:31,302]  WARN - CarbonServerManager Waiting for required
OSGiAxis2Service: org.wso2.carbon.apimgt.gateway-4.3.0.SNAPSHOT
[2014-08-21 09:00:31,301]  WARN - CarbonServerManager Carbon initialization
is delayed due to the following unsatisfied items:
[2014-08-21 09:00:31,302]  WARN - CarbonServerManager Waiting for required
OSGiAxis2Service: org.wso2.carbon.apimgt.gateway-4.3.0.SNAPSHOT

any idea of how to resolve this?


On Thu, Aug 21, 2014 at 7:40 AM, Amalka Subasinghe  wrote:

> Hi Dhanushka,
>
> it's jdk 1.6_x and maven 3.0.x.
>
>
> On Thu, Aug 21, 2014 at 6:07 AM, Danushka Fernando 
> wrote:
>
>> Hi Amalka
>> Please check java and maven versions. They should be jdk 1.6_x and maven
>> 3.0.x.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>>
>> On Wed, Aug 20, 2014 at 8:46 PM, Amalka Subasinghe 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm getting the following error when trying to build the product-apim,
>>> any idea of what is missing?
>>>
>>> An error occurred while configuring the installed items
>>>  session context was:(profile=default,
>>> phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null
>>> --> [R]org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT,
>>> action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
>>>  I/O Error while copying
>>> /home/amalka/amalkas/product-apim/modules/p2-profile/product/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/default/../features/org.wso2.carbon.apimgt.store_4.3.0.SNAPSHOT/admin-dashboard
>>> - see details.
>>> Caused by:  java.io.IOException: Source:
>>> /home/amalka/amalkas/product-apim/modules/p2-profile/product/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/default/../features/org.wso2.carbon.apimgt.store_4.3.0.SNAPSHOT/admin-dashboarddoes
>>> not exists
>>> Application failed, log file location:
>>> /home/amalka/amalka/maven_repo/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1408547531357.log
>>>
>>> [INFO]
>>> 
>>> [INFO] Reactor Summary:
>>> [INFO]
>>> [INFO] WSO2 API Manager - Aggregator Module .. SUCCESS
>>> [0.112s]
>>> [INFO] WSO2 API Manager - Styles Parent .. SUCCESS
>>> [0.007s]
>>> [INFO] WSO2 API Manager - Styles . SUCCESS
>>> [1.499s]
>>> [INFO] WSO2 Stratos  API Manager - UI styles . SUCCESS
>>> [0.663s]
>>> [INFO] WSO2 Stratos  API Manager - Dashboard UI .. SUCCESS
>>> [0.314s]
>>> [INFO] WSO2 AM - Login User Interface  SUCCESS
>>> [0.343s]
>>> [INFO] WSO2 API Manager - Features Parent  SUCCESS
>>> [0.004s]
>>> [INFO] WSO2 API Manager - Features Aggregator Module . SUCCESS
>>> [0.004s]
>>> [INFO] WSO2 API Manager - Styles Features  SUCCESS
>>> [0.222s]
>>> [INFO] WSO2 Stratos  API Manager - Style Features  SUCCESS
>>> [0.012s]
>>> [INFO] WSO2 Stratos  API Manager - Utils Features  SUCCESS
>>> [0.359s]
>>> [INFO] WSO2 Stratos  API Manager - Dashboard UI Features . SUCCESS
>>> [0.016s]
>>> [INFO] WSO2 Stratos  API Manager - Deployment Features ... SUCCESS
>>> [0.016s]
>>> [INFO] WSO2 Stratos  API Manager - Features Aggregator Module  SUCCESS
>>> [0.003s]
>>> [INFO] WSO2 API Manager - P2 Profile Generation Parent ... SUCCESS
>>> [0.003s]
>>> [INFO] WSO2 API Manager - P2 Profile Generation .. FAILURE
>>> [34.959s]
>>> [INFO] WSO2 API Manager - BAM Toolbox  SKIPPED
>>> [INFO] WSO2 API Manager - Distribution Parent  SKIPPED
>>> [INFO] WSO2 API Manager - Distribution ... SKIPPED
>>> [INFO]
>>> 
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> 
>>> [INFO] Total time: 39.462s
>>> [INFO] Finished at: Wed Aug 20 20:42:20 IST 2014
>>> [INFO] Final Memory: 29M/1237M
>>> [INFO]
>>> -

Re: [Dev] How to get the current Location path in Puppet

2014-08-20 Thread Chamila De Alwis
Cool! I didn't know about the inline_template function.


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




On Thu, Aug 21, 2014 at 9:32 AM, Yasassri Ratnayake 
wrote:

> The manifest code will look like following,
>
> $var1 = inline_template("<%= Dir.pwd %>")
> notice ("This Current Location : ${dummy}")
>
> With Regards,
>
>
> On Thu, Aug 21, 2014 at 9:17 AM, Yasassri Ratnayake 
> wrote:
>
>> Hi Rajith,
>>
>> Thanks for the prompt answer, the above answer is specific to finding
>> users home directory, my requirement is to get the current file location
>> (The location may not be the home directory). Thanks to Chamila I have
>> found a way to do this [1].
>>
>> [1] -
>> http://stackoverflow.com/questions/1937743/how-to-get-the-current-working-directorys-absolute-path-from-irb
>>
>>
>> On Thu, Aug 21, 2014 at 8:41 AM, Rajith Vitharana 
>> wrote:
>>
>>> Hi Yasassri,
>>>
>>> Will [1] help?
>>>
>>> [1] -
>>> http://serverfault.com/questions/420749/puppet-get-users-home-directory
>>>
>>> Thanks,
>>>
>>>
>>> On Thu, Aug 21, 2014 at 8:37 AM, Yasassri Ratnayake 
>>> wrote:
>>>
 Hi,

 Is there a way to do the $subject? For example if I'm running a
 puppet.pp script from */home/puppet.pp*, Is there a way to get the
 current file location path ("/home")?


 With Regards,
 --
 Yasassri Ratnayake
 Software Engineer - QA
 WSO2 Inc ; http://wso2.com
 lean.enterprise.middleware
 *Mobile : +94715933168 <%2B94715933168>*
 *Blog : http://yasassriratnayake.blogspot.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/
>>>
>>
>>
>>
>> --
>> Yasassri Ratnayake
>> Software Engineer - QA
>> WSO2 Inc ; http://wso2.com
>> lean.enterprise.middleware
>> *Mobile : +94715933168 <%2B94715933168>*
>> *Blog : http://yasassriratnayake.blogspot.com/
>> *
>>
>
>
>
> --
> Yasassri Ratnayake
> Software Engineer - QA
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
> *Mobile : +94715933168 <%2B94715933168>*
> *Blog : http://yasassriratnayake.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


[Dev] [ESB] [DOC] 'FORCE_ERROR_ON_SOAP_FAULT' Property not mentioned in 'Properties Reference' page

2014-08-20 Thread Ishara Premadasa
Hi all,

The property 'FORCE_ERROR_ON_SOAP_FAULT' is a useful entry when it comes to
re-direct a SOAPFault thrown by a back end service into a Fault sequence.
[1] If this is not set the SOAPFault will be received by the OutSequence as
a usual response message.



Currently ESB 4.8.1 docs doesn't explain the use of this property anywhere.
I think this should be properly documented in the 'Generic Properties' [2]
section of the docs.

Adding the Dev list here, as this information will be useful for someone.

Thanks!
Ishara

[1]
http://vvratha.blogspot.com/2014/05/executing-faultsequence-for-soapfaults.html
[2] https://docs.wso2.com/display/ESB481/Generic+Properties

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


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


Re: [Dev] How to get the current Location path in Puppet

2014-08-20 Thread Yasassri Ratnayake
The manifest code will look like following,

$var1 = inline_template("<%= Dir.pwd %>")
notice ("This Current Location : ${dummy}")

With Regards,


On Thu, Aug 21, 2014 at 9:17 AM, Yasassri Ratnayake 
wrote:

> Hi Rajith,
>
> Thanks for the prompt answer, the above answer is specific to finding
> users home directory, my requirement is to get the current file location
> (The location may not be the home directory). Thanks to Chamila I have
> found a way to do this [1].
>
> [1] -
> http://stackoverflow.com/questions/1937743/how-to-get-the-current-working-directorys-absolute-path-from-irb
>
>
> On Thu, Aug 21, 2014 at 8:41 AM, Rajith Vitharana 
> wrote:
>
>> Hi Yasassri,
>>
>> Will [1] help?
>>
>> [1] -
>> http://serverfault.com/questions/420749/puppet-get-users-home-directory
>>
>> Thanks,
>>
>>
>> On Thu, Aug 21, 2014 at 8:37 AM, Yasassri Ratnayake 
>> wrote:
>>
>>> Hi,
>>>
>>> Is there a way to do the $subject? For example if I'm running a
>>> puppet.pp script from */home/puppet.pp*, Is there a way to get the
>>> current file location path ("/home")?
>>>
>>>
>>> With Regards,
>>> --
>>> Yasassri Ratnayake
>>> Software Engineer - QA
>>> WSO2 Inc ; http://wso2.com
>>> lean.enterprise.middleware
>>> *Mobile : +94715933168 <%2B94715933168>*
>>> *Blog : http://yasassriratnayake.blogspot.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/
>>
>
>
>
> --
> Yasassri Ratnayake
> Software Engineer - QA
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
> *Mobile : +94715933168 <%2B94715933168>*
> *Blog : http://yasassriratnayake.blogspot.com/
> *
>



-- 
Yasassri Ratnayake
Software Engineer - QA
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
*Mobile : +94715933168*
*Blog : http://yasassriratnayake.blogspot.com/
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can't build product-as

2014-08-20 Thread Gayashan Amarasinghe
And carbon-deployment as well.

Thanks.
/Gayashan


On Thu, Aug 21, 2014 at 9:05 AM, Gayashan Amarasinghe 
wrote:

> Hi Sagara,
>
> Looks like the logging appender package changes on the carbon-utils are
> not there. Is this a local build or jenkins build? Can you build the kernel
> and carbon-utils and try again?
>
> Thanks.
> /Gayashan
>
>
> On Thu, Aug 21, 2014 at 8:46 AM, Sagara Gunathunga 
> wrote:
>
>> Hi Shameera/Gayashan,
>>
>> Any idea ?
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> log4j:ERROR Could not instantiate class
>> [org.wso2.carbon.logging.appenders.CarbonConsoleAppender].
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> java.lang.ClassNotFoundException:
>> org.wso2.carbon.logging.appenders.CarbonConsoleAppender
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at
>> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at
>> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at java.lang.Class.forName0(Native Method)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at java.lang.Class.forName(Class.java:171)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at org.apache.log4j.helpers.Loader.loadClass(Loader.java:178)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at
>> org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:317)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at
>> org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:120)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at
>> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:629)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at
>> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at
>> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at
>> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at
>> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at
>> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at org.apache.log4j.LogManager.(LogManager.java:122)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at com.atomikos.logging.Slf4jLogger.(Slf4jLogger.java:8)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at
>> com.atomikos.logging.Slf4JLoggerFactoryDelegate.createLogger(Slf4JLoggerFactoryDelegate.java:7)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at com.atomikos.logging.LoggerFactory.createLogger(LoggerFactory.java:12)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> at com.atomikos.logging.LoggerFactory.(LoggerFactory.java:52)
>>
>> ERROR
>> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
>> 

Re: [Dev] How to get the current Location path in Puppet

2014-08-20 Thread Yasassri Ratnayake
Hi Rajith,

Thanks for the prompt answer, the above answer is specific to finding users
home directory, my requirement is to get the current file location (The
location may not be the home directory). Thanks to Chamila I have found a
way to do this [1].

[1] -
http://stackoverflow.com/questions/1937743/how-to-get-the-current-working-directorys-absolute-path-from-irb


On Thu, Aug 21, 2014 at 8:41 AM, Rajith Vitharana  wrote:

> Hi Yasassri,
>
> Will [1] help?
>
> [1] -
> http://serverfault.com/questions/420749/puppet-get-users-home-directory
>
> Thanks,
>
>
> On Thu, Aug 21, 2014 at 8:37 AM, Yasassri Ratnayake 
> wrote:
>
>> Hi,
>>
>> Is there a way to do the $subject? For example if I'm running a puppet.pp
>> script from */home/puppet.pp*, Is there a way to get the current file
>> location path ("/home")?
>>
>>
>> With Regards,
>> --
>> Yasassri Ratnayake
>> Software Engineer - QA
>> WSO2 Inc ; http://wso2.com
>> lean.enterprise.middleware
>> *Mobile : +94715933168 <%2B94715933168>*
>> *Blog : http://yasassriratnayake.blogspot.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/
>



-- 
Yasassri Ratnayake
Software Engineer - QA
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
*Mobile : +94715933168*
*Blog : http://yasassriratnayake.blogspot.com/
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can't build product-as

2014-08-20 Thread Gayashan Amarasinghe
Hi Sagara,

Looks like the logging appender package changes on the carbon-utils are not
there. Is this a local build or jenkins build? Can you build the kernel and
carbon-utils and try again?

Thanks.
/Gayashan


On Thu, Aug 21, 2014 at 8:46 AM, Sagara Gunathunga  wrote:

> Hi Shameera/Gayashan,
>
> Any idea ?
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
> log4j:ERROR Could not instantiate class
> [org.wso2.carbon.logging.appenders.CarbonConsoleAppender].
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
> java.lang.ClassNotFoundException:
> org.wso2.carbon.logging.appenders.CarbonConsoleAppender
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> java.lang.Class.forName0(Native Method)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> java.lang.Class.forName(Class.java:171)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.apache.log4j.helpers.Loader.loadClass(Loader.java:178)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:317)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:120)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:629)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.apache.log4j.LogManager.(LogManager.java:122)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> com.atomikos.logging.Slf4jLogger.(Slf4jLogger.java:8)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> com.atomikos.logging.Slf4JLoggerFactoryDelegate.createLogger(Slf4JLoggerFactoryDelegate.java:7)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> com.atomikos.logging.LoggerFactory.createLogger(LoggerFactory.java:12)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> com.atomikos.logging.LoggerFactory.(LoggerFactory.java:52)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> com.atomikos.transactions.internal.AtomikosActivator.(AtomikosActivator.java:47)
>
> ERROR
> [org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
> ERROR
> [org.wso2.carbon.integration.c

[Dev] Can't build product-as

2014-08-20 Thread Sagara Gunathunga
Hi Shameera/Gayashan,

Any idea ?

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
log4j:ERROR Could not instantiate class
[org.wso2.carbon.logging.appenders.CarbonConsoleAppender].

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] -
java.lang.ClassNotFoundException:
org.wso2.carbon.logging.appenders.CarbonConsoleAppender

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
java.lang.ClassLoader.loadClass(ClassLoader.java:247)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
java.lang.Class.forName0(Native Method)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
java.lang.Class.forName(Class.java:171)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.apache.log4j.helpers.Loader.loadClass(Loader.java:178)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:317)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:120)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:629)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.apache.log4j.LogManager.(LogManager.java:122)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
com.atomikos.logging.Slf4jLogger.(Slf4jLogger.java:8)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
com.atomikos.logging.Slf4JLoggerFactoryDelegate.createLogger(Slf4JLoggerFactoryDelegate.java:7)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
com.atomikos.logging.LoggerFactory.createLogger(LoggerFactory.java:12)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
com.atomikos.logging.LoggerFactory.(LoggerFactory.java:52)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
com.atomikos.transactions.internal.AtomikosActivator.(AtomikosActivator.java:47)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

ERROR
[org.wso2.carbon.integration.common.extensions.utils.InputStreamHandler] - at
java.lang.reflect.Constructor.newInstance(Constructor.java:513)

ERROR

Re: [Dev] How to get the current Location path in Puppet

2014-08-20 Thread Rajith Vitharana
Hi Yasassri,

Will [1] help?

[1] -
http://serverfault.com/questions/420749/puppet-get-users-home-directory

Thanks,


On Thu, Aug 21, 2014 at 8:37 AM, Yasassri Ratnayake 
wrote:

> Hi,
>
> Is there a way to do the $subject? For example if I'm running a puppet.pp
> script from */home/puppet.pp*, Is there a way to get the current file
> location path ("/home")?
>
>
> With Regards,
> --
> Yasassri Ratnayake
> Software Engineer - QA
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
> *Mobile : +94715933168 <%2B94715933168>*
> *Blog : http://yasassriratnayake.blogspot.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


[Dev] How to get the current Location path in Puppet

2014-08-20 Thread Yasassri Ratnayake
Hi,

Is there a way to do the $subject? For example if I'm running a puppet.pp
script from */home/puppet.pp*, Is there a way to get the current file
location path ("/home")?


With Regards,
-- 
Yasassri Ratnayake
Software Engineer - QA
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
*Mobile : +94715933168*
*Blog : http://yasassriratnayake.blogspot.com/
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build failure on wso2-dev/product-apim git repo

2014-08-20 Thread Amalka Subasinghe
Hi Dhanushka,

it's jdk 1.6_x and maven 3.0.x.


On Thu, Aug 21, 2014 at 6:07 AM, Danushka Fernando 
wrote:

> Hi Amalka
> Please check java and maven versions. They should be jdk 1.6_x and maven
> 3.0.x.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
>
> On Wed, Aug 20, 2014 at 8:46 PM, Amalka Subasinghe 
> wrote:
>
>> Hi,
>>
>> I'm getting the following error when trying to build the product-apim,
>> any idea of what is missing?
>>
>> An error occurred while configuring the installed items
>>  session context was:(profile=default,
>> phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null
>> --> [R]org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT,
>> action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
>>  I/O Error while copying
>> /home/amalka/amalkas/product-apim/modules/p2-profile/product/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/default/../features/org.wso2.carbon.apimgt.store_4.3.0.SNAPSHOT/admin-dashboard
>> - see details.
>> Caused by:  java.io.IOException: Source:
>> /home/amalka/amalkas/product-apim/modules/p2-profile/product/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/default/../features/org.wso2.carbon.apimgt.store_4.3.0.SNAPSHOT/admin-dashboarddoes
>> not exists
>> Application failed, log file location:
>> /home/amalka/amalka/maven_repo/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1408547531357.log
>>
>> [INFO]
>> 
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] WSO2 API Manager - Aggregator Module .. SUCCESS
>> [0.112s]
>> [INFO] WSO2 API Manager - Styles Parent .. SUCCESS
>> [0.007s]
>> [INFO] WSO2 API Manager - Styles . SUCCESS
>> [1.499s]
>> [INFO] WSO2 Stratos  API Manager - UI styles . SUCCESS
>> [0.663s]
>> [INFO] WSO2 Stratos  API Manager - Dashboard UI .. SUCCESS
>> [0.314s]
>> [INFO] WSO2 AM - Login User Interface  SUCCESS
>> [0.343s]
>> [INFO] WSO2 API Manager - Features Parent  SUCCESS
>> [0.004s]
>> [INFO] WSO2 API Manager - Features Aggregator Module . SUCCESS
>> [0.004s]
>> [INFO] WSO2 API Manager - Styles Features  SUCCESS
>> [0.222s]
>> [INFO] WSO2 Stratos  API Manager - Style Features  SUCCESS
>> [0.012s]
>> [INFO] WSO2 Stratos  API Manager - Utils Features  SUCCESS
>> [0.359s]
>> [INFO] WSO2 Stratos  API Manager - Dashboard UI Features . SUCCESS
>> [0.016s]
>> [INFO] WSO2 Stratos  API Manager - Deployment Features ... SUCCESS
>> [0.016s]
>> [INFO] WSO2 Stratos  API Manager - Features Aggregator Module  SUCCESS
>> [0.003s]
>> [INFO] WSO2 API Manager - P2 Profile Generation Parent ... SUCCESS
>> [0.003s]
>> [INFO] WSO2 API Manager - P2 Profile Generation .. FAILURE
>> [34.959s]
>> [INFO] WSO2 API Manager - BAM Toolbox  SKIPPED
>> [INFO] WSO2 API Manager - Distribution Parent  SKIPPED
>> [INFO] WSO2 API Manager - Distribution ... SKIPPED
>> [INFO]
>> 
>> [INFO] BUILD FAILURE
>> [INFO]
>> 
>> [INFO] Total time: 39.462s
>> [INFO] Finished at: Wed Aug 20 20:42:20 IST 2014
>> [INFO] Final Memory: 29M/1237M
>> [INFO]
>> 
>> [ERROR] Failed to execute goal
>> org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
>> (3-p2-profile-generation) on project am-p2-profile: P2 publisher return
>> code was 13 -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>> goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
>> (3-p2-profile-generation) on project am-p2-profile: P2 publisher return
>> code was 13
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:19

Re: [Dev] Build failure on wso2-dev/product-apim git repo

2014-08-20 Thread Danushka Fernando
Hi Amalka
Please check java and maven versions. They should be jdk 1.6_x and maven
3.0.x.

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


On Wed, Aug 20, 2014 at 8:46 PM, Amalka Subasinghe  wrote:

> Hi,
>
> I'm getting the following error when trying to build the product-apim, any
> idea of what is missing?
>
> An error occurred while configuring the installed items
>  session context was:(profile=default,
> phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null
> --> [R]org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT,
> action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
>  I/O Error while copying
> /home/amalka/amalkas/product-apim/modules/p2-profile/product/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/default/../features/org.wso2.carbon.apimgt.store_4.3.0.SNAPSHOT/admin-dashboard
> - see details.
> Caused by:  java.io.IOException: Source:
> /home/amalka/amalkas/product-apim/modules/p2-profile/product/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/default/../features/org.wso2.carbon.apimgt.store_4.3.0.SNAPSHOT/admin-dashboarddoes
> not exists
> Application failed, log file location:
> /home/amalka/amalka/maven_repo/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1408547531357.log
>
> [INFO]
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 API Manager - Aggregator Module .. SUCCESS [0.112s]
> [INFO] WSO2 API Manager - Styles Parent .. SUCCESS [0.007s]
> [INFO] WSO2 API Manager - Styles . SUCCESS [1.499s]
> [INFO] WSO2 Stratos  API Manager - UI styles . SUCCESS [0.663s]
> [INFO] WSO2 Stratos  API Manager - Dashboard UI .. SUCCESS [0.314s]
> [INFO] WSO2 AM - Login User Interface  SUCCESS [0.343s]
> [INFO] WSO2 API Manager - Features Parent  SUCCESS [0.004s]
> [INFO] WSO2 API Manager - Features Aggregator Module . SUCCESS [0.004s]
> [INFO] WSO2 API Manager - Styles Features  SUCCESS [0.222s]
> [INFO] WSO2 Stratos  API Manager - Style Features  SUCCESS [0.012s]
> [INFO] WSO2 Stratos  API Manager - Utils Features  SUCCESS [0.359s]
> [INFO] WSO2 Stratos  API Manager - Dashboard UI Features . SUCCESS [0.016s]
> [INFO] WSO2 Stratos  API Manager - Deployment Features ... SUCCESS [0.016s]
> [INFO] WSO2 Stratos  API Manager - Features Aggregator Module  SUCCESS
> [0.003s]
> [INFO] WSO2 API Manager - P2 Profile Generation Parent ... SUCCESS [0.003s]
> [INFO] WSO2 API Manager - P2 Profile Generation .. FAILURE
> [34.959s]
> [INFO] WSO2 API Manager - BAM Toolbox  SKIPPED
> [INFO] WSO2 API Manager - Distribution Parent  SKIPPED
> [INFO] WSO2 API Manager - Distribution ... SKIPPED
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 39.462s
> [INFO] Finished at: Wed Aug 20 20:42:20 IST 2014
> [INFO] Final Memory: 29M/1237M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
> (3-p2-profile-generation) on project am-p2-profile: P2 publisher return
> code was 13 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
> (3-p2-profile-generation) on project am-p2-profile: P2 publisher return
> code was 13
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.Delegati

Re: [Dev] [App Factory] - Delete application created in a tenant

2014-08-20 Thread Danushka Fernando
Hi Godwin
You can check the AF list appplications code and delete application code. I
can help with that.

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


On Thu, Aug 21, 2014 at 1:06 AM, Udara Liyanage  wrote:

> Hi,
>
> You can call AppFac REST API for this. Please refer to [1]
>
> [1]
> https://docs.wso2.com/plugins/servlet/mobile#RESTAPIs-getApplicationsOfUser
>
>
>
> Touched, not typed. Erroneous words are a feature, not a typo.
> On Aug 20, 2014 7:40 PM, "Godwin Amila Shrimal"  wrote:
>
>> Hi,
>>
>> How can we check the already created application for a specific tenant
>> and delete them in App Factory. Is there any admin service to perform this ?
>>
>>
>> Thanks
>> Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>>  Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> 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


Re: [Dev] [AF] [Private PAAS] Private pass cartrige agent still triggering the subscription-* scripts.

2014-08-20 Thread Danushka Fernando
Udara
AFAIR the decision took at the discussion is to remove these extension
points.

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


On Thu, Aug 21, 2014 at 1:13 AM, Udara Liyanage  wrote:

> Hi,
>
> I guess subscription-domain-added cartridge extension is called when a
> subscription domain is added. This is the default behavior right?
> When a subscription domain is added, LB too get a notification so that it
> start load balancing request to that domain. Additionally
> subscription-domain-added extension is called. You can edit the extension
> according to your cartridge.
>
>
> Touched, not typed. Erroneous words are a feature, not a typo.
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Optimize file read operation in Jaggery

2014-08-20 Thread Udara Liyanage
Hi,

If the file content is stored in memory, memory consumption would grow if
it reads a big file or several files. How about using a cache of a fix
size?

What kind of files it would read multiple times, if they are configuration
files only the important data could be stored in the memory.
Could you please elaborate more of your task with an example in order to
get a better understanding.

Touched, not typed. Erroneous words are a feature, not a typo.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] - Delete application created in a tenant

2014-08-20 Thread Udara Liyanage
Hi,

You can call AppFac REST API for this. Please refer to [1]

[1]
https://docs.wso2.com/plugins/servlet/mobile#RESTAPIs-getApplicationsOfUser



Touched, not typed. Erroneous words are a feature, not a typo.
On Aug 20, 2014 7:40 PM, "Godwin Amila Shrimal"  wrote:

> Hi,
>
> How can we check the already created application for a specific tenant and
> delete them in App Factory. Is there any admin service to perform this ?
>
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
>  Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] [Private PAAS] Private pass cartrige agent still triggering the subscription-* scripts.

2014-08-20 Thread Udara Liyanage
Hi,

I guess subscription-domain-added cartridge extension is called when a
subscription domain is added. This is the default behavior right?
When a subscription domain is added, LB too get a notification so that it
start load balancing request to that domain. Additionally
subscription-domain-added extension is called. You can edit the extension
according to your cartridge.


Touched, not typed. Erroneous words are a feature, not a typo.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2014-08-20 Thread Ajanthan Balachandran
Hi,
This is one of the bug in h2 database[0].
This is Fixed in version 1.3.164.We may need to upgrade h2 database version.
thanks

[0]http://code.google.com/p/h2database/issues/detail?id=374


On Wed, May 21, 2014 at 9:33 PM, Shazni Nazeer  wrote:

> Hi,
>
> I too am getting this exception, while following the below.
>
> https://docs.wso2.org/display/BAM240/Service+Statistics+Toolbox
>
> Any solution for this?
>
>
>
> Shazni Nazeer
>
> Senior Software Engineer
>
> Mob : +94 715 440 607
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
>
> On Thu, May 8, 2014 at 7:41 PM, Isuru Haththotuwa  wrote:
>
>> Hi,
>>
>> Is there a solution for this? I'm getting this in BAM 2.4.0.
>>
>>
>> On Wed, Apr 30, 2014 at 10:58 AM, Shavantha Weerasinghe <
>> shavan...@wso2.com> wrote:
>>
>>> Hi Chathurika
>>>
>>> Thanks, reopened the issue
>>>
>>> regards.
>>>
>>> Shavantha Weerasinghe
>>> Senior Software Engineer QA
>>> WSO2, Inc.
>>> lean.enterprise.middleware.
>>> http://wso2.com
>>> http://wso2.org
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>>
>>>
>>>
>>> On Wed, Apr 30, 2014 at 10:40 AM, Chathurika Mahaarachchi <
>>> chathur...@wso2.com> wrote:
>>>
 Slimier Issue has been reported [1]

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



 On Wed, Apr 30, 2014 at 9:33 AM, Shavantha Weerasinghe <
 shavan...@wso2.com> wrote:

> Hi All
>
> The BAM 241 RC4 release had thrown the below exception on the
> stand-a-lone instance "java.io.UTFDataFormatException: encoded string too
> long: " could this be a limitation with the h2 database.
>
> I am not sure of the exact steps to reproduce this, but has any one
> come across a similar exception
>
> Warning: generateAlternativeSeed
> java.io.UTFDataFormatException: encoded string too long: 81297 bytes
> at java.io.DataOutputStream.writeUTF(DataOutputStream.java:364)
> at java.io.DataOutputStream.writeUTF(DataOutputStream.java:323)
> at
> org.h2.util.MathUtils.generateAlternativeSeed(MathUtils.java:137)
> at org.h2.util.MathUtils.getSecureRandom(MathUtils.java:89)
> at org.h2.util.MathUtils.secureRandomBytes(MathUtils.java:383)
> at org.h2.store.FileLock.setUniqueId(FileLock.java:290)
> at org.h2.store.FileLock.lockFile(FileLock.java:320)
> at org.h2.store.FileLock.lock(FileLock.java:129)
> at org.h2.engine.Database.open(Database.java:523)
> at org.h2.engine.Database.openDatabase(Database.java:207)
> at org.h2.engine.Database.(Database.java:202)
> at org.h2.engine.Engine.openSession(Engine.java:56)
> at org.h2.engine.Engine.openSession(Engine.java:146)
> at org.h2.engine.Engine.getSession(Engine.java:125)
> at org.h2.engine.Session.createSession(Session.java:122)
> at
> org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:241)
> at
> org.h2.engine.SessionRemote.createSession(SessionRemote.java:219)
> at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:111)
> at org.h2.jdbc.JdbcConnection.(JdbcConnection.java:95)
> at org.h2.Driver.connect(Driver.java:73)
> at java.sql.DriverManager.getConnection(DriverManager.java:579)
> at java.sql.DriverManager.getConnection(DriverManager.java:221)
> at
> org.wso2.carbon.hadoop.hive.jdbc.storage.db.DBManager.createConnection(DBManager.java:73)
> at
> org.wso2.carbon.hadoop.hive.jdbc.storage.db.DBManager.createConnection(DBManager.java:85)
> at
> org.wso2.carbon.hadoop.hive.jdbc.storage.JDBCDataOutputFormat.getHiveRecordWriter(JDBCDataOutputFormat.java:48)
> at
> org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getRecordWriter(HiveFileFormatUtils.java:236)
> at
> org.apache.hadoop.hive.ql.io.HiveFileFormatUtils.getHiveRecordWriter(HiveFileFormatUtils.java:224)
> at
> org.apache.hadoop.hive.ql.exec.FileSinkOperator.createBucketFiles(FileSinkOperator.java:478)
> at
> org.apache.hadoop.hive.ql.exec.FileSinkOperator.processOp(FileSinkOperator.java:526)
> at
> org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
> at
> org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:758)
> at
> org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(SelectOperator.java:84)
> at
> org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
> at
> org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:758)
> at
> org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(SelectOperator.java:84)
> at
> org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:467)
> at
> org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:758)
> at
> org.apache.hadoop.hive.ql.exec.GroupByOperator.forward(GroupByOperator.java:964

[Dev] FileUploadConfig in component.xml

2014-08-20 Thread Gayan Gunawardana
Hi,

There are two UI bundles named
org.wso2.carbon.identity.tools.xacml.validator.ui,
org.wso2.carbon.identity.entitlement.ui. Both bundle register
FileUploadExecutors as mentioned below

*org.wso2.carbon.identity.entitlement.ui*




service


org.wso2.carbon.identity.entitlement.ui.client.EntitlementPolicyUploadExecutor



*org.wso2.carbon.identity.tools.xacml.validator.ui*




service


org.wso2.carbon.identity.tools.xacml.validator.ui.client.EntitlementPolicyUploadExecutor



But at the runtime both bundles pick up only one file upload executor
either
org.wso2.carbon.identity.entitlement.ui.client.EntitlementPolicyUploadExecutor
or
org.wso2.carbon.identity.tools.xacml.validator.ui.client.EntitlementPolicyUploadExecutor

Is there a particular reason for this kind of behaviour?
-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build failure on wso2-dev/product-apim git repo

2014-08-20 Thread Amalka Subasinghe
Hi,

I'm getting the following error when trying to build the product-apim, any
idea of what is missing?

An error occurred while configuring the installed items
 session context was:(profile=default,
phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null
--> [R]org.wso2.carbon.apimgt.store.feature.group 4.3.0.SNAPSHOT,
action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
 I/O Error while copying
/home/amalka/amalkas/product-apim/modules/p2-profile/product/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/default/../features/org.wso2.carbon.apimgt.store_4.3.0.SNAPSHOT/admin-dashboard
- see details.
Caused by:  java.io.IOException: Source:
/home/amalka/amalkas/product-apim/modules/p2-profile/product/target/wso2carbon-core-4.3.0-SNAPSHOT/repository/components/default/../features/org.wso2.carbon.apimgt.store_4.3.0.SNAPSHOT/admin-dashboarddoes
not exists
Application failed, log file location:
/home/amalka/amalka/maven_repo/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1408547531357.log

[INFO]

[INFO] Reactor Summary:
[INFO]
[INFO] WSO2 API Manager - Aggregator Module .. SUCCESS [0.112s]
[INFO] WSO2 API Manager - Styles Parent .. SUCCESS [0.007s]
[INFO] WSO2 API Manager - Styles . SUCCESS [1.499s]
[INFO] WSO2 Stratos  API Manager - UI styles . SUCCESS [0.663s]
[INFO] WSO2 Stratos  API Manager - Dashboard UI .. SUCCESS [0.314s]
[INFO] WSO2 AM - Login User Interface  SUCCESS [0.343s]
[INFO] WSO2 API Manager - Features Parent  SUCCESS [0.004s]
[INFO] WSO2 API Manager - Features Aggregator Module . SUCCESS [0.004s]
[INFO] WSO2 API Manager - Styles Features  SUCCESS [0.222s]
[INFO] WSO2 Stratos  API Manager - Style Features  SUCCESS [0.012s]
[INFO] WSO2 Stratos  API Manager - Utils Features  SUCCESS [0.359s]
[INFO] WSO2 Stratos  API Manager - Dashboard UI Features . SUCCESS [0.016s]
[INFO] WSO2 Stratos  API Manager - Deployment Features ... SUCCESS [0.016s]
[INFO] WSO2 Stratos  API Manager - Features Aggregator Module  SUCCESS
[0.003s]
[INFO] WSO2 API Manager - P2 Profile Generation Parent ... SUCCESS [0.003s]
[INFO] WSO2 API Manager - P2 Profile Generation .. FAILURE [34.959s]
[INFO] WSO2 API Manager - BAM Toolbox  SKIPPED
[INFO] WSO2 API Manager - Distribution Parent  SKIPPED
[INFO] WSO2 API Manager - Distribution ... SKIPPED
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 39.462s
[INFO] Finished at: Wed Aug 20 20:42:20 IST 2014
[INFO] Final Memory: 29M/1237M
[INFO]

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
(3-p2-profile-generation) on project am-p2-profile: P2 publisher return
code was 13 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-profile-gen
(3-p2-profile-generation) on project am-p2-profile: P2 publisher return
code was 13
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classwor

[Dev] [App Factory] - Delete application created in a tenant

2014-08-20 Thread Godwin Amila Shrimal
Hi,

How can we check the already created application for a specific tenant and
delete them in App Factory. Is there any admin service to perform this ?


Thanks
Godwin

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

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Cloud] Tenant Creation/Deletion process

2014-08-20 Thread Godwin Shrimal
Hi Danushka,

Yes. noted with thanks. we'll update the order respectively.




On Wed, Aug 20, 2014 at 6:30 PM, Danushka Fernando 
wrote:

> Apart from that you need to do 2, 3, 4 before 1 as we discussed.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
>
> On Wed, Aug 20, 2014 at 6:03 PM, Amila Maha Arachchi 
> wrote:
>
>>
>>
>>
>> On Wed, Aug 20, 2014 at 5:10 PM, Godwin Shrimal  wrote:
>>
>>> Hi,
>>>
>>> We are working on Training project (*[Cloud] Tenant deletion
>>> code/script for cloud* - https://redmine.wso2.com/issues/3121) , there
>>> for studying the process of create tenant in App Cloud. We studied the 
>>> *CreateTenant.bpel
>>> *(under appfactory/1.1.0/modules/bpels/CreateTenant) which is use to
>>> create the tenant in App Cloud.
>>>
>>> Listed below the identified create and delete tenant process
>>>
>>> *Create Tenant Process*
>>>
>>> 1. Initialize Repository Manager
>>>
>>> Nothing happens at the moment in the source code.
>>>
>>> 2. Initialize Build Manager
>>>
>>> 1. Deploy jenkins web application(jenkins.war) on application server
>>>
>>> 3. Initialize Cloud Manager
>>>
>>> 1. Perform addTenant operation in TenantMgtAdminService
>>>
>>> 2. Create Git repository (use gitblit api to create repo in Git, API
>>> has the delete repository functionality )
>>>
>>> 3. Subscribe for Stratos (Use Stratos Rest Service for subscribe)
>>>
>>> 4. Tenant Creation Listeners Notification
>>>  1. Perform addSkeletonTenant operation in TenantMgtAdminService
>>>
>>>
>>>
>>> *Delete Tenant Process (propose)*
>>>
>>> 1. Perform TenantMgtAdminService deleteTenant operation
>>>
>>>  1. Delete Billing data
>>>
>>> 2. Delete Tenant Registration Data (Ex. REG_CLUSTER_LOCK, REG_LOG)
>>>
>>> 3. Delete Tenant User management data (Ex. UM_USER_PERMISSION, UM_USER)
>>>
>>> 4. Remove Tenant information from cache
>>>
>>> 5. Delete UM_TENANT table
>>>
>>> 2. Undeploy jenkins web app from application server
>>>
>>
>> In the application server, when the jenkins web app is deployed, it
>> creates a folder in repository/jenkins/tenants/. All the
>> builds etc. happens inside this folder. So, you need to delete this folder
>> as well.
>>
>>
>>> 3. Delete Git repository (use gitblit api to delete repo in Git)
>>>
>>
>> There may be applications created by tenant. For these applications,
>> there are git repositories created. So, we need to delete them as well. I
>> think, best option would be to, check for the applications created and then
>> delete them via AF APIs or admin services. This process deletes the
>> repository as well.
>>
>> Note that there are two Git servers in App Cloud / AF. One is for
>> application source and the other for stratos environments. In #3, you have
>> mentioned about repos created for stratos.
>>
>>
>> You also need to check whether there are databases created by using
>> RSSAdmin.
>>
>>
>>>  4. Unsubscribe Stratos using Stratos Rest Service
>>>
>>>
>>> Please give you all feedback on this.
>>>
>>>
>>> Thanks
>>>  Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>>
>>
>>
>>
>> --
>> *Amila Maharachchi*
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>>
>


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

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Cloud] Tenant Creation/Deletion process

2014-08-20 Thread Godwin Shrimal
Hi Amila,

Thanks for the information. I'll update the process.


On Wed, Aug 20, 2014 at 6:03 PM, Amila Maha Arachchi 
wrote:

>
>
>
> On Wed, Aug 20, 2014 at 5:10 PM, Godwin Shrimal  wrote:
>
>> Hi,
>>
>> We are working on Training project (*[Cloud] Tenant deletion code/script
>> for cloud* - https://redmine.wso2.com/issues/3121) , there for studying
>> the process of create tenant in App Cloud. We studied the *CreateTenant.bpel
>> *(under appfactory/1.1.0/modules/bpels/CreateTenant) which is use to
>> create the tenant in App Cloud.
>>
>> Listed below the identified create and delete tenant process
>>
>> *Create Tenant Process*
>>
>> 1. Initialize Repository Manager
>>
>> Nothing happens at the moment in the source code.
>>
>> 2. Initialize Build Manager
>>
>> 1. Deploy jenkins web application(jenkins.war) on application server
>>
>> 3. Initialize Cloud Manager
>>
>> 1. Perform addTenant operation in TenantMgtAdminService
>>
>> 2. Create Git repository (use gitblit api to create repo in Git, API has
>> the delete repository functionality )
>>
>> 3. Subscribe for Stratos (Use Stratos Rest Service for subscribe)
>>
>> 4. Tenant Creation Listeners Notification
>>  1. Perform addSkeletonTenant operation in TenantMgtAdminService
>>
>>
>>
>> *Delete Tenant Process (propose)*
>>
>> 1. Perform TenantMgtAdminService deleteTenant operation
>>
>>  1. Delete Billing data
>>
>> 2. Delete Tenant Registration Data (Ex. REG_CLUSTER_LOCK, REG_LOG)
>>
>> 3. Delete Tenant User management data (Ex. UM_USER_PERMISSION, UM_USER)
>>
>> 4. Remove Tenant information from cache
>>
>> 5. Delete UM_TENANT table
>>
>> 2. Undeploy jenkins web app from application server
>>
>
> In the application server, when the jenkins web app is deployed, it
> creates a folder in repository/jenkins/tenants/. All the
> builds etc. happens inside this folder. So, you need to delete this folder
> as well.
>
>
>> 3. Delete Git repository (use gitblit api to delete repo in Git)
>>
>
> There may be applications created by tenant. For these applications, there
> are git repositories created. So, we need to delete them as well. I think,
> best option would be to, check for the applications created and then delete
> them via AF APIs or admin services. This process deletes the repository as
> well.
>
> Note that there are two Git servers in App Cloud / AF. One is for
> application source and the other for stratos environments. In #3, you have
> mentioned about repos created for stratos.
>
>
> You also need to check whether there are databases created by using
> RSSAdmin.
>
>
>>  4. Unsubscribe Stratos using Stratos Rest Service
>>
>>
>> Please give you all feedback on this.
>>
>>
>> Thanks
>>  Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>
>
>
> --
> *Amila Maharachchi*
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>


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

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Role is not assigned even a role is selected at the time of user creation

2014-08-20 Thread Rajeeva Uthayasangar
Hi,
The issue reported in [1], caused by kernel patch0009. Can some one from
Kernel team look into the issue?

[1]. https://wso2.org/jira/browse/APPM-108

Thanks,
Rajeeva.

-- 

*Rajeeva Uthayasangar*
Software Engineer
WSO2, Inc.:http://wso2.com


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


Re: [Dev] [App Cloud] Tenant Creation/Deletion process

2014-08-20 Thread Danushka Fernando
Apart from that you need to do 2, 3, 4 before 1 as we discussed.

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


On Wed, Aug 20, 2014 at 6:03 PM, Amila Maha Arachchi 
wrote:

>
>
>
> On Wed, Aug 20, 2014 at 5:10 PM, Godwin Shrimal  wrote:
>
>> Hi,
>>
>> We are working on Training project (*[Cloud] Tenant deletion code/script
>> for cloud* - https://redmine.wso2.com/issues/3121) , there for studying
>> the process of create tenant in App Cloud. We studied the *CreateTenant.bpel
>> *(under appfactory/1.1.0/modules/bpels/CreateTenant) which is use to
>> create the tenant in App Cloud.
>>
>> Listed below the identified create and delete tenant process
>>
>> *Create Tenant Process*
>>
>> 1. Initialize Repository Manager
>>
>> Nothing happens at the moment in the source code.
>>
>> 2. Initialize Build Manager
>>
>> 1. Deploy jenkins web application(jenkins.war) on application server
>>
>> 3. Initialize Cloud Manager
>>
>> 1. Perform addTenant operation in TenantMgtAdminService
>>
>> 2. Create Git repository (use gitblit api to create repo in Git, API has
>> the delete repository functionality )
>>
>> 3. Subscribe for Stratos (Use Stratos Rest Service for subscribe)
>>
>> 4. Tenant Creation Listeners Notification
>>  1. Perform addSkeletonTenant operation in TenantMgtAdminService
>>
>>
>>
>> *Delete Tenant Process (propose)*
>>
>> 1. Perform TenantMgtAdminService deleteTenant operation
>>
>>  1. Delete Billing data
>>
>> 2. Delete Tenant Registration Data (Ex. REG_CLUSTER_LOCK, REG_LOG)
>>
>> 3. Delete Tenant User management data (Ex. UM_USER_PERMISSION, UM_USER)
>>
>> 4. Remove Tenant information from cache
>>
>> 5. Delete UM_TENANT table
>>
>> 2. Undeploy jenkins web app from application server
>>
>
> In the application server, when the jenkins web app is deployed, it
> creates a folder in repository/jenkins/tenants/. All the
> builds etc. happens inside this folder. So, you need to delete this folder
> as well.
>
>
>> 3. Delete Git repository (use gitblit api to delete repo in Git)
>>
>
> There may be applications created by tenant. For these applications, there
> are git repositories created. So, we need to delete them as well. I think,
> best option would be to, check for the applications created and then delete
> them via AF APIs or admin services. This process deletes the repository as
> well.
>
> Note that there are two Git servers in App Cloud / AF. One is for
> application source and the other for stratos environments. In #3, you have
> mentioned about repos created for stratos.
>
>
> You also need to check whether there are databases created by using
> RSSAdmin.
>
>
>>  4. Unsubscribe Stratos using Stratos Rest Service
>>
>>
>> Please give you all feedback on this.
>>
>>
>> Thanks
>>  Godwin
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>
>
>
> --
> *Amila Maharachchi*
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AF] [Private PAAS] Private pass cartrige agent still triggering the subscription-* scripts.

2014-08-20 Thread Danushka Fernando
Hi
We had a requirement of adding a custom url for an application in
appfactory. The first implementation of this handled by AS side using url
mapping. But later it was decided to move these to the Private PAAS / LB
side. So AFAIK this was implemented in Private PAAS.

But still the packs we are using in AF setups (cartridge agent) contains
these scripts and still they calling them when we add a subscription. If we
remove the content of it the functionality works fine. So my guess is
either we haven't removed the part that calling these scripts or the packs
used in AF setups are not updated.

Can someone let us know which is the case?

Thanks & Regards
Danushka Fernando
Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Cloud] Tenant Creation/Deletion process

2014-08-20 Thread Amila Maha Arachchi
On Wed, Aug 20, 2014 at 5:10 PM, Godwin Shrimal  wrote:

> Hi,
>
> We are working on Training project (*[Cloud] Tenant deletion code/script
> for cloud* - https://redmine.wso2.com/issues/3121) , there for studying
> the process of create tenant in App Cloud. We studied the *CreateTenant.bpel
> *(under appfactory/1.1.0/modules/bpels/CreateTenant) which is use to
> create the tenant in App Cloud.
>
> Listed below the identified create and delete tenant process
>
> *Create Tenant Process*
>
> 1. Initialize Repository Manager
>
> Nothing happens at the moment in the source code.
>
> 2. Initialize Build Manager
>
> 1. Deploy jenkins web application(jenkins.war) on application server
>
> 3. Initialize Cloud Manager
>
> 1. Perform addTenant operation in TenantMgtAdminService
>
> 2. Create Git repository (use gitblit api to create repo in Git, API has
> the delete repository functionality )
>
> 3. Subscribe for Stratos (Use Stratos Rest Service for subscribe)
>
> 4. Tenant Creation Listeners Notification
>  1. Perform addSkeletonTenant operation in TenantMgtAdminService
>
>
>
> *Delete Tenant Process (propose)*
>
> 1. Perform TenantMgtAdminService deleteTenant operation
>
>  1. Delete Billing data
>
> 2. Delete Tenant Registration Data (Ex. REG_CLUSTER_LOCK, REG_LOG)
>
> 3. Delete Tenant User management data (Ex. UM_USER_PERMISSION, UM_USER)
>
> 4. Remove Tenant information from cache
>
> 5. Delete UM_TENANT table
>
> 2. Undeploy jenkins web app from application server
>

In the application server, when the jenkins web app is deployed, it creates
a folder in repository/jenkins/tenants/. All the builds etc.
happens inside this folder. So, you need to delete this folder as well.


> 3. Delete Git repository (use gitblit api to delete repo in Git)
>

There may be applications created by tenant. For these applications, there
are git repositories created. So, we need to delete them as well. I think,
best option would be to, check for the applications created and then delete
them via AF APIs or admin services. This process deletes the repository as
well.

Note that there are two Git servers in App Cloud / AF. One is for
application source and the other for stratos environments. In #3, you have
mentioned about repos created for stratos.


You also need to check whether there are databases created by using
RSSAdmin.


>  4. Unsubscribe Stratos using Stratos Rest Service
>
>
> Please give you all feedback on this.
>
>
> Thanks
>  Godwin
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>



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

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


[Dev] WSO2 BPS 3.5.0 M4 Released!

2014-08-20 Thread Waruna Jayaweera
Hi all,

WSO2 Business Process Server 3.5.0 M4 Release is available for download at
[1] . This release includes following bug fixes and tasks.
Bugs

   - [BPS-523 ] - breadcrumb missing
   in bpmn ui component
   - [BPS-529 ] - Getting Database is
   already closed exception when shutdown the server
   - [BPS-535 ] - BPMN rest service
   basic http authentication doesn't work for tenants
   - [BPS-541 ] - Exception thrown
   when log into BPMN Explorer with invalid user domain

Tasks

   - [BPS-531 ] - Implement Jaggery
   Application for BPMN Humantasks
   - [BPS-532 ] - Add new context to
   BPMN Humantasks Jaggery Application
   - [BPS-543 ] - Upgrade Activiti
   version to 5.16



 Please report issues at [2] and specify the affect version as 3.5.0 M4.

[1]
https://svn.wso2.org/repos/wso2/people/warunaj/releases/bps350/M4/wso2bps-3.5.0-SNAPSHOT.zip
[2] https://wso2.org/jira/browse/BPS

Thanks and regards,
-- BPS Team --
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Cloud] Tenant Creation/Deletion process

2014-08-20 Thread Lakshman Udayakantha
Hi,

Another thing we have to know is,
Apart from the creation of tenant, Tenant may bind to other resources
during it's lifetime. We have to delete those resource as well, if those
resources has not dependencies. It would be great ,if someone can point us
in right direction in that case?

Thanks


On Wed, Aug 20, 2014 at 4:40 AM, Godwin Shrimal  wrote:

> Hi,
>
> We are working on Training project (*[Cloud] Tenant deletion code/script
> for cloud* - https://redmine.wso2.com/issues/3121) , there for studying
> the process of create tenant in App Cloud. We studied the *CreateTenant.bpel
> *(under appfactory/1.1.0/modules/bpels/CreateTenant) which is use to
> create the tenant in App Cloud.
>
> Listed below the identified create and delete tenant process
>
> *Create Tenant Process*
>
> 1. Initialize Repository Manager
>
> Nothing happens at the moment in the source code.
>
> 2. Initialize Build Manager
>
> 1. Deploy jenkins web application(jenkins.war) on application server
>
> 3. Initialize Cloud Manager
>
> 1. Perform addTenant operation in TenantMgtAdminService
>
> 2. Create Git repository (use gitblit api to create repo in Git, API has
> the delete repository functionality )
>
> 3. Subscribe for Stratos (Use Stratos Rest Service for subscribe)
>
> 4. Tenant Creation Listeners Notification
>  1. Perform addSkeletonTenant operation in TenantMgtAdminService
>
>
>
> *Delete Tenant Process (propose)*
>
> 1. Perform TenantMgtAdminService deleteTenant operation
>
>  1. Delete Billing data
>
> 2. Delete Tenant Registration Data (Ex. REG_CLUSTER_LOCK, REG_LOG)
>
> 3. Delete Tenant User management data (Ex. UM_USER_PERMISSION, UM_USER)
>
> 4. Remove Tenant information from cache
>
> 5. Delete UM_TENANT table
>
> 2. Undeploy jenkins web app from application server
>
> 3. Delete Git repository (use gitblit api to delete repo in Git)
>
> 4. Unsubscribe Stratos using Stratos Rest Service
>
>
> Please give you all feedback on this.
>
>
> Thanks
> Godwin
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>



-- 
Lakshman Udayakantha
Software Engineer, WSO2
Mobile: *0711241005*

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


[Dev] [App Cloud] Tenant Creation/Deletion process

2014-08-20 Thread Godwin Shrimal
Hi,

We are working on Training project (*[Cloud] Tenant deletion code/script
for cloud* - https://redmine.wso2.com/issues/3121) , there for studying the
process of create tenant in App Cloud. We studied the
*CreateTenant.bpel *(under
appfactory/1.1.0/modules/bpels/CreateTenant) which is use to create the
tenant in App Cloud.

Listed below the identified create and delete tenant process

*Create Tenant Process*

1. Initialize Repository Manager

Nothing happens at the moment in the source code.

2. Initialize Build Manager

1. Deploy jenkins web application(jenkins.war) on application server

3. Initialize Cloud Manager

1. Perform addTenant operation in TenantMgtAdminService

2. Create Git repository (use gitblit api to create repo in Git, API has
the delete repository functionality )

3. Subscribe for Stratos (Use Stratos Rest Service for subscribe)

4. Tenant Creation Listeners Notification
1. Perform addSkeletonTenant operation in TenantMgtAdminService



*Delete Tenant Process (propose)*

1. Perform TenantMgtAdminService deleteTenant operation

1. Delete Billing data

2. Delete Tenant Registration Data (Ex. REG_CLUSTER_LOCK, REG_LOG)

3. Delete Tenant User management data (Ex. UM_USER_PERMISSION, UM_USER)

4. Remove Tenant information from cache

5. Delete UM_TENANT table

2. Undeploy jenkins web app from application server

3. Delete Git repository (use gitblit api to delete repo in Git)

4. Unsubscribe Stratos using Stratos Rest Service


Please give you all feedback on this.


Thanks
Godwin

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

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can we creating service providers for tenants using super tenant credentials ?

2014-08-20 Thread Manjula Rathnayake
Hi Dinusha,

I think this service should be a admin service and you have to authenticate
as the tenant user and invoke it. So if the problem is invoking the admin
service as a logged in user, you can use saml token of logged in user(I
think you have enabled SSO for AppManager) and invoke admin service at IS
node. Another option is to use mutual authenticator instead of saml2
authenticator. But in both cases, user should have the correct permission
expected from admin service.

If I understood your requirement wrong, correct me.

thank you.


On Wed, Aug 20, 2014 at 3:23 PM, Dinusha Senanayaka 
wrote:

> Hi ,
>
> In AppManager, we have automated the service provider registering
> functionality by calling to Admin services underneath. But in the
> configuration file we keep only the super tenant credentials. The
> requirement is, if tenant user logs into the publisher UI and publish an
> application the relevant service provider need to be created in the
> corresponding tenant space using the super tenant credentials that we
> stored in the config file.  But this is not supported with our current
> tenant model. Is there any other approach, we can use here to have single
> admin credentials in the configuration file and register the service
> providers in tenant space ?
>
> If there is no other option to do this from the IS side, what we could do
> from the app-manager side is, create the service provider in the super
> tenant space with tenant domain as a prefix in the SP name. And make it as
> a saas application.
>
> But it will be clean in implementation, if we have any mechanism to create
> the SP in tenant space. Appreciate any ideas ?
>
> Regards,
> Dinusha.
>
>
> --
> Dinusha Dilrukshi
> Senior Software Engineer
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



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


[Dev] BPMN dynamic form generation for start process instance

2014-08-20 Thread Amal Gunatilake
Hi Chathura,

I have added the dynamic form generation for process start as well.
Following is the url for updates.

https://github.com/amalhub/carbon-business-process/commit/5eb4d0f8135d66bedb2483cb5f3cf1160b076200



Currently the updates are in my local branch. I will complete the rest of
the tasks as well and send the pull request to the wso2-dev branch at once.

Thank you  & Best regards,

*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can we creating service providers for tenants using super tenant credentials ?

2014-08-20 Thread Dinusha Senanayaka
Hi ,

In AppManager, we have automated the service provider registering
functionality by calling to Admin services underneath. But in the
configuration file we keep only the super tenant credentials. The
requirement is, if tenant user logs into the publisher UI and publish an
application the relevant service provider need to be created in the
corresponding tenant space using the super tenant credentials that we
stored in the config file.  But this is not supported with our current
tenant model. Is there any other approach, we can use here to have single
admin credentials in the configuration file and register the service
providers in tenant space ?

If there is no other option to do this from the IS side, what we could do
from the app-manager side is, create the service provider in the super
tenant space with tenant domain as a prefix in the SP name. And make it as
a saas application.

But it will be clean in implementation, if we have any mechanism to create
the SP in tenant space. Appreciate any ideas ?

Regards,
Dinusha.


-- 
Dinusha Dilrukshi
Senior Software Engineer
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Jaggery OAuth not supporting oauth_callback

2014-08-20 Thread Buddhima Wijeweera
This issue can be fixed with this PR :
https://github.com/wso2/jaggery-extensions/pull/9


On Tue, Aug 19, 2014 at 3:01 PM, Buddhima Wijeweera 
wrote:

> Hi,
>
> Currently I'm developing a Jaggary app which connects with Twitter API.
> During the OAuth authentication process I want to add the "oauth_callback"
> parameter (which avoids "out-of-band" experience). For that I have added
> "oauth_callback" url, but it didn't work.
>
> Examining through Wireshark, I found that even when sending post request
> to "/oauth/request_token" , Authorization header looks like follows:
> Authorization: OAuth *oauth_callback="oob"*, oauth_signature="Uttb%2
> ...
>
> So, how can I include "oauth_callback" url to avoid "out-of-band" ?
>
> *"out-of-band"* : where they will get the oauth_verifier as a PIN which
> they need to input into your application to complete the authorization
> process. (Ref:
> https://developer.linkedin.com/documents/getting-oauth-token)
>
>
> Thank You!
> --
> Buddhima Wijeweera
> Software Engineer; WSO2 Inc.; http://wso2.com ,
>
> Email: buddh...@wso2.com
> Blog:   https://buddhimawijeweera.wordpress.com
> GitHub Profile: https://github.com/Buddhima
>



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

Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev