Vaadin + Maven + Eclipse = Widgetset Problems - AppWidgetset not found

Hi folks,

I’m trying to run my project with Vaadin on eclipse + Tomcat 7. I did the servlet configuration in the web.xml file and now I keep getting this error:

Hi Felipe,

Could you please edit your post and add the error message, as currently it’s empty :slight_smile:

Firstly, could you check if you have the widgetset defined in the web.xml as an init param:

[code]

myservlet

com.vaadin.server.VaadinServlet

UI com.ex.myprj.MyUI widgetset com.ex.myprj.AppWidgetSet [/code]You should also check your [i] pom.xml [/i] file to see if you have the [i] update-widgetset [/i] defined during the exectuion of the [i] vaadin-maven-plugin: [/i]

<plugin> <groupId>com.vaadin</groupId> <artifactId>vaadin-maven-plugin</artifactId> <version>${vaadin.plugin.version}</version> <executions> <execution> <goals> <goal>update-widgetset</goal> <!-- other goals --> </goals> </execution> </executions> </plugin> And as always, it would help a great deal if you are able to post some of your code, which would make it easier to find the problem.

Hope this helps,
Goran

Hi Goran,

I was trying my application now and it worked. I believe that it could be some kind of cache error or just was necessary to execute maven “clean install” again to generate the widgetset files.

My web.xml file contains the referente to my widgetset, as follow:

<init-param>
   <param-name>widgetset</param-name>
   <param-value>AppWidgetset</param-value>
</init-param>

It is not so clear to me when the widgetset files are moved to /WEB-INF/classes/widgetset directory and how come these files don’t appear when I open this directory on Eclipse.


PS: I tried to remove this question to avoid alarming about it, but I couldn’t do it.

Hi Felipe,

I assumed you were already doing a “clean install” :slight_smile: It’s good that you were able to fix your issue. Regarding the widgetset, if i.e. you look at the pom.xml of a Vaadin project generated by the Vaadin eclipse plugin, you will notice this configured for the maven-war-plugin:

[code]

org.apache.maven.plugins
maven-war-plugin
2.6

false

<!-- Exclude an unnecessary file generated by the GWT compiler. -->
<packagingExcludes>WEB-INF/classes/VAADIN/widgetsets/WEB-INF/**</packagingExcludes>
[/code]Basically, the GWT compiler generates those files which are then excluded from the 'war' as they are unnecessary.

BR,
Goran