Steve, I appreciate your help.
I'm just not getting it to work. I've taken it back to the most-basic
where I have a component in a Components directory. CF will still not
find the component.
I have a path at:
E:\WebSites\applybeta.evansville.edu\Extensions\Components
In that directory, I have the file:
E:\WebSites\applybeta.evansville.edu\Extensions\Components\ErrorHandler.
cfc
In my Application.cfc, I have the following:
<cfset this.mappings["/Components"] =
"E:\WebSites\applybeta.evansville.edu\Extensions\Components">
<cfset errorHandler = createObject("component",
"Components.ErrorHandler").init()>
I still get "Could not find the ColdFusion Component or Interface
Components.ErrorHandler".
I'm at a total loss as to why this does not work. I wish that the CF
error would display where (file paths) it tried to access the
components.
Thanks,
Mike
-----Original Message-----
From: Cutter (ColdFusion) [mailto:[email protected]]
Sent: Wednesday, June 24, 2009 4:28 PM
To: cf-talk
Subject: Re: CF8 Uses Incorrect Component Path
Just do a mapping to "/edu"
<cfset THIS.mapping["/edu"] =
"E:\WebSites\applybeta.evansville.edu\Extensions\Components\edu" />
Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
Co-Author of "Learning Ext JS"
http://www.packtpub.com/learning-ext-js/book
_____________________________
http://blog.cutterscrossing.com
On 6/24/2009 4:10 PM, Dawson, Michael wrote:
> Alright gentlemen, I think I have it figured out now. I do remember
> that CF looks in custom tag paths, but that was when I was using
> components with application.cfm and my legacy code.
>
> http://livedocs.adobe.com/coldfusion/6.1/htmldocs/buildi12.htm
>
> #4 reads "Directories specified on Custom Tag Paths page of the
> Administrator"
>
> That said, I'm ready to move on to doing it the right way with
> Application.cfc.
>
> I want to specify my components using a FQDN such as:
>
> edu.evansville.applybeta.package.component
>
> My components are located at:
>
> E:\WebSites\applybeta.evansville.edu\Extensions\Components
>
> I would then have the following directory structure:
>
> E:\WebSites\applybeta.evansville.edu\Extensions\Components\edu
> E:\WebSites\applybeta.evansville.edu\Extensions\Components\edu\evansvi
> ll
> e
> E:\WebSites\applybeta.evansville.edu\Extensions\Components\edu\evansvi
> ll
> e\applybeta\
> and so on...
>
> Should I:
> * Create a "/" mapping to
> "E:\WebSites\applybeta.evansville.edu\Extensions\Components\edu"
> * Create a "/edu.evansville.applybeta" mapping to
> E:\WebSites\applybeta.evansville.edu\Extensions\Components\edu\evansvi
> ll
> e\applybeta\
>
> What is the most accepted method for mapping in this manner?
>
> I certainly appreciate your help with clarifying this for me.
>
> Thanks,
> Mike
>
> -----Original Message-----
> From: Cutter (ColdFusion) [mailto:[email protected]]
> Sent: Wednesday, June 24, 2009 1:53 PM
> To: cf-talk
> Subject: Re: CF8 Uses Incorrect Component Path
>
>
> Components are different from CustomTags, and your mapping is a
> customTagPaths mapping. You'll want to use a standard cf mapping:
>
> this.mapping['/Components'] = 'c:\Inetpub\componentpath\';
>
> Then ref that path (/Components) in your code.
>
> Steve "Cutter" Blades
> Adobe Certified Professional
> Advanced Macromedia ColdFusion MX 7 Developer
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323902
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4