cant groovy loader plugin to work in cb 3.1

Hi.
Trying to get this working on cb 3.1 with no luck.

Brought in the views, plugin and the groovy.cfc handler

Top of handler looks like this
<cfcomponent output="false" autowire="true" >

<cfproperty name="GroovyLoader"
type="coldbox:myPlugin:GroovyLoader.GroovyLoader" scope="instance">

index looks like
<cffunction name="index" access="public" returntype="void"
output="false">
  <cfargument name="Event" type="any">
  <cfscript>
    var rc = event.getCollection();
    rc.oHello = instance.GroovyLoader.create("Hello");//line 91

    event.setView("groovy/home");
  </cfscript>
</cffunction>

error i get is

Error Type: Expression : [N/A]
Error Messages: Element GROOVYLOADER is undefined in a Java object of
type class [Ljava.lang.String;.

ID: ??
LINE: 91
Template: D:\Workspace\ref.l\web\handlers\Groovy.cfc

Coldbox.cfc looks like this...

//groovy loader interceptor
{class="plugins.GroovyLoader.GroovyStarter",
   properties={"groovyLibPaths"="/model/groovy",javalibPaths=""}
}

Any ideas?

Thanks

Did you reinit the application, that error is when the library is not DI’ed in…

Hi Andrew
Not sure what you mean by dled? Dynamically loaded?
I have the groovy jar in the lib dir of the site in jrun, but it looks
like it loads it in anyway from GroovyLoader/lib dir too.

It works if i do this

instance.GroovyLoader =
getMyPlugin(plugin="GroovyLoader.GroovyLoader");

but not by the looks of things via the dsl injection
<cfproperty name="GroovyLoader"
type="coldbox:myPlugin:GroovyLoader.GroovyLoader" scope="instance">

My component has autowire set to true and autowire plugin is enabled.
Am i missing a config option?

Thanks

dependency injected…

Is this using wirebox or autowire?

You are using type="" use inject=""

Thanks - that works
Luis needs to update the sample code that groovyloader comes with as
its in this where it says...

<cfproperty name="GroovyLoader"
type="coldbox:myplugin:GroovyLoader.GroovyLoader" scope="instance">

Yes where is this?

Luis Majano
President
Ortus Solutions, Corp
Toll free phone/fax: 1-888-557-8057
Mobile: 909-248-3408

www.coldbox.org

It was in the Groovy.cfc handler in the downloaded code for the plugin