Vaadin GWT 编译失败:找不到 nocache.js 文件
每当我使用 eclipse 编译工具(插件)和 maven 安装来编译我的 widgetset 时。即使它位于我的 VAADIN/themes/widgetsets 文件夹下,tomcat 服务器也找不到该文件?
我得到的错误不是很有帮助:
Feb 20, 2012 7:20:47 PM com.vaadin.terminal.gwt.server.AbstractApplicationServlet serveStaticResourcesInVAADIN
INFO: Requested resource [VAADIN/widgetsets/org.bixin.dugsi.web.DugsiManagerWidgetset.gwt.xml/org.bixin.dugsi.web.DugsiManagerWidgetset.gwt.xml.nocache.js] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
编辑:
如果其他人注意到这一点,文件 nocache.js 位于 VAADIN/widgetsets/org.bixin.dugsi.web.DugsiManagerWidgetset 但服务器正在查找
VAADIN/widgetsets/org.bixin.dugsi.web.DugsiManagerWidgetset.gwt.xml/
由于某种原因它添加了 .gwt.xml
到文件目录?我该如何解决这个问题
如何在 eclipse 中刷新 tomcat?
Whenever i compile my widgetset using the eclipse compilation tool (plugin) and maven install. The tomcat server cannot find this file even though it's placed right under my VAADIN/themes/widgetsets folder?
The error i get isnt very helpful:
Feb 20, 2012 7:20:47 PM com.vaadin.terminal.gwt.server.AbstractApplicationServlet serveStaticResourcesInVAADIN
INFO: Requested resource [VAADIN/widgetsets/org.bixin.dugsi.web.DugsiManagerWidgetset.gwt.xml/org.bixin.dugsi.web.DugsiManagerWidgetset.gwt.xml.nocache.js] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
EDIT:
if anyone else noticed this, the file nocache.js is located in VAADIN/widgetsets/org.bixin.dugsi.web.DugsiManagerWidgetset but the server is looking in
VAADIN/widgetsets/org.bixin.dugsi.web.DugsiManagerWidgetset.gwt.xml/
it added .gwt.xml
to file directory for some reason? how can i fix this
How can i refresh tomcat within eclipse?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否检查过
.gwt.xml
后缀不在您的 web.xml 中。应该是:Have you checked that the
.gwt.xml
postfix is not in your web.xml. It should be:通过在属性 -> 上启用“详细编译输出”,您可以在控制台输出的前几行看到详细的 Vaadin 编译命令。瓦丁部分。您的文件可能位于除详细编译命令中指定之外的错误位置。
此外,您的相关文件可能位于包含空格字符的目录中。这可能是编译器的错误。
错误也可能是由另一个不相关的项目引起的。也许您可以通过检查详细的编译输出来找到真正的原因。
You can see detailed Vaadin compilation command on the first few lines of console output by enabling "verbose compilation output" on Properties -> Vaadin section. Your file may be located in wrong place other than specified in verbose compilation command.
Also, your related file may be located in a directory which has space characters. This may be an error for the compiler.
Error may be caused of another unrelated item too. Probably you can find the real cause by examining verbose compilation output.