Spring Roo
  1. Spring Roo
  2. ROO-1970

expenses-gae.roo script fails with ROO 1.1.1

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Complete
    • Affects Version/s: 1.1.1.RELEASE, 1.1.2.RELEASE, 1.1.3.RELEASE, 1.2.0.RC1
    • Fix Version/s: 1.1.2.RELEASE
    • Component/s: @ CORE
    • Labels:
      None

      Description

      Fails at:

      field enum --fieldName gender --type ~.client.shared.Gender
      Updated SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee.java
      Undo manage SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee.java
      Unable to locate requested type'org.springsource.roo.extrackgae.client.shared.Gender'
      Script execution aborted

      ____ ____ ____
      / __ \/ __ \/ __ \
      / /_/ / / / / / / /
      / , _/ // / /_/ /
      // ||___/___/ 1.1.1.RELEASE [rev 156ccd6]

      Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
      roo> script expenses-gae.roo
      project --topLevelPackage org.springsource.roo.extrackgae
      Created /Users/sheiberg/delete/pom.xml
      Created SRC_MAIN_JAVA
      Created SRC_MAIN_RESOURCES
      Created SRC_TEST_JAVA
      Created SRC_TEST_RESOURCES
      Created SRC_MAIN_WEBAPP
      Created SRC_MAIN_RESOURCES/META-INF/spring
      Created SRC_MAIN_RESOURCES/META-INF/spring/applicationContext.xml
      Created SRC_MAIN_RESOURCES/log4j.properties

      persistence setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE --applicationId roo-extract
      Updated ROOT/pom.xml [Removed redundant artifacts]
      Updated SRC_MAIN_RESOURCES/META-INF/spring/applicationContext.xml
      Created SRC_MAIN_RESOURCES/META-INF/persistence.xml
      Created SRC_MAIN_WEBAPP/WEB-INF
      Created SRC_MAIN_WEBAPP/WEB-INF/appengine-web.xml
      Created SRC_MAIN_WEBAPP/WEB-INF/logging.properties
      Updated SRC_MAIN_RESOURCES/log4j.properties
      Updated ROOT/pom.xml [Added property 'gae.version' with value '1.4.0']
      Updated ROOT/pom.xml [Added property 'gae-test.version' with value '1.4.0']
      Updated ROOT/pom.xml [Added property 'gae.home' with value '$

      {user.home}

      /.m2/repository/com/google/appengine/appengine-java-sdk/$

      {gae.version}/appengine-java-sdk-${gae.version}

      ']
      Updated ROOT/pom.xml [Added property 'datanucleus.version' with value '1.1.5']
      Updated ROOT/pom.xml [Added dependencies com.google.appengine.orm:datanucleus-appengine:1.0.7.final, com.google.appengine:appengine-api-1.0-sdk:$

      {gae.version}

      , com.google.appengine:appengine-testing:$

      {gae-test.version}, com.google.appengine:appengine-api-stubs:${gae-test.version}

      , com.google.appengine:appengine-api-labs:$

      {gae-test.version}

      , javax.persistence:persistence-api:1.0, org.datanucleus:datanucleus-core:$

      {datanucleus.version}, org.datanucleus:datanucleus-jpa:1.1.5, org.datanucleus:datanucleus-rdbms:${datanucleus.version}

      , org.datanucleus:datanucleus-enhancer:1.1.4, javax.jdo:jdo2-api:2.3-ec, org.hibernate:hibernate-validator:4.1.0.Final, javax.validation:validation-api:1.0.0.GA, cglib:cglib-nodep:2.2, javax.transaction:jta:1.1, org.springframework:spring-jdbc:$

      {spring.version}, org.springframework:spring-orm:${spring.version}

      , commons-pool:commons-pool:1.5.4, commons-dbcp:commons-dbcp:1.3]
      Updated ROOT/pom.xml [Added repositories http://maven-gae-plugin.googlecode.com/svn/repository, http://www.datanucleus.org/downloads/maven2/, https://repository.jboss.org/nexus/content/repositories/releases]
      Updated ROOT/pom.xml [Added pluginRepositories http://maven-gae-plugin.googlecode.com/svn/repository, http://www.datanucleus.org/downloads/maven2/]
      Updated ROOT/pom.xml [Added plugin maven-gae-plugin]
      Updated ROOT/pom.xml [Added plugin maven-datanucleus-plugin]
      Updated ROOT/pom.xml [Updated maven-eclipse-plugin]
      Please enter your database details in src/main/resources/META-INF/persistence.xml.

      enum type --class ~.shared.Gender
      Created SRC_MAIN_JAVA/org/springsource/roo/extrackgae/shared
      Created SRC_MAIN_JAVA/org/springsource/roo/extrackgae/shared/Gender.java
      enum constant --name MALE
      Updated SRC_MAIN_JAVA/org/springsource/roo/extrackgae/shared/Gender.java
      enum constant --name FEMALE
      Updated SRC_MAIN_JAVA/org/springsource/roo/extrackgae/shared/Gender.java

      // For Roo 1.1, addon-gwt doesn't include the necessary glue to make entity
      // relationships work when specifying "--database GOOGLE_APP_ENGINE". As a result,
      // field references have been removed in lieu of long key fields to represent the
      // relationships between different entities. Not to worry though, the code to make
      // this work is well underway, and in the meantime you can checkout the Expenses
      // sample within the GWT SDK for an example of how to retrieve entities and their
      // relationships from an app running on top of the App Engine Datastore.
      //
      // The GWT SDK can be downloaded here: http://code.google.com/webtoolkit/download.html

      entity --class ~.server.domain.Employee --testAutomatically
      Created SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain
      Created SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee.java
      Created SRC_TEST_JAVA/org/springsource/roo/extrackgae/server/domain
      Created SRC_TEST_JAVA/org/springsource/roo/extrackgae/server/domain/EmployeeDataOnDemand.java
      Created SRC_TEST_JAVA/org/springsource/roo/extrackgae/server/domain/EmployeeIntegrationTest.java
      Created SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee_Roo_Configurable.aj
      Created SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee_Roo_Entity.aj
      Created SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee_Roo_ToString.aj
      Created SRC_TEST_JAVA/org/springsource/roo/extrackgae/server/domain/EmployeeDataOnDemand_Roo_Configurable.aj
      Created SRC_TEST_JAVA/org/springsource/roo/extrackgae/server/domain/EmployeeIntegrationTest_Roo_Configurable.aj
      Created SRC_TEST_JAVA/org/springsource/roo/extrackgae/server/domain/EmployeeIntegrationTest_Roo_IntegrationTest.aj
      Created SRC_TEST_JAVA/org/springsource/roo/extrackgae/server/domain/EmployeeDataOnDemand_Roo_DataOnDemand.aj
      Deleted SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee_Roo_ToString.aj
      field string --fieldName displayName --notNull
      Updated SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee.java
      Created SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee_Roo_JavaBean.aj
      Updated SRC_TEST_JAVA/org/springsource/roo/extrackgae/server/domain/EmployeeDataOnDemand_Roo_DataOnDemand.aj
      Created SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee_Roo_ToString.aj
      field string --fieldName userName --sizeMin 3 --sizeMax 30 --notNull
      Updated SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee.java
      Updated SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee_Roo_JavaBean.aj
      Updated SRC_TEST_JAVA/org/springsource/roo/extrackgae/server/domain/EmployeeDataOnDemand_Roo_DataOnDemand.aj
      Updated SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee_Roo_ToString.aj
      field string --fieldName department
      Updated SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee.java
      Updated SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee_Roo_JavaBean.aj
      Updated SRC_TEST_JAVA/org/springsource/roo/extrackgae/server/domain/EmployeeDataOnDemand_Roo_DataOnDemand.aj
      Updated SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee_Roo_ToString.aj
      field number --type java.lang.Long supervisorKey
      Updated SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee.java
      Updated SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee_Roo_JavaBean.aj
      Updated SRC_TEST_JAVA/org/springsource/roo/extrackgae/server/domain/EmployeeDataOnDemand_Roo_DataOnDemand.aj
      Updated SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee_Roo_ToString.aj
      field enum --fieldName gender --type ~.client.shared.Gender
      Updated SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee.java
      Undo manage SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee.java
      Unable to locate requested type'org.springsource.roo.extrackgae.client.shared.Gender'
      Script execution aborted
      [Timer-0] Deleted SRC_MAIN_JAVA/org/springsource/roo/extrackgae/server/domain/Employee_Roo_ToString.aj
      ~.server.domain.Employee roo> quit

        Activity

        Hide
        James Tyrrell added a comment -

        The incorrect Gender reference in the expenses-gae.roo script has been resolved in commit 11e2bd1d3994c1e404060de2ffd63bd34307f487 and the script has been deleted in commit 3161fdb9153505b0dbb362e5b059fecee94d9cb5 as it is no longer needed with ROO-941 resolved.

        Show
        James Tyrrell added a comment - The incorrect Gender reference in the expenses-gae.roo script has been resolved in commit 11e2bd1d3994c1e404060de2ffd63bd34307f487 and the script has been deleted in commit 3161fdb9153505b0dbb362e5b059fecee94d9cb5 as it is no longer needed with ROO-941 resolved.

          People

          • Assignee:
            James Tyrrell
            Reporter:
            Scott Murphy
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: