使用URLRewriteFilter时获取StackOverflowError

时间:2017-02-07 09:22:17

标签: tuckey-urlrewrite-filter

我正在尝试使用UrlRewriteFilter,但我收到错误

Screenshot of error

行家:

<dependency>
    <groupId>org.tuckey</groupId>
    <artifactId>urlrewritefilter</artifactId>
    <version>4.0.3</version>
</dependency>

的web.xml:

<filter>
    <filter-name>UrlRewriteFilter</filter-name>
    <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
    <init-param>
        <param-name>confPath</param-name>
        <param-value>/WEB-INF/urlrewrite.xml</param-value>
    </init-param>
</filter>
<filter-mapping>
    <filter-name>UrlRewriteFilter</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
</filter-mapping>

和我的规则:

<rule>
    <from>/admin/main</from>
    <to>/views/admin/main-page.xhtml</to>
</rule>

当我转到网址localhost:8080/admin/main

时,此规则会引发错误

0 个答案:

没有答案