When using the following code
COLDBOX_APP_KEY = “myApplicationKey”;
The following error is displayed, and of course making it an empty string works fine.
Application Execution Exception
Error Type: Application : [N/A]
Error Messages: coldfusion.runtime.CustomException: ColdBox Controller Not Found
Root cause :org.hibernate.HibernateException: coldfusion.runtime.CustomException: ColdBox Controller Not Found
Tag Context:
ID:
CF_CFPAGE
LINE:
253
Template:
N:\Projects\ColdFusion\ColdBox\system\orm\hibernate\BaseORMService.cfc
Regards,
Andrew Scott
http://www.andyscott.id.au/
When using the following code
COLDBOX_APP_KEY = “myApplicationKey”;
The following error is displayed, and of course making it an empty string works fine.
Application Execution Exception
Error Type: Application : [N/A]
Error Messages: coldfusion.runtime.CustomException: ColdBox Controller Not Found
Root cause :org.hibernate.HibernateException: coldfusion.runtime.CustomException: ColdBox Controller Not Found
I am not, so it isn’t some magical setting then. It sounds like what your saying Luis I need to reference it somewhere?
Regards,
Andrew Scott
http://www.andyscott.id.au/
well, that key is the override for the application key for the app which usually is: cbController. However, if you change it in the Application.cfc, you must consequently change it everywhere you use the coldbox proxy.
Luis F. Majano
President
Ortus Solutions, Corp
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
Ok screw that too much maintenance.
Regards,
Andrew Scott
http://www.andyscott.id.au/
JEJJE, I know! It’s there, for those that want to manually run more than 1 app on the same Application.cfc
Luis F. Majano
President
Ortus Solutions, Corp
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
It's funny you bring this up Andrew because this is exactly the issue
I'm having with the ormsettings.eventhandler=true (in my testing 'app'
used in integration testing) issue we were discussing in the other
thread.
Since the coldbox.system.orm.hibernate.EventHandler extends
coldbox.system.remote.ColdboxProxy (and the key is hardcoded in that
file as 'cbController') - when I reference my ORMEventHandler (which
extends the coldbox.system.orm.hibernate.EventHandler) it throws the
error you are referencing.
Luis I noticed another thread on this (http://groups.google.com/group/
coldbox/browse_thread/thread/72c0918e40aca688/e96e0f6bc95665b9?
lnk=gst&q=ColdBox+Controller+Not+Found+#e96e0f6bc95665b9) and couldn't
decipher a clear resolution. Can you revisit how to overcome this?
Andrew I don't mean to hijack your thread - I think this all boils
down to the same issue - the ColdboxProxy having a hardcoded
COLDBOX_APP_KEY and how to get around this when running two
applications under one Coldbox instance (by testing application.cfc
has the key set to 'TESTING', regular app doesn't set this key set at
all in application.cfc - so defaults to 'cbController').
Thanks,
Cory
Are you using the same application.cfc for testing
No - under my /testing folder there is an application.cfc which has
the COLDBOX_APP_KEY = "TESTING". The root application.cfc doesn't
have anything set.
-Cory
Ann ok. If you do that then every proxy call needs that key be set via
it's setter method as you hfave changed it. I would recommend removing
it and just change the this.name in the app to testing.