Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Goal: Use Spring Roo - GWT - GAE to create a Pokemon website for my son

  1. #1
    Join Date
    Nov 2012
    Location
    Waterloo Ontario
    Posts
    18

    Default Goal: Use Spring Roo - GWT - GAE to create a Pokemon website for my son

    Here is the idea

    My son has a thousand Pokemon cards. Too many to manage and know what he has. His favourites go to school with him every day whether rain or shine, and not long after they have gone from good condition to falling apart. I would like to put a Website together from him to upload his card information to not only sort through himself, but share with his friends.

    Here are my initial requirements

    • Use GWT for UI
    • Run on Google App Engine
    • Be able to input the attributes of the card, such as pokemon name, artist, stage, HP etc. My son is the domain expert here, so I will have to go to him to understand the complexities of the card.
    • Upload a picture of the card
    • Search for cards based on attributes



    After I have my son's cards online
    • I would like to create a user repository for his friends to sign on, upload and share their cards


    I thought it would be helpful for not only me, but he Spring Roo community to document my attempt here.

    Here we go...

  2. #2
    Join Date
    Nov 2012
    Location
    Waterloo Ontario
    Posts
    18

    Default

    Here is my toolset

    STS 3.1.0
    Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
    java version "1.6.0_35"
    Roo 1.2.2.RELEASE [rev 7d75659]

  3. #3
    Join Date
    Nov 2012
    Location
    Waterloo Ontario
    Posts
    18

    Default Max.roo - A simple roo script to start off with

    project --topLevelPackage com.maxcardtrader

    persistence setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE --applicationId maxcardtrader

    entity jpa --class ~.server.domain.Card
    field string --fieldName name --sizeMin 3 --sizeMax 30 --notNull

    web gwt setup
    web gwt all --proxyPackage ~.client.proxy --requestPackage ~.client.request

    logging setup --level DEBUG

  4. #4
    Join Date
    Nov 2012
    Location
    Waterloo Ontario
    Posts
    18

    Default

    Started roo, executed the script. Everything seemed to run fine. -Issue open, but has workaround-

    exited roo and ran
    mvn gae:run

    error occurred

    [INFO] Total time: 9.297s
    [INFO] Finished at: Sat Dec 08 14:57:00 EST 2012
    [INFO] Final Memory: 9M/22M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.datanucleus:maven-datanucleus-plugin:3.0.2:en
    hance (default) on project maxcardtrader: Error executing DataNucleus tool org.d
    atanucleus.enhancer.DataNucleusEnhancer: InvocationTargetException: Plugin (Bund
    le) "org.datanucleus.enhancer" is already registered. Ensure you dont have multi
    ple JAR versions of the same plugin in the classpath. The URL "file:/C:/Document
    s%20and%20Settings/lavercr/.m2/repository/org/datanucleus/datanucleus-enhancer/3
    .0.1/datanucleus-enhancer-3.0.1.jar" is already registered, and you are trying t
    o register an identical plugin located at URL "file:/C:/Documents%20and%20Settin
    gs/lavercr/.m2/repository/org/datanucleus/datanucleus-enhancer/3.1.0-m2/datanucl
    eus-enhancer-3.1.0-m2.jar." -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
    ch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please rea
    d the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/d...MojoExecutionE
    xception

    Seems to be around the datanucleus maven plugin
    Last edited by dclaverty; Dec 9th, 2012 at 09:15 AM.

  5. #5
    Join Date
    Nov 2012
    Location
    Waterloo Ontario
    Posts
    18

    Default Pom.xml file

    Here is my pom.xml without any attempt to fix the datanucleus error

    pom.zip

  6. #6
    Join Date
    Nov 2012
    Location
    Waterloo Ontario
    Posts
    18

    Default

    Partially RESOLVED

    found this link

    http://stackoverflow.com/questions/1...ith-spring-roo

    adding

    <dependency>
    <groupId>org.datanucleus</groupId>
    <artifactId>datanucleus-enhancer</artifactId>
    <version>3.1.0-m2</version>
    </dependency>

    seems to resolve the datanucleus error
    Last edited by dclaverty; Dec 9th, 2012 at 08:17 PM.

  7. #7
    Join Date
    Nov 2012
    Location
    Waterloo Ontario
    Posts
    18

    Default

    After fixing the datanucleus issue I ran mvn gae:run again

    I saw this in the console

    [INFO] --- gwt-maven-plugin:2.2.0:compile (gwtcompile) @ maxcardtrader ---
    [INFO] Compiling module com.maxcardtrader.ApplicationScaffold
    [INFO] Compiling 12 permutations
    [INFO] Compiling permutation 0...
    [INFO] Process output
    [INFO] Error occurred during initialization of VM
    [INFO] agent library failed to init: instrument
    [INFO] [ERROR] Error opening zip file or JAR manifest missing : C:\Docu
    ments
    [INFO] Compiling permutation 2...
    [INFO] Compiling permutation 3...

    do I need to be concerned about the ERROR or is this expected ?

  8. #8
    Join Date
    Nov 2012
    Location
    Waterloo Ontario
    Posts
    18

    Default

    interesting

    It went back and compiled 1 again

    [INFO] Compiling permutation 11...
    [INFO] Compiling permutation 1...

  9. #9

    Default

    Why would you change the version of the enhancer to something that is a milestone when there were many others released after that?
    If using GAE JDO/JPA plugin v2.0.x then you use datanucleus-enhancer v3.0.1 and maven-datanucleus-plugin v3.0.2
    If using GAE JDO/JPA plugin v2.1.x then you use datanucleus-enhancer v3.1.1 and maven-datanucleus-plugin v3.1.3
    as per all docs for DataNucleus and the GAE JDO/JPA plugin
    -Andy
    DataNucleus - Standardised persistence, multiple datastores

  10. #10
    Join Date
    Nov 2012
    Location
    Waterloo Ontario
    Posts
    18

    Default

    I am relying on the Roo 1.2.2 release to put the pom together correctly. I am trying to stay as close to the offering as possible without making drastic changes. The datanucleus error I was given referred to the milestone release 3.1.0-m2 as seen below, so it seemed to make to most sense to get that working.

    [ERROR] Failed to execute goal org.datanucleus:maven-datanucleus-plugin:3.0.2:en
    hance (default) on project maxcardtrader: Error executing DataNucleus tool org.d
    atanucleus.enhancer.DataNucleusEnhancer: InvocationTargetException: Plugin (Bund
    le) "org.datanucleus.enhancer" is already registered. Ensure you dont have multi
    ple JAR versions of the same plugin in the classpath. The URL "file:/C:/Document
    s%20and%20Settings/lavercr/.m2/repository/org/datanucleus/datanucleus-enhancer/3
    .0.1/datanucleus-enhancer-3.0.1.jar" is already registered, and you are trying t
    o register an identical plugin located at URL "file:/C:/Documents%20and%20Settin
    gs/lavercr/.m2/repository/org/datanucleus/datanucleus-enhancer/3.1.0-m2/datanucl
    eus-enhancer-3.1.0-m2.jar.
    " -> [Help 1]

Tags for this Thread

Posting Permissions

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