Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Vaadin arquetype and wildfly
I have created a maven project using vaadin-arquetype.
I did Run as --> Maven install (to create the war package)
I deployed to the wildfly server (adding the package from local repository)
In the browser (loclahost:8080/app) i saw the ERROR:
FAILED TO LOAD WIDGETSET.
I dont know what is the problem
Someone could help me?
In the pom i found the dependency vaadin - client - compìler commented.
And the info...
Needed when using the widgetset optimizer (custom ConnectorBundleLoaderFactory).
For widgetset compilation, vaadin-client-compiler is automatically added on the
compilation classpath by vaadin-maven-plugin so normally there is no need for an
I had to commented the scope so now my POM is ...
Now it works but i don't know why...
- Why did i need the dependency vaadin-client-compiler?
- Why vaadin-maven-plugin did't add the compiler?
- Why have i comment the provided scope?
In the section Create a project with Eclipse (using eclipse maven plugin) it is said...
Before running the project for the first time, select Compile Widgetset and Theme from the menu shown in Compile Widgetset and Theme Menu.
But in create project with maven they don't mentioned it. But it's said ...
If you use Vaadin add-ons that include a widget set or make your custom widgets, you need to enable widget set compilation in the POM.
In the vaadin libraries section it is said:
A pre-compiled Vaadin Client-Side Engine (widget set) that includes all the basic built-in widgets in Vaadin. This library is not needed if you compile the application widget set with the Vaadin Client Compiler.
So when i create a maven project with the arquetype i only use built-in widgets.
I suppose that i have to compile them.
So now i understand to enable the dependency vaadin-client-compiler in the POM .
However with the plugin you can compile the widgetset and the theme before.
That will solve the problem with the widgetset,
Why the documentation don't say anything about that in the section create the proyect with maven or in the tutorial?