Springroo cannot configure gwt

I have spring roo 1.1.2. I am creating a new project, for example

project --topLevelPackage leraning.roogwt 

then I establish constancy and add entity

 persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY entity --class ~.MyEntity field string description 

gwt setup

 gwt setup 

and when I try to pack it, a compilation error occurs

 perform package 

Mistakes

 [Thread-8] [ERROR] The import com.google.appengine cannot be resolved [Thread-8] [ERROR] User cannot be resolved to a type [Thread-8] [ERROR] The import com.google.appengine cannot be resolved [Thread-8] [ERROR] UserService cannot be resolved to a type [Thread-8] [ERROR] UserServiceFactory cannot be resolved [Thread-8] [ERROR] The import com.google.appengine cannot be resolved [Thread-8] [ERROR] UserService cannot be resolved to a type [Thread-8] [ERROR] UserServiceFactory cannot be resolved [Thread-8] [ERROR] User cannot be resolved to a type 

and detailed in code

 [Thread-8] [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.0:compile (default) on project roogwt: Compiler errors : [Thread-8] [ERROR] error at import com.google.appengine.api.users.User; [Thread-8] [ERROR] ^^^^^^^^^^^^^^^^^^^ [Thread-8] [ERROR] J:\springroo\gwtroo\src\main\java\leraning\roogwt\server \gae\UserServiceWrapper.java:3:0::0 The import com.google.appengine cannot be resolved [Thread-8] [ERROR] error at public User getCurrentUser(); [Thread-8] [ERROR] ^^ [Thread-8] [ERROR] J:\springroo\gwtroo\src\main\java\leraning\roogwt\server\gae\UserServiceWrapper.java:16:0::0 User cannot be resolved to a type [Thread-8] [ERROR] error at import com.google.appengine.api.users.UserService; [Thread-8] [ERROR] ^^^^^^^^^^^^^^^^^^^ [Thread-8] [ERROR] J:\springroo\gwtroo\src\main\java\leraning\roogwt\server\gae\GaeAuthFilter.java:3:0::0 The import com.google.appengine cannot be re..... <similar errors in other files> 
+4
source share
4 answers

I don’t know if my decisions are good, but I just deleted all the folders from the src folder with the name gae, and now I have created and deployed a gwt project example without problems.

+1
source

I had the same problem with the costoro project. I solved this by adding the missing maven dependency to the project.

From the Roo shell, run this:

add -groupId com.google.appengine --artifactId appengine-api-1.0-sdk --version 1.4.0 dependency

+4
source

Another option is to specify the google engine mechanism as a database when setting up perrsistence.

persistence setting --provider DATANUCLEUS - GOOGLE_APP_ENGINE database

This can avoid the inability to find links to the Google engine.

+1
source
0
source

Source: https://habr.com/ru/post/1343951/


All Articles