Brian,

Thanks for this.
I think you are right


Wayne



Brian Rinaldi wrote:
Ok. I smacked myself on the head for this one....I had not reinitialized the application scope...DOH! Maybe the same for you Wayne?

Wayne McFetridge wrote:
I'm getting this error on a an app that was initially deployed with an old version of Reactor.

The parameter USERNAME to function init is required but was not passed in.



The error occurred in objectFactory.cfc: line 96
Called from objectFactory.cfc: line 29
Called from D:\hshome\wayn0\customTags\reactor\reactorFactory.cfc: line 35
Called from D:\hshome\wayn0\customTags\wbm\admin\listeners\casestudies\casestudyListener.cfc: line 8


I just grabbed the latest Reactor out of SVN and put it on my server. "New" apps that were deployed under this install run fine but this "older" site now gives the above error.

I am using Mach-ii and set up my Reactor Gateways etc in the init function of my listeners like this -- feel free to tell me that this is wrong (if it is)


<cffunction name="init">
     
         <cfset reactorObj = CreateObject("Component", "reactor.reactorFactory").init(expandPath("config/reactor.xml")) />
        <cfset casestudyGateway = reactorObj.createGateway("casestudies") />>
        <cfset casestudyRecord = reactorObj.createRecord("casestudies") />
        <cfset mediacasestudiesGateway = reactorObj.createGateway("mediacasestudies") />
        <cfset casestudiesworktypesGateway = reactorObj.createGateway("casestudiesworktypes") />
        <cfset worktypesGateway = reactorObj.createGateway("worktypes") />

</cffunction>

My reactor config looks like this


        <project value="wbm" />
        <dsn value="wbm" />
        <type value="mysql" />
        <mapping value="/wbmModel" />
        <mode value="development" />


This exact same app runs fine on my development box and the problem is with a live deployment on a server I can't just cycle.
I see in the archives mention of a similar problem that 
Michael mentions he thought involved an Application variable not set properly.

Any hints? thanks in advance

Wayne McFetridge
-- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

-- 
Brian Rinaldi
blog - http://www.remotesynthesis.com/blog
home page - http://www.remotesynthesis.com
-- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/



 

-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/


Reply via email to