Railo autowire and OCM

I have a ColdBox and Transfer application that run fine on Adobe
ColdFusion but I can't get it to run on Railo. I am using the
autowire feature and OCM to inject the service.

Here is my handlers

main
  <cffunction name="onAppInit" access="public" returntype="void"
output="false">
    <cfargument name="Event" type="any">
    <cfset var DSFile = getSetting("Transfer_datasourcePath")>
    <cfset var TFile = getSetting("Transfer_configPath")>
    <cfset var Definitions = "/" & getSetting("Transfer_definitionPath")

    <cfset var TransferFactory = CreateObject
("component","transfer.TransferFactory").init(DSFile,TFile,Definitions)

    <cfset getColdBoxOCM().set("TransferFactory",TransferFactory, 0)>
    <cfset getColdBoxOCM().set("Transfer",TransferFactory.getTransfer(),
0)>
    <cfset getColdBoxOCM().set
("TransferTransaction",TransferFactory.getTransaction(), 0)>
    <cfset getColdBoxOCM().set
("TransferDatasource",TransferFactory.getDatasource(), 0)>
    <cfset getColdBoxOCM().set
("qAdminClientList",TransferFactory.getTransfer().list
("Clients.clients",'ClientID',true), 0)>
    <!--- ON Application Start Here --->
  </cffunction>

security
<cfcomponent name="security" extends="coldbox.system.eventhandler"
output="false" autowire="true">
  <cfproperty name="userService" type="model:security.userService"
scope="instance">

and here is my service init function

  <cffunction name="init" hint="Constructor" access="public"
output="false" returntype="UserService">
    <!--- *************************************************************
--->
    <cfargument name="Transfer" hint="the Transfer ORM"
type="transfer.com.Transfer" required="Yes" _wireme="ocm">
    <cfargument name="TransferTransaction" hint="The Transfer
transaction" type="transfer.com.sql.transaction.Transaction"
required="Yes" _wireme="ocm">
    <cfargument name="TransferDatasource" hint="the Datasource obj"
type="transfer.com.sql.Datasource" required="Yes" _wireme="ocm">
     <!--- *************************************************************
--->
    <cfscript>
      /* Init */
      super.init(argumentCollection=arguments);
      /* Return Instance */
      return this;
    </cfscript>
  </cffunction>

and here is the message I get in Railo

An unhandled exception has occurred. Please look at the diagnostic
information below:
Type expression
Message can't cast String [_NOT_FOUND_] to a value of type
[transfer.com.Transfer]
Detail
Extended Info
Message can't cast String [_NOT_FOUND_] to a value of type
[transfer.com.Transfer]
Tag Context D:\Railo\webapps\ROOT\coldbox-2.6.3-1\system\plugins
\beanFactory.cfc (187)
D:\Railo\webapps\ROOT\coldbox-2.6.3-1\system\plugins\beanFactory.cfc
(628)
D:\Railo\webapps\ROOT\coldbox-2.6.3-1\system\plugins\beanFactory.cfc
(538)
D:\Railo\webapps\ROOT\coldbox-2.6.3-1\system\plugins\beanFactory.cfc
(451)
D:\Railo\webapps\ROOT\coldbox-2.6.3-1\system\interceptors\autowire.cfc
(139)
D:\Railo\webapps\ROOT\coldbox-2.6.3-1\system\interceptors\autowire.cfc
(89)
D:\Railo\webapps\ROOT\coldbox-2.6.3-1\system\beans
\interceptorState.cfc (142)
D:\Railo\webapps\ROOT\coldbox-2.6.3-1\system\beans
\interceptorState.cfc (99)
D:\Railo\webapps\ROOT\coldbox-2.6.3-1\system\services
\InterceptorService.cfc (80)
D:\Railo\webapps\ROOT\coldbox-2.6.3-1\system\services
\HandlerService.cfc (48)
D:\Railo\webapps\ROOT\coldbox-2.6.3-1\system\services
\HandlerService.cfc (96)
D:\Railo\webapps\ROOT\coldbox-2.6.3-1\system\controller.cfc (390)
D:\Railo\webapps\ROOT\coldbox-2.6.3-1\system\coldbox.cfc (163)
D:\Projects\iplan3\Application.cfc (51)

I believe the error is that the argument names in railo are converted to lowercase, thus the case-sensitive cache loookup will fail.

I recommend adding the alias to the _wireme

_wireme=“ocm:Transfer”

I have reported this to railo.

Thanks Luis. That tok care of the problem.