Grails 2.4 throws an EHCache class error not found

I created a new Grails 2.4 project, remote hibernation and the database migration plugin added the latest spring security module and mongo db, and when I started grails compile I got the following error

| Error Fatal error during compilation java.lang.NoClassDefFoundError: net/sf/ehcache/config/CacheConfiguration (Use --stacktrace to see the full trace)

If I remove the spring security plugin, it compiles, and if I remove the mongoDB plugin and use spring-security with hibernate, it still only works with the spring security combination with the solo mongoDB plugin, which gives the error above.

Any idea?

+8
grails ehcache
source share
1 answer

Similar to spring-security depends on ehcache, but does not declare as such. We had a similar problem with the cache plugin depending on ehcache. Add this to the dependencies section of your BuildConfig:

 compile "net.sf.ehcache:ehcache-core:2.4.8" 
+11
source share

All Articles