Marc,

Are you using CFMX 6.1 and on Windows? I believe there is a bug with
ExpandPath and mappings. If so, check the archives as Sean posted a fix for
this about a week ago.

Cedric

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Marc Funaro
Sent: Friday, August 04, 2006 2:59 PM
To: [email protected]
Subject: RE: [Reactor for CF] Newbie can't get it going

And just for kicks, I modified reactor's config.cfc, inserting the following
at line 137:

<CFDUMP var="#expandPath(arguments.mapping)#"><CFABORT>

Which gave me this in the output:

D:\Advantex\Sites\ReactorSampleApp\www\ReactorSampleApp

So it appears to ignore my CFMapping, and still expects there to be a
directory under my app's www directory.  Is this the expected behavior?

M 

    >   -----Original Message-----
    >   From: [EMAIL PROTECTED] 
    >   [mailto:[EMAIL PROTECTED] On Behalf Of Marc Funaro
    >   Sent: Friday, August 04, 2006 5:53 PM
    >   To: [email protected]
    >   Subject: [Reactor for CF] Newbie can't get it going
    >   
    >   Hi Everyone,
    >   
    >   I am working through the documentation (Crash Course), 
    >   and have already hit a snag.
    >   
    >   I have done the following:
    >   
    >   downloaded Reactor from svn.reactorframework.org.  
    >   Entire contents stored at C:\InetPub\wwwroot\reactor
    >   
    >   Created ColdFusion mapping, /reactor, pointing to 
    >   C:\InetPub\wwwroot\reactor\reactor.  Verified that in 
    >   the root of CF Mapping "/reactor" is the file 
    >   reactorFactory.cfc.
    >   
    >   Created Database called ReactorSampleApp
    >   
    >   Set up CF Datasource to ReactorSampleApp; proper 
    >   username and password used.
    >   Connection verified.
    >   
    >   Created directory, dns and IIS mapping for my sample site:  
    >   
    >   D:\Advantex\Sites\ReactorSampleApp.
    >   
    >   In this directory, the following hierarchy:
    >   
    >   ~\datafiles
    >   ~\datafiles\reactor (This is where I had anticipated 
    >   reactor-generated files ending up.) ~\www
    >   
    >   Created a ColdFusion mapping named ReactorSampleApp, 
    >   pointing to:
    >   D:\Advantex\Sites\ReactorSampleApp
    >   
    >   Added sample database table to database.
    >   
    >   Added the following xml file:
    >   
    >   D:\Advantex\Sites\ReactorSampleApp\www\reactor.xml
    >   
    >   The contents of which are:
    >   
    >   <reactor>
    >     <config>
    >          <project value="ReactorSampleApp" />
    >          <dsn value="ReactorSampleApp" />
    >          <type value="mssql" />
    >          <mapping value="/ReactorSampleApp/datafiles/reactor" />
    >          <mode value="development" />
    >     </config>
    >   
    >     <objects/>
    >   </reactor>
    >   
    >   Added the following CF file:
    >   
    >   D:\Advantex\Sites\ReactorSampleApp\www\Application.cfm
    >   
    >   The contents of which are:
    >   
    >   <CFDUMP var="#expandPath('reactor.xml')#">
    >   <cfset Reactor = CreateObject("Component",
    >   "reactor.reactorFactory").init(expandPath("reactor.xml")) />
    >   
    >   Added the following CF File:
    >   
    >   D:\Advantex\Sites\ReactorSampleApp\www\index.cfm
    >   
    >   The contents of which are:
    >   
    >   <h1>Hello World</h1>
    >   
    >   Browsed to my new site, and no joy.  I get the cfdump output:
    >   
    >   D:\Advantex\Sites\ReactorSampleApp\www\reactor.xml
    >   
    >   Which is what I expected... Cool.
    >   
    >   But when the Reactor object instantiation is requested, I get:
    >   
    >   Error Occurred While Processing Request Invalid Mapping 
    >   Setting The mapping argument must be a mapping to a 
    >   directory which exists. 
    >    
    >   The error occurred in 
    >   C:\Inetpub\wwwroot\reactor\reactor\config\config.cfc:
    >   line 141
    >   Called from 
    >   C:\Inetpub\wwwroot\reactor\reactor\config\config.cfc: 
    >   line 60 Called from 
    >   C:\Inetpub\wwwroot\reactor\reactor\config\config.cfc: 
    >   line 35 Called from 
    >   C:\Inetpub\wwwroot\reactor\reactor\reactorFactory.cfc: 
    >   line 10 Called from 
    >   D:\Advantex\Sites\ReactorSampleApp\www\Application.cfm: line 3
    >   139 :                   <cfthrow type="reactor.Invalidmapping"
    >   140 :                           message="Invalid 
    >   Mapping Setting"
    >   141 :                           detail="The mapping 
    >   argument must be a
    >   mapping to a directory which exists." />
    >   142 :           </cfif>
    >   143 : 
    >   
    >   
    >   
    >   For kicks, I tried adjusting my mapping block as follows:
    >   
    >   <mapping value="/ReactorSampleApp" />
    >   
    >   Which would just dump my reactor-generated files into 
    >   the app's root directory (above www), which isn't clean 
    >   but I could live with for now...
    >   
    >   But still no joy, same error.
    >   
    >   What am I doing wrong?
    >   
    >   Did I do a Bad Thing in pulling reactor from SVN?
    >   
    >   Thanks for any help you can provide,
    >   
    >   Marc



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

Reply via email to