coldbox - mapping coldbox to a directory thats not named coldbox

327 views
Skip to first unread message

Jay Rizzi

unread,
Feb 16, 2017, 1:57:52 PM2/16/17
to ColdBox Platform
I've read all the documentation on this, and am continually stymied by wanting to call the folder a different name other than "coldbox" so i can have multiple versions of coldbox installed
this is my dev machine so i dont want to create a virtual path i have only on ver of cf 11 running

I have the following piece of code in my Application.cfc

this.mappings["/coldbox"] = ExpandPath('/coldbox4');

this is for the directory outside the www root

i have tried having the coldbox directory inside the www root and using the following code

this.mappings["/coldbox"] ='coldbox4';

I then tried to get an absolute path 

this.mappings["/coldbox"] = 'C:\ColdFusion11\cfusion\coldbox4';

none of this will work


i get a variety of different types of coldfusion errors, one of which is 

Could not find the ColdFusion component or interface C:/ColdFusion11/cfusion/wwwroot/coldbox/system/core/util/RequestBuffer.cfc


have also gotten

Could not find the ColdFusion component or interface LRU.



Any help i can get on this would be greatly appreciated


br...@bradwood.com

unread,
Feb 16, 2017, 3:15:20 PM2/16/17
to col...@googlegroups.com
You should be able to do this no problem.  Firstly, make sure you have turned off "component caching" in your ColdFusion administrator (if using ACF) as it will cache CFC paths on you.
 
Secondly, you want to use fully expanded paths in your mappings like you shows in your last example.  I'd test the mapping by dumping expandPath( '/coldbox' ) in your on RequestStart to see if it's resolving to where you expect it to.
 
> Could not find the ColdFusion component or interface LRU.
 
This error usually happens when someone runs a ColdBox app from a folder inside the web root and has the coldbox folder in the sub folder but doesn't have a working mapping.  The initial bootstraps will find the ColdBox folder simply because it's in the same relative directory, but coldbox.system.etc paths won't resolve from anywhere else.

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 ---------
--
--
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/7d53ad0c-cc84-4138-b0a0-c9e2cbcae796%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jay Rizzi

unread,
Feb 16, 2017, 3:49:56 PM2/16/17
to ColdBox Platform
thank you, component cache was definately the issue, thank you
Reply all
Reply to author
Forward
0 new messages