When CF sees CreateObject("Component", "reactor.config.config"), it does 2 things (I'm not sure the order of them). It looks for a directory at the web root called 'reactor'. If it does not find that, it looks for a mapping named 'reactor'. My web root has a directory named 'reactor' and the CF server does not have a mapping.

Looking back at your original question and your directory structure, you have the reactor  directory under testsite. This will not work unless you do a mapping. Or, move the reactor directory (with reactorfactory.cfc and all other directories to be under wwwroot.

C:\inetpub\wwwroot\reactor
C:\inetpub\wwwroot\testsite

Since you are looking to go into a shared environment you may not be able to do this. The other work around would be to keep the reactor directory under testsite, but you would have to edit the reactor code. Every place that refers to ' reactor.whatever' would have to refer to 'testsite.reactor.whatever'.

I hope this clears it up. Since it is almost 8am Sunday here, I have to get ready for church now, but I'll try to check back this afternoon. Good luck.

On 4/16/06, Mike Kear <[EMAIL PROTECTED]> wrote:
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/

Reply via email to