Working with ColdFusion and ORM? Getting the following error intermittently or even at all times? On a *nix\OS-X machine?

Could not find the ColdFusion component or interface

path.to.cfc.from.siteroot

Ensure that the name is correct and that the component or interface exists.

If you are using Apache you may want to check your virtual host entry for the site\application that you are currently working with.

I found that I would get this error intermittently and then indefinitely and then I finally noticed within my virtual host configuration that my DocumentRoot did not exactly match the path to the application folder.

Example: The site was in a folder called “/Users/rayfaddis/Sites/site” and in my Apache virtual host configuration I had DocumentRoot “/users/rayfaddis/Sites/site”. Notice that the actual folder is Users with an uppercase U and my Apache configuration was with a lowercase u. I never ran into any other issues because of this, with CF or anything, and my ORM entities would load and work most of the time, it just caused them to periodically be unfound. Once I updated this within my Apache configuration things were all good, all the time!

Note: I don’t believe this would ever be an issue on a Windows machine since files and folders are not case sensitive.


Comments