Witam, przerabiam książkę spring mvc przewodnik dla początkujących.
Problem mam w tym, że jak dodam w pom.xml
org.springframework.security
spring-security-config
Version 3.1.4.RELEASE

org.springframework.security
spring-security-web
Version wartość 3.1.4.RELEASE

to wywala mi błąd
versja springa to 4.0.3

security-context.xml

<?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:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:security="http://www.springframework.org/schema/security"
xsi:schemaLocation="http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/springsecurity-3.1.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/springcontext-3.2.xsd">
<security:http auto-config="true">
<security:intercept-url pattern="/products/add" access="ROLE_ADMIN" />
    <security:form-login login-page="/login" default-target-url="/products/add" authentication-failure-url="/loginfailed"/>
    <security:logout logout-success-url="/logout" />
   </security:http>
    <security:authentication-manager>
       <security:authentication-provider>
       <security:user-service>
       <security:user name="Admin" password="Admin123" authorities="ROLE_ADMIN" />
       </security:user-service>
       </security:authentication-provider>
       </security:authentication-manager>
</beans>

16 linijka bląd :
<security:http auto-config="true">

Multiple annotations found at this line:
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'security:http'.
- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/security/springsecurity-3.2.xsd', because 1) could not find the document; 2)
the document could not be read; 3) the root element of the document is not xsd:schema.
21 linijka błąd:
security:authentication-manager
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'security:authentication-manager'