Rawlins
November 18, 2011, 11:21am
1
Hello Guys,
I\ve just dropped the relax module into my app, when trying to init the app I get the following exception:
Any ideas on what may be causing this?
It seems that ‘binder’ isn’t defined anywhere inside the config cfc so I assume that it’s meant to be injected by the framework and isn’t?
Thanks.
Robert
lmajano
November 18, 2011, 1:48pm
2
Yea very weird. If that didn’t work no modules would work. Verify version of coldbox you on?
Rawlins
November 18, 2011, 1:50pm
3
Hi Luis,
I have my own custom module that’s working just fine.
I’m running on ColdBox 3.1 by the looks of things. ColdBox 3.1.0 NEAR-JAMES 4:8
Should I be doing anything other than just dropping the Relax folder into /modules ?
Robert
lmajano
November 18, 2011, 2:06pm
4
That’s it. Can you verify you are using wirebox in your config?
Rawlins
November 18, 2011, 2:10pm
5
Assuming that Wirebox is the IoC that comes bundled with ColdBox then yes I am
Robert
lmajano
November 18, 2011, 3:06pm
6
Then I am baffled at why it does not recognize
It.
Rawlins
November 21, 2011, 1:07pm
7
Hi Luis,
I’m back trying to tackle this problem again today as I really need to get up and running with Relax.
I’m still getting this ‘binder’ is undefined error.
I downloaded a fresh copy of ColdBox 3.1, just to be sure I hadn’t broken my previous copy, and it’s still throwing the same error.
Robert
lmajano
November 21, 2011, 4:01pm
8
Ok Will investigate. Do you have this in your parent config
Wirebox = {
Enabled = true
}
Rawlins
November 21, 2011, 9:10pm
9
Hi Luis,
Great, so it seems we’re making a little progress. I did not have that setting in my config, adding it in means the app now inits without an error. However:
When going to the entry point for relax ?event=relax:home.index I get a new exception.
Application Execution ExceptionError Type: Controller.SettingNotFoundException : [N/A]
Error Messages: The setting htmlBaseURL does not exist.
FWSetting flag is false
I don’t understand if Wirebox wasn’t enabled before, why dependancy injection within the app appears to have been working fine :-s are they two separate things?
Thanks for your help Luis.
Robert
lmajano
November 22, 2011, 5:42am
10
in 3.1 you had to turn wirebox on explicitly, else it used the compatibly bean factory which has been removed in 3.5
As for the 1 error, that means that SES is not enabled. As relax relies on SES being enabled.
Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
Social: twitter.com/lmajano facebook.com/lmajano
Rawlins
November 22, 2011, 8:32am
11
Thanks for the explanation Luis, I shall look at getting SES enabled today.
Thanks for your help.
Robert