Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

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

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

    Default

    mvn gae:deploy

    Definate user error. In a previous attempt not recorded here I tried to deploy to GAE and failed. Now, when I try to do the deploy from maven as part of this thread I get the error described below. I am now trying to figure out how to either rollback (very little detail on how to do this) or set it to another version that is not stuck in purgatory. I will keep you updated. If anyone has an example on how to roll version 1 back please share.


    Beginning server interaction for maxcardtrader...
    0% Created staging directory at: 'C:\DOCUME~1\lavercr\LOCALS~1\Temp\appcfg301115
    3760297432679.tmp'
    5% Scanning for jsp files.
    20% Scanning files on local disk.
    25% Scanned 250 files.
    28% Initiating update.
    Email: .....@gmail.com
    Password for ....@gmail.com:

    java.io.IOException: Error posting to URL: https://appengine.google.com/api/appv
    ersion/create?app_id=maxcardtrader&version=1&
    409 Conflict
    Another transaction by user dclaverty is already in progress for app: s~maxcardt
    rader, version: 1. That user can undo the transaction with "appcfg rollback".

    Unable to update app: Error posting to URL: https://appengine.google.com/api/app
    version/create?app_id=maxcardtrader&version=1&
    409 Conflict
    Another transaction by user dclaverty is already in progress for app: s~maxcardt
    rader, version: 1. That user can undo the transaction with "appcfg rollback".

    Please see the logs [C:\DOCUME~1\lavercr\LOCALS~1\Temp\appcfg8123993996 12571666.
    log] for further information.
    Last edited by dclaverty; Dec 9th, 2012 at 10:22 AM.

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

    Default

    RESOLVED

    found this link

    http://ars-codia.raphaelbauer.com/20...t-on-java.html

    changed the example to match my setup

    C:\Documents and Settings\lavercr\.m2\repository\com\google\appengi ne\appengine-
    java-sdk\1.6.5\appengine-java-sdk-1.6.5\bin>appcfg rollback C:\roo\max\target\ma
    xcardtrader-0.1.0.BUILD-SNAPSHOT

    ************************************************** ******
    There is a new version of the SDK available.
    -----------
    Latest SDK:
    Release: 1.7.2
    Timestamp: Fri Aug 31 18:22:20 EDT 2012
    API versions: [1.0]

    -----------
    Your SDK:
    Release: 1.6.5
    Timestamp: Mon Apr 23 14:51:30 EDT 2012
    API versions: [1.0]

    -----------
    Please visit http://code.google.com/appengine for the latest SDK.
    ************************************************** ******
    Reading application configuration data...
    Dec 9, 2012 10:47:03 AM com.google.apphosting.utils.config.AppEngineWebXml Reader
    readAppEngineWebXml
    INFO: Successfully processed C:/roo/max/target/maxcardtrader-0.1.0.BUILD-SNAPSHO
    T\WEB-INF/appengine-web.xml
    Dec 9, 2012 10:47:03 AM com.google.apphosting.utils.config.AbstractConfigX mlRead
    er readConfigXml
    INFO: Successfully processed C:/roo/max/target/maxcardtrader-0.1.0.BUILD-SNAPSHO
    T\WEB-INF/web.xml
    Dec 9, 2012 10:47:03 AM com.google.apphosting.utils.config.IndexesXmlReade r read
    ConfigXml
    INFO: Successfully processed C:\roo\max\target\maxcardtrader-0.1.0.BUILD-SNAPSHO
    T\WEB-INF\appengine-generated\datastore-indexes-auto.xml
    Beginning server interaction for maxcardtrader...
    0% on backend null.
    Success.
    Cleaning up temporary files...

    Seems to have fixed the version issue

    I still need to find out how to set the appversion
    Last edited by dclaverty; Dec 9th, 2012 at 10:18 AM.

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

    Default

    mvn gae:deploy

    Now that I resolved the rollback issue the deploy command seems to run to completion successfully.

    90% Deploying new version.
    95% Will check again in 1 seconds.
    98% Closing update: new version is ready to start serving.
    99% Uploading index definitions.

    Update completed successfully.
    Success.
    Cleaning up temporary files...
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 49.891s
    [INFO] Finished at: Sun Dec 09 11:17:55 EST 2012
    [INFO] Final Memory: 12M/30M
    [INFO] ------------------------------------------------------------------------
    Last edited by dclaverty; Dec 9th, 2012 at 06:39 PM.

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

    Default

    Launched my application on Google App engine

    http://1.maxcardtrader.appspot.com

    it redirects to

    http://1.maxcardtrader.appspot.com/_...nScaffold.html

    And the page shows

    404 Not found

    Error: NOT_FOUND

    Roo by default seems to have implemented some form of login I am not familar with, or know how to handle.

    Any way to turn this feature off, or is this a red herring for something else going on ?
    Last edited by dclaverty; Dec 9th, 2012 at 08:16 PM.

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

    Default

    RESOLVED

    To resolve this issue you need to log onto your appengine console and go to application settings

    Go to Authentication Type. Mine was defaulted to (Experimental) Federated Login. Once I switched to Google Accounts API my site came up.

    authenticationtype.png
    Last edited by dclaverty; Dec 9th, 2012 at 08:16 PM.

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

    Default

    STUCK

    Next I would like to see if I can try to upload an image of the pokemon card

    ~.Card roo> focus --class ~.server.domain.Card
    ~.server.domain.Card roo> field file --fieldName image --contentType JPG

    Updated SRC_MAIN_JAVA\com\maxcardtrader\server\domain\Card .java
    Updated SRC_MAIN_JAVA\com\maxcardtrader\server\domain\Card _Roo_JavaBean.aj
    The primitive field type, byte of 'getImage' in type Card is not currently suppo
    rt by GWT and will not be added to the scaffolded application.

    ~.server.domain.Card roo>

    Not supported.

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

    Default

    To attempt to put in the file upload feature, or perhaps hook up to some restful api for images I decided now was the time to try to run Roo from the Spring Tool Suite.

    I understand you can import as an existing Maven project

    or

    run mvn eclipse:clean eclipse:compile
    then import it as an eclipse project.

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

    Default

    Importing as an existing Maven Project

    First issue

    Before import happens you already know there are issues with the pom setup

    importdialog.png

    Second issue

    Project gets reported as a legacy project. I said yes to upgrade the project.

    legacyproject.jpg

    Third issue

    Errors are shown after import. Seems that an annotations jar cannot be found.
    Attached Images Attached Images
    Last edited by dclaverty; Dec 9th, 2012 at 08:16 PM.

  9. #19
    Join Date
    Nov 2012
    Location
    Waterloo Ontario
    Posts
    18

    Default

    RESOLVED

    I had the Roo 1.3.0 Snapshot in my spring source directory. Spring source picked this up and made it the default roo installation.

    I put the default ROO installation back to 1.2.2

    I tested clean, compile and gae:deploy from STS and they all seem to work fine when imported as a maven project.

    The errors I see now do not seem to have any effect on running the maven commands.

    mvnmarker.jpg
    Last edited by dclaverty; Dec 9th, 2012 at 08:20 PM.

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
  •