Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring /ly/crash/gwt/server/domain/Expense\u Roo\u Jpa\u ActiveRecord.aj:28:0::0类型EntityManager中的方法createQuery(String)不适用于参数(String,Class) [ERROR]返回entityManager().createQuery时出错(“从支出o中选择o”,Expense.class)。setFirstResult(firstResult)。setMaxResults(maxResults)。getResultList(); [错误]^^ [错误]/Users/alexsapran/Documents/workspace\u j2ee/gwt\u crash.ly/src/main/java/ly/crash/gwt/server/domain/Expense\u Roo\u Jpa\u ActiveRecord.aj:37:0::0类型EntityManager中的方法createQuery(String)不适用于参数(String,Class) [错误]->[帮助1] [错误] [错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。 [错误]使用-X开关重新运行Maven以启用完整调试日志记录。 [错误] [错误]有关错误和可能的解决方案的更多信息,请阅读以下文章: [错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException_Spring_Gwt_Maven_Spring Roo - Fatal编程技术网

Spring /ly/crash/gwt/server/domain/Expense\u Roo\u Jpa\u ActiveRecord.aj:28:0::0类型EntityManager中的方法createQuery(String)不适用于参数(String,Class) [ERROR]返回entityManager().createQuery时出错(“从支出o中选择o”,Expense.class)。setFirstResult(firstResult)。setMaxResults(maxResults)。getResultList(); [错误]^^ [错误]/Users/alexsapran/Documents/workspace\u j2ee/gwt\u crash.ly/src/main/java/ly/crash/gwt/server/domain/Expense\u Roo\u Jpa\u ActiveRecord.aj:37:0::0类型EntityManager中的方法createQuery(String)不适用于参数(String,Class) [错误]->[帮助1] [错误] [错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。 [错误]使用-X开关重新运行Maven以启用完整调试日志记录。 [错误] [错误]有关错误和可能的解决方案的更多信息,请阅读以下文章: [错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Spring /ly/crash/gwt/server/domain/Expense\u Roo\u Jpa\u ActiveRecord.aj:28:0::0类型EntityManager中的方法createQuery(String)不适用于参数(String,Class) [ERROR]返回entityManager().createQuery时出错(“从支出o中选择o”,Expense.class)。setFirstResult(firstResult)。setMaxResults(maxResults)。getResultList(); [错误]^^ [错误]/Users/alexsapran/Documents/workspace\u j2ee/gwt\u crash.ly/src/main/java/ly/crash/gwt/server/domain/Expense\u Roo\u Jpa\u ActiveRecord.aj:37:0::0类型EntityManager中的方法createQuery(String)不适用于参数(String,Class) [错误]->[帮助1] [错误] [错误]要查看错误的完整堆栈跟踪,请使用-e开关重新运行Maven。 [错误]使用-X开关重新运行Maven以启用完整调试日志记录。 [错误] [错误]有关错误和可能的解决方案的更多信息,请阅读以下文章: [错误][帮助1]http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException,spring,gwt,maven,spring-roo,Spring,Gwt,Maven,Spring Roo,我尝试过使用标准eclipse和STS,但运气不佳,我能找到的每个教程都是关于Roo1.1.1的。 所以我的问题是GWT是否与Roo兼容,如果兼容,是否有一个可使用的示例代码教程? 有人能帮我吗?您可能会遇到版本不匹配的问题 文件未更改,但始终参考最新的- GWT 2.5的最新版本- 还要确保您使用的是最新的gwt maven插件版本2.5 [INFO]

我尝试过使用标准eclipse和STS,但运气不佳,我能找到的每个教程都是关于Roo1.1.1的。 所以我的问题是GWT是否与Roo兼容,如果兼容,是否有一个可使用的示例代码教程?
有人能帮我吗?

您可能会遇到版本不匹配的问题

文件未更改,但始终参考最新的-

GWT 2.5的最新版本-

还要确保您使用的是最新的gwt maven插件版本2.5

[INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building gwt_crash.ly 0.1.0.BUILD-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> gwt-maven-plugin:2.2.0:run (default-cli) @ gwt_crash.ly >>> [INFO] [INFO] --- aspectj-maven-plugin:1.2:compile (default) @ gwt_crash.ly --- [ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [WARNING] advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch] [WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 50.725s [INFO] Finished at: Wed Nov 28 18:10:54 EET 2012 [INFO] Final Memory: 10M/81M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.2:compile (default) on project gwt_crash.ly: Compiler errors : [ERROR] error at return entityManager().createQuery("SELECT COUNT(o) FROM Report o", Long.class).getSingleResult(); [ERROR] ^^ [ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Report_Roo_Jpa_ActiveRecord.aj:24:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] error at return entityManager().createQuery("SELECT o FROM Report o", Report.class).getResultList(); [ERROR] ^^ [ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Report_Roo_Jpa_ActiveRecord.aj:28:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] error at return entityManager().createQuery("SELECT o FROM Report o", Report.class).setFirstResult(firstResult).setMaxResults(maxResults).getResultList(); [ERROR] ^^ [ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Report_Roo_Jpa_ActiveRecord.aj:37:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] error at return entityManager().createQuery("SELECT COUNT(o) FROM Employee o", Long.class).getSingleResult(); [ERROR] ^^ [ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Employee_Roo_Jpa_ActiveRecord.aj:24:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] error at return entityManager().createQuery("SELECT o FROM Employee o", Employee.class).getResultList(); [ERROR] ^^ [ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Employee_Roo_Jpa_ActiveRecord.aj:28:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] error at return entityManager().createQuery("SELECT o FROM Employee o", Employee.class).setFirstResult(firstResult).setMaxResults(maxResults).getResultList(); [ERROR] ^^ [ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Employee_Roo_Jpa_ActiveRecord.aj:37:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] error at return entityManager().createQuery("SELECT COUNT(o) FROM Expense o", Long.class).getSingleResult(); [ERROR] ^^ [ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Expense_Roo_Jpa_ActiveRecord.aj:24:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] error at return entityManager().createQuery("SELECT o FROM Expense o", Expense.class).getResultList(); [ERROR] ^^ [ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Expense_Roo_Jpa_ActiveRecord.aj:28:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] error at return entityManager().createQuery("SELECT o FROM Expense o", Expense.class).setFirstResult(firstResult).setMaxResults(maxResults).getResultList(); [ERROR] ^^ [ERROR] /Users/alexsapran/Documents/workspace_j2ee/gwt_crash.ly/src/main/java/ly/crash/gwt/server/domain/Expense_Roo_Jpa_ActiveRecord.aj:37:0::0 The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class) [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException