Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFC Error - Could not find the ColdFusion Component

Status
Not open for further replies.

Tridacna

Programmer
Jan 27, 2004
2
US
I am running into a ColdFusion error when trying to deploy CF MX components (cfc) on my site. I believe the issue is somewhat server related and wanted to see if anyone had any thoughts.

Basically when I use a cfc if it is in the same folder as the calling page or upstream (in a folder above the caller) the cfc executes with no problem. However if I put the cfc in a folder below the caller, such as in a central cfc folder (in order to maximize code re-usability) it returns an error that the component From my understanding when invoking a cfc you use the component name if it is in the same directory or the path in a dot separated format if it is in a different folder.

The format follows this logic:

If you're cfc was in c:\inetpub\To access your CFCs you would use: testSite.cfc.cfcName

So following this logic I have tried to access cfc in a folder in my root web folder in a folder called cfc. I have tried:

Initially I tried: cfc.cfcName

When this didn't work as expected I looked at the cgi path variable (which rendered D:\Inetpub\ to make sure I had the proper path and tried several variations of the path including:

cfc.cfcName
web.cfc.cfcName
Inetpub.can not be found.


I tried every combination I could think of trying nothing works. I get the following error message:

"Could not find the ColdFusion Component web.cfc.random.
Please check that the given name is correct and that the component exists"

I know that the code I am using works as I can deploy it on a different ColdFusion server (work server) and it works as expected.

Anyway the only thing I can think of is that the path mapping I am seeing is not a true reflection of the path and Coldfusion is unable to find the component. Any thoughts...is there a different path I should use?

One other detail that is probably not related....but you never know. A couple weeks ago I had another problem on this same server where the built in form validation for CFFORMs would not work. I don't think my site has a mapping to CFIDE....the web host gave me a copy of the js file which I copied into my root and reference using scriptSrc="../../cfform.js". This works fine for that problem...but I guess what I am pondering is there anything else in CFIDE that if not accessible would cause my current problem?


Thanks!

Guy
 
make sure it is registered with the administrator

thereptilian120x120.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top