Migration (with compatibility) widgetset

Hi,

I have problems with the migration to Vaadin 8.
Here are my dependencies:

vaadin-compatibility-server
vaadin-compatibility-themes
vaadin-compatibility-client-compiled
vaadin-spring
vaadin-spring-boot
confirmdialog

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




but I think I need com.vaadin.v7.Vaadin7WidgetSet in there.

Full pom.xml is here: http://pastebin.com/t78shb0k

Thanks for helping,
Roland

See if this helps:
https://vaadin.com/forum#!/thread/15031831

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:

Try removing the
vaadin-client
dependency.

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
.

4.0.0 ch.moda.server endUserInteractions 0.1-SNAPSHOT war endUserInteractions All end user client interaction will be managed via this interface. org.springframework.boot spring-boot-starter-parent 1.4.1.RELEASE UTF-8 1.8 ${java.version} ${java.version} 6.8.8 7.7.7 7.7.7 9.3.9.v20160517 UTF-8 1.8 1.8 local org.springframework.boot spring-boot-starter-data-jpa com.vaadin vaadin-spring-boot-starter 1.1.1 org.springframework.boot spring-boot-starter-test test org.springframework.boot spring-boot-starter-web org.liquibase liquibase-core org.postgresql postgresql runtime net.sf.ehcache ehcache-core 2.6.11 org.springframework.boot spring-boot-starter-test test org.hibernate hibernate-jpamodelgen commons-fileupload commons-fileupload 1.3.2 com.google.guava guava 14.0.1 com.google.guava guava 14.0.1 com.google.guava guava 19.0 org.apache.poi poi 3.14 org.springframework.boot spring-boot-starter-websocket org.apache.poi poi-ooxml 3.14 org.apache.poi poi-ooxml-schemas 3.14 org.springframework.boot spring-boot-starter-amqp org.springframework.boot spring-boot-starter-security org.springframework.security spring-security-messaging org.webjars webjars-locator org.webjars bootstrap 3.3.7 org.webjars flat-ui bcaf2de95e org.webjars sockjs-client 1.0.2 org.webjars stomp-websocket 2.3.3 org.webjars.bower angular 1.5.8 org.webjars.bower angular-ui-bootstrap-bower 1.3.3 org.springframework.boot spring-boot-starter-tomcat provided ch.moda.server commonLibs 0.0.1-SNAPSHOT compile org.assertj assertj-core com.vaadin.addon vaadin-charts 3.2.0 org.springframework.session spring-session com.vaadin vaadin-shared javax.servlet javax.servlet-api 3.0.1 provided com.vaadin vaadin-server com.vaadin vaadin-push com.vaadin vaadin-themes com.vaadin.addon vaadin-charts 3.2.0 com.vaadin vaadin-bom 7.7.5 pom import src/main/resources src/main/webapp org.apache.maven.plugins maven-war-plugin 2.6 false WEB-INF/classes/VAADIN/widgetsets/WEB-INF/** com.vaadin vaadin-maven-plugin ${vaadin.plugin.version} update-widgetset update-theme org.codehaus.mojo gwt-maven-plugin 2.3.0-1 src/main/webapp/VAADIN/widgetsets -Xmx512M -Xss1024k clean ${project.build.directory}/${project.build.finalName} true false org.apache.maven.plugins maven-clean-plugin 3.0.0 src/main/webapp/VAADIN/themes **/styles.css **/styles.scss.cache org.eclipse.jetty jetty-maven-plugin ${jetty.plugin.version} 2 org.eclipse.jetty jetty-maven-plugin ${jetty.plugin.version} 2 org.springframework.boot spring-boot-maven-plugin com.vaadin vaadin-maven-plugin ${vaadin.version} org.springframework.boot spring-boot-maven-plugin false vaadin-addons http://maven.vaadin.com/vaadin-addons sonatype-nexus-releases Sonatype Nexus Snapshots https://oss.sonatype.org/content/repositories/snapshots spring-snapshots Spring Snapshots https://repo.spring.io/snapshot true typesafe Typesafe Repository http://repo.typesafe.com/typesafe/releases/ spring-milestones Spring Milestones https://repo.spring.io/milestone false vaadin-prerelease false vaadin-prereleases http://maven.vaadin.com/vaadin-prereleases vaadin-snapshots https://oss.sonatype.org/content/repositories/vaadin-snapshots/ false true vaadin-prereleases http://maven.vaadin.com/vaadin-prereleases vaadin-snapshots https://oss.sonatype.org/content/repositories/vaadin-snapshots/ false true

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:

com.vaadin
vaadin-maven-plugin
${vaadin.plugin.version}

-Xmx1G -Xss1024k
${basedir}/target/classes/VAADIN/widgetsets
false
false
OBF
true




update-theme
update-widgetset
compile
compile-theme



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

ok

Great!

vaadin-client is included in vaadin-compatibility-client