我克隆了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"
    ....
}

最佳答案

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

关于grails - 未找到weceem 1.3-SNAPSHOT提供程序net.sf.ehcache.hibernate.EhCacheRegionFactory,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26359513/

10-10 04:33