How to register spring bean in grails that needs a reference to a filter bean
You may try to explicitly define all the spring bean dependencies (references) in grails-app/conf/spring/resources.groovy file.
Here is a sample syntax:
// resources.groovybeans = { yourBean(com.company.YourBean) { springSecurityService = ref('springSecurityService') otherService = ref('otherService') anotherService = ref('anotherService') }}
So, in this case, you should get all three springSecurityService, otherService and anotherService initialized and accessible from within the yourBean bean.
add your existing xml file in resource folder and use the below
beans = { importBeans('classpath:/applicationContext-services.xml')}