2014-11-06 31 views
0

我已經將grails升級到2.4.4並使用了mongodb 3.0.2。無法使用mongo 3.0.2在2.4.4上執行grails run-app

當我用射擊run-app命令的應用程序失敗與以下情況除外:

| Error 2014-11-06 15:13:18,026 [localhost-startStop-1] ERROR context.GrailsContextLoaderListener - Error initializing the application: org.springframework.beans.factory.support.DefaultListableBeanFactory.getDependencyComparator()Ljava/util/Comparator; 
Message: org.springframework.beans.factory.support.DefaultListableBeanFactory.getDependencyComparator()Ljava/util/Comparator; 
    Line | Method 
->> 131 | invokeMethod    in grails.spring.DynamicElementReader 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
| 754 | invokeBeanDefiningClosure in grails.spring.BeanBuilder 
| 584 | beans . . . . . . . . . . in  '' 
| 527 | invokeMethod    in  '' 
| 262 | run . . . . . . . . . . . in java.util.concurrent.FutureTask 
| 1145 | runWorker     in java.util.concurrent.ThreadPoolExecutor 
| 615 | run . . . . . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker 
^ 745 | run      in java.lang.Thread 

我試着調試問題,結果發現,我已經增加了最新的格姆釋放在我BuildConfig。 groovy as

compile 'org.grails:grails-datastore-gorm:3.1.3.RELEASE' 
compile 'org.grails:grails-datastore-core:3.1.3.RELEASE' 
test 'org.grails:grails-datastore-simple:3.1.3.RELEASE' 

當我從我的BuildConfig.groovy文件中刪除這些依賴項時,應用程序正常運行。但我需要這些最新的依賴關係。請任何想法嗎?

+0

在您與我們分享的消息之前是否有更多的LPG消息? – 2014-11-06 12:17:07

+1

謝謝@JeffBeck。不,只有那些我分享的信息。但我解決了。 https://jira.grails.org/browse/GRAILS-11813 – 2014-11-06 13:11:15

回答

0

的Grails 2.4.4使用彈簧4.x的豆版本。

當你的一些對外依存度的使用Spring 3.X 要查找添加春季3.X的jar運行下面的命令,其依賴

Grails的依賴,報告

然後找到春天這個問題出現-beans-3.X罐 並排除這種依賴性在Build.groovy如下

編譯com.sample.componenet.server.utilities:樣本採集器:1.0.0 不包括org.springframework:spring-beans:3.2.8.RELEASE