|
Mailing Lists
|
Home /
Groups /
Model Glue
Model-Glue: Unity - Reactor & Coldspring Error
> Hello everyone, I recently downloaded and set up MG:U, Reactor, andw.davidson 05/11/07 11:49 A Did you find the answer to this problem. I am having the same problem.w.davidson 05/11/07 11:51 A Hello everyone, I recently downloaded and set up MG:U, Reactor, and Coldspring. I got brave today and decided to try and figure out how to use Reactor in an app. The app worked just fine before I implemented Reactor. It's just a simple call to the database to retrieve all users from the User table and display them in a tabular fashion.I keep getting an error that when I try to create a ReactorFactory object.I am creating the factory in the default Controller.cfc. Here is the constructor code. <!--- Controllers are in the application scope: Put any application startup code here. ---> <cfset variables.Reactor = CreateObject("Component", "reactor.reactorFactory").init(expandPath("./config/Reactor.xml")) /> <cfset variables.UserGateway = Reactor.createGateway("users") /> <cfreturn this /> </cffunction>When the Reactor Factory is being created, it throws this error. Element BEANFACTORY is undefined in VARIABLES. The error occurred in C:\CFusionMX7\wwwroot\reactor\reactorFactory.cfc: line 122 Called from C:\CFusionMX7\wwwroot\reactor\reactorFactory.cfc: line 16 Called from C:\CFusionMX7\wwwroot\translator\controller\Controller.cfc: line 9 Called from C:\CFusionMX7\wwwroot\ModelGlue\unity\loader\XmlConfigurationLoader.cfc: line 195Called from C:\CFusionMX7\wwwroot\ModelGlue\unity\loader\XmlConfigurationLoader.cfc: line 44 Called from C:\CFusionMX7\wwwroot\ModelGlue\unity\loader\FrameworkLoader.cfc: line 60 Called from C:\CFusionMX7\wwwroot\ModelGlue\unity\ModelGlue.cfm: line 37 Called from C:\CFusionMX7\wwwroot\translator\index.cfm: line 33120 : <cfset variables.BeanFactory = arguments.beanFactory />121 : </cffunction>122 : <cffunction name="getBeanFactory" access="private" output="false" returntype="coldspring.beans.beanFactory">123 : <cfreturn variables.BeanFactory />124 : </cffunction>It seems that getBeanFactory is called in the contructor of reactorFactory.cfc long before setBeanFactory() is. Am I simply creating this objectdifferent than I'm supposed to be? Or is this a known problem with the framework? I'm really quite confused at this.Any help would be greatly appreciated. Thanks.-Morgan _________________________________________________________________ Search from any Web page with powerful protection. Get the FREE Windows Live Toolbar Today! http://get.live.com/toolbar/overview ----- Excess quoted text cut - see Original Post for more ----- > Element BEANFACTORY is undefined in VARIABLES. > The error occurred in C:\CFusionMX7\wwwroot\reactor\reactorFactory. > cfc: line 122 > > Called from C:\CFusionMX7\wwwroot\reactor\reactorFactory.cfc: > line 16 > > Called from > C:\CFusionMX7\wwwroot\translator\controller\Controller.cfc: line 9 > > Called from > C:\CFusionMX7\wwwroot\ModelGlue\unity\loader\XmlConfigurationLoader. > cfc: line 195Called from > C:\CFusionMX7\wwwroot\ModelGlue\unity\loader\XmlConfigurationLoader. > cfc: line 44 > > Called from > C:\CFusionMX7\wwwroot\ModelGlue\unity\loader\FrameworkLoader.cfc: line > 60 > > Called from C:\CFusionMX7\wwwroot\ModelGlue\unity\ModelGlue.cfm: > line 37 > ----- Excess quoted text cut - see Original Post for more ----- com/toolbar/overview Did you find the answer to this problem. I am having the same problem. I am assuming reactor is dependent upon coldsprings being installed. It has been installed in my webroot. 11:00:43.043 - Expression Exception - in C:\CFusionMX7\wwwroot\reactor\reactorFactory.cfc : line 122 Element BEANFACTORY is undefined in VARIABLES. I am simply trying to run the scratch example.
|
May 18, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||