1
Grails的2.2.2升級從2.2.0到2.2.2我收到以下錯誤,當我運行的Grails後:默認插件錯誤後升級到了2.2.0從
2013-05-08 16:23:34,957 [localhost-startStop-1] DEBUG support.PluginAwareResourceBundleMessageSource - Could not resolve any resources for plugin resources-1.1.6
Message: class path resource [web-app/file:/Users/charlie/.grails/2.2.2/projects/gpa/resources/plugins/resources-1.1.6/grails-app/i18n/] cannot be resolved to URL because it does not exist
Line | Method
->> 70 | getObject in org.grails.datastore.gorm.bean.factory.AbstractMappingContextFactoryBean
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 109 | postProcessBeanFactory in org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator
| 303 | innerRun . . . . . . . in java.util.concurrent.FutureTask$Sync
| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . . . . . . . . in java.lang.Thread
我得到幾個那些每個插件。不過,我得到一個休眠也被註釋掉:
2013-05-08 16:23:35,032 [localhost-startStop-1] DEBUG support.PluginAwareResourceBundleMessageSource - Could not resolve any resources for plugin hibernate-2.2.2
Message: class path resource [web-app/file:/Users/charlie/.grails/2.2.2/projects/gpa/resources/plugins/hibernate-2.2.2/grails-app/i18n/] cannot be resolved to URL because it does not exist
Line | Method
->> 70 | getObject in org.grails.datastore.gorm.bean.factory.AbstractMappingContextFactoryBean
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 109 | postProcessBeanFactory in org.grails.datastore.gorm.plugin.support.PersistenceContextInterceptorAggregator
| 303 | innerRun . . . . . . . in java.util.concurrent.FutureTask$Sync
| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask . . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 680 | run . . . . . . . . . in java.lang.Thread
這裏是我的BuildConfig.groovy:
plugins {
//runtime ":hibernate:$grailsVersion"
runtime ":jquery:1.8.3"
runtime ":resources:1.1.6"
compile ":lesscss-resources:1.3.3"
// Uncomment these (or add new ones) to enable additional resources capabilities
//runtime ":zipped-resources:1.0"
//runtime ":cached-resources:1.0"
//runtime ":yui-minify-resources:0.1.4"
build ":tomcat:$grailsVersion"
//runtime ":database-migration:1.2.1"
//compile ":cache:1.0.1"
compile ":mongodb:1.2.0"
compile ":mail:1.0.1"
compile ":bcrypt:1.0"
}
是它運行的東西,但由於某些原因,我想不通爲什麼這些錯誤正在打印出來。任何幫助?爲什麼它在Hibernate的註釋中抱怨呢?
你能解釋一下你所說的「主應用」是什麼意思?我如何使用額外的插件?什麼設置控制? – chubbsondubs 2013-05-09 03:36:54
在主應用程序方面這是一個瘋狂的猜測,對於潛在的解決方案本身並不真正相關。掌握應用程序中的應用程序,將您自己編寫的一些「自己的插件」捆綁在一起。 – rimero 2013-05-09 07:23:40
好的。目前爲止,該應用並未捆綁在任何第一方插件中,但您的建議我認爲擺脫了另一個休眠問題。但是,它仍然在插件上打印這些異常,包括被註釋掉的休眠。 – chubbsondubs 2013-05-09 12:25:48