Good Afternoon,

I hope I am not posting something that has been posted a billion  
times, but here we are. I am not sure why I am having these issues as  
I have implement ColdSpring and Reactor in my projects together  
before. I am also using Mach-ii as my OO framework.

I am getting the following error when attempting to getAll() from my  
"Service" table in my database:

The argument REACTOR passed to function init() is not of type  
reactor.reactorFactory
The error occurred in D:\Websites\DigitalEyeon\mladamsins\webroot 
\model\ServiceListener.cfc: line 5

ServiceListener.cfc:

<cfcomponent name="ServiceListener" extends="MachII.framework.Listener">

        <cffunction name="configure" access="public" returntype="void"  
hint="Configures this listener">

        </cffunction>
        
        <cffunction name="init" access="public" returntype="void"  
hint="Inits this listener">
                <cfargument name="Reactor" required="true"  
type="reactor.reactorFactory" />
                <cfscript>
                        variables.Reactor = arguments.Reactor;
                </cfscript>
        </cffunction>

        <cffunction name="getAll" access="remote" returntype="query">
                <cfreturn variables.Reactor.createGateway('Service').getAll() />
        </cffunction>
</cfcomponent>

Services.xml:
<?xml version="1.0" encoding="UTF-8"?>

<beans>
        <bean id="reactor" class="reactor.reactorFactory">
                <constructor-arg name="configuration">
                        <value>/config/reactor.xml</value>
                </constructor-arg>
        </bean>
        
        <bean id="serviceListener" class="model.ServiceListener" />
        
        <bean id="udf" class="model.UDF" singleton="true" />

</beans>

Mach-ii ColdSpring plugin config:
<plugin name="ColdspringPlugin"  
type="coldspring.machii.ColdspringPlugin">
                        <parameters>
                                <parameter name="configFilePropertyName" 
value="servicesConfig" />
                                <parameter name="configFilePathIsRelative" 
value="true" />
                                <parameter name="resolveMachiiDependencies" 
value="true" />
                        </parameters>
                </plugin>


Thanks,
Kyle

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265355
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to