Upgrad struggles from 24.2 to 24.4

Hi

I am trying to upgrade my Vaadin app from version 24.2.5 to latest stable 24.4.11.

I get no compilation errors and the application starts without any issues, but when I try to navigate to any of my views (ex. /dashboard) I get this 500 error and the error page is showing.

java.lang.NoClassDefFoundError: org/springframework/security/web/util/matcher/RequestMatchers

The exception is not pointing me to any of my files and I have not done anything in the Security configuration after upgrading.

Does anyone have tips on what this could be and how to fix it?

Make sure you use the latest or at least supported Spring Boot version.

That did the trick! I was just reading through the Upgrading Guide | Vaadin Docs guide where I see now that it was mentioned latest version, but my brain only saw the code-snipped example where it was version 3.0.0. I was on version 3.0.6 and thought that was enough so didn’t change anything. But it seem to work now with latest 3.3.3.

1 Like