Calendar add-on problems (widgetset)

Hello!

I installed the Calendar Add-On (commercial version) and now I’m having problems with the widgetset.

When I launch the application, a JavaScript alert appears:

Failed to load the widgetset: /pcc/VAADIN/widgetsets/at.silverstrike.pcc.widgetset.PccWidgetset/at.silverstrike.pcc.widgetset.PccWidgetset.nocache.js?1305632226936

  1. The following section is present in my pom.xml:
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>gwt-maven-plugin</artifactId>
				<!-- Version 2.1.0-1 works at least with Vaadin 6.5 -->
				<version>2.1.0-1</version>
				<configuration>
					<!-- if you don't specify any modules, the plugin will find them -->
					<!--modules> .. </modules -->
					<webappDirectory>${project.build.directory}/${project.build.finalName}/VAADIN/widgetsets</webappDirectory>
					<extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
					<runTarget>clean</runTarget>
					<hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp>
					<noServer>true</noServer>
					<port>8080</port>
					<soyc>false</soyc>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>resources</goal>
							<goal>compile</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<!-- Updates Vaadin 6.2+ widgetset definitions based on project dependencies -->
			<plugin>
				<groupId>com.vaadin</groupId>
				<artifactId>vaadin-maven-plugin</artifactId>
				<version>1.0.1</version>
				<executions>
					<execution>
						<configuration>
							<!-- if you don't specify any modules, the plugin will find them -->
							<!-- <modules> <module>${package}.gwt.MyWidgetSet</module> </modules> -->
						</configuration>
						<goals>
							<goal>update-widgetset</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

	...
		<dependency>
			<groupId>com.google.gwt</groupId>
			<artifactId>gwt-user</artifactId>
			<version>2.1.1</version>
			<scope>provided</scope>
		</dependency>
  1. When executing mvn jetty:run, I’m getting following cryptic error message:

[ERROR]
 17.05.2011 13:42:56 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
[ERROR]
 INFO: Widgetsets found from classpath:
[ERROR]
 	com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:C:/Users/DP118M/.m2/repository/com/vaadin/vaadin/6.5.7/vaadin-6.5.7.jar!/
[ERROR]
 	at.silverstrike.pcc.widgetset.PccWidgetset in file://D/dev/pcc/src/main/java
[ERROR]
 	com.vaadin.addon.calendar.gwt.CalendarWidgetset in jar:file:C:/Users/DP118M/.m2/repository/org/vaadin/addons/vaadin-calendar/1.0.1/vaadin-calendar-1.0.1.jar!/
[ERROR]
 
[ERROR]
 17.05.2011 13:42:56 com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
[ERROR]
 INFO: Search took 32ms
  1. When I execute

mvn vaadin:update-widgetset install

it fails due to failing test cases.

I don’t want to use dirty tricks like commenting out or removing failing tests.

Question: How can I make the application run with the Vaadin Calendar Add-On?

Thanks in advance

Dmitri

Rebuilding the project with Vaadin eclipse plugin doesn’t help :frowning:

Dmitri

When I try to re-compile the widgetset in eclipse, I’m getting this message:

Starting GWT compiler
17.05.2011 18:43:57 com.vaadin.tools.WidgetsetCompiler$1 run
SCHWERWIEGEND: Widgetset compilation failed
java.lang.ClassNotFoundException: com.google.gwt.dev.GWTCompiler
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at com.vaadin.tools.WidgetsetCompiler$1.run(WidgetsetCompiler.java:81)
	at java.lang.Thread.run(Unknown Source)

How can I fix it?

TIA

Dmitri

The aforementioned problem can be fixed by adding following dependency:

					<dependency>
						<groupId>com.google.gwt</groupId>
						<artifactId>gwt-dev</artifactId>
						<version>2.1.1</version>
						<scope>provided</scope>
					</dependency>

And just in case you are using Jetty, don’t forget to add WebContent to your resourcesAsCSV tag:

<resourcesAsCSV>src/main/webapp,${project.build.directory}/classes,WebContent</resourcesAsCSV>

Best regards

Dmitri