[ColdBox SEEK 4.1.0] - Coldboxproxy and inject module not working

46 views
Skip to first unread message

West

unread,
Jan 7, 2017, 10:48:22 PM1/7/17
to ColdBox Platform
Hi,

I'm using ColdFusion 11.

I have a method in my handler that works fine when I call it when submitting my form, but if I submit to the same handler method through the coldbox proxy it seems I can't get the cbvalidation module to be recognized.

The writedump() works fine if I submit to this handler from my login form, I see the dump.  I have another place on my site with a modal dialog and I'm submitted it via ajax, but in the Firebug console I'm getting this error for the exact same code, just called via the proxy.  Any idea why?  Probably just my lack of knowledge of how things work.


Could not find the ColdFusion component or interface cbvalidation.models.ValidationManager.
Ensure that the name is correct and that the component or interface exists.


--------------------------------

In my handler I have:      property name="ValidatorService" inject="model:ValidationManager@cbvalidation";


My handler method:

function process_login(event,rc,prc) {
 
    var objLogin = populateModel('Login');
    writedump(objLogin);abort;
}


Any help appreciated or if more info is needed, please let me know.


Jon Clausen

unread,
Jan 8, 2017, 8:44:45 AM1/8/17
to col...@googlegroups.com

Check that your modules aren’t being reloaded on every request in your config file.  This can cause the error you’re seeing with with module mappings.  In config/Coldbox.cfc look for the `modules` struct and make sure `autoReload` is set to false.   If you need that setting enabled, at the moment, you may need to add a mapping for `/cbvalidation` in your Application.cfc, pointing to the module root.

 

HTH,

Jon

--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/c793474f-a0c0-458e-acb1-3ee78e1cdb95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

br...@bradwood.com

unread,
Jan 8, 2017, 11:09:24 PM1/8/17
to col...@googlegroups.com
I think his may have been an issue we fixed in the last version of ColdBox where the CF mappings for modules weren't being created for proxy requests.  Can you try your code on ColdBox 4.3?

Thanks!

~Brad

ColdBox/CommandBox Developer Advocate
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------
Subject: [coldbox:26218] [ColdBox SEEK 4.1.0] - Coldboxproxy and inject module not working
--

Malik Robinson

unread,
Jan 10, 2017, 3:49:38 PM1/10/17
to ColdBox Platform
thanks for the replies, I will try with the latest version tonight or tomorrow morning

--------- Original Message ---------
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+unsubscribe@googlegroups.com.

To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/c793474f-a0c0-458e-acb1-3ee78e1cdb95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to a topic in the Google Groups "ColdBox Platform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/coldbox/OhI0jzl_rks/unsubscribe.
To unsubscribe from this group and all its topics, send an email to coldbox+unsubscribe@googlegroups.com.

To post to this group, send email to col...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages