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 -@OneToMany
declare @field: * XXXXXXXX: -@OneToMany(cascade = CascadeType.ALL); !!!!
Moreover, it generates code referring to a Employee Class. ???
for (Employee entity : xxxxxx) {
if (!longIds.contains(entity.getId())) {
longIds.add(entity.getId());
xxxxxx.add(KeyFactory.createKey(xxxxx.class.getNam e(), entity.getId()));
}
xxxx.add(entity);
}
Every junit classes generate an issue in STS:
Description Resource Path Location Type
No SuchBeanDefinitionException (No bean named 'transactionManager' is defined) in XXXXIntegrationTest.testCountXXXXEvents XXXXXIntegrationTest.java /Test/src/test/java/com/appspot/XXXX/server/domain line 0 Infinitest Test Failure
example:
import org.junit.Test;
import org.springframework.roo.addon.test.RooIntegrationT est;
@RooIntegrationTest(entity = XXX.class)
public class XXXIntegrationTest {
@Test
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] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[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:
<configuration>
...
<runTarget>VALUE</runTarget>
</configuration>
-OR-
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.


Reply With Quote
Do you if a GAE + Roo tutorial exist?
