If you use a cfinvoke or cfobject tag, or the CreateObject function to
access the CFC from a CFML page, ColdFusion searches directories in
the following order:

   1. Local directory of the calling CFML page
   2. Directories specified on the ColdFusion Mappings page of the
ColdFusion MX Administrator
   3. Web root
   4. Directories specified on Custom Tag Paths page of the Administrator

 So no relative paths allowed.
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/buildi12.htm


On Fri, 29 Oct 2004 00:13:41 -0400, bryan. rice <[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> I know this is a simple question, but I can't seem to get it working:
> 
> I have a CFC, hosted at MediaTemple, that lives at
> http://www.twoedge.net/clients/tpg/seavestinc/webservices/com/
> seavestinc/property_explorer.cfc
> 
> When I call methods on it from Flash I use the service name
> "clients.tpg.seavestinc.webservices.com.seavestinc.property_explorer"
> and it works fine.
> 
> Now I have a .cfm document that lives in a different directory from
> which I want to invoke a method of my cfc.  The .cfm document lives at:
> http://www.twoedge.net/clients/tpg/seavestinc/flash/
> property_explorer.cfm?propertyID=1
> 
> I have the following code in the .cfm document:
> 
> <cfinvoke
> component="clients.tpg.seavestinc.webservices.com.seavestinc.property_ex
> plorer"
> method="getPropertyName"
> returnVariable="propertyname">
> <cfinvokeargument
> name="id"
> value="#URL.propertyID#">
> <cfoutput>#propertyname#</cfoutput>
> 
> But I get this error:
> Could not find the ColdFusion Component
> clients.tpg.seavestinc.webservices.com.seavestinc.property_explorer.
> 
> I assume that this is because the name of the component package is
> relative to where it is being called, but I am not sure how to name
> this one correctly... (how do you do a "../" in a component name?)
> 
> Thank-you for your help.
> 
> blue skies,
> bryan
> 
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
> in the message of the email.
> 
> CFCDev is run by CFCZone (www.cfczone.org) and supported
> by Mindtool, Corporation (www.mindtool.com).
> 
> An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
> 


-- 
Xavi (http://xavicl.blogspot.com)
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to