2014-12-18 2 views
1

내가 뭘 잘못하고있는거야? 고맙습니다! Libs : http://cs621531.vk.me/v621531427/4ebb/vU1vHpBjyhQ.jpg 죄송합니다. 삭제되지 않았습니다. 폼은 : HTTP pastebin.com/7rSWG89Q 전체 stacktace는 : http://pastebin.com/uwQsnwGnjava.lang.NoClassDefFoundError : 클래스 net.sf.ehcache.config.ConfigurationFactory를 초기화 할 수 없습니다.

@Cacheable(value = "servicesByCategoryId", key = "T(java.lang.String).valueOf(#id).concat('-').concat(" + 
      "T(java.lang.String).valueOf(#page)).concat('-').concat(T(java.lang.String).valueOf(#perPage))" + 
      ".concat('-').concat(#orderBy).concat('-').concat(#order)") 
<beans xmlns:context="http://www.springframework.org/schema/context" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xmlns:cache="http://www.springframework.org/schema/cache" 
     xmlns="http://www.springframework.org/schema/beans" xsi:schemaLocation= 
       "http://www.springframework.org/schema/beans 
       http://www.springframework.org/schema/beans/spring-beans-4.0.xsd 
     http://www.springframework.org/schema/context 
     http://www.springframework.org/schema/context/spring-context-4.0.xsd 
     http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd"> 
    <context:annotation-config/> 
    <context:component-scan base-package="com.vse.uslugi"/> 
    <cache:annotation-driven key-generator="enhancedDefaultKeyGenerator"/> 
    <bean id="enhancedDefaultKeyGenerator" class="...utilities.generators.EnhancedDefaultKeyGenerator"/> 

<dependency> 
    <groupId>net.sf.ehcache</groupId> 
    <artifactId>ehcache</artifactId> 
    <version>2.9.0</version> 
    <scope>provided</scope> 
</dependency 

답변

1

이 종속성의 문제입니다. ehcache depency없이 작동시켜보십시오. 그렇지 않다면 스프링 4가 원하는 ehcache 버전 2.8.3을 사용해보십시오.

+0

2.8.3 - 결과는 같습니다. :-( – Arthur

+0

당신은 당신의 pom을 공유 할 수 있습니까? 2.6.5를 시도 할 수 있습니까? –

+0

http://pastebin.com/7rSWG89Q – Arthur

관련 문제