Can someone help me out? I’m trying to inject a service, personService, that extends cborm.models.VirtualEntityService into a model. I’m getting the error “The DSL Definition {JAVACAST={null},NAME={personService},ARGNAME={},DSL={models:Services:PersonService},VALUE={null},SCOPE={variables},REQUIRED={true},REF={null},TYPE={any}} did not produce any resulting dependencies”
In my interceptor, I inject a model (model:BaseIntranet) and that works fine. I can access all the methods in that model, in that model’s definition I’m using the line property name=“personService” inject=“models:Services:PersonService”; to create the person service. There are two other properties, one injecting a datasource, the other a logger that work fine.
The person service exists at /models/Services/PersonService (my coldbox app is at the web root)
It is:
component extends=“cborm.models.VirtualEntityService” singleton{
// Constructor
public PersonService function init(){
return this;
}
}
So you can see, it’s not really doing anything. I removed anything till I get this to inject correctly. I can inject “entityService:Person” (There is a Person defined under /models/Entities/Person.cfc) and it works just fine. I tried that just to see if dependency injection was working correctly. cborm is installed and working, it created my Person table when I started the framework.
This particular setup was working on cb 3.8.0. I’m just starting to move this app to 4.0.
Just for giggles, I tried injecting model:Services.PersonService, models:Services:PersonService, model:PersonService, models:PersonService. I created a mapping (personService = “models.Services.PersonService”) in the wirebox config as well and tried just plain property name=“personService” inject;
I know this is going to be something stupid, I just can’t seem to find it.
Thanks in advance for any assistance.
Scott