0
In my web.xml i have the following format. While deploying in jboss it is throwing me

为元素“web-app”的身份约束“web-app-filter-name-uniqueness”声明了重复的唯一值 [Acg Filter Chain Proxy]。

  <filter>
    <filter-name>Acg Filter Chain Proxy</filter-name>
    <filter-class>
        org.acgsecurity.util.FilterToBeanProxy
    </filter-class>
    <init-param>
        <param-name>targetBean</param-name>
        <param-value>filterChainProxy</param-value>
    </init-param>
</filter>
<filter-mapping>
    <filter-name>Acg Filter Chain Proxy</filter-name>
    <url-pattern>/rmServices/*</url-pattern>
</filter-mapping>

<filter>
    <filter-name>Acg Filter Chain Proxy</filter-name>
    <filter-class>
        org.acgsecurity.util.FilterToBeanProxy
    </filter-class>
    <init-param>
        <param-name>targetBean</param-name>
        <param-value>filterChainProxy</param-value>
    </init-param>
</filter>
<filter-mapping>
    <filter-name>Acg Filter Chain Proxy</filter-name>
    <url-pattern>/remoting/*</url-pattern>
</filter-mapping>

我怎样才能避免这个错误。任何人都可以请指导我。

4

1 回答 1

1

你可以只有一个定义,filter也可以有多个<filter-mappings>

于 2012-11-20T06:01:35.823 回答