Trying to start Application with hotswap agent.
Caused by: java.util.ServiceConfigurationError: com.vaadin.base.devserver.hotswap.VaadinHotswapper: Provider com.vaadin.flow.component.internal.StyleSheetHotswapper not found
Trying to start Application with hotswap agent.
Caused by: java.util.ServiceConfigurationError: com.vaadin.base.devserver.hotswap.VaadinHotswapper: Provider com.vaadin.flow.component.internal.StyleSheetHotswapper not found
<properties>
<java.version>25</java.version>
<vaadin.version>25.0.6</vaadin.version>
<timefold.solver>1.31.0</timefold.solver>
<karibu-testing-v10-spring.version>2.6.2</karibu-testing-v10-spring.version>
<wiremock-standalone.version>4.0.0-beta.29</wiremock-standalone.version>
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>4.0.1</version>
</parent>
<repositories>
<repository>
<id>vaadin-prereleases</id>
<url>https://maven.vaadin.com/vaadin-prereleases</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>Vaadin Directory</id>
<url>https://maven.vaadin.com/vaadin-addons</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>vaadin-prereleases</id>
<url>https://maven.vaadin.com/vaadin-prereleases</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-bom</artifactId>
<version>${vaadin.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>ai.timefold.solver</groupId>
<artifactId>timefold-solver-bom</artifactId>
<version>${timefold.solver}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-core</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.parttio</groupId>
<artifactId>line-awesome</artifactId>
<version>2.1.0</version>
</dependency>
<dependency>
<groupId>org.jspecify</groupId>
<artifactId>jspecify</artifactId>
</dependency>
<dependency>
<groupId>ai.timefold.solver</groupId>
<artifactId>timefold-solver-core</artifactId>
<version>${timefold.solver}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-restclient</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-dev</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-testbench-junit6</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ai.timefold.solver</groupId>
<artifactId>timefold-solver-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.mvysny.kaributesting</groupId>
<artifactId>karibu-testing-v10-spring</artifactId>
<version>${karibu-testing-v10-spring.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.wiremock.integrations</groupId>
<artifactId>wiremock-spring-boot</artifactId>
<version>4.0.9</version>
</dependency>
</dependencies>
It looks like there’s some version mismatch: VaadinHotswapper and related implementations have been moved into vaadin-dev-server in Vaadin 25.1, but from your comment, it seems you have VaadinHotswapper from Vaadin 25.1 and StyleSheetHotswapper from 25.0
com.vaadin.base.devserver.hotswap.VaadinHotswapper: Provider
com.vaadin.flow.component.internal.StyleSheetHotswapper not found
However, the POM looks fine and using Vaadin 25.0.
Please, double check that the project in the IDE loaded correct dependencies and also verify in the console the command that launches the application to see if there’s something referencing Vaadin 25.1
Please also post the full stack trace. It might provide some additional information.
Also check the Hotswap agent version in use; it might be an old version.
Thanks Marco. It just started working. I went back to start.vaadin, downgraded to vaadin 25, downloaded project, copy+paste the pom file into my project’s pom.