Grails 3.1.8 with spring security core using multiple datasources
<p>I'm facing problem with grails spring-security-core plugin/spring-ldap plugin. Here is my first post <a href="https://stackoverflow.com/questions/37701893/error-while-deploying-grails-app-on-tomcat-8">link</a>,  and full <a href="http://pastebin.com/bT1ztRbs" rel="nofollow noreferrer">stacktrace</a>. Here is the problem:</p>

<p>I have an app with multpile datasources and spring-security-core plugin added by </p>

<pre><code>`build.gradle ` `compile "org.grails.plugins:spring-security-core:3.1.1"`
</code></pre>

<p>running this app in build in tomcat server, it works great, but when I try to deploy war file in my own tomcat, it fails with error (in the link), i have been trying to find what cause it, first solution is turning off second level cache, second solution is removing spring-security-core plugin from project. I don't know if it is a bug or maybe I'm missing some configuration, maybe default configuration is not enough?. Project was working in previous grails version 3.0.x. If you want to reproduce error simply create new grails project - with web profile, add more then one datasource (oracle,mssql) and try to deploy it on tomcat.</p>

<p>I thought it may be some problem with plugin dependencies because it also uses ehcache, and i have dependency to <code>hibernate-ehcache</code>, but excluding <code>ehcache-core</code> didnt help.  Here is repo with sample project which fails <a href="https://bitbucket.org/trokitasnt/grailstest" rel="nofollow noreferrer">link</a></p>