Thursday, June 2, 2011

Problem when adding GWT to Spring Roo project

Problem


When trying to execute the spring roo command gwt setup, compilers problems as the following appears:

The import com.google.appengine cannot be resolved GaeAuthFilter.java /src/main/java/br/com/server/gae line 3 Java Problem

User cannot be resolved to a type UserServiceLocator.java /src/main/java/br/com/server/gae line 24 Java Problem

UserService cannot be resolved to a type GaeAuthFilter.java /src/main/java/br/com/server/gae line 21 Java Problem

UserServiceFactory cannot be resolved GaeAuthFilter.java /src/main/java/br/com/server/gae line 21 Java Problem


Reason

The command is not working properly. It should add a dependency to GAE.

Solution

Add this to the pow:

...


<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-1.0-sdk</artifactId>
<version>1.4.0</version>
</dependency>

...

No comments:

Post a Comment