[Coldbox 4.0.0] Commandbox install, getting error invalid component definition


I followed the instructions here to install Coldbox 4.

Don’t believe us? Try out ColdBox 4 right now on any computer. Download CommandBox to your desktop and double click on it. Now, type the following simple commands:

> mkdir mySite
> cd mySite
> coldbox create app myApp --installColdBox
> start

That’s it! In a few seconds, the embedded server will spring to life and a browser window will open with your new ColdBox 4.0 site.

This is windows 7 64bit using this installer:


When I do the above I get this message when I go to the URL specifed in the command prompt

Message invalid component definition, can’t find component [coldbox.system.Coldbox]
Stacktrace The Error Occurred in
C:\Users\randy\commandbox\mySite\Application.cfc: line 31

> 29: // application start
> 30: public boolean function onApplicationStart(){
> 31: application.cbBootstrap = new coldbox.system.Coldbox( COLDBOX_CONFIG_FILE, COLDBOX_APP_ROOT_PATH, COLDBOX_APP_KEY, COLDBOX_APP_MAPPING );
> 32: application.cbBootstrap.loadColdbox();
> 33: return true;

Any idea on what is going on here?

Sorry for the confusing, seems we have not updated the application templates in CommandBox just yet for the release.

I would suggest you add the following

coldbox create app name=MyApp skeleton=AdvancedScriptBE

Using the BE skeletons will be ColdBox 4 compatible.

That did the trick.



Yes, sorry-- I thought we had already updated the CommandBox templates to default to Coldbox 4, but I guess that hasn’t been finalized yet. Once the CommandBox release is finalized, ColdBox 4 will be the default.



ColdBox Platform Evangelist
Ortus Solutions, Corp

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