【问题标题】:The RequestFactory ValidationTool must be run for the ... ApplicationRequestFactory RequestFactory type必须为 ... ApplicationRequestFactory RequestFactory 类型运行 RequestFactory ValidationTool
【发布时间】:2012-05-19 22:04:18
【问题描述】:

我想在 Ubuntu 12.04 的 Springsource Tool Suite 2.9.1 中使用 Spring ROO 1.2.1 + GWT 2.6.1。 按照http://www.bytespring.com/blog/spring-roo-integration-gwt 中的视频之类的指南,我可以使用 roo 通过“费用”脚本创建一个新项目,然后使用 mvn gwt:run 运行它。 好的,比我想在 STS 中管理它,现在问题开始了。 好像是m2e的问题。

在 pom.xml 中,ID 为“exec-maven-plugin”的工件的标签有这个错误:

Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:exec-maven-plugin:1.2:exec (execution: default, phase: process-classes)

我尝试遵循How to solve "Plugin execution not covered by lifecycle configuration" for Spring Data Maven Builds 中建议的解决方案。

带有“pluginManagement”标签的“plugins”标签。现在错误不再出现。

然后我运行应用程序,“运行为 -> Web 应用程序”... HTML 页面选择:ApplicationScaffold.html。

网页出现,但有一个窗口显示此错误:

Error: One or more exceptions caught, see full set in UmbrellaException#getCause".

STS 控制台显示

"java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the org.springsource.roo.extrack.client.managed.request.ApplicationRequestFactory RequestFactory type".

为了解决这个问题,我按照http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation中的说明进行操作。

1)在Project Properties->Java Compiler->Annotation Properties我启用了项目特定的设置,注解处理和编辑器中的处理,gen.source目录:.apt_generated;详细错误。

2) 在 Factory Path 中,启用项目特定设置,并添加位于

的外部 requestfactory-apt.jar
/home/toni/springsource/sts-2.9.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201205091048-rel-r37/gwt-2.4.0

(对吗??)

(我不明白“验证工具”和“Maven 构建”部分对我来说是否重要)

现在我尝试重新运行(在项目重建后),同样的错误仍然存​​在。

有人解决了这个问题??如何?请逐步解释,因为我不是专家,这是我第一次使用 spring 和 gwt...

【问题讨论】:

    标签: eclipse spring gwt sts-springsourcetoolsuite m2e


    【解决方案1】:

    这看起来就像我不久前遇到的同样的问题,在 AJDT(Eclipse 的 AspectJ 编译器)中(经过大量挖掘)似乎下降到 a bug,这意味着它目前无法处理 Java 6 注释(使用Roo)。

    A comment 在已连接的 GWT 错误报告中描述了以下解决方法:

    1. 将 AspectJ 构建器移动到项目属性、构建器页面中 Java 构建器的前面(顶部)。
    2. 清理并构建项目。
    3. 将 .apt_generated 目录中生成的 Java/class 文件复制并保存到其他位置。
    4. 将 Java 构建器移回 AspectJ 构建器前面。
    5. 清理并重建项目
    6. 将上述 3 中的类文件复制到项目的类路径中。

    或者,您可以在 Eclipse 之外构建您的项目 - 非 IDE AspectJ 编译器 ajc 不会遇到此问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-04-28
      • 2011-12-17
      • 1970-01-01
      • 2011-06-25
      • 2011-12-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多