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>
如何避免此错误。任何人都可以指导我这个。
答案 0 :(得分:1)
您只能为filter
定义一个,并且有多个<filter-mappings>