I’m having another odd issue.
I have everything working on my local machine just fine, but when I try to run it on my server I’m getting this:
Railo 3.3.0.023 Error (expression)
Message key [BLOGBOX] doesn’t exist in struct (keys:)
Stacktrace The Error Occurred in
/tomcat7/sites/blog/ROOT/modules/blogbox-ui/ModuleConfig.cfc: line 28
26:
27: // BLOGBOX MODULE LOCATION: CHANGE IF DIFFERENT FROM CONVENTIONS
28: var BB_PATH = controller.getSetting(“modules”).blogbox.invocationPath;
29:
30: // BB UI SES Routing
called from/tomcat7/sites/blog/ROOT/coldbox/system/web/services/ModuleService.cfc: line 473
For some reason, controller.getSetting(“modules”) is returning a blank struct every time.
I have copied my exact working folders up to the server, using the same versions of Railo, ColdBox, etc
If I do a writeDump(instance.moduleRegistry); inside registerAllModules() before the registerModule() call I see this correctly:
Struct
INVOCATIONPATH
string modules
LOCATIONPATH
string /modules
PHYSICALPATH
string /tomcat7/sites/blog/ROOT/modules
string blogbox
Struct
INVOCATIONPATH
string modules
LOCATIONPATH
string /modules
PHYSICALPATH
string /tomcat7/sites/blog/ROOT/modules
string forgebox
Struct
INVOCATIONPATH
string modules
LOCATIONPATH
string /modules
PHYSICALPATH
string /tomcat7/sites/blog/ROOT/modules
string blogbox-admin
Struct
INVOCATIONPATH
string modules
LOCATIONPATH
string /modules
PHYSICALPATH
string /tomcat7/sites/blog/ROOT/modules
But inside the first registerModule() if I do this:
writedump(controller.getSetting(“modules”)); I see a blank struct.
On my local machine, if I do:
writeDump(controller.getSetting(“modules”));
right before:
var BB_PATH = controller.getSetting(“modules”).blogbox.invocationPath;
I see the modules, but on my server I just get a blank struct.
Any thoughts about this?