플러그인이 거의없는 grails 2.0.0.M1을 사용하고 있습니다 (spring-security-core-1.2.1, spring-cache-1.3.1). 응용 프로그램을 정리하고 실행하는 데 문제가 없으며 응용 프로그램 만 실행합니다. 해결grails run-app는 "context initialization failed"라는 이상한 경우를 반환합니다.
ERROR [org.springframework.web.context.ContextLoader]: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to locate constructor with Class parameter for class org.codehaus.groovy.grails.commons.DefaultGrailsServiceClass
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: Unable to locate constructor with Class parameter for class org.codehaus.groovy.grails.commons.DefaultGrailsServiceClass
... 5 more
Caused by: java.lang.reflect.InvocationTargetException
... 5 more
Caused by: java.lang.ExceptionInInitializerError
... 5 more
Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object '{}' with class 'groovy.util.ConfigObject' to class 'java.lang.Integer'
... 5 more
grails clean && grails upgrade && grails run-app –
@Jan 이미 정리/실행/실행하려고했지만 불행히도 아무것도 변경되지 않는 것 같습니다. – lucke84