So I went through and did what Dan said and it looks like it might be
something with the layoutService that I have created. I have dumped
the dsn argument in the init of this object and it is getting a
datasource object, but for some reason it is still getting an error:

Bean creation exception during init() of mv2.model.layoutService

The DSN argument passed to the init function is not of type
ModelGlue.Bean.CommonBeans.Datasource.:If the component name is
specified as a type of this argument, it is possible that either a
definition file for the component cannot be found or is not
accessible.

Not sure what could be causing it. Here is the init function of the
layoutService. Also, I removed the references to the other beans in
the service bean, so I will put that below as well.

<!-- Init method -->
<cffunction name="init" access="public" output="false"
returntype="mv2.model.layoutService">

                <cfargument name="dsn" 
type="ModelGlue.Bean.CommonBeans.Datasource"
required="true" />

                <cfset variables.dsn = arguments.dsn.getDSN() />

                <cfscript>
                        variables.layoutDAO             =
createObject("component","mv2.model.layoutDAO").init(variables.dsn);
                        variables.layoutGateway =
createObject("component","mv2.model.layoutGateway").init(variables.dsn);
                </cfscript>

                <cfreturn this/>
        </cffunction>

        <cffunction name="createlayout" access="public" output="false"
returntype="mv2.model.layout">
                <cfargument name="id" type="numeric" required="false" />
                <cfargument name="name" type="string" required="false" />


                <cfset var layout =
createObject("component","mv2.model.layout").init(argumentCollection=arguments) 
/
>
                <cfreturn layout />
        </cffunction>
<!-- Bean -->
<bean id="layoutService" class="mv2.model.layoutService">
        <constructor-arg name="dsn"><ref bean="datasource" /></constructor-
arg>
</bean>

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to