"Cache template is not registered." error using fresh install running sample

Here is what it is running on:

  • Windows Server 2003 (32 bit)
  • IIS 6.0
  • ColdFusion 8.0 (Installed using JRun)
  • ColdBox 3.1.0 (Installed at C:\Inetpub\wwwroot\coldbox)

My problem is frustrating. I haven’t written a single line of code to integrate ColdBox into my application. I simply unzipped the coldbox archive to my webroot and tried to view/run the included samples. I did so by opening a browser and going to following URL: http://127.0.0.1/coldbox/samples/

Upon doing so I get the following error which worries me seeing that this is code that is coming WITH the framework and nothing that I have written.

Cache template is not registered.

Valid cache names are

The error occurred in C:\Inetpub\wwwroot\coldbox\system\cache\CacheFactory.cfc: line 191

Called from C:\Inetpub\wwwroot\coldbox\system\web\Controller.cfc: line 131
Called from C:\Inetpub\wwwroot\coldbox\system\Coldbox.cfc: line 186
Called from C:\Inetpub\wwwroot\coldbox\samples\Application.cfc:

Can someone help explain why this is happening and how to get rid of it so I can run the included samples before I start doing any migration of our applications to this framework?

-K

Also just a note: I’ve noticed a lot of times “Clearing the cache” from the CFAdmin does not always work. I have to go into /cfusion/wwwroot/WEB-INF/cfclasses/ and delete the .class files manually.

There are two levels of template cache. There are the files stored on disk and another layer in memory (limited to 1,024 templates by default) The button in the admin only clears out the templates cached in memory. CF never clears the template on disk.

That being said, I’m pretty sure the “component” cache is entirely different than the template cache and I doubt either either are the source of the OP’s issue. I was just guessing at stuff.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com