Vaadin Spring/Boot and Spring Boot versions compatibility

Hello all,

is there anywhere any documentation on which version works with which version?



Currently in our project this works fine:

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.4.4.RELEASE</version>
</parent>

    <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-spring-boot-starter</artifactId>
            <version>1.1.1</version>
    </dependency>
    <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-spring</artifactId>
            <version>1.1.1</version>
    </dependency>

If we try to use vaadin.spring boot 2.0 and/or anything higher than Spring Boot 1.4.4.RELEASE then the project crashes at startup (with different errors on different version combinations)



the following combination (all latest versions)

[code]

org.springframework.boot
spring-boot-starter-parent
1.5.1.RELEASE

<dependency>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-spring-boot-starter</artifactId>
        <version>2.0.0</version>
</dependency>
<dependency>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-spring</artifactId>
        <version>2.0.0</version>
</dependency>

[/code]start ups succesfully but when loading the application’s url crashes in our class that extends SpringVaadinServlet when we call

super.servletInitialized(); in the constructor complaining that the method does not exist…



the following combination (spring boot latest and vaadin spring/boot 1.1.0)

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.1.RELEASE</version>
</parent>

    <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-spring-boot-starter</artifactId>
            <version>1.1.0</version>
    </dependency>
    <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-spring</artifactId>
            <version>1.1.0</version>
    </dependency>

crashes on startup with

java.lang.NoClassDefFoundError: org/springframework/boot/context/embedded/ServletRegistrationBean Can anyone please enlight us on the compatible combinations?

Regards.

Hi Dear ,
i am working in spring boot ,maven with vaadin project , i had configure vaadin dependency in maven pom.xml file, but i got this type of error

java.lang.NoClassDefFoundError: com/vaadin/shared/Registration
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.getDeclaredMethod(Class.java:2128)
at com.vaadin.server.AbstractClientConnector.findStateType(AbstractClientConnector.java:323)
at com.vaadin.server.AbstractClientConnector.getStateType(AbstractClientConnector.java:310)
at com.vaadin.server.AbstractClientConnector.createState(AbstractClientConnector.java:294)
at com.vaadin.server.AbstractClientConnector.getState(AbstractClientConnector.java:258)
at com.vaadin.ui.AbstractComponent.getState(AbstractComponent.java:753)
at com.vaadin.ui.AbstractComponent.getState(AbstractComponent.java:76)
at com.vaadin.server.AbstractClientConnector.getState(AbstractClientConnector.java:239)
at com.vaadin.ui.AbstractComponent.getState(AbstractComponent.java:748)
at com.vaadin.addon.charts.Chart.getState(Chart.java:465)
at com.vaadin.addon.charts.Chart.getState(Chart.java:90)
at com.vaadin.ui.AbstractComponent.beforeClientResponse(AbstractComponent.java:763)
at com.vaadin.addon.charts.Chart.beforeClientResponse(Chart.java:427)
at com.vaadin.server.communication.UidlWriter.write(UidlWriter.java:112)
at com.vaadin.server.communication.UidlRequestHandler.writeUidl(UidlRequestHandler.java:124)
at com.vaadin.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:92)
at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41)
at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1422)
at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)

Please help me how to fix this type of error

Make sure that you have the correct versions of all the relative libraries.

For example

<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.1.RELEASE</version> </parent> works strictly with

<dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-spring-boot-starter</artifactId> <version>1.2.0</version> </dependency> <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-spring</artifactId> <version>1.2.0</version> </dependency> However,

it seems that the class you miss is part of the core framework. Which versions of Vaadin, Spring Boot and Vaadin Spring Boot add-on you are using?

please post your pom.xml file