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\Reactor.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

Reply via email to