I initially had my user service bean named as "userService" and then after reading through some of the other posts realized that the suffix of "Service" might be causing some confusion and renamed it to "userSvc". But still no luck...
Below are the snippets to the relevant parts:assets/coldspring/coldspring.xml:<?xml version="1.0" encoding="utf-8"?><beans>
<bean id="config" class="coldspring.beans.factory.config.MapFactoryBean"><property name="SourceMap"><map><entry key="dsn"><value>DATASOURCE</value></entry></map></property></bean>
--
FW/1 on RIAForge: http://fw1.riaforge.org/
FW/1 on github: http://github.com/seancorfield/fw1
FW/1 on Google Groups: http://groups.google.com/group/framework-one
I am on CF9 and it does look like the "default-autowire" was the issue.
This should be <contructor-arg ...>...</constructor-arg>
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
On Thu, Mar 17, 2011 at 9:04 PM, Eapen <gea...@gmail.com> wrote:This should be <contructor-arg ...>...</constructor-arg>
> <bean id="userGateway" class="model.gateway.user">
> <construct-arg name="config"><ref bean="config" /></construct-arg>
You probably had a setter in there (which wouldn't have been called
unless you made autowire the default or used a property tag).
FWIW, this is the sort of problem I'm hoping to avoid with DI/1 by
simplifying the number of ways you can wire stuff together. DI/1 won't
be for everyone and it certainly won't be for people who desperately
want absolute control over every aspect of autowiring, but I hope to
get the conventions working well enough for _most_ users and _most_
situations. And there will be no XML (of course).
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/
"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)