Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8371 Support Jakarta EE 9.0+
  3. CXF-8792

Address tests failures due to Servlet 6.0 baseline in Spring Test

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0
    • None
    • None
    • Unknown

    Description

      The Spring Framework 6.0.0-RC4 has moved from Servlet 5 to Servlet 6 (see [1]), that should be fine for runtime but does not play well with Spring Test Servlet mocks: they mock against Servlet 6.

      java.lang.NoClassDefFoundError: jakarta/servlet/ServletConnection
      	at org.apache.cxf.jaxrs.sse.SseEventSinkContextProviderTest.setUp(SseEventSinkContextProviderTest.java:67)
      	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:578) 

       

      [1] https://github.com/spring-projects/spring-framework/issues/29435

      Attachments

        Issue Links

          Activity

            People

              reta Andriy Redko
              reta Andriy Redko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: