Re: rewrite trailing slash and 3.3.0 snapshot

Splash Forums PrettyFaces Users rewrite trailing slash and 3.3.0 snapshot Re: rewrite trailing slash and 3.3.0 snapshot

#20972

RedShadow
Participant

today i faces a strange error…

when i call “/admin” it gets rewritten by “/admin/” and the page is rendered.

but when i call “/admin/user” it gets not rewritten, it just shows me an error.

Here is my rewrite rule:

<rewrite match=”^((?!.*.w*).)*$” trailingSlash=”append” toCase=”lowercase” redirect=”chain”/>

My dependency:

<dependency>

<groupId>com.ocpsoft</groupId>

<artifactId>prettyfaces-jsf2</artifactId>

<version>3.3.0-SNAPSHOT</version>

</dependency>

And this is the error:

WARNUNG: StandardWrapperValve[default]: PWC1406: Servlet.service() for servlet default threw exception

com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at com.blazebit.web.cms.filter.LoginRedirectFilter.doFilter(LoginRedirectFilter.java:46)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)

at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)

at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)

at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)

at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)

at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)

at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)

at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)

at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)

at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)

at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)

at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)

at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)

at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)

at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)

at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)

at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)

at java.lang.Thread.run(Thread.java:619)

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 30 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 40 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 50 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 60 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 70 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 80 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 90 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 100 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 110 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 120 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 130 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 140 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 150 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 160 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 170 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 180 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 190 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 200 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 210 more

Caused by: com.ocpsoft.pretty.PrettyException: Error occurred during canonicalization of request <[/admin/user]>

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:226)

at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:785)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 220 more

Caused by: javax.servlet.ServletException: PWC1232: Exceeded maximum depth for nested request dispatches: 20

at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:772)

at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)

at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)

at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:454)

at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:350)

at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:300)

at com.ocpsoft.pretty.PrettyFilter.rewrite(PrettyFilter.java:220)

… 230 more

EDIT:

I just realised that this only happens with redirect=”chain”, does anyone know what the problem is with that? The expected behaviour is that i dont get redirected but it renders the view which i would expect. Here an example, when i call “/admin/user” i don’t want to get redirected(at least not if it is not necessary) but i want the view to be displayed which i would reach when i call “/admin/user/”

EDIT2:

The redirect=”chain” attribute seems not to work correctly. I tried to deny the direct access to pages by rendering a page not found site and with chaining this would be very elegant.

<rewrite match=”^/admin/.*.xhtml$” substitute=”/admin/pageNotFound.xhtml” redirect=”chain”/>

Expected behaviour: Call “/admin/admin.xhtml” Display “/admin/pageNotFound.xhtml”

Actual behaviour: Same exception as the one at the top.

Summary: the attribute redirect with the value chain is not working correctly. Is this a bug or have i missused the functionallity?