I have the following setup
ColdFusion 2011 - IIS 7.5. (Issue does not happen on local system - which has ColdFusion 2016 & " are turned off)
cbmessagebox (doesn’t matter which module) folder is in - E:/cbtest/coldbox/system/modules/
config folder & Application.cfc is in E:/cbtest/
COLDBOX_APP_ROOT_PATH = getDirectoryFromPath( getCurrentTemplatePath() );
COLDBOX_APP_MAPPING = “”;
COLDBOX_CONFIG_FILE = “”;
customAppMapping = ‘/versions/dev/’
config/Coldbox.cfc
conventions = {
handlersLocation = “#customAppMapping#handlers”,
viewsLocation = “#customAppMapping#views”,
layoutsLocation = “#customAppMapping#layouts”,
modelsLocation = “#customAppMapping#models”,
modulesLocation = “#customAppMapping#modules”,
eventAction = “index”
};
Most of the time I try to do a fwreinit the following error throws and it works after about 10 attempts & repeats on next fwreinit. I have ended up adding the cbmessagebox in the root folder and in the coldbox-modules folder.
Error - info
Directory does not exist
Directory: E:/cbtest/cbmessagebox/models
The error occurred in E:/cbtest/coldbox/system/ioc/config/Binder.cfc: line 281
Called from E:/cbtest/coldbox/system/web/services/ModuleService.cfc: line 425
Called from E:/cbtest/coldbox/system/web/services/ModuleService.cfc: line 345
Called from E:/cbtest/coldbox/system/web/services/LoaderService.cfc: line 57
Called from E:/cbtest/coldbox/system/Bootstrap.cfc: line 70
Called from E:/cbtest/coldbox/system/Bootstrap.cfc: line 106
Called from E:/cbtest/coldbox/system/Bootstrap.cfc: line 357
Called from E:/cbtest/Application.cfc: line 31
279 : <!— check directory —>
280 : <cfif NOT directoryExists(directory)>
281 :
282 :
283 :
I can’t figure out why this error is happening & why its not happening all the time.
I found this is similar, but my module is present inside the coldbox & its working some times.
Thanks,
Aswin