I created a fresh Grails 2.4 project, removed hibernate and database migration plugin added latest spring security and mongo db plugin and when I ran grails compile
I got 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 spring security plugin it compiles and if I remove mongoDB plugin and use spring-security with hibernate it still works only the combination of spring security with solo mongoDB plugin is giving above error.
Any Idea ?
Looks like spring-security depends on ehcache, but doesn't 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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With