File not found: /hello.cfm
...
coldfusion.runtime.TemplateNotFoundException: File not found: /hello.cfm
at coldfusion.filter.PathFilter.invoke(PathFilter.java:83)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
...
At this point, the ColdFusion server is doing the right thing. Now to demonstrate the improper caching of the File Not Found error message, rename the hello2.cfm file back to the original file name hello.cfm. When you browse the hello.cfm file again, you will continue to see the error message even though the file is in the correct location with the original name.
This behavior will occur even when the settings Trusted Cache and Save Cache Files are turned off.
To workaround the problem in ColdFusion MX 7, create a template that uses the Admin API to clear the Template Cache. The method is called clearTrustedCache(), but this is just a slight misnomer as the Template Cache is cleared. Then configure this template as the Missing Template Handler in the ColdFusion Administrator Settings page. For usefulness, provide the name of the missing file and a link to try the page again, and add any other handling behavior you think might be pretty or appropriate.
An example of what the Missing Template Handler might look like is the following:
<!--- Clear the Trusted or Template Cache for ColdFusion MX 7.x --->
<cflock name="clearTrustedCacheLock" type="EXCLUSIVE" timeout="5" throwontimeout="No">
<cfscript>
request.CFADMIN_PASSWORD = "admin";
request.adminObj = createObject("Component", "cfide.adminapi.administrator");
request.adminObj.login(request.CFADMIN_PASSWORD);
request.runtimeObj = createObject("component", "cfide.adminapi.runtime");
request.runtimeObj.clearTrustedCache();
</cfscript>
</cflock>
<!--- Provide a friendly file not found error message here --->
<cfoutput>
#error.message#<br/>
<a href="#cgi.script_name#">Try again</a>
</cfoutput>
See this article for how to serve content over a UNC path:
http://www.talkingtree.com/blog/index.cfm/2005/7/2...