Hello,
I’m having issues getting Vaadin to load a custom widgetset. I have it working correctly in a Vaadin project but in my Web App project in which Vaadin is integrated it refuses to work.
I’ve had a look around for anyone else having this issue but can’t seem to locate a solution.
I made my project include the Vaadin facet and the widgetset claims to build successfully but the debug output on the webpage says it is still loading the default (com.vaadin.terminal.gwt.DefaultWidgetSet).
Below is some of the outputs from the system, if there are other outputs that would prove useful please let me know.
web.xml
<context-param>
<description>Vaadin production mode</description>
<param-name>productionMode</param-name>
<param-value>false</param-value>
</context-param>
<servlet>
<servlet-name>Application</servlet-name>
<servlet-class>com.pinnaclecl.eyesee.UIApplication</servlet-class>
<init-param>
<description>Application widgetset</description>
<param-name>widgetset</param-name>
<param-value>com.pinnaclecl.eyesee.widgetset.EyeseeWidgetset</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>Application</servlet-name>
<url-pattern>/app/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Application</servlet-name>
<url-pattern>/VAADIN/*</url-pattern>
</servlet-mapping>
custom widgetset xml
<?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>
<inherits name="com.vaadin.terminal.gwt.DefaultWidgetSet" />
<inherits name="org.vaadin.vol.VolWidgetsetWithHostedScript" />
</module>
widgetset build output
Compiling widgetset com.pinnaclecl.eyesee.widgetset.EyeseeWidgetset
Updating GWT module description file...
Dec 5, 2012 10:59:53 AM com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
INFO: Widgetsets found from classpath:
org.vaadin.vol.VolWidgetsetWithHostedScript in jar:file:/Users/carlanderson/workspace/Java/Eyesee/WebContent/WEB-INF/lib/openlayers-wrapper-1.2.0.jar!/
com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:/Users/carlanderson/workspace/Java/Eyesee/WebContent/WEB-INF/lib/vaadin-6.8.4.jar!/
com.pinnaclecl.eyesee.widgetset.EyeseeWidgetset in file:/Users/carlanderson/workspace/Java/Eyesee/src
Dec 5, 2012 10:59:53 AM com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
INFO: Search took 6ms
Done.
Starting GWT compiler
Dec 5, 2012 11:00:28 AM com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getPaintablesHavingWidgetAnnotation
INFO: Searching for paintables..
Dec 5, 2012 11:00:29 AM com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getPaintablesHavingWidgetAnnotation
INFO: Search took 1000ms
Widgetset compilation completed
The resulting output on screen
Vaadin version is 6.8.4
Hoping someone can help
Carl