You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2022/11/10 13:51:00 UTC

[jira] [Updated] (CXF-8792) Fix tests failures due to Servlet 6.0 baseline in Spring Test

     [ https://issues.apache.org/jira/browse/CXF-8792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andriy Redko updated CXF-8792:
------------------------------
    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.
{noformat}
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) {noformat}
 

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

> Fix tests failures due to Servlet 6.0 baseline in Spring Test 
> --------------------------------------------------------------
>
>                 Key: CXF-8792
>                 URL: https://issues.apache.org/jira/browse/CXF-8792
>             Project: CXF
>          Issue Type: Sub-task
>            Reporter: Andriy Redko
>            Assignee: Andriy Redko
>            Priority: Major
>
> 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.
> {noformat}
> 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) {noformat}
>  
> [1] https://github.com/spring-projects/spring-framework/issues/29435



--
This message was sent by Atlassian Jira
(v8.20.10#820010)