【发布时间】:2013-09-14 08:34:42
【问题描述】:
我在eclipse 中使用maven 创建了一个vaadin Web 应用程序。特别是,我使用了vaadin-archetype-touchkit 中的原型book of vaadin (20.3.4)。在没有对默认生成的代码进行任何更改的情况下,我使用 maven 运行它,目标为clean package。然后我编译了Widgetset。当我尝试在 Tomcat 7 上运行它时,我收到来自网页的奇怪消息:
Failed to load the WidgetSet:
<WidgetSet Path>.DefaultWidgetSet.nocache.js
在控制台上,我还看到了错误消息:
INFO: Requested resource [/VAADIN/themes/reindeer/styles.css] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
INFO: Requested resource [/VAADIN/widgetsets/com.vaadin.DefaultWidgetSet/com.vaadin.DefaultWidgetSet.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.
INFO: Requested resource [/VAADIN/themes/reindeer/styles.css] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
令我震惊的是,maven 没有创建 web.xml 文件,尽管我在教程中读到 vaadin 7 不再需要它。我已阅读similar question,其中建议对web.xml 文件进行调整。我应该推断我还必须手动创建一个web.xml 文件吗?
我也觉得奇怪,当我对典型的 vaadin 7 应用程序的原型尝试相同的过程时,它运行正常。由于我必须开发一个 touchkit 应用程序,我将不胜感激任何建议想法,但我最初的尝试可能会缺少什么。
【问题讨论】:
标签: eclipse maven gwt web-applications vaadin