Results 1 to 8 of 8

Thread: roo 1.1.2 + gwt setuo command

  1. #1
    Join Date
    Mar 2011
    Posts
    10

    Exclamation roo 1.1.2 + gwt setuo command

    Hi to everyone,
    i' ve installed the latest release of STS, create a new roo project and run the following example script:

    Code:
    persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
    entity --class ~.x.Person --testAutomatically
    //field number --fieldName id --notNull --type java.lang.Long
    field string --fieldName name --notNull --sizeMin 2
    entity --class ~.x.Admin --testAutomatically 
    //field number --fieldName id --notNull --type java.lang.Long
    field string --fieldName name --notNull --sizeMin 2
    entity --class ~.x.SportGateway --testAutomatically 
    //field number --fieldName id --notNull --type java.lang.Long
    field string --fieldName name --notNull --sizeMin 2
    field reference --fieldName gatewayAdmin --type ~.x.Admin
    entity --class ~.x.Game --testAutomatically 
    //field number --fieldName id --notNull --type java.lang.Long
    field date --fieldName orderDate --notNull --type java.util.Date
    field reference --fieldName gateways --type ~.x.SportGateway
    field set --fieldName players --type ~.x.Person
    field set --fieldName partite --type ~.x.Game --class ~.x.Person --mappedBy players
    controller all --package ~.web
    this instructions are correctly processed.

    But if now i write "gwt setup" in roo shell don't work.
    This is the error that was returned by shell after creation of
    SRC_MAIN_JAVA\com\scdevsite\client\managed\ui\Spor tGatewaySetEditor.ui.xml and undo of "gwt setup" operations:

    Code:
    japa.parser.ParseException: Encountered " "." ". "" at line 113, column 13.
    Was expecting one of:
        "(" ...
        ";" ...
        "=" ...
        "++" ...
        "--" ...
        "+=" ...
        "-=" ...
        "*=" ...
        "/=" ...
        "&=" ...
        "|=" ...
        "^=" ...
        "%=" ...
        "<<=" ...
        ">>=" ...
        ">>>=" ...
    what's wrong?
    in roo 1.1.1 with previous sts release the same script work correctly

    Installed pluggin:
    google plugin (gwt 2.2.0)
    ...i've also installed gwt designer for eclipse following gwt official doc
    Enviroment: win7

  2. #2
    Join Date
    Jun 2008
    Location
    Philadelphia, PA, USA
    Posts
    212

    Default

    Confirmed. I also get this. My script (called from the command-line Roo shell):

    Code:
    project --topLevelPackage org.rooina.ria.ajax.coursemanager --projectName coursemanagergwt
    persistence setup --database HYPERSONIC_PERSISTENT --provider HIBERNATE 
    entity --class ~.model.Course
    field string --fieldName name
    field number --fieldName cost --type java.math.BigDecimal
    field number --fieldName numDays --type java.lang.Integer
    
    entity --class ~.model.Room
    field string --fieldName roomName
    field number --fieldName capacity --type java.lang.Integer
    
    entity --class ~.model.ScheduledCourse
    field date --fieldName offerDate --type java.util.Date
    field reference --fieldName room --type ~.model.Room --cardinality MANY_TO_ONE 
    field reference --fieldName course --type ~.model.Course --cardinality MANY_TO_ONE
    field set --type ~.model.ScheduledCourse --fieldName schedule --cardinality ONE_TO_MANY --class ~.model.Course
    field set --type ~.model.ScheduledCourse --fieldName schedule --cardinality ONE_TO_MANY --class ~.model.Room
    
    entity --class ~.model.Registration
    field string --fieldName firstName
    field string --fieldName lastName
    field reference --fieldName offering --type ~.model.ScheduledCourse --cardinality MANY_TO_ONE
    field boolean --fieldName paymentReceived
    field set --type ~.model.Registration --fieldName students --cardinality ONE_TO_MANY --class ~.model.ScheduledCourse
    
    gwt setup
    Same error...

    Code:
    Undo manage SRC_MAIN_WEBAPP/WEB-INF/web.xml
    Undo manage ROOT/pom.xml
    Undo manage SRC_MAIN_WEBAPP/WEB-INF/web.xml
    Undo create SRC_MAIN_WEBAPP/WEB-INF/web.xml
    Undo create SRC_MAIN_WEBAPP/WEB-INF/spring/webmvc-config.xml
    Undo create SRC_MAIN_WEBAPP/WEB-INF/spring
    japa.parser.ParseException: Encountered " "." ". "" at line 99, column 13.
    Was expecting one of:
        "(" ...
        ";" ...
        "=" ...
        "++" ...
        "--" ...
        "+=" ...
        "-=" ...
        "*=" ...
        "/=" ...
        "&=" ...
        "|=" ...
        "^=" ...
        "%=" ...
        "<<=" ...
        ">>=" ...
        ">>>=" ...
    Ken Rimple
    Chariot Solutions
    email: krimple@chariotsolutions.com
    work: www.chariotsolutions.com/education
    personal: www.rimple.com

    Author: Spring Roo in Action (Manning)
    MEAP Site: manning.com/rimple

  3. #3
    Join Date
    Dec 2005
    Posts
    929

    Default

    Please raise a Jira issue for this
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  4. #4
    Join Date
    Mar 2011
    Posts
    10

    Default

    i've raised an issue on https://issuetracker.springsource.com/ because i can't sign up into https://jira.springsource.org

  5. #5
    Join Date
    Dec 2005
    Posts
    929

    Default

    It will have to be logged in Jira for us to look at it. You can create an account on the Jira homepage.
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  6. #6
    Join Date
    Mar 2011
    Posts
    10

    Default

    sorry,
    probably i'm stupid, but in jira.springsource.org there isn't a sign up button and with my jira credential i can't access anyway

  7. #7
    Join Date
    Mar 2011
    Posts
    10

    Default

    i'm finally find it...thanks

  8. #8
    Join Date
    Jun 2008
    Location
    Philadelphia, PA, USA
    Posts
    212

    Default

    Ken Rimple
    Chariot Solutions
    email: krimple@chariotsolutions.com
    work: www.chariotsolutions.com/education
    personal: www.rimple.com

    Author: Spring Roo in Action (Manning)
    MEAP Site: manning.com/rimple

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
  •