Starting a brand new project, I am trying to get ORM configured and my first VES working. I’ve downloaded the ColdBox bundle and placed the folder in the root of my application. I’ve also downloaded the Wirebox standalone and placed it in the same app root. In the Application.cfc, I’ve created the following mappings:
this.mappings[ "/coldbox" ] = "#getDirectoryFromPath(getCurrentTemplatePath())#coldbox/"; this.mappings[ "/wirebox" ] = "#getDirectoryFromPath(getCurrentTemplatePath())#wirebox/";
In the Coldbox.cfc config, I added the following:
//Wirebox wirebox = { singletonReload = true, binder = 'config.WireBox' };
In my handler (models/Hierarchy.cfc), I am trying to inject the following:
property name="businessService" inject="entityService:hierarchy.BusinessService";
That service is located in models/hierarchy/HierarchyService.cfc with the following:
component extends="models.BaseService" { BusinessService function init () { super.init(entityName="Business", useQueryCaching = true); return this; } }
When calling the handler, I get:
Type: Builder.DSLDependencyNotFoundException
Messages: The DSL Definition {JAVACAST={null},NAME={businessService},ARGNAME={},DSL={entityService:hierarchy.BusinessService},VALUE={null},SCOPE={variables},REQUIRED={true},REF={null},TYPE={any}} did not produce any resulting dependency The target requesting the dependency is: ‘groups.na.dialerstrategy.Dev.Sandbox_tmp.handlers.Hierarchy’
The only thing different about this project than previous ones I’ve implemented Coldbox in is the need for me to include the Wirebox framework along side Coldbox. I don’t remember having to do that in the past, but without it, references to coldbox.system.orm.* do not exist. I don’t know if this is part of the issue though… I thought the Coldbox bundle included Wirebox.