[coldbox:21120] Re: Error in Coldbox.system.cache.policies.LRU

That sound great! If you just fill out the fields on that “case study” google form, we can make it pretty.

Thanks!

~Brad

Hi Jeremy / George,

I tried to reproduce the error with latest code-base from GitHub,
Steps to reproduce the error.

1: Create new Application
2: Copy coldbox into new app folder.

localhost:8500/myapp
It does throws error could not found “Coldbox.system.cache.policies.LRU”

This error can be Fixed by just adding two mappings in my Application.cfc

this.mappings["/coldbox"] = COLDBOX_APP_ROOT_PATH & “coldbox”;
this.mappings["/"] = COLDBOX_APP_ROOT_PATH;

if you have not configured your app with IIS or Apache then mapping could be like this
this.mappings["/myapp"] = COLDBOX_APP_ROOT_PATH;

I’ve added the mappings :slight_smile: will restart all servers and test over the next week.

I forgot to mention, I am using wirebox in a standalone legacy application. I was able to stop it from throwing the error by hard coding to the path wirebox.system.cache.policies.LRU
in the file wirebox.system.cache.CacheFactory on line 597.

Not an ideal way of handling this. What would you suggest?

Thanks,

George Murphy