Vaadin 6.4 update problem

Hi,

I have a problem with updating my app to Vaadin 6.4.0 (from 6.3.3). When I try to recompile my widgetset I always get


[gwt:compile]

using GWT jars from project dependencies : 2.0.3
auto discovered modules [cz.flexibla.admin.MyAppWidgetSet]

establishing classpath list (scope = compile)
Compiling module cz.flexibla.admin.MyAppWidgetSet
   Finding entry point classes
      [ERROR]
 Unable to find type 'com.vaadin.terminal.gwt.client.DefaultWidgetSet'
         [ERROR]
 Hint: Check that the type name 'com.vaadin.terminal.gwt.client.DefaultWidgetSet' is really what you meant
         [ERROR]
 Hint: Check that your classpath includes all required source roots

My gwt xml is


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC
    "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN"
    "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
<module>

    <!--
        This is needed because of a bug in gwt-maven-plugin 1.2
        (http://jira.codehaus.org/browse/MGWT-147):
        modules without entry points are never compiled.
    -->
    <entry-point class="com.vaadin.terminal.gwt.client.DefaultWidgetSet" />


    <inherits name="com.vaadin.terminal.gwt.DefaultWidgetSet" />

    

    <inherits name="org.vaadin.codemirror.CodemirrorWidgetset" />

    <set-property name="user.agent" value="opera" />

    <inherits name="com.vaadin.addon.treetable.TreetableWidgetset" />
</module>

As I looked into the vaadin 6.4 jar, i have discovered, that the class DefaultWidgetSet is no longer included, but I havent found any solutions in 6.4 changelog…

so my question is simple…how to modify my gwt.xml to make it work (or if there is some new version of vaadin maven plugin, that solves this issue for me).

Thanks.

Pavel

Just remove the entry point row (along with the comment above it), and make sure you are using the version 1.3-SNAPSHOT of gwt-maven-plugin. The latest archetype versions (1.3.0) are correct, but your project seems to have been created with an older archetype version.

While the class DefaultWidgetSet has been removed, the inherits statement is correct - it refers to the DefaultWidgetSet.gwt.xml file, which still exists.

The client-side structure has changed a bit, the [tt]
entry-point
[/tt] shouldn’t be used any more and you should remove it altogether. The changes were done earlier, but the [tt]
com.vaadin.terminal.gwt.client.DefaultWidgetSet
[/tt] class was removed altogether in 6.4, so using it now gives an error. Maybe your .gwt.xml is much older and still refers to the old class. But, just remove the [tt]
entry-point
[/tt] line and you should be ok.

Thanks to both of you, it works now.

Pavel