【问题标题】:weceem 1.3-SNAPSHOT Provider net.sf.ehcache.hibernate.EhCacheRegionFactory not foundweceem 1.3-SNAPSHOT Provider net.sf.ehcache.hibernate.EhCacheRegionFactory not found
【发布时间】:2014-10-20 20:42:12
【问题描述】:

我克隆了 weceem-app、weceem-plugin 和 weceem-spring-security,将它们全部构建,但我无法启动应用程序,原因是:

INFORMATION: TLD skipped. URI: http://www.springframework.org/tags is already defined
Loading Weceem config from file:/Library/Tomcat/shared/classes/weceem.properties
Loaded weceem properties: [searchable:[index:[path:/Library/Tomcat/Websites/cms/search-indexes]]]
Setting searchable index path to: /Library/Tomcat/Websites/cms/search-indexes
Weceem: Initializing ehcache with default weceem ehcache.xml from plugin resource: class path resource [weceem-default-ehcache.xml]
2014-10-14 12:47:47,177 [localhost-startStop-1] INFO  hibernate3.HibernatePluginSupport  - Set db generation strategy to 'update' for datasource DEFAULT
2014-10-14 12:47:47,287 [localhost-startStop-1] INFO  hibernate4.HibernatePluginSupport  - Set db generation strategy to 'update' for datasource DEFAULT
2014-10-14 12:47:47,287 [localhost-startStop-1] ERROR spring.BeanBuilder  - WARNING: Your cache provider is set to 'net.sf.ehcache.hibernate.EhCacheRegionFactory' in DataSource.groovy, however the class for this provider cannot be found.
Using Grails' default cache region factory: 'org.hibernate.cache.ehcache.EhCacheRegionFactory'

即使我将此依赖项添加到 weceem-app BuildConfig.groovy:

dependencies {
    ....
    compile "net.sf.ehcache:ehcache-core:2.4.6"
    ....
}

【问题讨论】:

    标签: grails groovy weceem


    【解决方案1】:

    尝试从 GitHub 更新 weceem 源(尤其是 weceem-spring-security):这可能是 hibernate 插件版本的问题,它已将 weceem-spring-security 更改为 hibernate 3 使用。 (我在您的日志中看到来自 hibernate4 的信息)。

    【讨论】:

    • 嗨,七月,谢谢,现在可以了。我更新了所有三个项目。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-01
    • 1970-01-01
    • 2021-12-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多