wildfly-10.0.0.Final LearningPushHandler
stan_hg May 26, 2016 6:51 AMHi,
as i am trying to assess the performance using server push in http/2, having difficulties to setup LearningPushHandler.
in standalone.xml, configuration is as follows:
<subsystem xmlns="urn:jboss:domain:undertow:3.0">
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="default" socket-binding="http"/>
<https-listener name="default-https" security-realm="httpsRealm" socket-binding="https" enable-http2="true"/>
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<filter-ref name="server-push" />
</host>
</server>
<servlet-container name="default">
<jsp-config/>
<websockets/>
</servlet-container>
<handlers>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
</handlers>
<filters>
<filter name="server-push" class-name="io.undertow.server.handlers.LearningPushHandler" module="io.undertow.core">
<param name="max-age" value="120"/>
<param name="max-entries" value="1200"/>
</filter>
</filters>
</subsystem>
and there is an error while accessing the web page:
2016-05-26 13:42:20,390 ERROR [io.undertow.request] (default I/O-5) UT005071: Undertow request failed HttpServerExchange{ GET /bg;jsessionid=altr0DCUcqiOa3MdI68NhboMsfHlhWLf_TpSvVfq.stan-pc request {accept=[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8], accept-language=[bg-BG,bg;q=0.8,en;q=0.6], cache-control=[max-age=0], accept-encoding=[gzip, deflate, sdch], user-agent=[Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36], upgrade-insecure-requests=[1], Host=[localhost:8444]} response {}}: java.lang.RuntimeException: WFLYUT0064: Failed to configure handler class io.undertow.server.handlers.LearningPushHandler
at org.wildfly.extension.undertow.deployment.ConfiguredHandlerWrapper.wrap(ConfiguredHandlerWrapper.java:78)
at org.wildfly.extension.undertow.filters.CustomFilterDefinition.createHttpHandler(CustomFilterDefinition.java:100)
at org.wildfly.extension.undertow.filters.FilterService.createHttpHandler(FilterService.java:57)
at org.wildfly.extension.undertow.filters.FilterRef.createHttpHandler(FilterRef.java:69)
at org.wildfly.extension.undertow.LocationService.configureHandlerChain(LocationService.java:96)
at org.wildfly.extension.undertow.Host.configureRootHandler(Host.java:117)
at org.wildfly.extension.undertow.Host.getOrCreateRootHandler(Host.java:171)
at org.wildfly.extension.undertow.Host$HostRootHandler.handleRequest(Host.java:285)
at io.undertow.server.handlers.NameVirtualHostHandler.handleRequest(NameVirtualHostHandler.java:54)
at io.undertow.server.handlers.error.SimpleErrorPageHandler.handleRequest(SimpleErrorPageHandler.java:76)
at io.undertow.server.handlers.CanonicalPathHandler.handleRequest(CanonicalPathHandler.java:49)
what i am doing wrong?
Thanks