Coldbox 3.1.0 web services could not find Coldbox config (configautoreload related)

I found a quirk with configautoreload and web services today that I wanted to post up here, in case anyone else has the same issue.

If you have configautoreload set to true, and you have a specific appMapping set, it somehow breaks the path calculation that coldbox does to find the proper app mapping. It would always return an error like the following:

Could not find the ColdFusion component or interface test.cb3test.service.config/Coldbox

This can be reproduced when you have an app that lives under a sub-directory under the web root, and you need to set the appMapping property in the Application.cfc, then turn on configautoreload. Once you turn off configautoreload, everything goes back to normal.

I can’t quite figure out why this is, but I hope it helps someone out there.