[commandbox][coldbox-4]: no function with name [loadMappings]

I have a few questions.

  1. Is ColdBox 4 still in beta or already in gold release?

  2. What is the command to install and create app based on ColdBox 4? Is this correct?

    coldbox create app myApp AdvancedScriptBE --installColdBoxBE

  3. I believed that command would install ColdBox 4 because I found /models folder (instead of /model), but when I called myApp, it was showing 3.8.

  4. When I restarted my Railo, myApp threw an error.

    Oopsy! Something went wrong!

Type: expression
Messages: component [coldbox.system.web.services.ModuleService] has no function with name [loadMappings]

I did put ?fwreinit=1, but it was not working.

Thank you.

> Is ColdBox 4 still in beta or already in gold release?

http://blog.coldbox.org/blog/coldbox-40-release-goes-gold

> What is the command to install and create app based on ColdBox 4?

coldbox create app myApp --installColdBox

Now that 4.0 is the stable release, you don’t need to specify the bleeding edge. The advancedScriptBE template doesn’t even exist anymore. In fact, if CommandBox isn’t erroring out on that, you need to update CommandBox. If you installed CommandBox before it went gold, you should wipe it and do a clean install. After that, the “upgrade” command will get the newest stable version for you.

https://www.ortussolutions.com/blog/commandbox-v100-released

> but when I called myApp,

Like how? On the telephone? Can you explain?

> it was showing 3.8

Showing where? In the code? On the screen? Caller ID?

> When I restarted my Railo, myApp threw an error.

If you already have ColdBox 3.8 installed, it’s probably skipping the installation of 4.0. Check the output of the “coldbox create app” command. It will tell you whether or not it’s actually installing ColdBox. Try doing this first:

uninstall coldbox
artifacts clean

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

Hey Brad,

Thanks so much as always. I redownloaded and reinstalled the CommandBox; and ran the command. It picked up the right version, ColdBox 4.0.0.
For the error message, you’re right. I had ColdBox 3.8 version on my system. I wiped it out; and now everything seems working as it should be.

Thanks again!