Announcement Announcement Module
No announcement yet.
Roo 1.1.1 & gae 1.4.0 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roo 1.1.1 & gae 1.4.0

    SpringSource Tool Suite
    Version: 2.5.2.RELEASE
    Build Id: 201101081000

    Spring Roo 1.1.1
    Gae 1.4.0

    I'm newbie on using Spring Roo. I would like to develop on Google App Engine with Spring Roo.
    I have made a test with this Roo script:

    project --topLevelPackage XXXXX --projectName XXXXXX --java 6
    persistence setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE --applicationId XXXXX

    entity --class ~.server.domain.XXX --testAutomatically
    field set --class ~.server.domain.Class --fieldName list --type ~.server.domain.TXXX --mappedBy name --notNull false --cardinality ONE_TO_MANY

    ->In "privileged aspect XXXXX_Roo_JavaBean "
    Roo generates errors :
    @OneToMany not [email protected]
    declare @field: * XXXXXXXX: [email protected](cascade = CascadeType.ALL); !!!!

    Moreover, it generates code referring to a Employee Class. ???
    for (Employee entity : xxxxxx) {
    if (!longIds.contains(entity.getId())) {
    xxxxxx.add(KeyFactory.createKey(xxxxx.class.getNam e(), entity.getId()));

    Every junit classes generate an issue in STS:
    Description Resource Path Location Type
    No SuchBeanDefinitionException (No bean named 'transactionManager' is defined) in XXXXIntegrationTest.testCountXXXXEvents /Test/src/test/java/com/appspot/XXXX/server/domain line 0 Infinitest Test Failure

    import org.junit.Test;
    import org.springframework.roo.addon.test.RooIntegrationT est;

    @RooIntegrationTest(entity = XXX.class)
    public class XXXIntegrationTest {

    public void testMarkerMethod() {

    When I solve every issues in generated code, I try to start maven command: mvn gwt:run in eclipse.

    These will use the artifact files already in the core ClassRealm instead, to allow them to be included in PluginDescriptor.getArtifacts().

    [INFO] ------------------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] One or more required plugin parameters are invalid/missing for 'gwt:run'

    [0] Inside the definition for plugin 'gwt-maven-plugin' specify the following:



    on the command line, specify: '-DrunTarget=VALUE'

    [INFO] ------------------------------------------------------------------------
    [DEBUG] Trace
    org.apache.maven.lifecycle.LifecycleExecutionExcep tion: Error configuring: org.codehaus.mojo:gwt-maven-plugin. Reason: Invalid or missing parameters: [Mojo parameter [name: 'runTarget'; alias: 'null']] for mojo: org.codehaus.mojo:gwt-maven-plugin:2.1.0-1:run ....

    Have I to patch Spring Roo ?
    Could you explain me what I'm doing wrong?
    Because it's impossible to run my basic test on my local GAE?

    Thank you for your help.

  • #2
    Hi Malys,

    I can't answer all your questions just yet, but I have seen some similar problems. So I'll start with the easy ones. The 'Employee' type in the generated AJ files is a bug. See this thread and the associated bug report. You can download the Roo source and the patch in the bug report to patch Roo.

    Another error you pointed out is that Roo is generating (what I think is) an illegal AspectJ statement, attempting to use the new "-" syntax in AspectJ 1.6.11 to remove an annotation:

    declare @field: * XXXXXXXX: [email protected](cascade = CascadeType.ALL);
    I was playing with that this weekend, and I think that is what the supported syntax for AspectJ 1.6.11 (currently Roo uses Milestone 1 of this version) will be:

    declare @field: * XXXXXXXX: [email protected];
    Your next question will likely be "Why is it trying to remove an annotation anyway?" I don't have a great answer for that, but I believe it is related to a change in the way Roo supports GAE's data model. Notice that the next line in the generated file is adding an annotation for transient to the same field....

    Hope that at least gets you started, or doesn't scare you off. I don't use Eclipse much, so I can't comment on why the 'mvn gwt:run' command is failing. Does it work if you run it directly from a command line?


    • #3
      Thank you for you help. I will try to patch Roo this week.
      From a command line, 'mvn gwt:run' command' is also failing. I would try Spring Roo to save time but currently, it's not the case. Do you if a GAE + Roo tutorial exist?


      • #4
        How to apply this patch to Roo ?
        (thxs in advance)


        • #5

          install Git
          install Maven
          install gpg
          gpg --gen-key
          Add git/bin and maven/bin in OS path
          add variable MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=512m -Dgpg.passphrase=PASSPHRASE"
          download source : git clone git://
          patch source
          in source directory
          mvn clean install
          cd ..


          Last edited by malys; Jan 22nd, 2011, 08:17 AM.


          • #6
            Thanks Malys!