Results 1 to 7 of 7

Thread: Problem building Roo app with database: GOOGLE_APP_ENGINE

  1. #1
    Join Date
    Nov 2011
    Location
    Charlotte, NC, USA
    Posts
    21

    Default Problem building Roo app with database: GOOGLE_APP_ENGINE

    Hey guys -

    I tried building a Roo application (using 1.2.0.RELEASE) this weekend and set the jpa setup as follows:

    jpa setup --database GOOGLE_APP_ENGINE --provider DATANUCLEUS

    When I try to compile the application, I get the following error:


    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 3:18.016s
    [INFO] Finished at: Mon Jan 30 07:52:07 EST 2012
    [INFO] Final Memory: 9M/64M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.datanucleus:maven-datanucleus-plugin:3.0.1:enhance (default) on project firetrax: Error executing enhancer: InvocationTargetException: Plugin (Bundle) "org.datanucleus" is already registered. Ensure you dont have multiple JAR versions of the same plugin in the classpath. The URL "file:/Z:/BlackSparx/springsource/jansenRepo/org/datanucleus/datanucleus-core/3.0.6/datanucleus-core-3.0.6.jar" is already registered, and you are trying to register an identical plugin located at URL "file:/Z:/BlackSparx/springsource/jansenRepo/org/datanucleus/datanucleus-core/3.0.4/datanucleus-core-3.0.4.jar." -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.

    I've actually tried building the app on two separate machines and the issue is consistent. Anybody else encounter this?

  2. #2
    Join Date
    Dec 2011
    Posts
    2

    Default Any news about this issue?

    Hello cjansen

    Have you found out any thing about this issue? Because I have the same Problem.

    Regards

    Patrick

  3. #3

    Default

    Why not investigate why you have datanucleus-core-3.0.4.jar somewhere, since the Maven plugin is pulling in the latest (datanucleus-core-3.0.6.jar) ... the message is clear enough - best to just use 3.0.6. Alternatively you configure your pom.xml to exclude the DataNucleus M2 plugin "datanucleus-core" dependency.
    -Andy
    DataNucleus - Standardised persistence, multiple datastores

  4. #4
    Join Date
    Dec 2011
    Posts
    2

    Default dependency

    So I can remove all this dependency which roo generates for me?
    Code:
            <dependency>
                <groupId>org.datanucleus</groupId>
                <artifactId>datanucleus-core</artifactId>
                <version>3.0.4</version>
            </dependency>
            <dependency>
                <groupId>org.datanucleus</groupId>
                <artifactId>datanucleus-api-jpa</artifactId>
                <version>3.0.4</version>
            </dependency>
            <dependency>
                <groupId>org.datanucleus</groupId>
                <artifactId>datanucleus-rdbms</artifactId>
                <version>3.0.4</version>
            </dependency>

  5. #5
    Join Date
    Nov 2011
    Location
    Charlotte, NC, USA
    Posts
    21

    Default

    I'll try to create modifying my pom as suggested and post what worked for me. Seems though that Roo should be handling this automagically...

  6. #6

    Default

    You can only *remove* those deps if you only use Maven for compiling/enhancing the classes. If you run your app using Maven then no you can't; you simply need to either exclude the datanucleus-core dependency from the DataNucleus M2 enhancer step, or change those deps to use the most recent DataNucleus release
    -Andy
    DataNucleus - Standardised persistence, multiple datastores

  7. #7

    Default

    Changing datanucleus-core to 3.0.7 seems to work for me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •