1 Attachment(s)
spring-security-web classes are not available. You need these <filter-chain-map>
Hi
I am new user for this websitr I have a problem in my application. I use spring + LDAP but when I load my app it gives me following error :
Code:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: spring-security-web classes are not available. You need these to use <filter-chain-map>
my spring-security.xml is:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.0.xsd">
<bean id="contextSource" class="org.springframework.ldap.core.support.LdapContextSource">
<property name="url" value="ldap://localhost:389" />
<property name="base" value="CN=Users,dc=agileworks,dc=com"/>
<property name="userDn" value="CN=Administrador,CN=Users,DC=agileworks,DC=com"/>
<property name="password" value="$123"/>
<property name="referral" value="follow"/>
<property name="baseEnvironmentProperties">
<map>
<entry key="java.naming.security.authentication" value="simple"/>
</map>
</property>
</bean>
<!-- <security:ldap-server url="ldap://localhost:10389/o=mojo" manager-dn="uid=admin,ou=system" manager-password="secret" /> -->
<bean id="ldapTemplate" class="org.springframework.ldap.core.LdapTemplate">
<constructor-arg ref="contextSource" />
</bean>
<bean id="ldapUser" class="com.ivb.coep.vtu.evaluation.implementations.UserDAO">
<property name="ldapTemplate" ref="ldapTemplate"/>
</bean>
<bean id="filterChainProxy" class="org.springframework.security.web.FilterChainProxy">
<security:filter-chain-map path-type="ant">
<security:filter-chain pattern="/login.jsp*" filters="none"/>
<security:filter-chain pattern="/**" filters="
securityContextFilter, logoutFilter, formLoginFilter, requestCacheFilter,
servletApiFilter, anonFilter, sessionMgmtFilter,
exceptionTranslator, filterSecurityInterceptor" />
</security:filter-chain-map>
</bean>
<security:http auto-config="true" use-expressions="true" access-denied-page="jsps/denied" >
<security:intercept-url pattern="jsps/login" access="permitAll"/>
<security:intercept-url pattern="jsps/admin" access="hasRole('ROLE_ADMIN')"/>
<security:intercept-url pattern="jsps/common" access="hasRole('ROLE_USER')"/>
<security:form-login login-page="jsps/login" authentication-failure-url="jsps/login?error=true" default-target-url="jsps/common"/>
<!-- <security:logout invalidate-session="true" logout-success-url="jsps/login" logout-url="jsps/logout"/> -->
</security:http>
<security:authentication-manager>
<security:ldap-authentication-provider
user-search-filter="(uid={0})"
user-search-base="ou=users"
group-search-filter="(uniqueMember={0})"
group-search-base="ou=groups"
group-role-attribute="cn"
role-prefix="ROLE_">
</security:ldap-authentication-provider>
</security:authentication-manager>
<!-- <security:ldap-server ldif="/WEB-INF/mojo.ldif" root="o=mojo"/> -->
</beans>
and my web.xml is:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>EvaluationFramework</display-name>
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>/vtu/evaluate/control/forms/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<filter>
<filter-name>filterChainProxy</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
<!-- <filter-class>org.springframework.security.web.FilterChainProxy</filter-class> -->
</filter>
<filter-mapping>
<filter-name>filterChainProxy</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring-security.xml</param-value>
</context-param>
</web-app>
i have added following list of jar files :
Attachment 5086
still i get error
please help me
Thanks !!!!