In your modules there is a file called Modules.cfc. How are you setting the binder mapping? Also, where is your modules located? Is it under the main application?
Is the Config.cfc being mapped in Module.cfc as follows?
binder.map(“config@whois”).to(“whois.model.Config”);
I tested this by creating a site and module with CommandBox and it seems to work fine.
Double check your modelNameSpace setting-- if it is blank, your “config” model mapping will get overwritten by the WireBox binder config which has the same mapping name.
Thanks Brad. Now it works. I was running on commandbox and probably something was in the cache that gives me error. After some server stop and start it works great now.