Upgrading Coldbox 2.64

Hello,

Finally, we are ready to upgrade the coldbox and need help. Currently, our coldbox framework version is 2.64 and it uses beanfactory. In order to switch to wirebox, what do we need to do? Since there has been a lot of version in between, we are not sure where to start. Please help.

Thank you,

Eleni

Start here:
http://wiki.coldbox.org/wiki/Dashboard.cfm#Compatibility_Guides

And here:
http://wiki.coldbox.org/wiki/Dashboard.cfm#What’s_New_.3F

To get started with WireBox, you can read up on it here:
https://github.com/ColdBox/cbox-refcards/raw/master/WireBox%20AOP/WireBox-AOP-Refcard.pdf

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,

Thank you for your help! I have managed to upgrade our coldbox framework from 2.64 to 3.8.1 successfully!! Yeah!!!

That’s excellent news!

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

After reinit the application, when I tried to log-in into the application, I am getting the following error:

The DSL Definition {JAVACAST={null},NAME={beanFactory},ARGNAME={},DSL={model:coldbox:plugin:beanfactory},VALUE={null},REQUIRED={true},SCOPE={variables},REF={null}} did not produce any resulting dependency

However, if I refresh the browser, the error go away and I get logged in. If you know what causes this, please let me know.

Thank you for your help!

I don’t believe the DSL “model:coldbox:plugin:beanfactory” is valid. It would just be “coldbox:plugin:beanfactory”.

That said, the old bean factory plugin has been superseded by WireBox. You should be able to just use inject=“wirebox” and call wirebox.getInstance() like you used to call beanFactory.getModel()

Also, note this is only necessary for your own models. Parts of the framework such as handlers, views, etc have the getModel() method still directly available to them without needing to inject anything.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

Awesome! That was exactly the issue. Thank you so much!

Thank you, Brad! I meant to post it on the forum. I did not meant to send it only to you.