2014-06-12 3 views
0

Grails 프로젝트를 grails-2.3.7에서 grails-2.4.0으로 업그레이드하고 가이드 http://grails.org/doc/2.4.x/guide/upgradingFrom23.html을 따랐습니다. 그러나 이제 앱을 실행하려고하면 아래의 스택 추적이 생성됩니다. 이 문제를 어떻게 해결할 수 있습니까?Grails 2.4.0으로 업그레이드 한 후 ClassNotFoundException이 발생했습니다.

| Running Grails application 
| Error 2014-06-12 15:45:55,788 [localhost-startStop-1] ERROR context.GrailsContextLoaderListener - Error initializing the application: Error creating bean with name 'grailsApplicationPostProcessor': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/annotation/AnnotatedElementUtils 
Message: Error creating bean with name 'grailsApplicationPostProcessor': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/annotation/AnnotatedElementUtils 
    Line | Method 
->> 262 | run  in java.util.concurrent.FutureTask 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor 
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker 
^ 744 | run  in java.lang.Thread 
Caused by NoClassDefFoundError: org/springframework/core/annotation/AnnotatedElementUtils 
->> 262 | run  in java.util.concurrent.FutureTask 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor 
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker 
^ 744 | run  in java.lang.Thread 
Caused by ClassNotFoundException: org.springframework.core.annotation.AnnotatedElementUtils 
->> 366 | run  in java.net.URLClassLoader$1 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
| 355 | run  in  '' 
| 354 | findClass in java.net.URLClassLoader 
| 425 | loadClass in java.lang.ClassLoader 
| 262 | run . . . in java.util.concurrent.FutureTask 
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor 
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker 
^ 744 | run  in java.lang.Thread 
| Error Forked Grails VM exited with error 

답변

0

grails dependency-report 

을 실행하고 응용 프로그램이 봄의 이전 버전 당기는되지 않았는지 확인하시기 바랍니다. 결과를 질문에 붙여 넣을 수 있다면 종속성 보고서에 이전 버전의 Spring JAR이 있어야 문제가 발생합니다. Grails 2.4는 Spring 4.0.5 이상이 필요합니다.

관련 문제