我试图使用Spring Roo和GWT部署一个应用程序。我在GWT和Roo都是初学者,是按照本教程开始的,但是似乎有一个问题,因为示例应用程序不能在mvn:gwt run中启动。以上maven命令的结果:
[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
我尝试过使用标准的eclipse和STS,但是运气不好,我能找到的所有教程都是关于roo 1.1.1的。所以我的问题是GWT是否与Roo兼容,如果兼容,是否有可用的示例代码教程?有人能帮我吗?
您可能会遇到一些版本不匹配。
文档没有更改,但始终参考最新的-https://developers . Google . com/we b-toolkit/doc/latest/tutorial/roo-STS # install
GWT 2.5的最新STS-http://blog.springsource.org/2012/12/18/spring-roo-1-2-3-release-available/
还要确保您使用的是最新的 gwt-maven-plugin 版本 2.5
我的项目计划使用SSO(可能使用Gluu或Auth0,…)并且正在考虑将GraphQL应用到我们的API中。 乍一看,这两个应该很容易兼容,因为它们在不同的层上工作。但是我仍然想听听有这两个方面经验的人在将它们应用于项目时是否有任何问题、考虑因素或指导方针?
本章提供了有关 版本控制 章节中提供的破坏性和非破坏性修改列表的详细说明。 什么算是一个破坏性(不兼容)的变化并没有明确的定义。本指南应该被视为指示性的,而不是每一种可能变化的全面清单。 这里列出的规则只涉及客户端兼容性。预期API生产者明白在部署方面的要求,包括实现细节的变化。 一般目的是,服务端更新到一个新的minor版本或patch版本不该破坏客户端。可预期的破坏类型有: 源代码兼容性:针对
语言补丁 Array.isArray Object.assign JSON.stringify console-polyfill Object.keys Object.is Array.prototype.forEach Function.prototype.bind 或者直接使用https://polyfill.io/ 提供的动态补丁方案 <script src="https://cdn.pol
问题内容: 我们收到了一些为linux编译的库(.a)(可能是用GCC 6.x编译的)。 我们正在使用GCC 4.8,并且在尝试链接时遇到类型错误: 通常,可以通过确保所有单元都使用相同的标志进行编译来解决此问题。但是,如果我理解正确,它是由GCC 5.1及更高版本引入的。 是否有办法在GCC 4.8上进行这项工作,还是我们需要让人们用不同的方式重新编译库? 我想如果我们能够切换到GCC> = 5
最近,我开始研究activiti框架,将其集成到我当前的项目中。在我们的项目中,我们使用teradata数据库。因此,我添加了activiti依赖项,并创建了简单的bpmn流程以进行测试。我用h2 inmemory数据库测试了这个过程,效果很好。但当将项目配置为使用teradata时,我在spring boot应用程序启动时遇到了异常。 我在google上只找到了这个主题: https://hub
如果我想支持Chromium WebView,我将最低要求的SDK设置为API19:Android4.4(KitKat)。工作很好。 但是如果我将SDK设置为API 16 Android4.1,我就可以通过旧的WebKit WebView支持更多的设备。