Re:Erro de versão Spring Security

2 respostas
A

De uma olhada na versão das suas .jar. Pelo que parece vc esta usando uma versão para as .jar e na taglib esta declarando outra versão.

2 Respostas

Hebert_Coelho

A mensagem de erro está bem clara… Você declaro no xml que irá utilizar spring 3.1 http://www.springframework.org/schema/util/spring-util-3.1.xsd">Mas seu jar é de versão inferior…

Basta trocar o jar.

raikk0n3n
<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"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.1.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.1.xsd">

O Erro:

GRAVE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: You cannot use a spring-security-2.0.xsd or spring-security-3.0.xsd schema with Spring Security 3.1. Please update your schema declarations to the 3.1 schema.
Criado 29 de julho de 2012
Ultima resposta 28 de jul. de 2012
Respostas 2
Participantes 3