【问题标题】:Smart GWT app displays nothing because nocache.js file not found errorSmart GWT 应用程序不显示任何内容,因为 nocache.js 文件未找到错误
【发布时间】:2014-04-01 10:47:00
【问题描述】:

我有一个名为 AwesomesmartGWTUIProject 的智能 GWT 应用示例,来自 javacodegeeks

它的包是com.javacodegeeks.smartgwt.appui

在 Eclipse 中,当我尝试将其作为 Web 应用程序运行时,出现以下错误

In order for your application to run correctly, you will need to include these tags in   your host page directly. In order to avoid this error, you will need to remove the script tags from the gwt.xml file, or add this property to the gwt.xml file: <set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/>
[ERROR] shell failed in doSlowStartup method
Mar 31, 2014 10:07:41 PM com.google.appengine.tools.development.LocalResourceFileServlet  doGet
WARNING: No file found for: /awesomesmartgwtuiproject/com.javacodegeek.smartgwt.appui.awesomesmartgwtuiproject.nocache.js

当我尝试在浏览器中运行它时,它根本不显示任何内容。我是 smartGwt 的新手,所以对配置不太熟悉。有什么想法吗?

【问题讨论】:

    标签: java eclipse gwt smartgwt


    【解决方案1】:

    您是否编译了您的 GWT 项目?

    您的项目中是否在正确位置生成了 nocache.js 文件?

    你必须阅读Understanding the GWT Compiler

    上面的链接中定义了所有内容,包括项目结构、GWT 编译等。

    在模块 gwt.xml 文件中使用 rename-to 属性。

    直接来自上面的链接:

    您可能已经注意到其中一个生成的文件以您的模块命名,后跟一个 .nocache.js 后缀。这是 GWT 引导文件。与输出子目录 war/ 类似,此文件的名称也由模块 XML 文件中的 rename-to 属性控制。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-30
      • 1970-01-01
      • 2018-11-08
      • 1970-01-01
      • 2013-06-11
      • 1970-01-01
      相关资源
      最近更新 更多