Quantcast

Fwd: authentication plugin not working on grails 1.3.7 with Mongodb plugin

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Fwd: authentication plugin not working on grails 1.3.7 with Mongodb plugin

yiguang hu
---------- Forwarded message ----------
From: yiguang hu <[hidden email]>
Date: Fri, Oct 21, 2011 at 11:02 AM
Subject: Fwd: authentication plugin not working on grails 1.3.7 with
Mongodb plugin
To: [hidden email]


I am forwarding a email that I posted to the user list. But no one
provide a solution. So I am forwarding to this list. Any help is
highly appreciated. Thx.

I think authentication service is not working after hibernate plugin is removed.

My application use grails 1.3.7 and MongodDB (with hibernate plugin
uninstalled) was working.
When I tried to add authentication, it start to complain not able to
find "transactionManager" bean from authenticationService.

I tried both authentication plugin and spring-security-acl plugin.
They both complain the same problem.

So I reinstall hibernate plugin back and the complain goes away. But
then the app is using the default database instead of MongoDB.

Is there anything I need to configure so that the problem will go away
while I can still use MongoDB?

Thanks
Yiguang

On Thu, Oct 20, 2011 at 10:40 PM, yiguang hu <[hidden email]> wrote:

> My grails app use grails 1.3.7 and Mongodb (so hibernate is uninstalled).
>
> Then I tried to add authentication by installing the authentication plugin
>
> grails install-plugin authentication
>
> and I got the following error when trying to run the app (Nothing else
> changed except installing the new plugin).
>
> I tried clean and run-app. It didn't help.
> Any idea?
> Thanks!
>
> 2011-10-20 22:31:28,412 [main] ERROR
> plugins.DefaultGrailsPluginManager  - Error configuring dynamic
> methods for plugin [authentication:2.0.1]: Error creating bean with
> name 'authenticationService': Cannot resolve reference to bean
> 'transactionManager' while setting bean property 'transactionManager';
> nested exception is
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No
> bean named 'transactionManager' is defined
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'authenticationService': Cannot resolve
> reference to bean 'transactionManager' while setting bean property
> 'transactionManager'; nested exception is
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No
> bean named 'transactionManager' is defined
>        at AuthenticationGrailsPlugin$_closure3.doCall(AuthenticationGrailsPlugin.groovy:24)
>        at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:212)
>        at grails.web.container.EmbeddableServer$start.call(Unknown Source)
>        at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:158)
>        at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
>        at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
>        at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
>        at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:149)
>        at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
>        at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
>        at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
>        at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
>        at RunApp$_run_closure1.doCall(RunApp.groovy:33)
>        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
>        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
>        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
>        at gant.Gant.withBuildListeners(Gant.groovy:427)
>        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
>        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
>        at gant.Gant.dispatch(Gant.groovy:415)
>        at gant.Gant.this$2$dispatch(Gant.groovy)
>        at gant.Gant.invokeMethod(Gant.groovy)
>        at gant.Gant.executeTargets(Gant.groovy:590)
>        at gant.Gant.executeTargets(Gant.groovy:589)
> Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException:
> No bean named 'transactionManager' is defined
>        ... 24 more
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...