【发布时间】:2012-08-29 16:16:49
【问题描述】:
我正在尝试将 grails 应用程序从 1.3.8 版本升级到 2.0.4
在处理了编译错误以处理更改的库等之后-我将它带到了它尝试启动的位置-但是它到达了它尝试配置休眠的位置然后挂起。 以下是 1.3.8 的日志部分:
2012-09-04 16:27:33,806 [main] INFO hibernate.ConfigurableLocalSessionFactoryBean - 构建新的 Hibernate SessionFactory 2012-09-04 16:27:33,941 [main] WARN config.ConfigurationFactory - 未找到配置。从类路径中的 ehcache-failsafe.xml 配置 ehcache:jar:file:/Users/userX/.ivy2/cache/net.sf.ehcache/ehcache-core/jars/ehcache-core-1.7.1.jar!/ ehcache-failsafe.xml 2012-09-04 16:27:34,718 [main] WARN hibernate.EhCacheProvider - 找不到名为 [common.SecRole] 的缓存的特定 ehcache 配置;使用默认值。 2012-09-04 16:27:45,504 [main] WARN hibernate.EhCacheProvider - 找不到名为 [org.hibernate.cache.UpdateTimestampsCache] 的缓存的特定 ehcache 配置;使用默认值。 2012-09-04 16:27:45,505 [main] WARN hibernate.EhCacheProvider - 找不到名为 [org.hibernate.cache.StandardQueryCache] 的缓存的特定 ehcache 配置;使用默认值。
从 2.0.4 中的非工作部分开始:
2012-09-04 17:16:49,488 [pool-4-thread-1] 信息 hibernate.ConfigurableLocalSessionFactoryBean - 构建新的 Hibernate SessionFactory 2012-09-04 17:16:49,619 [pool-4-thread-1] 警告 config.ConfigurationFactory - 未找到配置。从类路径中的 ehcache-failsafe.xml 配置 ehcache:jar:file:/Users/userX/.grails/ivy-cache/net.sf.ehcache/ehcache-core/jars/ehcache-core-2.4.6.jar !/ehcache-failsafe.xml 2012-09-04 17:16:51,175 [pool-4-thread-1] WARN hibernate.AbstractEhcacheRegionFactory - 找不到名为 [common.SecRole] 的缓存的特定 ehcache 配置;使用默认值。
任何想法我错过了什么?它似乎只是在为 Hibernate 配置缓存。 谢谢。
【问题讨论】:
-
你也在升级 Hibernate 插件吗?
-
是的,hibernate 插件从 1.3.7 升级到 2.0.4
-
好的,(最终)想通了:其中一个域对象有一个索引,而 grails 正在重新生成索引。由于该表非常大(30G),它需要很长时间才能生成,看起来就像它只是坐着一样。