We encounter an issue at runtime when using Web Services REST 2.31.0-SNAPSHOT with Core 2.4+
Caused by: java.lang.NoClassDefFoundError: Lorg/springframework/web/servlet/mvc/annotation/AnnotationMethodHandlerAdapter;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at java.lang.Class.getDeclaredFields(Class.java:1916)
at org.springframework.util.ReflectionUtils.getDeclaredFields(ReflectionUtils.java:734)
... 20 more
We’ve not yet made the move to the 2.4.x line at any of our PIH distributions, so I don’t (yet) have any direct experience with these issues, unfortunately.
Have you ruled out the warnings related to these as a factor?
Currently, the REST WS module relies on LegacyUI by using AdministrationSectionExthere. It has been like that since year 2011 so it’s probably not related to compatibility between REST-WS 2.31 and Core 2.4+.
There are two versions of InitPathMatcher, one 2.3.x and lower and one for 2.4.x and higher, basically to solve exactly this issue. Somehow the version for 2.3.x must not be being excluded from the Spring context?