I’ve spent about 2 weeks trying to figure this out, and I’m no closer than when I started. I’m running Coldfusion 8.0.1.
First, I used commandbox to install coldbox 3.8.1 to my project directory. This directory is not the webroot as I do not have access to the webroot - and I do not have access to the coldfusion admin page to set a global mapping. From what I gather, this means I need to use the “no inheritance” version of Application.cfc and I need to set the application level mapping to make this work.
Then I cloned this git repo:
I copied the helloWorld sample app into the project directory at the same level as /coldbox.
When I run the application, the Application.cfc is output as plain text. I gather this is a result of the “inheritence” version of Application.cfc. The problem is, there is no “no inheritence” sample provided.
Going back to this 2 year old blog entry:
http://blog.coldbox.org/blog/coldbox-lite-is-here
I attempted to download CBL Standard and CBL Standard with ORM from http://www.coldbox.org/download/lite and http://www.coldbox.org/download/lite/orm/true which redirected me to http://downloads.ortussolutions.com/coldboxLITE_1.2.0.zip and http://downloads.ortussolutions.com/coldboxLITE-ORM_1.2.0.zip (respectively). However, neither of these URLs works.
I did eventually find an old Alpha version that Luis Majano attached to this Google Groups discussion board:
https://groups.google.com/forum/#!msg/coldbox/NNhv3Qw1mWg/160XzhrEt7cJ
In this alpha zip, I did find a “no inheritance” Application.cfc and when I tried to use it the application finally ran, but thew up with the following error:
# Local variable method on line 115 must be grouped at the top of the function body. The error occurred in /vagrant/coldbox/system/core/util/util.cfc: line 17
Called from /vagrant/coldbox/system/logging/config/logboxconfig.cfc: line 48
Called from /vagrant/coldbox/system/web/services/loaderservice.cfc: line 168
Called from /vagrant/coldbox/system/web/controller.cfc: line 49
Called from /vagrant/coldbox/system/coldbox.cfc: line 69
Called from /vagrant/ps4/Application.cfc: line 38 |
I’m not sure what else to do… I tried coldbox 3.8.1, 3.5.3, and the coldbox lite version from the alpha zip file and they all yield the same error.
So I thought, “well, why not use the full version of Coldbox instead of just Coldbox lite?” Well it turns out that it produces the exact same error as above (on both 3.8.1 and 3.5.3) just on a different line of util.cfc.
Is Coldbox Lite no longer supported? Is there anything I can do to make it work?