Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Migration (with compatibility) widgetset
Hi,
I have problems with the migration to Vaadin 8.
Here are my dependencies:
<artifactId>vaadin-compatibility-server</artifactId>
<artifactId>vaadin-compatibility-themes</artifactId>
<artifactId>vaadin-compatibility-client-compiled</artifactId>
<artifactId>vaadin-spring</artifactId>
<artifactId>vaadin-spring-boot</artifactId>
<artifactId>confirmdialog</artifactId>
When compiling I see:
Widgetsets found from classpath:
com.eqs.lei.LeiWidgetset in file:/C:/Users/rolandp/git/lei-gitlab/src/main/resources
com.vaadin.DefaultWidgetSet in jar:file:C:/Users/rolandp/.m2/repository/com/vaadin/vaadin-client/8.0.0/vaadin-client-8.0.0.jar!/
Then this error:
06.03.17, 12:16:54 MEZ: [ERROR] Mär 06, 2017 12:16:54 PM com.vaadin.sass.internal.handler.SCSSErrorHandler severe
06.03.17, 12:16:54 MEZ: [ERROR] SCHWERWIEGEND: Import '../valo/valo.scss' in 'C:\Users\rolandp\git\lei-gitlab\src\main\resources\VAADIN\themes\lei\styles.scss' could not be found
06.03.17, 12:16:54 MEZ: [ERROR] Mär 06, 2017 12:16:54 PM com.vaadin.sass.internal.handler.SCSSErrorHandler severe
06.03.17, 12:16:54 MEZ: [ERROR] SCHWERWIEGEND: Mixin Definition: valo not found
It always overwrites my LeiWidgetset.gwt.xml with
<module>
<inherits name="com.vaadin.DefaultWidgetSet" />
</module> but I think I need com.vaadin.v7.Vaadin7WidgetSet in there.
Full pom.xml is here: http://pastebin.com/t78shb0k
Thanks for helping,
Roland
Unfortunately not. Also tried replacing @Widgetset("com.eqs.lei.LeiWidgetset") with @Widgetset("com.vaadin.v7.Vaadin7WidgetSet"), still the same error.
Sounds like you have your own widgetset. Remove the vaadin-compatibility-client-compiled dependency and add vaadin-compatibility-client.
I have the same problem!
Is it because I use a v7 add-one? (EasyUploads)
Thanks
Yes, I have my own widgetset. Compilation still stops with the same error:
07.03.17, 09:23:46 MEZ: [INFO] Widgetsets found from classpath:
07.03.17, 09:23:46 MEZ: [INFO] com.vaadin.v7.Vaadin7WidgetSet in jar:file:C:/Users/rolandp/.m2/repository/com/vaadin/vaadin-compatibility-client/8.0.0/vaadin-compatibility-client-8.0.0.jar!/
07.03.17, 09:23:46 MEZ: [INFO] com.eqs.lei.LeiWidgetset in file:/C:/Users/rolandp/git/lei-gitlab/src/main/resources
07.03.17, 09:23:46 MEZ: [INFO] com.vaadin.DefaultWidgetSet in jar:file:C:/Users/rolandp/.m2/repository/com/vaadin/vaadin-client/8.0.0/vaadin-client-8.0.0.jar!/
07.03.17, 09:23:46 MEZ: [INFO] Addon styles found from classpath:
07.03.17, 09:23:46 MEZ: [INFO]
07.03.17, 09:23:46 MEZ: [INFO] Search took 382ms
07.03.17, 09:23:46 MEZ: [WARN] The artifact jdom:jdom:jar:1.1 has been relocated to org.jdom:jdom:jar:1.1
07.03.17, 09:23:48 MEZ: [INFO] Updating theme VAADIN\themes\lei
07.03.17, 09:23:49 MEZ: [ERROR] Mär 07, 2017 9:23:49 AM com.vaadin.sass.internal.handler.SCSSErrorHandler severe
07.03.17, 09:23:49 MEZ: [ERROR] SCHWERWIEGEND: Import '../valo/valo.scss' in 'C:\Users\rolandp\git\lei-gitlab\src\main\resources\VAADIN\themes\lei\styles.scss' could not be found
07.03.17, 09:23:49 MEZ: [ERROR] Mär 07, 2017 9:23:49 AM com.vaadin.sass.internal.handler.SCSSErrorHandler severe
07.03.17, 09:23:49 MEZ: [ERROR] SCHWERWIEGEND: Mixin Definition: valo not found
07.03.17, 09:23:49 MEZ: [ERROR] Compiling theme "VAADIN\themes\lei" failed Command [[...removed...]] failed with status 1
The LeiWidgetset.gwt.xml now contains:
<inherits name="com.vaadin.DefaultWidgetSet" />
<inherits name="com.vaadin.v7.Vaadin7WidgetSet" />
i am using vaadin 7.7 maven project
when i add chart addons in pom.xml and clean maven and widgetset and re-compile both.
but gwt.xml file not created in maven project.
my dout's:
1)In normal vaadin7.7, gwt.xml file is created , by adding depedencies in ivy.xml .
2)In maven project where gwt.xml file is created ?
3)how can i add chart addons in vaadin 7.7 using maven.?
---------------------------------------------
kindly any one help to solve this issue.
I have no dependency on vaadin-client. I tried removing vaadin-compatibility-client and also confirmdialog but the error persists
The output you shared shows that you have vaadin-client in the classpath:
07.03.17, 09:23:46 MEZ: com.vaadin.DefaultWidgetSet in jar:file:C:/Users/rolandp/.m2/repository/com/vaadin/vaadin-client/8.0.0/vaadin-client-8.0.0.jar!/
I don't know if there's a transitive dependency from somewhere. Can you share your pom.xml and UI definition with the annotations (skip the implementation)? Also, I think you need vaadin-compatibility-client.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ch.moda.server</groupId>
<artifactId>endUserInteractions</artifactId>
<version>0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>endUserInteractions</name>
<description>
All end user client interaction will be managed via this interface.
</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.4.1.RELEASE</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<!-- dependencies -->
<testng.version>6.8.8</testng.version>
<vaadin.version>7.7.7</vaadin.version>
<vaadin.plugin.version>7.7.7</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>
<dependencies>
<!--
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency>
-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-spring-boot-starter</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!--
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-actuator</artifactId> </dependency>
-->
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-core</artifactId>
<version>2.6.11</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>14.0.1</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>14.0.1</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>19.0</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.14</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.14</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>3.14</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-messaging</artifactId>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>webjars-locator</artifactId>
</dependency>
<!--
Uncomment when deploying on Wildfly <dependency> <groupId>org.webjars</groupId> <artifactId>webjars-locator-jboss-vfs</artifactId> <version>0.1.0</version> </dependency>
-->
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootstrap</artifactId>
<version>3.3.7</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>flat-ui</artifactId>
<version>bcaf2de95e</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>sockjs-client</artifactId>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>stomp-websocket</artifactId>
<version>2.3.3</version>
</dependency>
<dependency>
<groupId>org.webjars.bower</groupId>
<artifactId>angular</artifactId>
<version>1.5.8</version>
</dependency>
<dependency>
<groupId>org.webjars.bower</groupId>
<artifactId>angular-ui-bootstrap-bower</artifactId>
<version>1.3.3</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>ch.moda.server</groupId>
<artifactId>commonLibs</artifactId>
<version>0.0.1-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin.addon</groupId>
<artifactId>vaadin-charts</artifactId>
<version>3.2.0</version>
</dependency>
<!--
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-websocket</artifactId> <version>4.0.0.RELEASE</version> </dependency>
-->
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-shared</artifactId>
</dependency>
<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-server</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-push</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-themes</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin.addon</groupId>
<artifactId>vaadin-charts</artifactId>
<version>3.2.0</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-bom</artifactId>
<version>7.7.5</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<!-- <directory>src/main/resources</directory> -->
<directory>src/main/webapp</directory>
<!-- <filtering>true</filtering> -->
</resource>
</resources>
<!-- vaadins -->
<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.plugin.version}</version>
<executions>
<execution>
<goals>
<goal>update-widgetset</goal>
<goal>update-theme</goal>
<!-- <goal>compile-theme</goal> -->
<!--
<goal>update-theme</goal> <goal>update-widgetset</goal> <goal>compile</goal> <goal>compile-theme</goal>
-->
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>2.3.0-1</version>
<configuration>
<webappDirectory>src/main/webapp/VAADIN/widgetsets</webappDirectory>
<extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
<runTarget>clean</runTarget>
<hostedWebapp>
${project.build.directory}/${project.build.finalName}
</hostedWebapp>
<noServer>true</noServer>
<soyc>false</soyc>
</configuration>
<!--
<executions> <execution> <goals> <goal>resources</goal> <goal>compile</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>
<!--
The Jetty plugin allows us to easily test the development build by running jetty:run on the command line.
-->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<configuration>
<scanIntervalSeconds>2</scanIntervalSeconds>
</configuration>
</plugin>
<!--
The Jetty plugin allows us to easily test the development build by running jetty:run on the command line.
-->
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.plugin.version}</version>
<configuration>
<scanIntervalSeconds>2</scanIntervalSeconds>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>${vaadin.version}</version>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<addResources>false</addResources>
</configuration>
</plugin>
</plugins>
<!-- vaadin -->
</build>
<repositories>
<repository>
<id>vaadin-addons</id>
<url>http://maven.vaadin.com/vaadin-addons</url>
</repository>
<repository>
<id>sonatype-nexus-releases</id>
<name>Sonatype Nexus Snapshots</name>
<url>
https://oss.sonatype.org/content/repositories/snapshots
</url>
</repository>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>typesafe</id>
<name>Typesafe Repository</name>
<url>http://repo.typesafe.com/typesafe/releases/</url>
</repository>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<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>
</project>
above is my pom.xml
can u help me how to create gwt.xml
defaultwidgetset.gwt.xml?
i am new for maven can u plz help me.
When I search for dependecies of "client" in Eclipse I see that vaadin-compatibility-client depends on vaadin-client. Thats all.
Maybe I need another setting here:
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>${vaadin.plugin.version}</version>
<configuration>
<extraJvmArgs>-Xmx1G -Xss1024k</extraJvmArgs>
<webappDirectory>${basedir}/target/classes/VAADIN/widgetsets</webappDirectory>
<draftCompile>false</draftCompile>
<compileReport>false</compileReport>
<style>OBF</style>
<strict>true</strict>
</configuration>
<executions>
<execution>
<goals>
<goal>update-theme</goal>
<goal>update-widgetset</goal>
<goal>compile</goal>
<goal>compile-theme</goal>
</goals>
</execution>
</executions>
</plugin>
Alright... Sorry, I've been quite distracted. I think the problem is the the vaadin-compatibility-themes dependency. That's for the old themes (reindeer, runo, chameleon). But as you are using Valo, you need the vaadin-themes dependency instead. Hope that helps.
@Gopinath A, can you please use a new separate thread? Your issue is not related to the initial topic in this one. Thanks!
Excellent!
[In the voice of Monty Burns]
Dependencies are vaadin-compatibility-server, vaadin-themes, vaadin-compatibility-client.
Other add-ons are not a problem as long as they are available for vaadin 8
Alejandro Duarte: @Gopinath A, can you please use a new separate thread? Your issue is not related to the initial topic in this one. Thanks!
ok
Alejandro Duarte: Try removing the vaadin-client dependency.
vaadin-client is included in vaadin-compatibility-client