Did you fail to see the working example I sent? Seriously. You're just wasting time now. Move on. I'd rather you not use reactor if you're just going to berate it when in fact it works.
What am I using? CFC 7.0.1 + merimac, reactor, iis 5.1 winxp pro... the same setup as you. It works, you're just doing something wrong. Doug -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Kear Sent: Sunday, April 16, 2006 10:43 AM To: [email protected] Subject: Re: [Reactor For CF] Problems with configuring reactor for shared environment Nope. my call to the xml file was correct. It was being passed through to the cfc with the correct path. The reactorFactory.cfc isn't recognising the path in the arguments as an object. If I do a CFDUMP of the arguments scope I can see that there is definitely an object called arguments.configuration, with a value of C:\Inetpub\wwwroot\testsite\cfcs\Reactor.xml, yet the statement <cfif NOT IsObject(arguments.configuration)> is evaluating to false, because it's executing the code in the line that follows which is <cfset arguments.configuration = CreateObject("Component", "reactor.config.config").init(arguments.configuration) /> and since there is no mapping called "reactor" and this cfc is already in a folder called "reactor" there is no place underneath the reactorFactory cfc for it to find teh config cfc. When I use the code you quoted, cut and pasted directly off your message, i get the following error: [quote] Could not find the ColdFusion Component reactor.config.config. [/quote] which is what is to be expected, becuase (a) the xml file is NOT at /cfcs/reactor.xml but at cfcs.reactor.xml. and [b] there is no mapping called 'reactor' because i deleted the mapping, since i'm trying to get it working without a mapping. The root of the web site is at c:\inetpub\wwwroot\testsite. In this environment you can't use "/cfcs/reactor.xml" You can only use 'cfcs/Reactor.xml". And in fact the code I am using to test reactor is as follows: <cfset Reactor = CreateObject("Component", "reactor.reactorFactory").init(expandPath("cfcs\Reactor.xml")) /> <cfdump var="#Reactor#" /> OK perhaps others are using it in a shared environment. Perhaps what I should be saying instead then is that you cannot use reactor to develop on a PC using WinXPPro and IIS because in IIS you cant have multiple sites. You can only have one site. But it sitll means using reactor is impractical for developing in the smaller sites. I can have a site working in the production environment, but can't have it running in the dev environment. That makes it pretty hard to work on dont you think? Remembering that reactor is supposed to be a time saver, i can't develop with it, unless i change every reference to CFCs throughout the code, every time there's a code change OR change my web server - which last time i had a go at it cost me a LOT of time. Believe me, I'm eager to be proved wrong here. I think Reactor looks like a terrific product. I was excited the other day when i saw Doug's breezo on it, and thats why i had a go at using it. But i can't see how it's practical to use in a shared environment, using IIS on my dev machine. 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/17/06, Jared Rypka-Hauer <[EMAIL PROTECTED]> wrote: > Mike... > > I'll take a stab at reiterating here... > > YOU DO NOT NEED A MAPPING UNLESS YOU'RE SHARING CODE ACROSS SITES. > > Mappings are server-wide, so any site connected to the server will see the > same thing at /Reactor if you have a Reactor mapping. > > If you don't have a mapping, you need a copy of Reactor in the root of each > site (which, for me in a shared environment, is far preferable, because it > allows your clients to run with/without it and run different versions of > it). > > If you don't have a mapping to Reactor, CF looks in the document root for > that website for a folder called Reactor. > > And, furthermore, your call to create the ReactorFactory was just plain > wrong. Instead of this (which you had): > > <cfset Reactor = > CreateObject("Component","reactor.reactorFactory").init(expandPath("cfcs\Rea ctor.xml")) > /> > > > What you SHOULD HAVE HAD was this: > > <cfset Reactor = > CreateObject("Component","reactor.reactorFactory").init("/cfcs/Reactor.xml") > /> > > > > > > That tells CF that your component is off the webroot in a folder called > Reactor and that your XML file is off the root in a folder called cfcs. > > > > > And, I'm gonna say this one more time: Sean's using this in a shared > environment. I'm using this in a shared environment. Doug's tested this in a > simulation of a shared environment, and you getting all agitated and rude > and huffy about it doesn't encourage anyone to be terribly helpful. So... my > suggestion is that you test the example I have above by removing any > mappings, dropping Reactor into the webroot of testsite, and creating > c:\inetpub\wwwroot\testsite\index.cfm with the following > code: > > > > > <cfset Reactor = > CreateObject("Component","reactor.reactorFactory").init("/cfcs/Reactor.xml") > /> > > <cfdump var="#Reactor#" /> > > > > > That should give you what you are looking for. > > > > J > > > > > ------------------------------------------------ > > Jared C. Rypka-Hauer > > Continuum Media Group LLC > > http://www.web-relevant.com > > Member, Team Macromedia - ColdFusion > > > > > "That which does not kill me makes me stranger." - Yonah Schmeidler -- -- 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/

