Still stuck; details below, but first, thanks for jumping in Luis.
Sorry to be thick/new, but where does this code/config go?
Dave you can also enable logging for the beanfactory plugin via logbox like
Debug = ["coldbox.system.plugins.BeanFactory"]
This enables the logging of the dependency injection resolutions so you can see what's wrong
Here's what I think are the relevant bits. What's missing or wrong?
3.0 M6 download.
DIRECTORY STRUCTURE
[...]\Railo\webapps\ROOT\MyApp\
model\
services\
CalendarService.cfc
handlers
Calendar.cfc
COLDBOX.XML.CFM
<Models>
<DefinitionFile>config/ModelMappings.cfm</DefinitionFile>
</Models>
<Interceptor class="coldbox.system.interceptors.Autowire">
<Property name="debugMode">true</Property>
</Interceptor>
MODELMAPPINGS.CFM
addModelMapping('CalendarService', 'model.services.CalendarService');
HANDLER
<cfcomponent extends="coldbox.system.EventHandler" output="false"
autowire="true">
<cfproperty name="CalendarService" inject="CalendarService">
<!--- also tried inject="model.services.CalendarService" --->
<!---
this gets hit with cfproperty enabled, not when it's commented out
CalendarService isn't in that StructKeyList
--->
<cffunction name="onDIComplete" output="true" returntype="void">
<cfhtmlhead text="#StructKeyList(variables)#">
</cffunction>
<!--- Default Action --->
<cffunction name="index" returntype="void" output="false" hint="My main event">
<cfargument name="event" required="true">
<cfscript>
var rc = event.getCollection();
rc.welcomeMessage = "Welcome to Stephentown!";
// next line crashes, CalendarService not defined
rc.CalendarService = CalendarService;
event.setView("calendar/main");
</cfscript>
</cffunction>
Thanks for any ideas, I'll keep trying things too.
Dave