Vaadin 7.1.1:无法加载widgetset

Pav*_*oba 6 javascript java servlets maven

运行最新的Vaadin 7.1.1应用程序时遇到问题.这主要是因为我找不到该版本的文档.Maven原型创建扩展Root的旧式应用程序.Root已经不见了,所以我试图扩展UI,就像在Book of Vaadin中那样.

web.xml中:

<servlet>
    <servlet-name>myservlet</servlet-name>
    <servlet-class>
        com.vaadin.server.VaadinServlet
    </servlet-class>

    <init-param>
        <param-name>UI</param-name>
        <param-value>cz.simplecoin.simplegui.MainScreen</param-value>
    </init-param>
</servlet>
Run Code Online (Sandbox Code Playgroud)

和MainScreen简单地说:

public class MainScreen extends UI {
Run Code Online (Sandbox Code Playgroud)

项目正确编译(使用maven).当我调试时,我看到MainScreen正确调用的init方法,但我看到只有空白屏幕(bootstrap JavavScript在那里)与警报:

错误:

无法加载widgetset:./ VAADIN/widgetsets/com.vaadin.DefaultWidgetSet/com.vaadin.DefaultWidgetSet.nocache.js?1393503103223

我想从Default widgetset开始.我几乎可以肯定,它在maven构建/依赖中存在某种问题.我不知道要使用哪些库:我尝试了两种变体(已评论)

pom.xml中:

<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-server</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<!--
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-themes</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-client</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-client-compiler</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-theme-compiler</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<dependency>
    <groupId>com.vaadin.addon</groupId>
    <artifactId>vaadin-charts</artifactId>
    <version>1.0.0</version>
</dependency>
-->
Run Code Online (Sandbox Code Playgroud)

我可能会尝试使用自己的widgetset,看看是否能解决问题.

Pav*_*oba 12

好吧,我最终通过从git直接调整最新的演示应用程序pom.xml得到了它.缺少widgetset

<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-client-compiled</artifactId>
    <version>${vaadin.version}</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)