0

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"
    ....
}
4

1 に答える 1

2

GitHub から weceem ソース (特に weceem-spring-security) を更新してみてください: おそらくこれは hibernate プラグインのバージョンの問題で、weceem-spring-security が hibernate 3 の使用法に変更されました。(ログに hibernate4 からの INFO があることがわかります)。

于 2014-10-20T12:42:12.753 に答える