2011-07-17 5 views
0

을 외에도 구성에 나는 configurting에 문제가 :오류 확보 - 주석 봄 보안

<sec:global-method-security secured-annotations="enabled" /> 

다음과 같은 오류 :

스키마 보안 일부 incompitable jar 파일이 있습니다
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.getLocalName(Lorg/w3c/dom/Node;)Ljava/lang/String 

<beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:sec="http://www.springframework.org/schema/security" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:aop="http://www.springframework.org/schema/aop" 
    xmlns:tx="http://www.springframework.org/schema/tx" 
    xmlns:beans="http://www.springframework.org/schema/beans" 
    xsi:schemaLocation=" 
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
    http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd 
    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd 
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"> 

다음 보안 용기를 사용하고 있습니다.

스프링 보안 코어 호랑이 2.0.4

스프링 2.5

답변

0

당신이 필요한 스프링 보안 의존성 (spring-security-tiger-xxx.jar)가되지 않을 수 있습니다 것 같습니다.

spring-security-2.0.2 xsd에 따라 secured-annotations을 사용할 수 있습니다.

+0

감사합니다. spring-security-core-tiger-2.0.0 jar가 있습니다. 다른 버전의 spring-security-core-tiger jar를 다운로드해야한다고 생각하십니까? – user813056

+0

누군가가 내게 오류 코드 – user813056

+0

@ user813056을 피하기 위해 sutitable version spring-security-core-tiger-2.0.0을 도와주세요. 질문을 편집하고 프로젝트의 관련 Maven 스 니펫 (특히 봄 보안 관련 종속성)을 제공하십시오. 아마도 잘못된/호환되지 않는 스프링 보안 병이있을 것입니다. – Raghuram