最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Vaadin 7.1.1: Failed to load the widgetset - Stack Overflow

programmeradmin4浏览0评论

I have problem to run latest Vaadin 7.1.1 applications. It's mostly because I cannot find documentation for that version. Maven archetype creates old style app extending Root. Root is gone, so I'm trying to extend UI, like they do in Book of Vaadin.

web.xml:

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

    <init-param>
        <param-name>UI</param-name>
        <param-value>cz.simplecoin.simplegui.MainScreen</param-value>
    </init-param>
</servlet>

and MainScreen simply:

public class MainScreen extends UI {

Project piles (with maven) correctly. When I debug I see init method of MainScreen called correctly, but I see only blank screen (bootstrap JavavScript is there) with the alert:

Error:

Failed to load the widgetset:./VAADIN/widgetsets/.vaadin.DefaultWidgetSet/.vaadin.DefaultWidgetSet.nocache.js?1393503103223

I want to start with Default widgetset. I'm almost sure that it's somehow problem in maven build/dependency. I have no Idea what libraries to use: I tried both variants (mented)

pom.xml:

<dependency>
    <groupId>.vaadin</groupId>
    <artifactId>vaadin-server</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<!--
<dependency>
    <groupId>.vaadin</groupId>
    <artifactId>vaadin-themes</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<dependency>
    <groupId>.vaadin</groupId>
    <artifactId>vaadin-client</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<dependency>
    <groupId>.vaadin</groupId>
    <artifactId>vaadin-client-piler</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<dependency>
    <groupId>.vaadin</groupId>
    <artifactId>vaadin-theme-piler</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<dependency>
    <groupId>.vaadin.addon</groupId>
    <artifactId>vaadin-charts</artifactId>
    <version>1.0.0</version>
</dependency>
-->

I may try to use own widgetset,to see if that solves the issue.

I have problem to run latest Vaadin 7.1.1 applications. It's mostly because I cannot find documentation for that version. Maven archetype creates old style app extending Root. Root is gone, so I'm trying to extend UI, like they do in Book of Vaadin.

web.xml:

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

    <init-param>
        <param-name>UI</param-name>
        <param-value>cz.simplecoin.simplegui.MainScreen</param-value>
    </init-param>
</servlet>

and MainScreen simply:

public class MainScreen extends UI {

Project piles (with maven) correctly. When I debug I see init method of MainScreen called correctly, but I see only blank screen (bootstrap JavavScript is there) with the alert:

Error:

Failed to load the widgetset:./VAADIN/widgetsets/.vaadin.DefaultWidgetSet/.vaadin.DefaultWidgetSet.nocache.js?1393503103223

I want to start with Default widgetset. I'm almost sure that it's somehow problem in maven build/dependency. I have no Idea what libraries to use: I tried both variants (mented)

pom.xml:

<dependency>
    <groupId>.vaadin</groupId>
    <artifactId>vaadin-server</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<!--
<dependency>
    <groupId>.vaadin</groupId>
    <artifactId>vaadin-themes</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<dependency>
    <groupId>.vaadin</groupId>
    <artifactId>vaadin-client</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<dependency>
    <groupId>.vaadin</groupId>
    <artifactId>vaadin-client-piler</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<dependency>
    <groupId>.vaadin</groupId>
    <artifactId>vaadin-theme-piler</artifactId>
    <version>${vaadin.version}</version>
</dependency>
<dependency>
    <groupId>.vaadin.addon</groupId>
    <artifactId>vaadin-charts</artifactId>
    <version>1.0.0</version>
</dependency>
-->

I may try to use own widgetset,to see if that solves the issue.

Share Improve this question edited Feb 27, 2014 at 15:50 Sandeep Chatterjee 3,2499 gold badges34 silver badges52 bronze badges asked Feb 27, 2014 at 12:41 Pavel NiedobaPavel Niedoba 1,5774 gold badges21 silver badges42 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 12

Well I got it finally up by adapting latest demo app pom.xml directly from git. Missing widgetset is in

<dependency>
    <groupId>.vaadin</groupId>
    <artifactId>vaadin-client-piled</artifactId>
    <version>${vaadin.version}</version>
</dependency>

Than I noticed that if you run tomcat as an adapter in eclipse and you deploy your project into it, then sometimes after you have build your project, the target folder is not in sync with eclipse and you have to press F5 on it. After this action the widgetset could be loaded.

发布评论

评论列表(0)

  1. 暂无评论