I have a VirtualEntityService called TripService.When injecting it into the handler I receive the following error:
Error autowiring VirtualTMO.handlers.Trip. Could not find the ColdFusion component or interface VirtualEntityService. Ensure that the name is correct and that the component or interface exists.
You can check out all relevant code here:
https://gist.github.com/31da648df89c98c7307e
Am I approaching anything wrong here?
Thanks!
Ben
I think this is a cf error with the import statement. Try the full path in the extends
Nope, same error except it now includes the full package. I tried both with . and / as the delimiter.
I have:
import coldbox.system.orm.hibernate.*;
import coldbox.plugin.VirtualEntityService;
component extends=“coldbox.plugin.VirtualEntityService”{…}
lmajano
October 12, 2010, 10:17pm
4
This does not exist: coldbox.plugin.VirtualEntityServic
The path is the following:
component extends=“coldbox.system.orm.hibernate.VirtualEntityService”{
}
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
That did it. Thank you for the help. Just out of curiosity, should it work with just the component name? If so, any idea what would I need to do to set up my environment so that would work?
Thanks!
Ben
Aaron1
October 13, 2010, 1:46pm
7
If you imported the location, I would expect it work with with the name of the CFC.
Sana
October 13, 2010, 3:02pm
8
Hi,
To extend a component you have to provide full path of component.
This will not work
import coldbox.system.orm.hibernate.VirtualEntityService;
component extends="VirtualEntityService"{}
This could be CF issue but we always try to provide path like this
component
extends="coldbox.system.orm.hibernate.VirtualEntityService"{}
Thanks
Sana
Good to know it’s not just me. It works fine with the full name, so I’ll just not worry about it.
lmajano
October 13, 2010, 5:25pm
10
I would submit a ticket to adobe cf for this
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com