【问题标题】:gwt compoenents does not rendergwt 组件不呈现
【发布时间】:2013-01-12 07:47:32
【问题描述】:

在我们昨天部署到 google app engine for java 之后,gwt 组件突然停止了渲染。

我们已经尝试了很多次。在调查萤火虫时,我看到了

错误:访问属性“文档”的权限被拒绝 http://1-ps.googleusercontent.com/x/s.sakshumweb-hrd.appspot.com/www.sakshum.org/sakshumwebgae/B365B696BAAE7DD00F53BC81F86AF51C.cache.html 2860行

我不确定为什么会这样。有人可以请教

允许的静态文件是

<static-files>
        <include path="/**.xml" expiration="30d 1h" />
        <include path="/**.txt" expiration="30d 1h" />
        <include path="/**.html" expiration="30d 1h" />
        <include path="/favicon.ico" expiration="30d 1h"/>
        <include path="/**.ico" expiration="30d 1h" />
    <include path="/**.js" expiration="30d 1h" />
    <include path="/**.css" expiration="30d 1h" />
    <include path="/**.gif" expiration="30d 1h" />
    <include path="/**.JPG" expiration="30d 1h" />
    <include path="/**.jpg" expiration="30d 1h" />
    <include path="/**.jpeg" expiration="30d 1h" />
    <include path="/**.png" expiration="30d 1h" />
     <include path="/**.htc" expiration="30d 1h" />
     <include path="*.nocache." expiration="0s" />
     <include path="*.cache." expiration="365d" />
     <exclude path="**.gwt.rpc" />
</static-files>

【问题讨论】:

    标签: google-app-engine gwt


    【解决方案1】:

    .cache.js 是跨域加载的(从 www.sakshum.org1-ps.googleusercontent.com。URL 中的 ps 可能代表 Page Speed,它会重写指向静态资源的链接。

    我不知道它在 GAE/J 上是如何工作的,但要么禁用 Page Speed(如果可能的话),要么使用 xsiframe 链接器(在您的 gwt.xml 中)重新编译您的应用程序:

    &lt;add-linker name="xsiframe" /&gt;

    【讨论】:

    • 我在我的应用程序中根本看不到 gwt.xml。应该在哪里?
    • 好的,我认为通过添加到 gwt.xml 你的意思是 .gwt.xml 我做到了,现在想编译我得到加载继承的模块'vik.sakshum.sakshumweb.AdminModule' [错误]无效的链接器名称'xsiframe' [错误]第4行:处理元素'add-linker'时出现意外异常
    • 您使用的是哪个版本的 GWT?!也许试试&lt;add-linker name="xs" /&gt;
    • 确保将该行放在 &lt;inherits/&gt; 行之后。链接器都在com.google.gwt.core.Core 中定义,因此必须继承之前你可以&lt;add-linker/&gt;
    猜你喜欢
    • 2011-04-30
    • 2017-12-02
    • 2018-09-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-01
    • 2018-10-21
    • 2017-10-06
    相关资源
    最近更新 更多