Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2862

mongo setup fails after jpa setup in new project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.2.0.M1
    • Fix Version/s: 1.2.0.RC1
    • Component/s: @ ROO SHELL
    • Labels:
      None

      Description

      run mongo setup then jpa setup, exception is org.springframework.roo.addon.jpa.JpaOperationsImpl.updateDatabaseProperties(JpaOperationsImpl.java:475)

      roo> project --topLevelPackage com.test
      Created ROOT/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/log4j.properties
      Created SRC_MAIN_RESOURCES/META-INF/spring/applicationContext.xml
      com.test roo> mongo setup
      Created SRC_MAIN_RESOURCES/META-INF/spring/database.properties
      Created SRC_MAIN_RESOURCES/META-INF/spring/applicationContext-mongo.xml
      Updated ROOT/pom.xml [added repositories http://maven.springframework.org/milestone, https://repository.jboss.org/nexus/content/repositories/releases; added dependencies javax.persistence:persistence-api:1.0, javax.validation:validation-api:1.0.0.GA, org.hibernate:hibernate-validator:4.2.0.Final, org.cloudfoundry:cloudfoundry-runtime:0.8.0, org.springframework.data:spring-data-mongodb:1.0.0.M4]
      Updated SRC_MAIN_RESOURCES/META-INF/spring/applicationContext-mongo.xml
      com.test roo> jpa setup --database

      jpa setup --database jpa setup --databaseName
      com.test roo> jpa setup --database pos
      jpa setup --database pos
      required --database: The database to support; no default value
      com.test roo> jpa setup --database POSTGRES --provider hiber
      jpa setup --database POSTGRES --provider hiber
      required --provider: The persistence provider to support; no default value
      com.test roo> jpa setup --database POSTGRES --provider HIBERNATE
      NullPointerException at org.springframework.roo.addon.jpa.JpaOperationsImpl.updateDatabaseProperties(JpaOperationsImpl.java:475)
      com.test roo>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sschmidt Stefan Schmidt
              Reporter:
              md10024 Mark Dopheide
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: