Need to describe plugin's load order, so that it will be loaded after everything related to dataSource is ready.
Fix in \src\main\groovy\grails\plugin\jmsJmsGrailsPlugin.groovy
def loadAfter = ['services', 'controllers','dataSource','hibernate', 'hibernate4']
And with Grails 3.2 there is also hibernate5
In main branch was fix for plugin load order "added dataSource to loadAfter" https://github.com/gpc/jms/commit/dee0630d0073d9611da3d0a0efbf8b8b33565ccd
Need to describe plugin's load order, so that it will be loaded after everything related to dataSource is ready. Fix in \src\main\groovy\grails\plugin\jmsJmsGrailsPlugin.groovy
def loadAfter = ['services', 'controllers','dataSource','hibernate', 'hibernate4']
And with Grails 3.2 there is also hibernate5Grails documentation about plugin load order http://docs.grails.org/latest/guide/plugins.html#understandingPluginLoadOrder