Bookmark Topic Watch Topic
  • New Topic

Spring Security

 
Abib Rahjameran
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am a newbie to Spring Security and am getting the following error when starting TomCat:

SEVERE: Exception starting filter Acegi Filter Chain Proxy
javax.servlet.ServletException: targetBean 'filterChainProxy' not found in context at org.acegisecurity.util.FilterToBeanProxy.doInit(Fi lterToBeanProxy.java:126)

Here is my config in web.xml:
<filter>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<filter-class>
org.acegisecurity.util.FilterToBeanProxy
</filter-class>
<init-param>
<param-name>targetBean</param-name>
<param-value>filterChainProxy</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>Acegi Filter Chain Proxy</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

And my security.xml:
<bean id="filterChainProxy"
class="org.acegisecurity.util.FilterChainProxy">
<property name="filterInvocationDefinitionSource">
<value>
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT /**=httpSessionContextIntegrationFilter,
formAuthenticationProcessingFilter,
exceptionTranslationFilter,filterSecurityIntercept or
</value>
</property>
</bean>

Any ideas as to what I am doing wrong?

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic