Hi Gary, I'm glad to hear you got it sorted out.
In regards to your mapping question, as I presume that your Application.cfc file is located within the "melange" directory, attempting to reference "/melange" in the expandPath() function there is basically looking for a subdirectory of the same name (effectively, "melange/melange"), whereas using the double dot traverses up a level first, so "../melange" refers to the directory containing Application.cfc. HTH, -- Ezra Parker On Wed, Mar 31, 2010 at 7:58 AM, garence <[email protected]> wrote: > Yahoo! Much thanks, Ezra; you nailed the issue. > > I opted for the mapping option, and put the following in my > Application.cfc: > this.mappings["/melange"] = ExpandPath('../melange'); > > ... then adjusted the code of the controller tag in the ModelGlue.xml > file to: > <controller id="Controller" type="melange.controller.Controller"> > > ... as well as the constructor method of the Controller.cfc to: > <cffunction name="init" access="public" > returntype="melange.controller.Controller" output="false"> > > ... and did this for both apps. Waalaa, application happiness. > > An aside, the mapping went wonk when it was this.mappings["/melange"] > = ExpandPath('/melange'); (no preceding dot-dot in the path > attribute). I can't say for sure what was happening here, but wonder > if the ExpandPath function was somehow referencing the very mapping it > was a part of creating. Sounds odd, but ... anywho, I added the dot- > dot and all was well. If someone can shed some light on this, I'd be > curious to know why if only for my own edification. > > Thanks again, MG folk! > > Gary > > On Mar 30, 6:46 pm, Ezra Parker <[email protected]> wrote: >> Hmm, you didn't mention which version of CF you're using, but if it's >> CF 9, then I would immediately suspect that this behavior is due to >> the new "Component cache" setting in the Sever Settings > Caching >> section of the CF admin (I believe that this setting is enabled by >> default). See this post for further details, as well as a solution you >> can use to leave the setting enabled is this is desired: >> >> http://groups.google.com/group/model-glue/browse_thread/thread/8472e2... >> >> If this is not the problem you're experiencing, please post back with >> as much additional information as you can: >> >> http://docs.model-glue.com/wiki/FAQs/WhatInformationShouldIProvideFor... >> >> Also, in regards to using a parent bean factory, here is the >> information we presently have for this topic on the wiki: >> >> http://docs.model-glue.com/wiki/FAQs/HowDoIGetModelGlueToUseAPreexist... >> >> Please let us know if you have any suggestions for how we could >> improve upon this FAQ entry (and don't hesitate to remind us about it >> at the training as well if you have any further questions). >> >> HTH, >> >> -- >> Ezra Parker >> >> On Tue, Mar 30, 2010 at 1:52 PM, garence >> >> <[email protected]> wrote: >> > No ... at least, not to my knowledge. Though I am fairly sure the >> > answer is "no". >> >> > (I'll make a note to hit someone up for more info about what is a >> > parent bean factory during the MG3 pre-conf training in April!) >> >> > In case it helps here ... I get a different error message depending on >> > which site I access first after re-booting the server. This is the >> > other error message:http://www.minneapolis.edu/error2.png >> >> > Gary >> >> > On Mar 30, 3:19 pm, Dan Wilson <[email protected]> wrote: >> >> I've seen similar behavior when using a parent bean factory in ColdSpring, >> >> used in two different MG applications. Are you using a parent bean >> >> factory? >> >> >> DW >> >> >> On Tue, Mar 30, 2010 at 4:11 PM, garence >> >> <[email protected]>wrote: >> >> >> > No - I verified that they have different application names. >> >> >> > An aside, I don't think the ww2beta sub-domain isn't available to the >> >> > public so that link to the screen scrape of the error doesn't help >> >> > much ... this should be viewable:http://www.minneapolis.edu/error.png >> >> >> > Gary >> >> >> > On Mar 30, 3:06 pm, Dan Wilson <[email protected]> wrote: >> >> > > Do they have the same application name? >> >> >> > > DW >> >> >> > > On Tue, Mar 30, 2010 at 4:05 PM, garence >> >> > > <[email protected]>wrote: >> >> >> > > > Oops ... Here is the error message: >> >> > > >http://ww2beta.minneapolis.edu/error.png >> >> >> > > > On Mar 30, 3:00 pm, garence <[email protected]> >> >> > > > wrote: >> >> > > > > I have two MG apps on the same server, they are their own websites >> >> > > > > with their own application scopes. But they do share the same >> >> > > > > Coldspring and MG source files. And it appears they're getting a >> >> > > > > bit >> >> > > > > too friendly with each other; one of the apps appears to be >> >> > > > > calling >> >> > > > > the onRequestStart method found in the controller of the other app >> >> > ... >> >> > > > > seems I've run into this before, though can't remember the solve. >> >> > > > > Anyone know what's happening here? >> >> >> > > > > Much thanks. >> >> >> > > > -- >> >> > > > Model-Glue Sites: >> >> > > > Home Page:http://www.model-glue.com >> >> > > > Documentation:http://docs.model-glue.com >> >> > > > Bug Tracker:http://bugs.model-glue.com >> >> > > > Blog:http://www.model-glue.com/blog >> >> >> > > > You received this message because you are subscribed to the Google >> >> > > > Groups "model-glue" group. >> >> > > > To post to this group, send email to [email protected] >> >> > > > To unsubscribe from this group, send email to >> >> > > > [email protected]<model-glue%[email protected]> >> >> > <model-glue%[email protected]<model-glue%[email protected]> >> >> >> > > > For more options, visit this group at >> >> > > >http://groups.google.com/group/model-glue?hl=en >> >> >> > > > To unsubscribe from this group, send email to model-glue+ >> >> > > > unsubscribegooglegroups.com or reply to this email with the words >> >> > "REMOVE >> >> > > > ME" as the subject. >> >> >> > > -- >> >> > > “Come to the edge, he said. They said: We are afraid. Come to the >> >> > > edge, >> >> > he >> >> > > said. They came. He pushed them and they flew.” >> >> >> > > Guillaume Apollinaire quotes >> >> >> > -- >> >> > Model-Glue Sites: >> >> > Home Page:http://www.model-glue.com >> >> > Documentation:http://docs.model-glue.com >> >> > Bug Tracker:http://bugs.model-glue.com >> >> > Blog:http://www.model-glue.com/blog >> >> >> > You received this message because you are subscribed to the Google >> >> > Groups "model-glue" group. >> >> > To post to this group, send email to [email protected] >> >> > To unsubscribe from this group, send email to >> >> > [email protected]<model-glue%[email protected]> >> >> > For more options, visit this group at >> >> >http://groups.google.com/group/model-glue?hl=en >> >> >> > To unsubscribe from this group, send email to model-glue+ >> >> > unsubscribegooglegroups.com or reply to this email with the words >> >> > "REMOVE >> >> > ME" as the subject. >> >> >> -- >> >> “Come to the edge, he said. They said: We are afraid. Come to the edge, he >> >> said. They came. He pushed them and they flew.” >> >> >> Guillaume Apollinaire quotes >> >> > -- >> > Model-Glue Sites: >> > Home Page:http://www.model-glue.com >> > Documentation:http://docs.model-glue.com >> > Bug Tracker:http://bugs.model-glue.com >> > Blog:http://www.model-glue.com/blog >> >> > You received this message because you are subscribed to the Google >> > Groups "model-glue" group. >> > To post to this group, send email to [email protected] >> > To unsubscribe from this group, send email to >> > [email protected] >> > For more options, visit this group at >> >http://groups.google.com/group/model-glue?hl=en >> >> > To unsubscribe from this group, send email to >> > model-glue+unsubscribegooglegroups.com or reply to this email with the >> > words "REMOVE ME" as the subject. > > -- > Model-Glue Sites: > Home Page: http://www.model-glue.com > Documentation: http://docs.model-glue.com > Bug Tracker: http://bugs.model-glue.com > Blog: http://www.model-glue.com/blog > > You received this message because you are subscribed to the Google > Groups "model-glue" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en > -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
