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

Versions for a Datanucleus + MVC + HSQL project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.2.1.RELEASE
    • Fix Version/s: 1.2.2.RELEASE
    • Component/s: PERSISTENCE
    • Labels:
      None

      Description

      I've created the following roo project within datanucleus

      // Spring Roo 1.2.1.RELEASE [rev 6eae723] log opened at 2012-03-21 22:27:38
      project com.dn --java 6
      //persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
      persistence setup --provider DATANUCLEUS --database HYPERSONIC_IN_MEMORY
      entity jpa --class ~.shared.domain.Contact
      field string --fieldName fullName --notNull
      field string --fieldName email
      field string --fieldName phoneNumber
      logging setup --level DEBUG
      web mvc setup
      web mvc all --package ~.server.web
      web mvc finder all
      exit

      //Fails trying to compile with command shell
      mvn clean install

      [ERROR] Failed to execute goal org.datanucleus:maven-datanucleus-plugin:3.0.1:en
      hance (default) on project dn: Error executing enhancer: InvocationTargetExcepti
      on: El plugin (Bundle) "org.datanucleus" ya esta registrado. Por favor compruebe
      que usted no tiene otras versiones del mismo plugin en el CLASSPATH. El URL "fi
      le:/D:/Java/repository/org/datanucleus/datanucleus-core/3.1.0-m2/datanucleus-cor
      e-3.1.0-m2.jar" esta registrado, y intenta registra otro al URL "file:/D:/Java/r
      epository/org/datanucleus/datanucleus-core/3.0.7/datanucleus-core-3.0.7.jar." ->

      a conflict with datanucleus-core-3.1.0-m2 version. I've tried to add runtime for the -core dependency :
      <groupId>org.datanucleus</groupId>
      <artifactId>datanucleus-core</artifactId>
      <version>3.0.7</version>
      <scope>runtime</scope>
      or change the version to a range
      <groupId>org.datanucleus</groupId>
      <artifactId>datanucleus-core</artifactId>
      <version>[3.0, 3.1)</version>

      and I could compile successfully,
      but when I try to run the project, it fails in both cases
      mvn jetty:run
      ...Caused by:
      org.datanucleus.exceptions.NucleusUserException: Error : Un error ocurrio cuando
      creando un adaptador "org.datanucleus.api.jpa.JPAAdapter" (quizas no tengas el
      jar apropiado datanucleus-api-XXX en el CLASSPATH, o el api jar para la especifi
      cacion que utilisas?) : javax/jdo/JDONullIdentityException
      at org.datanucleus.api.ApiAdapterFactory.getApiAdapter(ApiAdapterFactory
      .java:108)...

      I've tryed Spring Roo 1.3.0.BUILD-SNAPSHOT [rev 47ce1ea with same results. This version contains an update of version (3.0.8 instead of 3.0.7 of the ROO 1.2.1)

      No issues within HIBERNATE (instead of DATANUCLEUS)
      I showed 1.2.1.Release includes an update to datanucleus-appengine 2. Is it really working?
      What are the right versions to be used?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stewarta Alan Stewart
              Reporter:
              lucki lucki
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: