You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by "Martin Eppel (meppel)" <me...@cisco.com> on 2014/12/12 21:54:42 UTC

RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

With the latest code from the master I get the exception below when I try to deploy a cartridge, what is “Category is not specified” -  what is missing ?

Also, seems like RestAPI’s got changed again (autoscaler) – it would be great if we could stabilize and freeze them,

Thanks

Martin

TID: [0] [STRATOS] [2014-12-12 20:49:52,607]  INFO {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to deploy a cartridge [type] cisco-sample-vm {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils}
TID: [0] [STRATOS] [2014-12-12 20:49:52,608] ERROR {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper} -  Category is not specified, cartridge deployment failed {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper}
org.apache.stratos.rest.endpoint.exception.RestAPIException: Category is not specified, cartridge deployment failed
        at org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.createCartridgeDefinition(StratosApiV41Utils.java:98)
        at org.apache.stratos.rest.endpoint.api.StratosApiV41.createCartridgeDefinition(StratosApiV41.java:147)


Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Posted by Reka Thirunavukkarasu <re...@wso2.com>.
Yah Martin. We are actively working on 4.1.0-test branch. But it is stable
upto deploying or undeploying an application. We have done most of the
fixes for all other scenarios by verifying them. So, some functionality
might there to be fixed. We will merge everything to master once we fixed
the remaining issues as well.

Thanks,
Reka

On Mon, Dec 15, 2014 at 9:54 AM, Martin Eppel (meppel) <me...@cisco.com>
wrote:
>
>  Forgot to ask, which branch should I be using, master or test branch ?
>
>
>
> Seem like the test branch has a lot of new fixes ?
>
>
>
> *From:* Martin Eppel (meppel)
> *Sent:* Sunday, December 14, 2014 8:22 PM
> *To:* dev
> *Subject:* RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge
>
>
>
> Thanks, I will look into it once I get the python cartridge agent working
> since the java based one seems to be broken
>
>
>
> *From:* Reka Thirunavukkarasu [mailto:reka@wso2.com]
> *Sent:* Friday, December 12, 2014 8:42 PM
>
> *To:* dev
> *Subject:* Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge
>
>
>
> Hi Martin,
>
>
>
> You can find the latest updated samples in
> https://github.com/rekathiru/grouping-samples.git
>
>
>
> Thanks,
>
> Reka
>
>
>
> On Sat, Dec 13, 2014 at 9:58 AM, Lakmal Warusawithana <la...@wso2.com>
> wrote:
>
> Yes, its is used in the UI constructions. This was there earlier with
> under property called provider, and it has changed it to category and looks
> like made it mandatory.
>
>
>
> On Sat, Dec 13, 2014 at 8:24 AM, Imesh Gunaratne <im...@apache.org> wrote:
>
> AFAIK still cartridge category is still not used for any decision making.
> This might be useful in the UI when constructing an application.
>
>
>
> On Sat, Dec 13, 2014 at 5:49 AM, Martin Eppel (meppel) <me...@cisco.com>
> wrote:
>
> How is it (field category) being used ?
>
>
>
> *From:* Dakshika Jayathilaka [mailto:dakshika@wso2.com]
> *Sent:* Friday, December 12, 2014 4:17 PM
> *To:* dev
> *Subject:* Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge
>
>
>
> Hi Martin,
>
>
>
> Cartridge category is use to identify types of the cartridge. Currently
> there are four types of cartridges.
>
>
>
>    1. Application
>    2. Framework
>    3. Data
>    4. LB
>
>  Thank you,
>
>
>
> Regards,
>
>
>
> *Dakshika Jayathilaka*
>
> Software Engineer
>
> WSO2, Inc.
>
> lean.enterprise.middleware
>
> 0771100911
>
>
>
> On Sat, Dec 13, 2014 at 4:46 AM, Martin Eppel (meppel) <me...@cisco.com>
> wrote:
>
> Adding “category” : “Application” to the cartridge definition fixed the
> cartridge exception.
>
>
>
> Now I am hitting the next one - looks like the database schema has changed
> and a new field was added.
>
>
>
> My question is, how is this supposed to work, do we need to apply the new
> schema when stratos is installed or is it applied when stratos starts up
> the first time ?
>
>
>
> Thanks
>
>
>
> Martin
>
>
>
>
>
> TID: [0] [STRATOS] [2014-12-12 22:45:38,977] DEBUG
> {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient} -  Trying to
> register oAuth application [test_app_10.6391721987360338]
> {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient}
>
> TID: [0] [STRATOS] [2014-12-12 22:45:39,038]  INFO
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
> 'admin@carbon.super [-1234]' logged in at [2014-12-12 22:45:39,037+0000]
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
>
> TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR
> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Error when executing
> the SQL : SELECT * FROM IDN_OAUTH_CONSUMER_APPS WHERE USERNAME=? AND
> TENANT_ID=? AND APP_NAME=? {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
>
> TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR
> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Table
> 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
>
> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
> 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
>
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
>         at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
>
>         at com.mysql.jdbc.Util.getInstance(Util.java:384)
>
>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:105
>
>
>
> *From:* Martin Eppel (meppel)
> *Sent:* Friday, December 12, 2014 12:55 PM
> *To:* dev@stratos.apache.org
> *Subject:* RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge
>
>
>
> With the latest code from the master I get the exception below when I try
> to deploy a cartridge, what is “Category is not specified” -  what is
> missing ?
>
>
>
> Also, seems like RestAPI’s got changed again (autoscaler) – it would be
> great if we could stabilize and freeze them,
>
>
>
> Thanks
>
>
>
> Martin
>
>
>
> TID: [0] [STRATOS] [2014-12-12 20:49:52,607]  INFO
> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
> deploy a cartridge [type] cisco-sample-vm
> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils}
>
> TID: [0] [STRATOS] [2014-12-12 20:49:52,608] ERROR
> {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper} *-
> Category is not specified, cartridge deployment failed*
> {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper}
>
> org.apache.stratos.rest.endpoint.exception.RestAPIException: Category is
> not specified, cartridge deployment failed
>
>         at
> org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.createCartridgeDefinition(StratosApiV41Utils.java:98)
>
>         at
> org.apache.stratos.rest.endpoint.api.StratosApiV41.createCartridgeDefinition(StratosApiV41.java:147)
>
>
>
>
>
>
> --
>
> Imesh Gunaratne
>
>
>
> Technical Lead, WSO2
>
> Committer & PMC Member, Apache Stratos
>
>
>
>
> --
>
> Lakmal Warusawithana
>
> Vice President, Apache Stratos
>
> Director - Cloud Architecture; WSO2 Inc.
>
> Mobile : +94714289692
>
> Blog : http://lakmalsview.blogspot.com/
>
>
>
>
> --
>
> Reka Thirunavukkarasu
> Senior Software Engineer,
> WSO2, Inc.:http://wso2.com,
>
> Mobile: +94776442007
>
>
>


-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007

RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Posted by "Martin Eppel (meppel)" <me...@cisco.com>.
Forgot to ask, which branch should I be using, master or test branch ?

Seem like the test branch has a lot of new fixes ?

From: Martin Eppel (meppel)
Sent: Sunday, December 14, 2014 8:22 PM
To: dev
Subject: RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Thanks, I will look into it once I get the python cartridge agent working since the java based one seems to be broken

From: Reka Thirunavukkarasu [mailto:reka@wso2.com]
Sent: Friday, December 12, 2014 8:42 PM
To: dev
Subject: Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Hi Martin,

You can find the latest updated samples in https://github.com/rekathiru/grouping-samples.git

Thanks,
Reka

On Sat, Dec 13, 2014 at 9:58 AM, Lakmal Warusawithana <la...@wso2.com>> wrote:
Yes, its is used in the UI constructions. This was there earlier with under property called provider, and it has changed it to category and looks like made it mandatory.

On Sat, Dec 13, 2014 at 8:24 AM, Imesh Gunaratne <im...@apache.org>> wrote:
AFAIK still cartridge category is still not used for any decision making. This might be useful in the UI when constructing an application.

On Sat, Dec 13, 2014 at 5:49 AM, Martin Eppel (meppel) <me...@cisco.com>> wrote:
How is it (field category) being used ?

From: Dakshika Jayathilaka [mailto:dakshika@wso2.com<ma...@wso2.com>]
Sent: Friday, December 12, 2014 4:17 PM
To: dev
Subject: Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Hi Martin,

Cartridge category is use to identify types of the cartridge. Currently there are four types of cartridges.


  1.  Application
  2.  Framework
  3.  Data
  4.  LB
Thank you,

Regards,

Dakshika Jayathilaka
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911<tel:0771100911>

On Sat, Dec 13, 2014 at 4:46 AM, Martin Eppel (meppel) <me...@cisco.com>> wrote:
Adding “category” : “Application” to the cartridge definition fixed the cartridge exception.

Now I am hitting the next one - looks like the database schema has changed and a new field was added.

My question is, how is this supposed to work, do we need to apply the new schema when stratos is installed or is it applied when stratos starts up the first time ?

Thanks

Martin


TID: [0] [STRATOS] [2014-12-12 22:45:38,977] DEBUG {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient} -  Trying to register oAuth application [test_app_10.6391721987360338] {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient}
TID: [0] [STRATOS] [2014-12-12 22:45:39,038]  INFO {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  'admin@carbon.super [-1234]' logged in at [2014-12-12 22:45:39,037+0000] {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Error when executing the SQL : SELECT * FROM IDN_OAUTH_CONSUMER_APPS WHERE USERNAME=? AND TENANT_ID=? AND APP_NAME=? {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Table 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
        at com.mysql.jdbc.Util.getInstance(Util.java:384)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:105

From: Martin Eppel (meppel)
Sent: Friday, December 12, 2014 12:55 PM
To: dev@stratos.apache.org<ma...@stratos.apache.org>
Subject: RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

With the latest code from the master I get the exception below when I try to deploy a cartridge, what is “Category is not specified” -  what is missing ?

Also, seems like RestAPI’s got changed again (autoscaler) – it would be great if we could stabilize and freeze them,

Thanks

Martin

TID: [0] [STRATOS] [2014-12-12 20:49:52,607]  INFO {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to deploy a cartridge [type] cisco-sample-vm {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils}
TID: [0] [STRATOS] [2014-12-12 20:49:52,608] ERROR {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper} -  Category is not specified, cartridge deployment failed {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper}
org.apache.stratos.rest.endpoint.exception.RestAPIException: Category is not specified, cartridge deployment failed
        at org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.createCartridgeDefinition(StratosApiV41Utils.java:98)
        at org.apache.stratos.rest.endpoint.api.StratosApiV41.createCartridgeDefinition(StratosApiV41.java:147)



--
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos


--
Lakmal Warusawithana
Vice President, Apache Stratos
Director - Cloud Architecture; WSO2 Inc.
Mobile : +94714289692<tel:%2B94714289692>
Blog : http://lakmalsview.blogspot.com/


--
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007


RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Posted by "Martin Eppel (meppel)" <me...@cisco.com>.
Thanks for the update

Regards

Martin

From: Gayan Gunarathne [mailto:gayang@wso2.com]
Sent: Saturday, December 13, 2014 7:04 AM
To: dev@stratos.apache.org
Subject: Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Yeah we made category as a mandatory as every cartridge should have a category.Currently we use it in the UI when constructing the application.Still we are not using it in the back-end decision marking.

Thanks,
Gayan

On Sat, Dec 13, 2014 at 10:12 AM, Reka Thirunavukkarasu <re...@wso2.com>> wrote:
Hi Martin,

You can find the latest updated samples in https://github.com/rekathiru/grouping-samples.git

Thanks,
Reka

On Sat, Dec 13, 2014 at 9:58 AM, Lakmal Warusawithana <la...@wso2.com>> wrote:
Yes, its is used in the UI constructions. This was there earlier with under property called provider, and it has changed it to category and looks like made it mandatory.

On Sat, Dec 13, 2014 at 8:24 AM, Imesh Gunaratne <im...@apache.org>> wrote:
AFAIK still cartridge category is still not used for any decision making. This might be useful in the UI when constructing an application.

On Sat, Dec 13, 2014 at 5:49 AM, Martin Eppel (meppel) <me...@cisco.com>> wrote:
How is it (field category) being used ?

From: Dakshika Jayathilaka [mailto:dakshika@wso2.com<ma...@wso2.com>]
Sent: Friday, December 12, 2014 4:17 PM
To: dev
Subject: Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Hi Martin,

Cartridge category is use to identify types of the cartridge. Currently there are four types of cartridges.


  1.  Application
  2.  Framework
  3.  Data
  4.  LB
Thank you,

Regards,

Dakshika Jayathilaka
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911<tel:0771100911>

On Sat, Dec 13, 2014 at 4:46 AM, Martin Eppel (meppel) <me...@cisco.com>> wrote:
Adding “category” : “Application” to the cartridge definition fixed the cartridge exception.

Now I am hitting the next one - looks like the database schema has changed and a new field was added.

My question is, how is this supposed to work, do we need to apply the new schema when stratos is installed or is it applied when stratos starts up the first time ?

Thanks

Martin


TID: [0] [STRATOS] [2014-12-12 22:45:38,977] DEBUG {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient} -  Trying to register oAuth application [test_app_10.6391721987360338] {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient}
TID: [0] [STRATOS] [2014-12-12 22:45:39,038]  INFO {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  'admin@carbon.super [-1234]' logged in at [2014-12-12 22:45:39,037+0000] {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Error when executing the SQL : SELECT * FROM IDN_OAUTH_CONSUMER_APPS WHERE USERNAME=? AND TENANT_ID=? AND APP_NAME=? {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Table 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
        at com.mysql.jdbc.Util.getInstance(Util.java:384)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:105

From: Martin Eppel (meppel)
Sent: Friday, December 12, 2014 12:55 PM
To: dev@stratos.apache.org<ma...@stratos.apache.org>
Subject: RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

With the latest code from the master I get the exception below when I try to deploy a cartridge, what is “Category is not specified” -  what is missing ?

Also, seems like RestAPI’s got changed again (autoscaler) – it would be great if we could stabilize and freeze them,

Thanks

Martin

TID: [0] [STRATOS] [2014-12-12 20:49:52,607]  INFO {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to deploy a cartridge [type] cisco-sample-vm {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils}
TID: [0] [STRATOS] [2014-12-12 20:49:52,608] ERROR {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper} -  Category is not specified, cartridge deployment failed {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper}
org.apache.stratos.rest.endpoint.exception.RestAPIException: Category is not specified, cartridge deployment failed
        at org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.createCartridgeDefinition(StratosApiV41Utils.java:98)
        at org.apache.stratos.rest.endpoint.api.StratosApiV41.createCartridgeDefinition(StratosApiV41.java:147)



--
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos


--
Lakmal Warusawithana
Vice President, Apache Stratos
Director - Cloud Architecture; WSO2 Inc.
Mobile : +94714289692<tel:%2B94714289692>
Blog : http://lakmalsview.blogspot.com/


--
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007<tel:%2B94776442007>



--

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com<http://wso2.com/>)
email  : gayang@wso2.com<ma...@wso2.com>  | mobile : +94 766819985


Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Posted by Gayan Gunarathne <ga...@wso2.com>.
Yeah we made category as a mandatory as every cartridge should have a
category.Currently we use it in the UI when constructing the
application.Still we are not using it in the back-end decision marking.

Thanks,
Gayan

On Sat, Dec 13, 2014 at 10:12 AM, Reka Thirunavukkarasu <re...@wso2.com>
wrote:
>
> Hi Martin,
>
> You can find the latest updated samples in
> https://github.com/rekathiru/grouping-samples.git
>
> Thanks,
> Reka
>
> On Sat, Dec 13, 2014 at 9:58 AM, Lakmal Warusawithana <la...@wso2.com>
> wrote:
>>
>> Yes, its is used in the UI constructions. This was there earlier with
>> under property called provider, and it has changed it to category and looks
>> like made it mandatory.
>>
>> On Sat, Dec 13, 2014 at 8:24 AM, Imesh Gunaratne <im...@apache.org>
>> wrote:
>>>
>>> AFAIK still cartridge category is still not used for any decision
>>> making. This might be useful in the UI when constructing an application.
>>>
>>> On Sat, Dec 13, 2014 at 5:49 AM, Martin Eppel (meppel) <meppel@cisco.com
>>> > wrote:
>>>>
>>>>  How is it (field category) being used ?
>>>>
>>>>
>>>>
>>>> *From:* Dakshika Jayathilaka [mailto:dakshika@wso2.com]
>>>> *Sent:* Friday, December 12, 2014 4:17 PM
>>>> *To:* dev
>>>> *Subject:* Re: [Testing] Stratos 4.1.0 Alpha - error deploying
>>>> cartridge
>>>>
>>>>
>>>>
>>>> Hi Martin,
>>>>
>>>>
>>>>
>>>> Cartridge category is use to identify types of the cartridge. Currently
>>>> there are four types of cartridges.
>>>>
>>>>
>>>>
>>>>    1. Application
>>>>    2. Framework
>>>>    3. Data
>>>>    4. LB
>>>>
>>>>  Thank you,
>>>>
>>>>
>>>>
>>>> Regards,
>>>>
>>>>
>>>>
>>>> *Dakshika Jayathilaka*
>>>>
>>>> Software Engineer
>>>>
>>>> WSO2, Inc.
>>>>
>>>> lean.enterprise.middleware
>>>>
>>>> 0771100911
>>>>
>>>>
>>>>
>>>> On Sat, Dec 13, 2014 at 4:46 AM, Martin Eppel (meppel) <
>>>> meppel@cisco.com> wrote:
>>>>
>>>> Adding “category” : “Application” to the cartridge definition fixed the
>>>> cartridge exception.
>>>>
>>>>
>>>>
>>>> Now I am hitting the next one - looks like the database schema has
>>>> changed and a new field was added.
>>>>
>>>>
>>>>
>>>> My question is, how is this supposed to work, do we need to apply the
>>>> new schema when stratos is installed or is it applied when stratos starts
>>>> up the first time ?
>>>>
>>>>
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>> Martin
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> TID: [0] [STRATOS] [2014-12-12 22:45:38,977] DEBUG
>>>> {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient} -  Trying to
>>>> register oAuth application [test_app_10.6391721987360338]
>>>> {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient}
>>>>
>>>> TID: [0] [STRATOS] [2014-12-12 22:45:39,038]  INFO
>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>>> 'admin@carbon.super [-1234]' logged in at [2014-12-12
>>>> 22:45:39,037+0000]
>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
>>>>
>>>> TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR
>>>> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Error when executing
>>>> the SQL : SELECT * FROM IDN_OAUTH_CONSUMER_APPS WHERE USERNAME=? AND
>>>> TENANT_ID=? AND APP_NAME=? {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
>>>>
>>>> TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR
>>>> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Table
>>>> 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
>>>> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
>>>>
>>>> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
>>>> 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
>>>>
>>>>         at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>>
>>>>         at
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>>>
>>>>         at
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>>
>>>>         at
>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>>>>
>>>>         at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
>>>>
>>>>         at com.mysql.jdbc.Util.getInstance(Util.java:384)
>>>>
>>>>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:105
>>>>
>>>>
>>>>
>>>> *From:* Martin Eppel (meppel)
>>>> *Sent:* Friday, December 12, 2014 12:55 PM
>>>> *To:* dev@stratos.apache.org
>>>> *Subject:* RE: [Testing] Stratos 4.1.0 Alpha - error deploying
>>>> cartridge
>>>>
>>>>
>>>>
>>>> With the latest code from the master I get the exception below when I
>>>> try to deploy a cartridge, what is “Category is not specified” -  what is
>>>> missing ?
>>>>
>>>>
>>>>
>>>> Also, seems like RestAPI’s got changed again (autoscaler) – it would be
>>>> great if we could stabilize and freeze them,
>>>>
>>>>
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>> Martin
>>>>
>>>>
>>>>
>>>> TID: [0] [STRATOS] [2014-12-12 20:49:52,607]  INFO
>>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
>>>> deploy a cartridge [type] cisco-sample-vm
>>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils}
>>>>
>>>> TID: [0] [STRATOS] [2014-12-12 20:49:52,608] ERROR
>>>> {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper} *-
>>>> Category is not specified, cartridge deployment failed*
>>>> {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper}
>>>>
>>>> org.apache.stratos.rest.endpoint.exception.RestAPIException: Category
>>>> is not specified, cartridge deployment failed
>>>>
>>>>         at
>>>> org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.createCartridgeDefinition(StratosApiV41Utils.java:98)
>>>>
>>>>         at
>>>> org.apache.stratos.rest.endpoint.api.StratosApiV41.createCartridgeDefinition(StratosApiV41.java:147)
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Imesh Gunaratne
>>>
>>> Technical Lead, WSO2
>>> Committer & PMC Member, Apache Stratos
>>>
>>
>>
>> --
>> Lakmal Warusawithana
>> Vice President, Apache Stratos
>> Director - Cloud Architecture; WSO2 Inc.
>> Mobile : +94714289692
>> Blog : http://lakmalsview.blogspot.com/
>>
>>
>
> --
> Reka Thirunavukkarasu
> Senior Software Engineer,
> WSO2, Inc.:http://wso2.com,
> Mobile: +94776442007
>
>
>

-- 

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985

RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Posted by "Martin Eppel (meppel)" <me...@cisco.com>.
Thanks, I will look into it once I get the python cartridge agent working since the java based one seems to be broken

From: Reka Thirunavukkarasu [mailto:reka@wso2.com]
Sent: Friday, December 12, 2014 8:42 PM
To: dev
Subject: Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Hi Martin,

You can find the latest updated samples in https://github.com/rekathiru/grouping-samples.git

Thanks,
Reka

On Sat, Dec 13, 2014 at 9:58 AM, Lakmal Warusawithana <la...@wso2.com>> wrote:
Yes, its is used in the UI constructions. This was there earlier with under property called provider, and it has changed it to category and looks like made it mandatory.

On Sat, Dec 13, 2014 at 8:24 AM, Imesh Gunaratne <im...@apache.org>> wrote:
AFAIK still cartridge category is still not used for any decision making. This might be useful in the UI when constructing an application.

On Sat, Dec 13, 2014 at 5:49 AM, Martin Eppel (meppel) <me...@cisco.com>> wrote:
How is it (field category) being used ?

From: Dakshika Jayathilaka [mailto:dakshika@wso2.com<ma...@wso2.com>]
Sent: Friday, December 12, 2014 4:17 PM
To: dev
Subject: Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Hi Martin,

Cartridge category is use to identify types of the cartridge. Currently there are four types of cartridges.


  1.  Application
  2.  Framework
  3.  Data
  4.  LB
Thank you,

Regards,

Dakshika Jayathilaka
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911<tel:0771100911>

On Sat, Dec 13, 2014 at 4:46 AM, Martin Eppel (meppel) <me...@cisco.com>> wrote:
Adding “category” : “Application” to the cartridge definition fixed the cartridge exception.

Now I am hitting the next one - looks like the database schema has changed and a new field was added.

My question is, how is this supposed to work, do we need to apply the new schema when stratos is installed or is it applied when stratos starts up the first time ?

Thanks

Martin


TID: [0] [STRATOS] [2014-12-12 22:45:38,977] DEBUG {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient} -  Trying to register oAuth application [test_app_10.6391721987360338] {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient}
TID: [0] [STRATOS] [2014-12-12 22:45:39,038]  INFO {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  'admin@carbon.super [-1234]' logged in at [2014-12-12 22:45:39,037+0000] {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Error when executing the SQL : SELECT * FROM IDN_OAUTH_CONSUMER_APPS WHERE USERNAME=? AND TENANT_ID=? AND APP_NAME=? {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Table 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
        at com.mysql.jdbc.Util.getInstance(Util.java:384)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:105

From: Martin Eppel (meppel)
Sent: Friday, December 12, 2014 12:55 PM
To: dev@stratos.apache.org<ma...@stratos.apache.org>
Subject: RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

With the latest code from the master I get the exception below when I try to deploy a cartridge, what is “Category is not specified” -  what is missing ?

Also, seems like RestAPI’s got changed again (autoscaler) – it would be great if we could stabilize and freeze them,

Thanks

Martin

TID: [0] [STRATOS] [2014-12-12 20:49:52,607]  INFO {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to deploy a cartridge [type] cisco-sample-vm {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils}
TID: [0] [STRATOS] [2014-12-12 20:49:52,608] ERROR {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper} -  Category is not specified, cartridge deployment failed {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper}
org.apache.stratos.rest.endpoint.exception.RestAPIException: Category is not specified, cartridge deployment failed
        at org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.createCartridgeDefinition(StratosApiV41Utils.java:98)
        at org.apache.stratos.rest.endpoint.api.StratosApiV41.createCartridgeDefinition(StratosApiV41.java:147)



--
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos


--
Lakmal Warusawithana
Vice President, Apache Stratos
Director - Cloud Architecture; WSO2 Inc.
Mobile : +94714289692<tel:%2B94714289692>
Blog : http://lakmalsview.blogspot.com/


--
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007


Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Posted by Reka Thirunavukkarasu <re...@wso2.com>.
Hi Martin,

You can find the latest updated samples in
https://github.com/rekathiru/grouping-samples.git

Thanks,
Reka

On Sat, Dec 13, 2014 at 9:58 AM, Lakmal Warusawithana <la...@wso2.com>
wrote:
>
> Yes, its is used in the UI constructions. This was there earlier with
> under property called provider, and it has changed it to category and looks
> like made it mandatory.
>
> On Sat, Dec 13, 2014 at 8:24 AM, Imesh Gunaratne <im...@apache.org> wrote:
>>
>> AFAIK still cartridge category is still not used for any decision making.
>> This might be useful in the UI when constructing an application.
>>
>> On Sat, Dec 13, 2014 at 5:49 AM, Martin Eppel (meppel) <me...@cisco.com>
>> wrote:
>>>
>>>  How is it (field category) being used ?
>>>
>>>
>>>
>>> *From:* Dakshika Jayathilaka [mailto:dakshika@wso2.com]
>>> *Sent:* Friday, December 12, 2014 4:17 PM
>>> *To:* dev
>>> *Subject:* Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge
>>>
>>>
>>>
>>> Hi Martin,
>>>
>>>
>>>
>>> Cartridge category is use to identify types of the cartridge. Currently
>>> there are four types of cartridges.
>>>
>>>
>>>
>>>    1. Application
>>>    2. Framework
>>>    3. Data
>>>    4. LB
>>>
>>>  Thank you,
>>>
>>>
>>>
>>> Regards,
>>>
>>>
>>>
>>> *Dakshika Jayathilaka*
>>>
>>> Software Engineer
>>>
>>> WSO2, Inc.
>>>
>>> lean.enterprise.middleware
>>>
>>> 0771100911
>>>
>>>
>>>
>>> On Sat, Dec 13, 2014 at 4:46 AM, Martin Eppel (meppel) <me...@cisco.com>
>>> wrote:
>>>
>>> Adding “category” : “Application” to the cartridge definition fixed the
>>> cartridge exception.
>>>
>>>
>>>
>>> Now I am hitting the next one - looks like the database schema has
>>> changed and a new field was added.
>>>
>>>
>>>
>>> My question is, how is this supposed to work, do we need to apply the
>>> new schema when stratos is installed or is it applied when stratos starts
>>> up the first time ?
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> Martin
>>>
>>>
>>>
>>>
>>>
>>> TID: [0] [STRATOS] [2014-12-12 22:45:38,977] DEBUG
>>> {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient} -  Trying to
>>> register oAuth application [test_app_10.6391721987360338]
>>> {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient}
>>>
>>> TID: [0] [STRATOS] [2014-12-12 22:45:39,038]  INFO
>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>> 'admin@carbon.super [-1234]' logged in at [2014-12-12
>>> 22:45:39,037+0000]
>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
>>>
>>> TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR
>>> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Error when executing
>>> the SQL : SELECT * FROM IDN_OAUTH_CONSUMER_APPS WHERE USERNAME=? AND
>>> TENANT_ID=? AND APP_NAME=? {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
>>>
>>> TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR
>>> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Table
>>> 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
>>> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
>>>
>>> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
>>> 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
>>>
>>>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>>> Method)
>>>
>>>         at
>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>>
>>>         at
>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>>
>>>         at
>>> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>>>
>>>         at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
>>>
>>>         at com.mysql.jdbc.Util.getInstance(Util.java:384)
>>>
>>>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:105
>>>
>>>
>>>
>>> *From:* Martin Eppel (meppel)
>>> *Sent:* Friday, December 12, 2014 12:55 PM
>>> *To:* dev@stratos.apache.org
>>> *Subject:* RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge
>>>
>>>
>>>
>>> With the latest code from the master I get the exception below when I
>>> try to deploy a cartridge, what is “Category is not specified” -  what is
>>> missing ?
>>>
>>>
>>>
>>> Also, seems like RestAPI’s got changed again (autoscaler) – it would be
>>> great if we could stabilize and freeze them,
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> Martin
>>>
>>>
>>>
>>> TID: [0] [STRATOS] [2014-12-12 20:49:52,607]  INFO
>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
>>> deploy a cartridge [type] cisco-sample-vm
>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils}
>>>
>>> TID: [0] [STRATOS] [2014-12-12 20:49:52,608] ERROR
>>> {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper} *-
>>> Category is not specified, cartridge deployment failed*
>>> {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper}
>>>
>>> org.apache.stratos.rest.endpoint.exception.RestAPIException: Category is
>>> not specified, cartridge deployment failed
>>>
>>>         at
>>> org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.createCartridgeDefinition(StratosApiV41Utils.java:98)
>>>
>>>         at
>>> org.apache.stratos.rest.endpoint.api.StratosApiV41.createCartridgeDefinition(StratosApiV41.java:147)
>>>
>>>
>>>
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
> --
> Lakmal Warusawithana
> Vice President, Apache Stratos
> Director - Cloud Architecture; WSO2 Inc.
> Mobile : +94714289692
> Blog : http://lakmalsview.blogspot.com/
>
>

-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007

Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Posted by Lakmal Warusawithana <la...@wso2.com>.
Yes, its is used in the UI constructions. This was there earlier with under
property called provider, and it has changed it to category and looks like
made it mandatory.

On Sat, Dec 13, 2014 at 8:24 AM, Imesh Gunaratne <im...@apache.org> wrote:
>
> AFAIK still cartridge category is still not used for any decision making.
> This might be useful in the UI when constructing an application.
>
> On Sat, Dec 13, 2014 at 5:49 AM, Martin Eppel (meppel) <me...@cisco.com>
> wrote:
>>
>>  How is it (field category) being used ?
>>
>>
>>
>> *From:* Dakshika Jayathilaka [mailto:dakshika@wso2.com]
>> *Sent:* Friday, December 12, 2014 4:17 PM
>> *To:* dev
>> *Subject:* Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge
>>
>>
>>
>> Hi Martin,
>>
>>
>>
>> Cartridge category is use to identify types of the cartridge. Currently
>> there are four types of cartridges.
>>
>>
>>
>>    1. Application
>>    2. Framework
>>    3. Data
>>    4. LB
>>
>>  Thank you,
>>
>>
>>
>> Regards,
>>
>>
>>
>> *Dakshika Jayathilaka*
>>
>> Software Engineer
>>
>> WSO2, Inc.
>>
>> lean.enterprise.middleware
>>
>> 0771100911
>>
>>
>>
>> On Sat, Dec 13, 2014 at 4:46 AM, Martin Eppel (meppel) <me...@cisco.com>
>> wrote:
>>
>> Adding “category” : “Application” to the cartridge definition fixed the
>> cartridge exception.
>>
>>
>>
>> Now I am hitting the next one - looks like the database schema has
>> changed and a new field was added.
>>
>>
>>
>> My question is, how is this supposed to work, do we need to apply the new
>> schema when stratos is installed or is it applied when stratos starts up
>> the first time ?
>>
>>
>>
>> Thanks
>>
>>
>>
>> Martin
>>
>>
>>
>>
>>
>> TID: [0] [STRATOS] [2014-12-12 22:45:38,977] DEBUG
>> {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient} -  Trying to
>> register oAuth application [test_app_10.6391721987360338]
>> {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient}
>>
>> TID: [0] [STRATOS] [2014-12-12 22:45:39,038]  INFO
>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>> 'admin@carbon.super [-1234]' logged in at [2014-12-12 22:45:39,037+0000]
>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
>>
>> TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR
>> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Error when executing
>> the SQL : SELECT * FROM IDN_OAUTH_CONSUMER_APPS WHERE USERNAME=? AND
>> TENANT_ID=? AND APP_NAME=? {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
>>
>> TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR
>> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Table
>> 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
>> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
>>
>> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
>> 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
>>
>>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>>
>>         at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>
>>         at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>
>>         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>>
>>         at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
>>
>>         at com.mysql.jdbc.Util.getInstance(Util.java:384)
>>
>>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:105
>>
>>
>>
>> *From:* Martin Eppel (meppel)
>> *Sent:* Friday, December 12, 2014 12:55 PM
>> *To:* dev@stratos.apache.org
>> *Subject:* RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge
>>
>>
>>
>> With the latest code from the master I get the exception below when I try
>> to deploy a cartridge, what is “Category is not specified” -  what is
>> missing ?
>>
>>
>>
>> Also, seems like RestAPI’s got changed again (autoscaler) – it would be
>> great if we could stabilize and freeze them,
>>
>>
>>
>> Thanks
>>
>>
>>
>> Martin
>>
>>
>>
>> TID: [0] [STRATOS] [2014-12-12 20:49:52,607]  INFO
>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
>> deploy a cartridge [type] cisco-sample-vm
>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils}
>>
>> TID: [0] [STRATOS] [2014-12-12 20:49:52,608] ERROR
>> {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper} *-
>> Category is not specified, cartridge deployment failed*
>> {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper}
>>
>> org.apache.stratos.rest.endpoint.exception.RestAPIException: Category is
>> not specified, cartridge deployment failed
>>
>>         at
>> org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.createCartridgeDefinition(StratosApiV41Utils.java:98)
>>
>>         at
>> org.apache.stratos.rest.endpoint.api.StratosApiV41.createCartridgeDefinition(StratosApiV41.java:147)
>>
>>
>>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>


-- 
Lakmal Warusawithana
Vice President, Apache Stratos
Director - Cloud Architecture; WSO2 Inc.
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/

Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Posted by Imesh Gunaratne <im...@apache.org>.
AFAIK still cartridge category is still not used for any decision making.
This might be useful in the UI when constructing an application.

On Sat, Dec 13, 2014 at 5:49 AM, Martin Eppel (meppel) <me...@cisco.com>
wrote:
>
>  How is it (field category) being used ?
>
>
>
> *From:* Dakshika Jayathilaka [mailto:dakshika@wso2.com]
> *Sent:* Friday, December 12, 2014 4:17 PM
> *To:* dev
> *Subject:* Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge
>
>
>
> Hi Martin,
>
>
>
> Cartridge category is use to identify types of the cartridge. Currently
> there are four types of cartridges.
>
>
>
>    1. Application
>    2. Framework
>    3. Data
>    4. LB
>
>  Thank you,
>
>
>
> Regards,
>
>
>
> *Dakshika Jayathilaka*
>
> Software Engineer
>
> WSO2, Inc.
>
> lean.enterprise.middleware
>
> 0771100911
>
>
>
> On Sat, Dec 13, 2014 at 4:46 AM, Martin Eppel (meppel) <me...@cisco.com>
> wrote:
>
> Adding “category” : “Application” to the cartridge definition fixed the
> cartridge exception.
>
>
>
> Now I am hitting the next one - looks like the database schema has changed
> and a new field was added.
>
>
>
> My question is, how is this supposed to work, do we need to apply the new
> schema when stratos is installed or is it applied when stratos starts up
> the first time ?
>
>
>
> Thanks
>
>
>
> Martin
>
>
>
>
>
> TID: [0] [STRATOS] [2014-12-12 22:45:38,977] DEBUG
> {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient} -  Trying to
> register oAuth application [test_app_10.6391721987360338]
> {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient}
>
> TID: [0] [STRATOS] [2014-12-12 22:45:39,038]  INFO
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
> 'admin@carbon.super [-1234]' logged in at [2014-12-12 22:45:39,037+0000]
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
>
> TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR
> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Error when executing
> the SQL : SELECT * FROM IDN_OAUTH_CONSUMER_APPS WHERE USERNAME=? AND
> TENANT_ID=? AND APP_NAME=? {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
>
> TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR
> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Table
> 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
>
> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
> 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
>
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
>         at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
>
>         at com.mysql.jdbc.Util.getInstance(Util.java:384)
>
>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:105
>
>
>
> *From:* Martin Eppel (meppel)
> *Sent:* Friday, December 12, 2014 12:55 PM
> *To:* dev@stratos.apache.org
> *Subject:* RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge
>
>
>
> With the latest code from the master I get the exception below when I try
> to deploy a cartridge, what is “Category is not specified” -  what is
> missing ?
>
>
>
> Also, seems like RestAPI’s got changed again (autoscaler) – it would be
> great if we could stabilize and freeze them,
>
>
>
> Thanks
>
>
>
> Martin
>
>
>
> TID: [0] [STRATOS] [2014-12-12 20:49:52,607]  INFO
> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
> deploy a cartridge [type] cisco-sample-vm
> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils}
>
> TID: [0] [STRATOS] [2014-12-12 20:49:52,608] ERROR
> {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper} *-
> Category is not specified, cartridge deployment failed*
> {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper}
>
> org.apache.stratos.rest.endpoint.exception.RestAPIException: Category is
> not specified, cartridge deployment failed
>
>         at
> org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.createCartridgeDefinition(StratosApiV41Utils.java:98)
>
>         at
> org.apache.stratos.rest.endpoint.api.StratosApiV41.createCartridgeDefinition(StratosApiV41.java:147)
>
>
>


-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Posted by "Martin Eppel (meppel)" <me...@cisco.com>.
How is it (field category) being used ?

From: Dakshika Jayathilaka [mailto:dakshika@wso2.com]
Sent: Friday, December 12, 2014 4:17 PM
To: dev
Subject: Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Hi Martin,

Cartridge category is use to identify types of the cartridge. Currently there are four types of cartridges.


  1.  Application
  2.  Framework
  3.  Data
  4.  LB
Thank you,

Regards,

Dakshika Jayathilaka
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Sat, Dec 13, 2014 at 4:46 AM, Martin Eppel (meppel) <me...@cisco.com>> wrote:
Adding “category” : “Application” to the cartridge definition fixed the cartridge exception.

Now I am hitting the next one - looks like the database schema has changed and a new field was added.

My question is, how is this supposed to work, do we need to apply the new schema when stratos is installed or is it applied when stratos starts up the first time ?

Thanks

Martin


TID: [0] [STRATOS] [2014-12-12 22:45:38,977] DEBUG {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient} -  Trying to register oAuth application [test_app_10.6391721987360338] {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient}
TID: [0] [STRATOS] [2014-12-12 22:45:39,038]  INFO {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  'admin@carbon.super [-1234]' logged in at [2014-12-12 22:45:39,037+0000] {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Error when executing the SQL : SELECT * FROM IDN_OAUTH_CONSUMER_APPS WHERE USERNAME=? AND TENANT_ID=? AND APP_NAME=? {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Table 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
        at com.mysql.jdbc.Util.getInstance(Util.java:384)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:105

From: Martin Eppel (meppel)
Sent: Friday, December 12, 2014 12:55 PM
To: dev@stratos.apache.org<ma...@stratos.apache.org>
Subject: RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

With the latest code from the master I get the exception below when I try to deploy a cartridge, what is “Category is not specified” -  what is missing ?

Also, seems like RestAPI’s got changed again (autoscaler) – it would be great if we could stabilize and freeze them,

Thanks

Martin

TID: [0] [STRATOS] [2014-12-12 20:49:52,607]  INFO {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to deploy a cartridge [type] cisco-sample-vm {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils}
TID: [0] [STRATOS] [2014-12-12 20:49:52,608] ERROR {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper} -  Category is not specified, cartridge deployment failed {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper}
org.apache.stratos.rest.endpoint.exception.RestAPIException: Category is not specified, cartridge deployment failed
        at org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.createCartridgeDefinition(StratosApiV41Utils.java:98)
        at org.apache.stratos.rest.endpoint.api.StratosApiV41.createCartridgeDefinition(StratosApiV41.java:147)


Re: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Posted by Dakshika Jayathilaka <da...@wso2.com>.
Hi Martin,

Cartridge category is use to identify types of the cartridge. Currently
there are four types of cartridges.


   1. Application
   2. Framework
   3. Data
   4. LB

Thank you,

Regards,

*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Sat, Dec 13, 2014 at 4:46 AM, Martin Eppel (meppel) <me...@cisco.com>
wrote:
>
>  Adding “category” : “Application” to the cartridge definition fixed the
> cartridge exception.
>
>
>
> Now I am hitting the next one - looks like the database schema has changed
> and a new field was added.
>
>
>
> My question is, how is this supposed to work, do we need to apply the new
> schema when stratos is installed or is it applied when stratos starts up
> the first time ?
>
>
>
> Thanks
>
>
>
> Martin
>
>
>
>
>
> TID: [0] [STRATOS] [2014-12-12 22:45:38,977] DEBUG
> {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient} -  Trying to
> register oAuth application [test_app_10.6391721987360338]
> {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient}
>
> TID: [0] [STRATOS] [2014-12-12 22:45:39,038]  INFO
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
> 'admin@carbon.super [-1234]' logged in at [2014-12-12 22:45:39,037+0000]
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
>
> TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR
> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Error when executing
> the SQL : SELECT * FROM IDN_OAUTH_CONSUMER_APPS WHERE USERNAME=? AND
> TENANT_ID=? AND APP_NAME=? {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
>
> TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR
> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Table
> 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
> {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
>
> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table
> 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
>
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>
>         at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
>         at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
>         at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
>
>         at com.mysql.jdbc.Util.getInstance(Util.java:384)
>
>         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:105
>
>
>
> *From:* Martin Eppel (meppel)
> *Sent:* Friday, December 12, 2014 12:55 PM
> *To:* dev@stratos.apache.org
> *Subject:* RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge
>
>
>
> With the latest code from the master I get the exception below when I try
> to deploy a cartridge, what is “Category is not specified” -  what is
> missing ?
>
>
>
> Also, seems like RestAPI’s got changed again (autoscaler) – it would be
> great if we could stabilize and freeze them,
>
>
>
> Thanks
>
>
>
> Martin
>
>
>
> TID: [0] [STRATOS] [2014-12-12 20:49:52,607]  INFO
> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
> deploy a cartridge [type] cisco-sample-vm
> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils}
>
> TID: [0] [STRATOS] [2014-12-12 20:49:52,608] ERROR
> {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper} *-
> Category is not specified, cartridge deployment failed*
> {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper}
>
> org.apache.stratos.rest.endpoint.exception.RestAPIException: Category is
> not specified, cartridge deployment failed
>
>         at
> org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.createCartridgeDefinition(StratosApiV41Utils.java:98)
>
>         at
> org.apache.stratos.rest.endpoint.api.StratosApiV41.createCartridgeDefinition(StratosApiV41.java:147)
>
>
>

RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

Posted by "Martin Eppel (meppel)" <me...@cisco.com>.
Adding “category” : “Application” to the cartridge definition fixed the cartridge exception.

Now I am hitting the next one - looks like the database schema has changed and a new field was added.

My question is, how is this supposed to work, do we need to apply the new schema when stratos is installed or is it applied when stratos starts up the first time ?

Thanks

Martin


TID: [0] [STRATOS] [2014-12-12 22:45:38,977] DEBUG {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient} -  Trying to register oAuth application [test_app_10.6391721987360338] {org.apache.stratos.autoscaler.client.oAuthAdminServiceClient}
TID: [0] [STRATOS] [2014-12-12 22:45:39,038]  INFO {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  'admin@carbon.super [-1234]' logged in at [2014-12-12 22:45:39,037+0000] {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Error when executing the SQL : SELECT * FROM IDN_OAUTH_CONSUMER_APPS WHERE USERNAME=? AND TENANT_ID=? AND APP_NAME=? {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
TID: [0] [STRATOS] [2014-12-12 22:45:39,061] ERROR {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO} -  Table 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist {org.wso2.carbon.identity.oauth.dao.OAuthAppDAO}
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'userstore.IDN_OAUTH_CONSUMER_APPS' doesn't exist
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
        at com.mysql.jdbc.Util.getInstance(Util.java:384)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:105

From: Martin Eppel (meppel)
Sent: Friday, December 12, 2014 12:55 PM
To: dev@stratos.apache.org
Subject: RE: [Testing] Stratos 4.1.0 Alpha - error deploying cartridge

With the latest code from the master I get the exception below when I try to deploy a cartridge, what is “Category is not specified” -  what is missing ?

Also, seems like RestAPI’s got changed again (autoscaler) – it would be great if we could stabilize and freeze them,

Thanks

Martin

TID: [0] [STRATOS] [2014-12-12 20:49:52,607]  INFO {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to deploy a cartridge [type] cisco-sample-vm {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils}
TID: [0] [STRATOS] [2014-12-12 20:49:52,608] ERROR {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper} -  Category is not specified, cartridge deployment failed {org.apache.stratos.rest.endpoint.handlers.CustomExceptionMapper}
org.apache.stratos.rest.endpoint.exception.RestAPIException: Category is not specified, cartridge deployment failed
        at org.apache.stratos.rest.endpoint.api.StratosApiV41Utils.createCartridgeDefinition(StratosApiV41Utils.java:98)
        at org.apache.stratos.rest.endpoint.api.StratosApiV41.createCartridgeDefinition(StratosApiV41.java:147)