2014-10-17 2 views
0

나는이 링크 의 지침에 따라 2.4.3에 2.3.4에서 Grails의 응용 프로그램을 업그레이드하려고2.3.4 2.4.3에이 - 찾을 수 없습니다 GrailsResourceLoaderFactoryBean

문제 http://grails.org/doc/2.4.3/guide/upgradingFrom23.html

나는 그것을 성취 할 수 없을 것 같습니다. GrailsResourceLoaderFactoryBean 초기화 오류를 찾을 수 없습니다. 필자는 이것이 더 이상 grails 2.4에 없지만 여전히 그것을 원한다는 것을 이해합니다. 내 applicationContext.xml이 완전히 새로운 프로젝트에서 생성 된 것과 동일하고 오류가 계속 발생하는지 확인했습니다. 내가 시도 무엇

1/Grails의 설정 Grails의 버전 2.4.3이 응용 프로그램 속성

업데이트

2/그런 다음 내 BuildConfig

// plugins for the build system only 
    build ":tomcat:7.0.55" 

    // plugins for the compile step 
    compile ":scaffolding:2.1.2" 
    compile ':cache:1.1.7' 
    compile ":asset-pipeline:1.9.6" 
    compile ":mail:1.0.7"   
    compile ':spring-security-core:2.0-RC3' 
    compile ":spring-security-ldap:2.0-RC2" 
    compile ":spring-security-ui:1.0-RC2" 
    compile ":cache-headers:1.1.7" 

    // Uncomment these (or add new ones) to enable additional resources capabilities 
    runtime ':hibernate4:4.3.5.2' // or ':hibernate:3.6.10.14' 
    runtime ':database-migration:1.4.0' 
    runtime ':jquery:1.11.0.2' 
    runtime ':resources:1.2.13' 
    runtime ":zipped-resources:1.0" 
    runtime ":cached-resources:1.0" 

에 다음과 같은 추가 3/내 applicationContext.xml에서이 줄을 제거했습니다.

<property name="grailsResourceLoader" ref="grailsResourceLoader" /> 

4/또한 userprofile.grails \ 2.4.3 \ projects 아래의 프로젝트를 삭제 한 다음 grails refresh-dependencies를 수행했지만 여전히 운이 없다!

는 스택 추적에서보세요 :

enter image description here

답변

0

가 나는 문제에 대한 답을 찾은 것 같아요. 분명히 applicationContext.xml에서 다음 선언을 제거하는 것을 잊어 버렸습니다. 내가 더 잘 알고 있어야하지만, 이것은 공식적인 업그레이드 문서에 빠져 있습니다.

<bean id="grailsResourceLoader" class="org.codehaus.groovy.grails.commons.GrailsResourceLoaderFactoryBean" /> 
+1

"공식적인 업그레이드 문서에는 누락되었습니다." - 공식 업그레이드 설명서에 언급되어 있습니다. http://grails.org/doc/latest/guide/upgradingFrom23.html의 노트에는 다음 내용이 포함되어 있습니다. "web-app/WEB-INF/applicationContext.xml 파일에는 인스턴스 인 grailsResourceLoader bean에 대한 bean 정의가 들어 있습니다 org.codehaus.groovy.grails.commons.GrailsResourceLoaderFactoryBean. 그 bean 정의는 파일에서 제거되어야합니다. " –

+0

https://github.com/grails/grails-doc/commit/9bfd17397b8572ea4ca021ebde67fe7c185ee238800dc2b2c6bbbfab0562da2dc62R20 –

+0

네가 맞다.하지만 "grailsApplication"전후의 스크린 샷을 보여주기 때문에 나는 그것을 가질 것이라고 생각한다. 또한 explicity에 더 좋았습니다. xml 줄을 추가하여 텍스트와 함께 제거해야합니다. 간과하기 쉽기 때문에 신속하게 읽을 수 있습니다. 다시 말하지만, 과거에 Spring 개발을하는 것으로부터 더 잘 알았어 야 했음에도 불구하고 때로는 다른 모든 일들이 간과하기 쉽습니다. – Viriato