Thanks Anuruddha. This worked.

I think the documentation[1] has to be updated accordingly.

[1]
https://cwiki.apache.org/confluence/display/STRATOS/4.1.x+Cartridge+Resource+Definition

On Wed, Sep 2, 2015 at 10:59 AM, Anuruddha Liyanarachchi <
anurudd...@wso2.com> wrote:

> Hi Anuruddha,
>
> The parameter name should be,
> {
> "name": "payload_parameter.APPLICATION_PATH",
> "value": "/opt/tomcat/webapps"
> }
>
> On Wed, Sep 2, 2015 at 10:43 AM, Lasindu Charith <lasi...@wso2.com> wrote:
>
>> Hi Anuruddha,
>>
>> This was there in Stratos 4.0.0 and should be working in 4.1.0 as in [1
>> <https://cwiki.apache.org/confluence/display/STRATOS/4.1.x+Cartridge+Resource+Definition>
>> ].
>> But as a workaround, you can define APP_PATH under cartridge properties
>> until we investigate the issue.
>>
>>
>>                {
>> "name": "payload_parameter.APP_PATH",
>> "value": "/opt/tomcat/webapps"
>> }
>>
>> On Wed, Sep 2, 2015 at 10:28 AM, Anuruddha Premalal <
>> anuruddhaprema...@gmail.com> wrote:
>>
>>> Hi Devs,
>>>
>>> I'm trying to add the following[1] single tenant tomcat cartridge to
>>> stratos 4.1.1 via both api and UI. Even though it added successfully
>>> deployment section is missing from the definition(I got the definition
>>> using API). What would be the cause?.
>>>
>>>
>>> [1] {
>>> "type": "tomcat",
>>> "category": "framework",
>>> "provider": "apache",
>>> "host": "appfactory.private.wso2.com",
>>> "displayName": "Tomcat 7",
>>> "description": "Tomcat 7 Cartridge",
>>> "version": "7",
>>> "multiTenant": false,
>>> "loadBalancingIPType": "public",
>>> "portMapping": [
>>> {
>>> "name": "http-8080",
>>> "protocol": "http",
>>> "port": 8080,
>>> "proxyPort": 80,
>>> "kubernetesPortType": "NodePort"
>>> }
>>> ],
>>> "iaasProvider": [
>>> {
>>> "type": "kubernetes",
>>> "imageId": "wso2/tomcat:1.0.0",
>>> "networkInterfaces": []
>>> }
>>> ],
>>> "property": [
>>> {
>>> "name": "payload_parameter.S2GIT_IP",
>>> "value": "10.100.5.106"
>>> },
>>> {
>>> "name": "payload_parameter.S2GIT_DOMAIN",
>>> "value": "s2git.appfactory.private.wso2.com"
>>> },
>>> {
>>> "name": "payload_parameter.START_CMD",
>>> "value": "PCA"
>>> }
>>> ],
>>> "deployment": {
>>> "baseDir": "/opt/tomcat/webapps",
>>> "dir": []
>>> }
>>> }
>>>
>>> Regards,
>>> --
>>> *Anuruddha Premalala (MIEEE)Mobile : +94710461070 <%2B94710461070>E-mail
>>>  : anuruddhaprema...@gmail.com <anuruddhaprema...@gmail.com>web      :
>>> www.anuruddha.org <http://www.anuruddha.org>Sri Lanka.*
>>>
>>
>> Thanks,
>>
>> [1]
>> https://cwiki.apache.org/confluence/display/STRATOS/4.1.x+Cartridge+Resource+Definition
>>
>> --
>> *Lasindu Charith*
>> Software Engineer, WSO2 Inc.
>> Committer & PMC Member, Apache Stratos
>> Mobile: +94714427192 | Web: blog.lasindu.com
>>
>
>
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel      : +94 112 145 345
> a <thili...@wso2.com>nurudd...@wso2.com
>



-- 
*Anuruddha Premalala (MIEEE)Mobile : +94710461070E-mail  :
anuruddhaprema...@gmail.com <anuruddhaprema...@gmail.com>web      :
www.anuruddha.org <http://www.anuruddha.org>Sri Lanka.*

Reply via email to