Make sure that:
com.benorama.phones.model.PhoneDAO

is located at:
/com/benorama/phones/model/PhoneDOA.cfc

regards,
Muzak

----- Original Message ----- 
From: "Russell Sprague" <[EMAIL PROTECTED]>
To: <flexcoders@yahoogroups.com>
Sent: Tuesday, April 17, 2007 8:26 PM
Subject: [flexcoders] Coldfusion Path problems


>I am having problems with cfc paths when testing any Flex app that uses
> remoting and the cfc with absolute paths to themselves.
> It throws an error that it can not find the cfc.
> so take this line of code from Application.cfc in the Phones example app:
> <cfset application.phoneDAO = createObject("component",
> "com.benorama.phones.model.PhoneDAO").init() />
> It will tell me it can not find the PhoneDAO component.
> If I make the path relative
> <cfset application.phoneDAO = createObject("component",
> "PhoneDAO").init() />
> it works.
> This is a problem with any cfc that has an absolute path reference.
> My Coldfusion dev box is separate from my workstation, so I thought this
> was a network issue, because if I upload the app to my production
> server,  it will run fine.  But even when I test the app locally on the
> Coldfusion dev box, it still throws the error.
> This is really bugging me, because I am trying to learn Cairngorm and
> with coldfusion connections, and most of the examples have cfc's that
> use absolute paths.  Also any app that is created using the
> Flex/Coldfusion wizard also creates cfc's with absolute paths.
> Any thoughts?
> Russ
> 


Reply via email to