create app 4 on with ACF10

I tried to get myself comfortable with cb4 and commandbox

thus I installed commandbox and fired

“coldbox create app AdvancedScriptBE --installColdBoxBE” in subdirectory of ma apache webroot Win8/apache2/ACF10

and got during start

“Error building: coldbox.system.Interceptor -> Variable LOADAPPLICATIONHELPERS is undefined”

same code works with Railo started from commandbox “start port=999”

any ideas?

Daniel

Will check this

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

Daniel.

I cannot replicate this on ACF10

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

hmm, than I might have missed something.

I repeat what I did

start box.exe

cd e:/wwwroot (which is my webroot)
mkdir cb4_test
cd cb4_test
coldbox create app AdvancedScriptBE --installColdBoxBE

http://localhost/cb4_test/

same thing: "Error building: coldbox.system.Interceptor -> Variable LOADAPPLICATIONHELPERS is undefined. with constructor arguments: {properties={{}},controller={[(Component=coldbox.system.web.Controller)]}} "

ACF 10,0,11,283922

Daniel

You aren’t installing coldbox into the web root, so the “/coldbox” reference going to use whatever mapping you might have set up, or possibly another version of ColdBox actually in the web root.

You haven’t included the full stack trace so it’s difficult to see what file this error is actually happening in.

yep, I justed tested and that’s the error you get if you’re using the ColdBox 4.0 app template on ColdBox 3.x. Add this mapping to your subdirectory’s Application.cfc to make it find the proper ColdBox.

this.mappings[ ‘/coldbox’ ] = expandPath( ‘/cb4_test/ColdBox’ );

The reason the server start command was working was because it uses the subdirectory as your web root so “/coldbox” resolves differently.

Also, note that the first argument to the “coldbox create app” command is name so you’re passing in “AdvancedScriptBE” as your app name and the skeleton is just defaulting. (It defaults to the 4.0 skeleton based on your --installColdBoxBE param)

You probably meant to type:

coldbox create app myApp AdvancedScriptBE --installColdBoxBE

Hmm , I thought since years ACF first looks into the approot for the components, than in ther webroot which also the template list in error message indicates

The error occurred in E:/wwwroot/cb4_test/coldbox/system/ioc/Builder.cfc: line 132
Called from E:/wwwroot/cb4_test/coldbox/system/ioc/Injector.cfc: line 288
Called from E:/wwwroot/cb4_test/coldbox/system/ioc/scopes/NoScope.cfc: line 31
Called from E:/wwwroot/cb4_test/coldbox/system/ioc/Injector.cfc: line 261
Called from E:/wwwroot/cb4_test/coldbox/system/ioc/Builder.cfc: line 553
Called from E:/wwwroot/cb4_test/coldbox/system/ioc/Builder.cfc: line 108
Called from E:/wwwroot/cb4_test/coldbox/system/ioc/Injector.cfc: line 288
Called from E:/wwwroot/cb4_test/coldbox/system/ioc/scopes/Singleton.cfc: line 49
Called from E:/wwwroot/cb4_test/coldbox/system/ioc/Injector.cfc: line 261
Called from E:/wwwroot/cb4_test/coldbox/system/web/services/InterceptorService.cfc: line 254
Called from E:/wwwroot/cb4_test/coldbox/system/web/services/InterceptorService.cfc: line 195
Called from E:/wwwroot/cb4_test/coldbox/system/web/services/InterceptorService.cfc: line 107
Called from E:/wwwroot/cb4_test/coldbox/system/web/services/InterceptorService.cfc: line 73
Called from E:/wwwroot/cb4_test/coldbox/system/web/services/LoaderService.cfc: line 74
Called from E:/wwwroot/cb4_test/coldbox/system/Bootstrap.cfc: line 71
Called from E:/wwwroot/cb4_test/Application.cfc: line 29

maybe onother wired ACF path issue ( which I had many)

this.mappings[ ‘/coldbox’ ] = expandPath( ‘/cb4_test/ColdBox’ );

the explizit mapping made it work.

thanks for the hint regarding the appname

Daniel