Ignore my example of "Base", "BaseService", etc (normally I wouldn't
instantiate those, was just testing). Also, this is using the nightly
build download just a couple days ago. Unless it was the bugfix hack
I emailed (Luis) about, I don't understand why it goes wrong.
Unfortunately, my map() objects from Wirebox config are nowhere to be
found. Clearly the Wirebox config *is* firing, since my dump right
after the map() commands does indeed show output.
Actually, that’s odd. So I updated to the 3.5.0 Final just now.
Getting this error (which I got the other day, too):
Error building: coldbox.system.validation.ValidationManager -> The parameter WIREBOX to function init is required but was not passed in. with constructor arguments: {}
Running Railo on Tomcat, under CentOS 6.2, builds also as of a couple days ago.
I was able to fix this in my local copy via a hack to the /system/ioc/builder.cfc file, buildCFC() function:
So I determined the problem. This is a fun one and something I bet no one’s tried. So, I thought I’d be cute and move my entire CONFIG folder outside the webroot. I don’t like it there, even with .htaccess and app.cfm in there, I just don’t care for it. So…I was able to do this, with mappings. Clearly, the config/wirebox.cfc outside the root gets run, but it seems that Coldbox isn’t done with it yet, and decides later that there isn’t one or something and goes about it’s business and strips my prior definitions.
The Coldbox config itself clearly sticks, but not the Wirebox config when they are not [wwwroot]/config. I copied the config back into the root, dropped the mapping, and all seems to work as expected now. Might be something worth looking into for a possible change/fix.
However, I AM still having the ValidationManager issue. Even after a complete server restart, including Railo, Tomcat and the CentOS.
Hmm, I just tested under Railo and Tomcat and cannot reproduce it for some reason.
As for your WireBox binder, the convention is /config/WireBox.cfc. However, you can change the location of your binder in the ColdBox.cfc WireBox section.
WireBox = {
binder = “my.path.to.Binder”
};
I don’t know why it should fail like if it cannot read the annotation maybe?
Error building: coldbox.system.validation.ValidationManager -> The parameter WIREBOX to function init is required but was not passed in. with constructor arguments: {}
…when swapping out the Beta version of 3.5 for the Final version.
It looks like some config setting may have changed that I’ve missed. I current have this in my ColdBox.cfc…