【发布时间】:2013-04-01 09:34:59
【问题描述】:
试图让 Grails + smartgwt 一起工作。
设置: Grails 2.2.1(同时安装,gwt + smartgwt 插件) SmartGWT 3.1 GWT 2.5
玩了几个小时后,tomcat 终于启动了。 (创建应用程序并编译模块)
项目位于: zuhause:8080/gwt3/
默认模块是 foo.bar 默认 index.gsp 看起来没问题
<script>
var isomorphicDir = "${createLinkTo(dir: 'gwt/foo.bar.fooBar/sc/')}";
</script>
<!-- -->
<!-- This script loads your compiled module. -->
<!-- If you add any GWT meta tags, they must -->
<!-- be added before this line. -->
<!-- -->
<script type="text/javascript" src="${createLinkTo(dir: 'gwt/foo.bar.foobar', file: 'foo.bar.foobar.nocache.js')}"></script>
找到nocache.js 在编译后的“nocache.js”中有一个对
的引用zuhause:8080/gwt3/static/gwt/foo.bar.foobar/sc/modules/ISC_Core.js 404 (Not Found)
“静态”的路径引用是我不知道在哪里配置的路径引用。
模块 xml 看起来像:
<module>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name="com.google.gwt.user.User"/>
<!-- Smart GWT -->
<inherits name="com.smartgwt.SmartGwt"/>
<inherits name="com.smartgwt.tools.SmartGwtTools"/>
<!-- Specify the module entry point class. -->
<entry-point class="foo.bar.client.foobar"/>
我已经扫描了我的完整项目,但从未在其中一个配置文件中定义过“静态”。
有什么想法吗?
提前致谢
【问题讨论】: