I think it should be possible to have the webserver deliver the standard 404 page by throwing AbortWithWebErrorCodeException
You can hook in at WebRequestCycleProcessor#respond(RuntimeException e, RequestCycle requestCycle) and throw the mentioned exception. Works find just like this in our webapp cheers, Jonas On Fri, Oct 2, 2009 at 10:22 AM, Thomas Singer <[email protected]> wrote: > As I have reported a couple of weeks ago (but can't find the message any > more for a follow-up), Wicket shows an ugly internal-error page if one > somehow modified the stateful URLs, e.g. > > http://localhost:8080/?wicket:interface=:8 > > Following exception is logged: > >> org.apache.wicket.protocol.http.request.InvalidUrlException: >> org.apache.wicket.WicketRuntimeException: Internal error parsing >> wicket:interface = :6 >> at >> org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.decode(WebRequestCodingStrategy.java:231) >> at org.apache.wicket.Request.getRequestParameters(Request.java:172) >> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1301) >> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1419) >> at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) >> at >> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456) >> at >> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:289) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) > > How to configure Wicket to show the configured 404-page instead? > > Tom > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
