java - Failed to read schema document 'http://www.springframework.org/schema/security/spring-security-3.2.xsd' -


I've been able to find a solution to my problem about 3 hours, but I do not know! My security reference here Xml is:

  & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Beans: beans xmlns = "http://www.springframework.org/schema/security" xmlns: beans = "http://www.springframework.org/schema/beans" xmlns: xsi = "http: // www. W3.org/2001/XMLSchema-instance "xsi: schema location =" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0 .xsd Http://www.springframework.org/schema/security.html http://www.springframework.org/schema/security/spring-security-3.2.xsd"> & Lt; http auto-config = "true" & gt; & Lt; Intercept-url pattern = "/ admin **" / & gt; & Lt; / Http & gt; & Lt; Authentication Manager & gt; & Lt; Authentication Provider & gt; & Lt; User Service & gt; & Lt; Username = "ivan" authorization = "ROLE_USER" password = "ivan" /> & Lt; / User service & gt; & Lt; / Authentication Provider & gt; & Lt; / Authentication-manager & gt; & Lt; / Bean: beans & gt;   

My pom.xml snippet:

  & lt; Properties & gt; & Lt; Spring-edition & gt; 4.1.0.RELEASE & lt; / Spring-edition & gt; & Lt; Spring-safety-edition & gt; 3.2.5.RELEASE & lt; / Spring-safety-version & gt; & Lt; Hibernate-edition & gt; 4.3.4.Final & lt; / Hibernate-edition & gt; & Lt; / Properties & gt; ... & lt ;! - Spring safety - & gt; & Lt; Dependency & gt; & Lt; Group & gt; org.springframework.security & lt; / Group & gt; & Lt; ArtifactId & gt; Spring-security-web & lt; / ArtifactId> & Lt; Version & gt; $ {Spring-security-edition} & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; org.springframework.security & lt; / Group & gt; & Lt; ArtifactId & gt; Spring-protection-config & lt; / ArtifactId> & Lt; Version & gt; $ {Spring-security-edition} & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; org.springframework.security & lt; / Group & gt; & Lt; ArtifactId & gt; Spring-safety-core & lt; / ArtifactId> & Lt; Version & gt; $ {Spring-security-edition} & lt; / Edition & gt; & Lt; / Dependencies & gt;   

Is this a compatibility problem between Spring and Spring-Protected versions? or something else?

Sorry! I have a solution! I should add the next dependency:

  & lt; Dependency & gt; & Lt; Group & gt; org.springframework.security & lt; / Group & gt; & Lt; ArtifactId & gt; Spring-protection-config & lt; / ArtifactId> & Lt; Version & gt; $ {Spring-security-edition} & lt; / Edition & gt; & Lt; / Dependencies & gt;    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -