App Fails with web-toolkit. cannot find widgetsets

Hi

I tried to create a web-toolkit module but in that case, The app cannot be desplayed.
I have : Failed to load the widgetset: ./VAADIN/widgetsets/com.company.reproducer.web.toolkit.ui.AppWidgetSet/com.company.reproducer.web.toolkit.ui.AppWidgetSet.nocache.js?1567583164982

I read some forum topics :

my environement:

  • cuba studio 11.3-183
  • cuba platform 7.1.0
  • with and without forward proxy

What I did :

  • I create a new cuba app. I start it => OK : I see the login page.

  • I now creates a web-toolkit component. I start the app ==> KO :

  • web-app.properties contains
    cuba.web.widgetSet=com.company.reproducer.web.toolkit.ui.AppWidgetSet

  • tomcat\webapps\app\WEB-INF\lib contains app-web-toolkit-0.1-SNAPSHOT-client.jar but does not contain app-web-toolkit-0.1-SNAPSHOT.jar

  • the folder tomcat\webapps\app\VAADIN does not contain widgetsets sub folder

Some of the files in the project :

reproducer\modules\web-toolkit\src
reproducer\modules\web-toolkit\src\com
reproducer\modules\web-toolkit\src\com\company
reproducer\modules\web-toolkit\src\com\company\reproducer
reproducer\modules\web-toolkit\src\com\company\reproducer\web
reproducer\modules\web-toolkit\src\com\company\reproducer\web\toolkit
reproducer\modules\web-toolkit\src\com\company\reproducer\web\toolkit\ui
reproducer\modules\web-toolkit\src\com\company\reproducer\web\toolkit\ui\AppWidgetSet.gwt.xml


reproducer\deploy\tomcat\webapps\app\VAADIN\addons
reproducer\deploy\tomcat\webapps\app\VAADIN\themes

reproducer\deploy\tomcat\webapps\app\WEB-INF\web.xml

reproducer\deploy\tomcat\webapps\app\WEB-INF\lib
reproducer\deploy\tomcat\webapps\app\WEB-INF\lib\app-global-0.1-SNAPSHOT.jar
reproducer\deploy\tomcat\webapps\app\WEB-INF\lib\app-web-0.1-SNAPSHOT.jar
reproducer\deploy\tomcat\webapps\app\WEB-INF\lib\app-web-toolkit-0.1-SNAPSHOT-client.jar
reproducer\deploy\tomcat\webapps\app\WEB-INF\lib\cuba-client-7.1.0.jar
reproducer\deploy\tomcat\webapps\app\WEB-INF\lib\cuba-global-7.1.0.jar
reproducer\deploy\tomcat\webapps\app\WEB-INF\lib\cuba-gui-7.1.0.jar
reproducer\deploy\tomcat\webapps\app\WEB-INF\lib\cuba-web-7.1.0.jar
reproducer\deploy\tomcat\webapps\app\WEB-INF\lib\cuba-web-toolkit-7.1.0-client.jar
reproducer\deploy\tomcat\webapps\app\WEB-INF\lib\cuba-web-widgets-7.1.0.jar

any idea ?

regards,
guillaume

Hi,

Unfortunately, I can’t reproduce the problem. If the problem still persists, could you please attach a demo project? For now, I can suggest do the following:

  1. Stop the app
  2. Run gradle tasks below in the project root directory:

Linux, macOS

./gradlew clean dropTomcat setupTomcat ass deploy

Windows

gradlew clean dropTomcat setupTomcat ass deploy

Gleb

hi,

I made more tests and I suppose the problem comes form a difference of versions of Vaadin

  • the one used in cuba is 8.6.4.17
  • the one used by the component I wanted to integrate is V 8.7.x

I will test again when cuba will integrate this version and I 'll keep you informed.

rdgs.
guillaume

Hi

If it can help, we face same kind issues for more than 1 year. Never found a solution here and, unlike you @guillaume.lundy I cannot reproduce it in a sample project, which is frustrating.

For instance each time I add an add-on I have the issue, the web toolkit is compiled but not set in the jar (after cleaning everything several times). Workaround that works for me is to remove webtoolkit module then recreate it, then it works.

Might not be the solution in your case, but that could help others, seems that this issue is somewhat common.

Regards
Michael