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