splix / grails-spring-security-facebook

Facebook Authentication plugin for Grails
http://splix.github.io/grails-spring-security-facebook/index.html
Other
39 stars 35 forks source link

Cannot resolve reference to bean 'facebookAuthDao' #61

Closed lyhcode closed 10 years ago

lyhcode commented 10 years ago

with Grails 2.3.5 + :spring-security-facebook:0.15.2-CORE2

context.GrailsContextLoader Error initializing the application: Error creating bean with name 'facebookAuthProvider': Cannot resolve reference to bean 'facebookAuthDao' while setting bean property 'facebookAuthDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facebookAuthDao': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Dynamic method get<Artefact>Class(artefactName) requires a single String parameter
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facebookAuthProvider': Cannot resolve reference to bean 'facebookAuthDao' while setting bean property 'facebookAuthDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facebookAuthDao': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Dynamic method get<Artefact>Class(artefactName) requires a single String parameter
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facebookAuthDao': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Dynamic method get<Artefact>Class(artefactName) requires a single String parameter
    ... 4 more
Caused by: java.lang.IllegalArgumentException: Dynamic method get<Artefact>Class(artefactName) requires a single String parameter
    at com.the6hours.grails.springsecurity.facebook.DefaultFacebookAuthDao.afterPropertiesSet(DefaultFacebookAuthDao.groovy:372)
    ... 4 more
lyhcode commented 10 years ago

Due to the springsecurity package name change. Fixed

grails.plugin.springsecurity