I’m upgrading a fairly big project to Vaadin 8, and I think I’m really close to it actually working, except every time I run the application, it gives me an error:
Failed to load the widgetset: ./VAADIN/widgetsets/com.vaadin.DefaultWidgetSet/com.vaadin.DefaultWidgetSet.nocache.js?1491596745122
I think there’s an error in my POM, but I don’t know what it could be.
[code]
<?xml version="1.0" encoding="UTF-8"?>
4.0.0
<groupId>com.styleconnect</groupId>
<artifactId>Crescent-CRM-Vaadin-Maven</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>Crescent-CRM-Vaadin-Maven</name>
<prerequisites>
<maven>3</maven>
</prerequisites>
<properties>
<vaadin.version>8.0.5</vaadin.version>
<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
<jetty.plugin.version>9.3.9.v20160517</jetty.plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- If there are no local customisations, this can also be "fetch" or "cdn" -->
<vaadin.widgetset.mode>local</vaadin.widgetset.mode>
</properties>
<repositories>
<repository>
<id>vaadin-addons</id>
<url>http://maven.vaadin.com/vaadin-addons</url>
</repository>
</repositories>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-oauth2</artifactId>
<version>v2-rev124-1.22.0</version>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-bom</artifactId>
<version>${vaadin.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-compatibility-server</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-push</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-compatibility-client-compiled</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-themes</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.7</version>
</dependency>
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-servlet</artifactId>
<version>1.22.0</version>
</dependency>
<dependency>
<groupId>org.imgscalr</groupId>
<artifactId>imgscalr-lib</artifactId>
<version>4.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
mysql
mysql-connector-java
5.1.41
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.3.7.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework/spring-web -->
org.springframework
spring-web
4.3.7.RELEASE
org.springframework.security
spring-security-web
4.2.2.RELEASE
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<!-- Exclude an unnecessary file generated by the GWT compiler. -->
<packagingExcludes>WEB-INF/classes/VAADIN/widgetsets/WEB-INF/**</packagingExcludes>
</configuration>
</plugin>
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>${vaadin.version}</version>
<executions>
<execution>
<goals>
<goal>update-theme</goal>
<goal>update-widgetset</goal>
<goal>compile</goal>
<goal>compile-theme</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.0.0</version>
<!-- Clean up also any pre-compiled themes -->
<configuration>
<filesets>
<fileset>
<directory>src/main/webapp/VAADIN/themes</directory>
<includes>
<include>**/styles.css</include>
<include>**/styles.scss.cache</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<!-- Vaadin pre-release repositories -->
<id>vaadin-prerelease</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<repositories>
<repository>
<id>vaadin-prereleases</id>
<url>http://maven.vaadin.com/vaadin-prereleases</url>
</repository>
<repository>
<id>vaadin-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>vaadin-prereleases</id>
<url>http://maven.vaadin.com/vaadin-prereleases</url>
</pluginRepository>
<pluginRepository>
<id>vaadin-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
[/code]This is the build log.
[code]
[INFO]
Scanning for projects...
[INFO]
[INFO]
[INFO]
Building Crescent-CRM-Vaadin-Maven 1.0-SNAPSHOT
[INFO]
[INFO]
[INFO]
— maven-clean-plugin:3.0.0:clean (default-clean) @ Crescent-CRM-Vaadin-Maven —
[INFO]
Deleting /projects/Crescent-CRM-V/Crescent-CRM-Vaadin-Maven/src/main/webapp/VAADIN/themes (includes = [**/styles.css, **/styles.scss.cache]
, excludes = )
[INFO]
[INFO]
— vaadin-maven-plugin:8.0.5:update-theme (default) @ Crescent-CRM-Vaadin-Maven —
[INFO]
Updating theme VAADIN/themes/lightTheme
[INFO]
Widgetsets found from classpath:
[INFO]
Addon styles found from classpath:
[INFO]
[INFO]
Search took 16ms
[INFO]
Theme “VAADIN/themes/lightTheme” updated
[INFO]
Updating theme VAADIN/themes/darkTheme
[INFO]
Widgetsets found from classpath:
[INFO]
Addon styles found from classpath:
[INFO]
[INFO]
Search took 17ms
[INFO]
Theme “VAADIN/themes/darkTheme” updated
[INFO]
[INFO]
— vaadin-maven-plugin:8.0.5:update-widgetset (default) @ Crescent-CRM-Vaadin-Maven —
[WARNING]
GWT plugin is configured to detect modules, but none were found.
[INFO]
No widgetsets found - generating AppWidgetset if necessary.
[INFO]
Updating widgetset AppWidgetset
[INFO]
Adding resource directory to command classpath: /projects/Crescent-CRM-V/Crescent-CRM-Vaadin-Maven/src/main/resources
[INFO]
Adding resource directory to command classpath: /projects/Crescent-CRM-V/Crescent-CRM-Vaadin-Maven/target/generated-resources/gwt
[INFO]
Using com.vaadin:vaadin-client version 8.0.5
[INFO]
Using com.vaadin:vaadin-client-compiler version 8.0.5
[INFO]
Widgetsets found from classpath:
[INFO]
com.vaadin.DefaultWidgetSet in jar:file:/home/user/.m2/repository/com/vaadin/vaadin-client/8.0.5/vaadin-client-8.0.5.jar!/
[INFO]
Addon styles found from classpath:
[INFO]
[INFO]
Search took 8ms
[INFO]
[INFO]
— vaadin-maven-plugin:8.0.5:compile-theme (default) @ Crescent-CRM-Vaadin-Maven —
[INFO]
Updating theme VAADIN/themes/lightTheme
[INFO]
Theme “VAADIN/themes/lightTheme” compiled
[INFO]
Updating theme VAADIN/themes/darkTheme
[INFO]
Theme “VAADIN/themes/darkTheme” compiled
[INFO]
[INFO]
— maven-resources-plugin:2.6:resources (default-resources) @ Crescent-CRM-Vaadin-Maven —
[INFO]
Using ‘UTF-8’ encoding to copy filtered resources.
[INFO]
Copying 3 resources
[INFO]
Copying 0 resource
[INFO]
[INFO]
— maven-compiler-plugin:3.1:compile (default-compile) @ Crescent-CRM-Vaadin-Maven —
[INFO]
Changes detected - recompiling the module!
[INFO]
Compiling 71 source files to /projects/Crescent-CRM-V/Crescent-CRM-Vaadin-Maven/target/classes
[WARNING]
/projects/Crescent-CRM-V/Crescent-CRM-Vaadin-Maven/src/main/java/inventory/InventoryItem.java: Some input files use or override a deprecated API.
[WARNING]
/projects/Crescent-CRM-V/Crescent-CRM-Vaadin-Maven/src/main/java/inventory/InventoryItem.java: Recompile with -Xlint:deprecation for details.
[WARNING]
/projects/Crescent-CRM-V/Crescent-CRM-Vaadin-Maven/src/main/java/uiElements/TemplateRowUI.java: Some input files use unchecked or unsafe operations.
[WARNING]
/projects/Crescent-CRM-V/Crescent-CRM-Vaadin-Maven/src/main/java/uiElements/TemplateRowUI.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO]
— vaadin-maven-plugin:8.0.5:compile (default) @ Crescent-CRM-Vaadin-Maven —
[WARNING]
GWT plugin is configured to detect modules, but none were found.
[INFO]
Using com.vaadin:vaadin-client version 8.0.5
[INFO]
Using com.vaadin:vaadin-client-compiler version 8.0.5
[INFO]
[INFO]
— maven-resources-plugin:2.6:testResources (default-testResources) @ Crescent-CRM-Vaadin-Maven —
[INFO]
Using ‘UTF-8’ encoding to copy filtered resources.
[INFO]
skip non existing resourceDirectory /projects/Crescent-CRM-V/Crescent-CRM-Vaadin-Maven/src/test/resources
[INFO]
[INFO]
— maven-compiler-plugin:3.1:testCompile (default-testCompile) @ Crescent-CRM-Vaadin-Maven —
[INFO]
No sources to compile
[INFO]
[INFO]
— maven-surefire-plugin:2.12.4:test (default-test) @ Crescent-CRM-Vaadin-Maven —
[INFO]
No tests to run.
[INFO]
[INFO]
— maven-war-plugin:2.6:war (default-war) @ Crescent-CRM-Vaadin-Maven —
[INFO]
Packaging webapp
[INFO]
Assembling webapp [Crescent-CRM-Vaadin-Maven]
in
[/projects/Crescent-CRM-V/Crescent-CRM-Vaadin-Maven/target/Crescent-CRM-Vaadin-Maven-1.0-SNAPSHOT]
[INFO]
Processing war project
[INFO]
Copying webapp resources
[/projects/Crescent-CRM-V/Crescent-CRM-Vaadin-Maven/src/main/webapp]
[INFO]
Webapp assembled in [362 msecs]
[INFO]
Building war: /projects/Crescent-CRM-V/Crescent-CRM-Vaadin-Maven/target/Crescent-CRM-Vaadin-Maven-1.0-SNAPSHOT.war
[INFO]
[INFO]
BUILD SUCCESS
[INFO]
[INFO]
Total time: 32.677 s
[INFO]
Finished at: 2017-04-07T20:25:19+00:00
[INFO]
Final Memory: 30M/441M
[INFO]
[/code]Does anyone have any idea whats going on?