Bean name clash - latest webflow has creates a conversationService which I already have defined in my app

13 views
Skip to first unread message

Mikael Andersson

unread,
Feb 19, 2015, 5:18:53 PM2/19/15
to grails-de...@googlegroups.com
Hi

I've just started to upgrade an application from Grails 2.2.4 to 2.4.4 and have run into an issue where a bean from webflow called 'conversationService' gets confused with a bean called 'conversationService' which exists in my application.

I get:
Caused by IllegalStateException: Cannot convert value of type [org.springframework.binding.convert.service.DefaultConversionService] to required type [conv.ConversationService] for property 'conversationService': no matching editors or conversion strategy found
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync

I've been reading a bit about namespaces for artefacts and I've seen it mentioned that grails will prefix them services the plugin name. And also read something about Grails creating a bean alias for when there is only one service with the name. But not sure how I'd use that.

Can I use some namespace functionality somehow? Or do I need to bite the bullet and change the name of my ConversationService bean to something else?

Cheers,
Micke

Mikael Andersson

unread,
Feb 20, 2015, 8:44:48 AM2/20/15
to grails-de...@googlegroups.com
Just realised I posted this on the dev mailing list, please ignore and I'll move this over to the user group.
Reply all
Reply to author
Forward
0 new messages