Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Blocker
-
Resolution: Unresolved
-
Labels:None
-
Environment:Grails: 1.3.7
-
Patch Submitted:Yes
-
Patch attached:Yes
Description
I tried using the plugin in my application. I followed the steps mentioned on the plugin info page:
Added <g:facebookConnectJavascript />
Changed DOCTYPE and html declarations
Used <fb:login-button autologoutlink="true"></fb:login-button>
When I visit the page containing the above tags, I get a ClassNotFoundException. The stack trace is as follows:
Error processing GroovyPageView: Error executing tag <g:facebookConnectJavascript>: Error creating bean with name 'FacebookTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facebookConnectService': Invocation of init method failed; nested exception is java.lang.ClassNotFoundException: FacebookConnectConfig at /home/vithun/Workspace/xEvents/grails-app/views/login/auth.gsp:66
org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <g:facebookConnectJavascript>: Error creating bean with name 'FacebookTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facebookConnectService': Invocation of init method failed; nested exception is java.lang.ClassNotFoundException: FacebookConnectConfig at /home/vithun/Workspace/xEvents/grails-app/views/login/auth.gsp:66
at home_vithun_Workspace_xEvents_grails_app_views_login_auth_gsp$_run_closure2.doCall(auth.gsp:66)
at home_vithun_Workspace_xEvents_grails_app_views_login_auth_gsp$_run_closure2.doCall(auth.gsp)
at home_vithun_Workspace_xEvents_grails_app_views_login_auth_gsp.run(auth.gsp:67)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'FacebookTagLib': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facebookConnectService': Invocation of init method failed; nested exception is java.lang.ClassNotFoundException: FacebookConnectConfig
... 4 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'facebookConnectService': Invocation of init method failed; nested exception is java.lang.ClassNotFoundException: FacebookConnectConfig
... 4 more
Caused by: java.lang.ClassNotFoundException: FacebookConnectConfig
at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:156)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:128)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java_lang_Class$forName$0.call(Unknown Source)
at FacebookConnectService.afterPropertiesSet(FacebookConnectService.groovy:15)
... 4 more
The attached patch seemed to fix the problem, but I want to make sure if that is the correct way to go. Or maybe something is missing in the documentation?