Hi everyone, It seems we are all having a busy sunday ;) My sentence " the docs are not updated. You can run reactor without the mappings, you just need that folder in your webroot." I was talking about the reactor folder, sorry Mike if I wasn't explicit enough.
When I said that it works on shared hosting is because I have it running perfectly. Just like others said, you just need to have a copy of reactor in your webroot nothing else, since all references to build reactor objects are reactor.some.path.to.a.cfc so I tough it was enough to understand that it was obvious that a reactor folder should always exist. I'm running reactor on a shared hosting for a mmug (and I don't know what kind of IIS do they run. I'm running about 5 diferent versions of reactor on my dev & prd boxes (I never had time to migrate everything to a single version). Some uses mappings and some don't. I run it under IIS 5.1(local machine win XP) IIS 5 (dev Box) II6 (prd box). None had problems (mappings or no mappings). Anyway Mike, Reactor is not a perfect framework (?!?alpha?!?) and cannot fit to everyone's way of doing things, maybe you'll have to choose. I'm just glad that I'm Nº1 Fan ;) Happy Easter to everyone ! -----Original Message----- From: [EMAIL PROTECTED] on behalf of Doug Hughes Sent: Sun 16-Apr-06 2:57 PM To: [email protected] Subject: RE: [Reactor For CF] Problems with configuring reactor for shared environment In the effort to protect the good name of my friend João (and not in an effort to reward a petulant attitude) I've attached a zip that works just fine (thank you) from the root of a web site. I deleted my reactor mapping and contact manager mapping. I copied reactor into the root of a website and I put the contact manager folder under that. I ran a find replace to change all instances of /contactmanagerdata to /contactmanager/data. I also insured that there was nothing under the /reactor/project folder. I changed the reactor.xml so that it would use /contactmanager/data (which is not a mapping). When I browse to the site at http://localhost/contactmanager lo-and-behold I see the contact manager app fire up! When I looked under the /reactor/project folder what to my wondering eyes did appear, but a contactmanager folder rife with generated files! Let's restate what I did: I have a site, localhost. The webroot of localhost is c:\inetpub\scratch. Under c:\inetpub\scratch I have a folder for reactor and for the contact manager. That's it. Happy Easter. The rest is up to you. Doug -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Kear Sent: Sunday, April 16, 2006 9:16 AM To: [email protected] Subject: Re: [Reactor For CF] Problems with configuring reactor for shared environment Well i've had it with a mapping and without. I've had it with reactorFactory.cfc in the root level with the base,config,core etc folders at the first level below, and it complained it couldnt find the components it was trying to instantiate. So i put it with reactor at the first level below the root, and base, config, core etc at the level below that. Then it instantiated reactorFactory.cfc ok but the init method complained it couldnt find the xml file, even though it was looking for it in the right place. In fact there is a struct key called arguments.configuration, with the correct path to the xml file (i proved that with a cfdump and cfabort). But the code in teh reactorFactory.cfc uses that with the following instantiation code: <cfset arguments.configuration = CreateObject("Component", "reactor.config.config").init(arguments.configuration) /> That quite simply means the only place it's going to look for a component called config.cfc is in a location under a mapping called "reactor". Therefore the only way this is going to work without a mapping called "reactor" is if I go through and edit all the code for any references to teh mapping "reactor". In which time i could have finished the job I wanted to use reactor for in the first place. And i can't wait till Monday This is EASTER weekend - i have obligations to my family too. I just have to do this job the old way if it takes me all night. As i said if i hadnt tried to use reactor, on the assurances of João that it would work, I"d have had the job completed by dinner time tonight. Now i have to start from the beginning and hope i have it finished by morning. What a fun way to spend Easter holiday weekend. Thanks a lot. Cheers Mike Kear Windsor, NSW, Australia Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 4/16/06, Matt Williams <[EMAIL PROTECTED]> wrote: > Since I'm using Reactor with Model Glue and Mach II, I'm not sure how to > help your situation, but I am using Reactor without a mapping on my > development machine. Just downloaded it from SVN too. So don't give up. I > think you're just not instantiating correctly. This list is a quiet on the > weekend. There will be more folks around to help Monday. > > > > On 4/16/06, Mike Kear <[EMAIL PROTECTED]> wrote: > > > I looked into the reactorFactory.CFC and in the init method, it says this: > > <cfif NOT IsObject(arguments.configuration)> > <cfset arguments.configuration = CreateObject("Component", > " reactor.config.config").init(arguments.configuration) /> > </cfif> -- 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/ -- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/
<<winmail.dat>>

