aspose file tools*
The moose likes Servlets and the fly likes Spring Security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Spring Security

Abib Rahjameran
Greenhorn

Joined: Oct 27, 2008
Posts: 3
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

Joined: Jan 10, 2002
Posts: 61413
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Security