표준프레임워크 오픈커뮤니티의 새로운 소식 및 궁금한 점을 묻고 답할 수 있습니다.
여러분의 의견을 자유롭게 남기실 수 있는 공간입니다.
10차 세미나에서 ehcache관련 문의 | |
작성자명 : 박호웅 작성일 : 2011-06-30 조회 : 4633 글번호 : 2511 | |
여기에 이런 문의드려도 되는지 모르겠네요 ^^;
어제 세미나 내용 중 ehcache을 적용해보려고 하는데 이곳 저곳 찾아서 적용해봤는데 톰켓 스타트하면서 아래와 같은 오류가 발생하면서 잘 안됩니다. ehcache홈페이지도 가보고, 이곳 저곳 찾아도 보고 구글 검색도 해봤는데 잘 해결이 안되네요 도움 부탁드립니다. ERROR 11:14:14.951 [main] web.context.ContextLoader:208 Context initialization failed org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring] Offending resource: ServletContext resource [/WEB-INF/spring/finix-context.xml] at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:284) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1332) 개발 환경은 다음과 같습니다. - window 7(32bit), - eclipse :Helios Service Release 2 - java6, tomcat6.0, spring 3.0 - spring+ibatis - ehcache관련 등록 라이브러리 : ehcache-core-2.4.2.jar, ehcache-terracotta-2.4.2.jar, slf4j-api-1.6.1.jar, slf4j-jdk14-1.6.1.jar (처음엔 ehcache-core-2.4.2.jar만 넣었다가 안되서 뒤의 3개 파일 추가) - finix-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:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:ehcache="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd"> <ehcache:annotation-driven cache-manager="cacheManager" /> <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"> <property name="configLocation"> <value>classpath:ehcache.xml</value> </property> </bean> .... .... |