Steps to reproduce: 1. download tomcat 8.5.0 2. configure a HTTP/2 supported connector over TLS 3. start tomcat 4. visit https://localhost:8443/examples/servlets/serverpush/simpleimage Observations: HTTP Status 500 - org.apache.catalina.connector.RequestFacade cannot be cast to org.apache.catalina.connector.Request type Exception report message org.apache.catalina.connector.RequestFacade cannot be cast to org.apache.catalina.connector.Request description The server encountered an internal error that prevented it from fulfilling this request. exception java.lang.ClassCastException: org.apache.catalina.connector.RequestFacade cannot be cast to org.apache.catalina.connector.Request http2.SimpleImagePush.doGet(SimpleImagePush.java:38) javax.servlet.http.HttpServlet.service(HttpServlet.java:622) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) note The full stack trace of the root cause is available in the Apache Tomcat/8.5.0 logs. Apache Tomcat/8.5.0
Created attachment 33688 [details] Fix simple image push example failure
Hi, Thanks for the report and the patch. Fix will be available from 8.5.1 onwards. Regards, Violeta