Hi Oliver, There's no need to change you're app.cfc just to reload modelglue
Assuming you have the default settings for reloadKey and reloadPassword (in coldspring.xml) you can restart your application by appending &init=true to the end of any request to MG. If you've changed these (and you should in propduction) just use whatever key and password you defined. Chris On 15 September 2010 16:00, olivierb <[email protected]> wrote: > I got the same error when upgrading from ModelGlue 3 to 3.1 After > replacing the existing ModelGlue directory with the new ModelGlue 3.1 > directory, I saw the same error message: > > The method setup was not found in component C:\Inetpub\modelglue > \gesture\eventrequest\phase\Initialization.cfc. > Ensure that the method is defined, and that it is spelled correctly. > The error occurred in C:\Inetpub\modelglue\gesture\eventrequest > \EventContext.cfc: line 178 > > For those who need more details, this is what I did to resolve the > issue: > > 1) Opened ColdSpring.xml, found the property named "reload" and set > the value to: true > 2) Opened application.cfc and added <cfset THIS.OnApplicationStart()> > in the OnRequestStart function. > 3) Reloaded the application in my browser. The error was gone and the > application loaded correctly. > 4) Changed the ColdSpring.xml property "reload" back to: false > 5) Reloaded the application in my browser. > 6) Removed the <cfset THIS.OnApplicationStart()> from the > OnRequestStart function in application.cfc. > > I've noticed that even if I make changes to my ColdSpring.xml file, > they don't take effect unless I restart the application, which is why > I played with application.cfc file. > > I can't say if this was the best way of handling the error but it > worked for me. > > -- > Olivier > > On Aug 19, 11:50 pm, Irv Wilson <[email protected]> wrote: > > Sorry. Didn't think of the fact that "init" was on for the app I'm > > working on and not for the other. Reinitializing the other fixed it. > > > > Irv > > > > On Aug 19, 1:22 pm, Irv Wilson <[email protected]> wrote: > > > > > > > > > the specific lines are > > > > > <cfloop from="1" to="#arrayLen(variables._requestPhases)#" index="i"> > > > <cfset this.addTraceStatement(variables._requestPhases[i].name, > > > "Setting up request phase.") /> > > > <cfset > > > > variables._requestPhases[i].setup(this,request._modelglue.bootstrap.initial > ÂizationLockPrefix,request._modelglue.bootstrap.initializationLockTimeout) / > > > > > <cfset this.addTraceStatement(variables._requestPhases[i].name, > > > "Executing request phase.") /> > > > <cfset variables._requestPhases[i].execute(this) /> > > > > > On Aug 19, 1:12 pm, Irv Wilson <[email protected]> wrote: > > > > > > I removed beta version and installed 3.1.299. One app runs fine > > > > however an older app based off of canvas wiki returns this error. > > > > Ideas? > > > > > > The method setup was not found in component C:\HTTP\modelglue\gesture > > > > \eventrequest\phase\Initialization.cfc. > > > > > > Ensure that the method is defined, and that it is spelled correctly. > > > > > > The error occurred in C:\HTTP\modelglue\gesture\eventrequest > > > > \EventContext.cfc: line 178- Hide quoted text - > > > > > - Show quoted text - > > -- > 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 > -- 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
