Ajuda com Spring Security

Boa Noite, alguém manja de como trabalhar com spring Security, estou com esse erro:

Grave: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.security.filterChains’: Cannot resolve reference to bean ‘org.springframework.security.web.DefaultSecurityFilterChain#0’ while setting bean property ‘sourceList’ with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.security.web.DefaultSecurityFilterChain#0’: Cannot resolve reference to bean ‘org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0’ while setting constructor argument with key [2];

como esta seu

applicationContext.xml (arquivo onde fica a config. do spring)
web.xml

passe ele ai

aproveita e fala também em qual momento dá erro. se é na compilação, se é quando acessa alguma opção. Quanto mais informações, mais fácil fica de te ajudarmos.

[quote=tmvolpato]como esta seu

applicationContext.xml (arquivo onde fica a config. do spring)
web.xml

passe ele ai[/quote]

WEB.XML

[code]<?xml version="1.0" encoding="UTF-8"?>


javax.faces.PROJECT_STAGE
Development


Faces Servlet
javax.faces.webapp.FacesServlet
1


Faces Servlet
/faces/*



30



faces/index.xhtml


primefaces.THEME
start

<!-- Início das configurações para o Spring Security 3 -->
<filter>
    <filter-name>springSecurityFilterChain</filter-name>
    <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>


<filter-mapping>
    <filter-name>springSecurityFilterChain</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Fim das configuração para utilizar o Spring Security 3 -->
[/code]

APLICATIONCONTEXT

[code]

<?xml version="1.0" encoding="UTF-8"?>

<b:beans xmlns="http://www.springframework.org/schema/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:b="http://www.springframework.org/schema/beans"
xsi:schemaLocation=“http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.1.xsd”>

<http auto-config="true" use-expressions="true">
    <intercept-url pattern="/faces/admin/**" access="hasRole('ROLE_ADMIN')"/>
    <form-login login-page="/faces/login.xhtml" authentication-failure-url="/login.xhtml?erro=true"/>
</http>

<authentication-manager>
    <authentication-provider> 
        <password-encoder hash="md5"/>  
        <jdbc-user-service data-source-ref="dataSource"
           users-by-username-query="SELECT su.usuario as username, su.senha as
            password, 'true' as enable FROM usuarios su WHERE su.usuario=?"
        authorities-by-username-query="SELECT u.usuario as username, u.permissao 
            as authority FROM usuarios u WHERE u.usuario=?"
        />
    </authentication-provider>
</authentication-manager>

<b:bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" >
    <b:property name="url" value="jdbc:postgresql://localhost:5432/db_sistema" />
    <b:property name="driverClassName" value="org.postgresql.Driver" />
    <b:property name="username" value="postgres" />
    <b:property name="password" value="123" />
</b:bean>

</b:beans>[/code]

esses sao o aplicationContext e o web.xml

o erro acontece na hora da compilação

você está usando jsf?

jsf, hibernate e primefaces

passe seu faces-config.xml tbm

Cara eu estou usando Annotations

Cara eu estou usando Annotations[/quote]

entao, qdo você tem uma aplicação jsf
precisa declarar uma classe do spring nesse arquivo faces-config.xml que é do jsf

cara vc poderia me da um exemplo de como seria, sou novo no assunto

Alguém possui um tutorial, passo a passo de como implementar o spring security ?