I have pretty complex multimodule project. I have finally managed to compile project. But when running I get this error: java.lang.NoClassDefFoundError: com/vaadin/flow/component/polymertemplate/PolymerTemplate
I assume that problem is some addon. Is there a way to find which addon is the problem with polymer?
I don’t think so. Do you have the list of addons you’re using?
marcoc_753
(Marco Collovati)
March 20, 2023, 2:16pm
3
Builtin suport for Polymer templates has been removed in Vaadin 24
marcoc_753
(Marco Collovati)
March 20, 2023, 2:17pm
4
Polymer temlpates are now available as a commercial add-on
marcoc_753
(Marco Collovati)
March 20, 2023, 2:19pm
6
If you have polymer templates on your project you can use the conversion tool to migrate to Lit
in.virit
viritin
2.0.0
org.vaadin.alejandro
pdf-browser
3.1.0
org.vaadin.artur
spring-data-provider
2.1.0
com.vaadin.componentfactory
togglebutton
2.0.0
<!-- Vaadin charts-->
<dependency>
<groupId>com.storedobject.chart</groupId>
<artifactId>so-charts</artifactId>
<version>3.1.3</version>
</dependency>
<!-- Vaadin animations -->
<dependency>
<groupId>de.mekaso.vaadin.addons</groupId>
<artifactId>compani</artifactId>
<version>1.1.4</version>
</dependency>
<dependency>
<groupId>de.f0rce</groupId>
<artifactId>ace</artifactId>
<version>3.4.2</version>
</dependency>
<dependency>
<groupId>com.flowingcode.addons</groupId>
<artifactId>font-awesome-iron-iconset</artifactId>
<version>4.2.0</version>
</dependency>
<dependency>
<groupId>org.vaadin.crudui</groupId>
<artifactId>crudui</artifactId>
<version>6.2.0</version>
</dependency>
Thanks Marco. I know. I would like to completely remove polymer from my project, I dont have a subscription.
ToggleButton, ace, spring-data-provider and viritin and font-awesome are not using PolymerTemplate
marcoc_753
(Marco Collovati)
March 20, 2023, 2:32pm
10
Try to run mvn dependency:tree -Dincludes=com.vaadin:flow-polymer-template -Dverbose
I think it was IRON icons addon. I changed them with line awesome.
Now I am facing this issues:
NotSupportedError: Failed to execute ‘define’ on ‘CustomElementRegistry’: the name “vaadin-checkbox” has already been used with this registry
Aha, as I searched through discord post I found out the problem is toggle button.
There is a pull request for the toggle button add-on but it’s not yet merged and released.
I removed it, but the problem persists
How can I check which addon is problematic with vaadin-checkbox?
<dependency>
<groupId>in.virit</groupId>
<artifactId>viritin</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.vaadin.alejandro</groupId>
<artifactId>pdf-browser</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.vaadin.artur</groupId>
<artifactId>spring-data-provider</artifactId>
<version>2.1.0</version>
</dependency>
<dependency>
<groupId>de.f0rce</groupId>
<artifactId>ace</artifactId>
<version>3.4.2</version>
</dependency>
<dependency>
<groupId>org.parttio</groupId>
<artifactId>line-awesome</artifactId>
<version>1.1.0</version>
</dependency>
<dependency>
<groupId>org.vaadin.crudui</groupId>
<artifactId>crudui</artifactId>
<version>6.2.0</version>
</dependency>
I would think it’s crudui, ace or pdf-browser… in that order I would look at the GitHub repos and check they usages
Is this maybe the problem?
I did write to Alejandro if he is planning to update CrudUi to 24. I really like his component and using it a lot in my admin pages.