[Coldbox 3.8.1.00076] module load failure

I have antisamy running as a plugin very easily but I read somewhere you’re moving away from plugins and going strictly with modules (although frankly I don’t really get the difference). In that spirit I tried to get the antisamy module working and i’m not getting anywhere. I have copied into the modules folder the javaloader module as well as antisamy and it appear the javaloader one has issues. Does the below make sense to anyone? Injector.cfc in coldbox/system/ioc has no function named registerDSL. Is it supposed to?

Thank you!

Irv

Application Execution ExceptionError Type: expression : 0

Error Messages: component [coldbox.system.ioc.Injector] has no function with name [registerDSL]

Stack Trace:

component [coldbox.system.ioc.Injector] has no  function with name [registerDSL]
	at railo.runtime.type.util.ComponentUtil.notFunction(ComponentUtil.java:586):586
	at railo.runtime.ComponentImpl.onMissingMethod(ComponentImpl.java:542):542
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:501):501
	at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1732):1732
	at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:738):738
	at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1513):1513
	at modules.javaloader.moduleconfig_cfc$cf.udfCall(C:\inetpub\wwwroot\freshrv\modules\javaloader\ModuleConfig.cfc:44):44
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
	at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:616):616
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:499):499
	at railo.runtime.ComponentImpl.call(ComponentImpl.java:1715):1715
	at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
	at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1503):1503
	at system.web.services.moduleservice_cfc$cf._2(C:\coldbox\system\web\services\ModuleService.cfc:504):504
	at system.web.services.moduleservice_cfc$cf.udfCall(C:\coldbox\system\web\services\ModuleService.cfc):-1
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
	at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
	at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700
	at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
	at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1503):1503
	at system.web.services.moduleservice_cfc$cf._1(C:\coldbox\system\web\services\ModuleService.cfc:223):223
	at system.web.services.moduleservice_cfc$cf.udfCall(C:\coldbox\system\web\services\ModuleService.cfc):-1
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
	at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
	at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700
	at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
	at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1503):1503
	at system.web.services.moduleservice_cfc$cf._1(C:\coldbox\system\web\services\ModuleService.cfc:106):106
	at system.web.services.moduleservice_cfc$cf.udfCall(C:\coldbox\system\web\services\ModuleService.cfc):-1
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
	at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
	at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700
	at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
	at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1503):1503
	at system.web.services.moduleservice_cfc$cf._2(C:\coldbox\system\web\services\ModuleService.cfc:390):390
	at system.web.services.moduleservice_cfc$cf.udfCall(C:\coldbox\system\web\services\ModuleService.cfc):-1
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
	at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:616):616
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:499):499
	at railo.runtime.ComponentImpl.call(ComponentImpl.java:1715):1715
	at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
	at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1503):1503
	at system.coldbox_cfc$cf._2(C:\coldbox\system\Coldbox.cfc:623):623
	at system.coldbox_cfc$cf.udfCall(C:\coldbox\system\Coldbox.cfc):-1
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
	at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
	at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700
	at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
	at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1503):1503
	at system.coldbox_cfc$cf._1(C:\coldbox\system\Coldbox.cfc:187):187
	at system.coldbox_cfc$cf.udfCall(C:\coldbox\system\Coldbox.cfc):-1
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
	at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
	at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700
	at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
	at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1503):1503
	at application_cfc$cf.udfCall(C:\inetpub\wwwroot\freshrv\Application.cfc:37):37
	at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
	at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
	at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:616):616
	at railo.runtime.ComponentImpl._call(ComponentImpl.java:499):499
	at railo.runtime.ComponentImpl.call(ComponentImpl.java:1715):1715
	at railo.runtime.listener.ModernAppListener.call(ModernAppListener.java:388):388
	at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:113):113
	at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18):18
	at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2167):2167
	at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2134):2134
	at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:335):335
	at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728):728
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305):305
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222):222
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123):123
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502):502
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171):171
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99):99
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118):118
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408):408
	at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200):200
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589):589
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310):310
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145):1145
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615):615
	at java.lang.Thread.run(Thread.java:744):744

Extra Information Dump
[N/A]

ColdBox Tracer Messages

Message:
ERROR 03:02:09.498 AM fresh RV Ads
Application Execution Exception CFErrorType=expression CFMessage=component [coldbox.system.ioc.Injector] has no function with name [registerDSL] CFStackTrace=component [coldbox.system.ioc.Injector] has no function with name [registerDSL] at railo.runtime.type.util.ComponentUtil.notFunction(ComponentUtil.java:586):586 at railo.runtime.ComponentImpl.onMissingMethod(ComponentImpl.java:542):542 at railo.runtime.ComponentImpl._call(ComponentImpl.java:501):501 at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1732):1732 at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:738):738 at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1513):1513 at modules.javaloader.moduleconfig_cfc$cf.udfCall(C:\inetpub\wwwroot\freshrv\modules\javaloader\ModuleConfig.cfc:44):44 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94 at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307 at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211 at railo.runtime.ComponentImpl._call(ComponentImpl.java:616):616 at railo.runtime.ComponentImpl._call(ComponentImpl.java:499):499 at railo.runtime.ComponentImpl.call(ComponentImpl.java:1715):1715 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1503):1503 at system.web.services.moduleservice_cfc$cf._2(C:\coldbox\system\web\services\ModuleService.cfc:504):504 at system.web.services.moduleservice_cfc$cf.udfCall(C:\coldbox\system\web\services\ModuleService.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94 at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307 at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211 at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1503):1503 at system.web.services.moduleservice_cfc$cf._1(C:\coldbox\system\web\services\ModuleService.cfc:223):223 at system.web.services.moduleservice_cfc$cf.udfCall(C:\coldbox\system\web\services\ModuleService.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94 at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307 at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211 at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1503):1503 at system.web.services.moduleservice_cfc$cf._1(C:\coldbox\system\web\services\ModuleService.cfc:106):106 at system.web.services.moduleservice_cfc$cf.udfCall(C:\coldbox\system\web\services\ModuleService.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94 at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307 at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211 at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1503):1503 at system.web.services.moduleservice_cfc$cf._2(C:\coldbox\system\web\services\ModuleService.cfc:390):390 at system.web.services.moduleservice_cfc$cf.udfCall(C:\coldbox\system\web\services\ModuleService.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94 at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307 at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211 at railo.runtime.ComponentImpl._call(ComponentImpl.java:616):616 at railo.runtime.ComponentImpl._call(ComponentImpl.java:499):499 at railo.runtime.ComponentImpl.call(ComponentImpl.java:1715):1715 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1503):1503 at system.coldbox_cfc$cf._2(C:\coldbox\system\Coldbox.cfc:623):623 at system.coldbox_cfc$cf.udfCall(C:\coldbox\system\Coldbox.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94 at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307 at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211 at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1503):1503 at system.coldbox_cfc$cf._1(C:\coldbox\system\Coldbox.cfc:187):187 at system.coldbox_cfc$cf.udfCall(C:\coldbox\system\Coldbox.cfc):-1 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94 at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307 at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211 at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700 at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712 at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1503):1503 at application_cfc$cf.udfCall(C:\inetpub\wwwroot\freshrv\Application.cfc:37):37 at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94 at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307 at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211 at railo.runtime.ComponentImpl._call(ComponentImpl.java:616):616 at railo.runtime.ComponentImpl._call(ComponentImpl.java:499):499 at railo.runtime.ComponentImpl.call(ComponentImpl.java:1715):1715 at railo.runtime.listener.ModernAppListener.call(ModernAppListener.java:388):388 at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:113):113 at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18):18 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2167):2167 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2134):2134 at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:335):335 at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29 at javax.servlet.http.HttpServlet.service(HttpServlet.java:728):728 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305):305 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222):222 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123):123 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502):502 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171):171 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99):99 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118):118 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408):408 at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200):200 at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589):589 at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310):310 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145):1145 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615):615 at java.lang.Thread.run(Thread.java:744):744 CFTagContext=ID: ??; LINE: 44; TEMPLATE: C:\inetpub\wwwroot\freshrv\modules\javaloader\ModuleConfig.cfc ID: ??; LINE: 504; TEMPLATE: C:\coldbox\system\web\services\ModuleService.cfc ID: ??; LINE: 223; TEMPLATE: C:\coldbox\system\web\services\ModuleService.cfc ID: ??; LINE: 106; TEMPLATE: C:\coldbox\system\web\services\ModuleService.cfc ID: ??; LINE: 390; TEMPLATE: C:\coldbox\system\web\services\ModuleService.cfc ID: ??; LINE: 623; TEMPLATE: C:\coldbox\system\Coldbox.cfc ID: ??; LINE: 187; TEMPLATE: C:\coldbox\system\Coldbox.cfc ID: ??; LINE: 37; TEMPLATE: C:\inetpub\wwwroot\freshrv\Application.cfc

ColdBox Debugging Information

Framework Info:
ColdBox SEEK 3.8.1.00076 1 John 5:12-13
Application Name:
fresh RV Ads (environment=production)
TimeStamp:
Aug-07-2014 03:02:09 AM
Server Instance:
server
Current Event:
main.index
Current Layout:
N/A (Module: )
Current View:
N/A
Current Route:
N/A
Routed URL:
N/A
Routed Namespace:
N/A
LogBox Appenders:
COLDBOXTRACER
RootLogger Levels:
FATAL - INFO
Loaded Modules:
HTMLCompressor , antisamy

Timestamp Execution Time Framework Method
No Timers Found…
Total Framework Request Execution Time: 11 ms

CacheBox Monitor
ColdBox Modules

Below you can see the loaded application modules.

No and yes.

Yes plugins will be named differently, but the thing is that you still create plugins in the same manner. In other words it is only the terminology that is different when talking about plugins. But I think you mean they are going to be models and not modules.

https://groups.google.com/forum/#!topic/coldbox/lAbZ2JY2Iw4

Plugins are just simple CFCs that inherit some stuff from the framework. Instead of calling them plugins, we’ll just call then what they are-- which is models.

Modules are the preferred way of packaging up code for others to use. Look at Node and NPM for instance-- everything is a package, or a module which is nothing more than a folder with some conventions about what’s in it that allows the application to register and unregister is easily. Modules can be complex, or very simple with only a single model CFC inside of it, but it comes with added benefits of packaging and presentation. The package manager work we are doing around CommandBox will also use modules heavily to do cool stuff like nested dependencies in different libraries.

So, on to your question, the registerDSL method is part of ColdBox 4, which is still in alpha. I think Luis got a little ahead of himself by using that method in the JavaLoader module, but he might have just forgotten that it was brand new. The current version of WireBox let’s you register builders in the config, but not at runtime. I’ll let him pipe up with a fix.

In the mean time, you can probably just use an older version of the Java Loader and Anti-sammy plugins (models :slight_smile:

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Brad,

May I add a suggestion of blogging the old way that plugins work and compare that to how they will work, with some simple examples it maybe easier for people to understand these changes.

Good suggestion Andrew.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Irvine,

Like Brad mentioned, the new javaloader and antisamy modules are for ColdBox4+. If you are using ColdBox 3.8.1 and below, these are already part of the core.