Fusebox 5.5 Implicit Circuit Pathing
Posted on September 13, 2007 at 7:21 PM in Fusebox
The other day Sean released a FB5.5 update to the Cat Club demo application, so I downloaded it to play around a bit with the new toy. I am truly excited about the option to eliminate XML from one's Fusebox applications.
IMPORTANT: The XML is still perfectly valid, and the FB5.5 release will *not* break older apps. As a matter of fact, I have several 5.1 applications that are now running on the 5.5 core, without a single keystroke change to the code.
When I unzipped and ran the Cat Club demo from the webroot, it performed flawlessly. And fast? Yes! Very. "So far so good," I thought, and then I went to putting together my own little demo app, utilizing the implicit circuit feature (no XML). That's when I stubbed my toe, fell down, and skinned up my knees.
I talked with Sean for a good while on my issue, and try as he might, he was unable to duplicate it on his machine. So, I thought I'd throw out this post and see if anyone else runs into the same issue.
Here's what I did: moved the application into a sub-directory of the webroot, and immediately received the following error message:
"Well, you dummy," I mused, "you need to reload the application! Oh, and be sure to parse all!"
Unfortunately, doing so resulted in no change in behavior whatsoever. It seems to me that the Fusebox core is not correctly setting the paths to the application root, and therefore, the paths to the controller / model / view directories are incorrect as well. Here is the controller path that I **think** is being set...
{application_name}/controller/{circuit_name}
Why do I think that? Well, the sample app's name is "ggcc55", and a fuseaction of 'ggcc.home' is being requested - which is the 'ggcc' controller - and the error message indicates that FB is attempting to create a component with a path of 'ggcc55.controller.ggcc'.
So long as I have the files residing in the webroot (D:WebDev in my case) as so...
{webroot}/ggcc55/controller/ggcc
... the application loads without any troubles. Below is a screencap of this directory structure.
Once I move the application files to a lower directory, that's when my troubles arise. Here is the directory structure that I tried to use, below which is a screencap.
{webroot}/ggcc55-2/www
So, my question is, can anyone else duplicate this issue? Or is it just me? I can reliably reproduce the issue on all of my test servers, as well as my production servers.
By the way, I'm running Windoze XP Pro w/ IIS on my test server, and Windoze Server 2003 Standard Edition w/ IIS on my production servers.
Latest Articles
- No recent entries.
Categories
- ColdBox (21) [RSS]
- ColdFusion (92) [RSS]
- Fusebox (3) [RSS]
- General (22) [RSS]
- jQuery (15) [RSS]
- Kalendar (1) [RSS]
- Linux (1) [RSS]
- Mura CMS (1) [RSS]
- Railo (1) [RSS]
- Rants (5) [RSS]
- Transfer (8) [RSS]
- Uni-Form Tag Library (36) [RSS]
Quick Links
Blogs I Read
Calendar
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
« Sep | ||||||
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Subscribe
Enter a valid email address.
On 9/13/07 at 11:07 PM, Sean Corfield said:
You ran the app in /ggcc55 and it generated parsed files. Then you copied the application into the new directory - including the parsed files - and then you tried to run it but it reused the old parsed files which already have ggcc55.controller.ggcc compiled into them. If you delete the parsed files, I think the problem will go away.
Using fusebox.loadclean=true instead of just fusebox.load=true in the URL is a good way to ensure an application starts cleanly.
This only happened because I'd hardcoded the application name. If I'd used the skeleton app as a template, this would not have happened because the application name is derived from the directory path.
Hope that helps?
On 9/15/07 at 9:13 AM, Matt Quackenbush said:
fusebox.loadclean=true
&fusebox.parseall=true
&fusebox.execute=true
&fusebox.password=foo,
I still receive the exact same error message. I will continue to play around with it until I figure out what I'm doing wrong. Whenever I find it, I'll be sure to post the solution.
On 9/15/07 at 1:00 PM, Matt Quackenbush said:
On 9/26/07 at 8:06 AM, Erik-Jan Jaquet said:
Just wanted to say that I downloaded the beta.0 version, with the noxml skeleton, and that I have the same problems. It can't find the controller, even though I am running directly in the webroot.
Has this been solved by anyone?
Kind regards,
Erik-Jan
On 1/15/08 at 12:57 AM, Sean Corfield said:
On 1/15/08 at 1:25 AM, Matt Quackenbush said:
On 1/15/08 at 6:42 PM, Matt Quackenbush said: