Vaadin : Widgetset does not contain an implementation.

Hello friends,

I was able to integrate a Vaadin module into our Spring based application. After integration I wanted to run a demo of gantt-charts which is an add-on for Vaadin and found it on github
https://github.com/tltv/gantt/tree/master/gantt-demo
. Inside the folder, there is a demo project. All is fine, except I am having a problem with widgetsets.

Screenshot of the problem :

Also I get a non-serializable error :

Nov 18, 2015 3:16:48 PM org.apache.catalina.session.StandardManager startInternal
SEVERE: Exception loading sessions from persistent storage
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.journaldev.spring.Vaadin.Util$5
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1355)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2000)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1924)

UI code :

@Theme("demo")
@SpringUI
@SuppressWarnings("serial")
public class MyVaadinUI extends UI {


    @WebServlet(value = "/testvaadin", asyncSupported = true)
    @VaadinServletConfiguration(productionMode = false, ui = MyVaadinUI.class, widgetset = "org.tltv.gantt.demo.DemoWidgetSet")
    public static class Servlet extends SpringVaadinServlet {
    }

// Code for gaant-chart taken from demo, code too big and not important //for error
// Pastebin link : http://pastebin.com/mi1ZhH30
}

POM.xml :

vaadin-addons http://maven.vaadin.com/vaadin-addons
<!--- Vaadin dependency -->
<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-spring</artifactId>
    <version>1.0.0</version>
</dependency>

<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-themes</artifactId>
    <version>${vaadin.version}</version>
</dependency>

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

<dependency>
    <groupId>com.vaadin</groupId>
    <artifactId>vaadin-push</artifactId>
    <version>${vaadin.version}</version>
</dependency>

<dependency>
    <groupId>org.tltv.gantt</groupId>
    <artifactId>gantt-addon</artifactId>
    <version>0.9.0</version>
</dependency>

web.xml :

 <servlet-mapping>
        <servlet-name>vaadin-spring</servlet-name>
        <url-pattern>/*</url-pattern>
    </servlet-mapping>
    <servlet>
        <servlet-name>cometd</servlet-name>
        <servlet-class>org.cometd.server.CometDServlet</servlet-class>
        <init-param>
            <param-name>timeout</param-name>
            <param-value>300000</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
        <async-supported>true</async-supported>
    </servlet>

What am I doing wrong? Kindly let me know. Thanks a lot. :slight_smile:

Anyone guys?

Hello,

Did you compile Widgetset ?

https://vaadin.com/book/vaadin6/-/page/addons.compiling.html

Regards

Yes, I did by issuing mvn vaadin:update-widgetset. I get an error :

INFO: Requested resource 
[/VAADIN/widgetsets/com.journaldev.demoset.gwt.xml/com.journaldev.demoset.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.
Nov 19, 2015 9:53:17 AM com.vaadin.server.VaadinServlet serveStaticResourcesInVAADIN
INFO: Requested resource 
[/VAADIN/widgetsets/com.journaldev.demoset.gwt.xml/com.journaldev.demoset.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.