Jon,

Thanks for the details. That helps in debugging your situation.

I'm currently hosting a few Model Glue applications on Linux myself. I'm not
having any issues with the XML Searches and case sensitivity.

Would it be possible for you to zip up your mgfundamentals project and send
it to me?  You can email me privately if you like.

DW


On Tue, Jul 19, 2011 at 9:50 AM, Jon Mosquera <[email protected]>wrote:

> This is my application.cfc
>
> <cfcomponent output="false">
>
> <!--- Application settings --->
> <cfset this.name = "mgfundamentals" />
> <cfset this.sessionManagement = true>
> <cfset this.sessionTimeout = createTimeSpan(0,0,30,0)>
> <cfset THIS.mappings["/ModelGlue"]="/home/jomosque/htdocs/ModelGlue">
> <cfset THIS.mappings["/coldspring"]="/home/jomosque/htdocs/coldspring">
>
> <cffunction name="onSessionStart"  output="false">
>
> <cfif StructKeyExists(URL, "reset")>
>  <cfset this.onapplicationStart()>
>  <cfset this.onSessionStart() >
> </cfif>
>        <!--- Not sure anyone'll ever need this...
>        <cfset invokeSessionEvent("ModelGlue.onSessionStartPreRequest",
> session, application) />
>        --->
>        <!--- Set flag letting MG know it needs to broadcast onSessionStart
> before onRequestStart --->
>        <cfset request._modelglue.bootstrap.sessionStart = true />
> </cffunction>
>
> <cffunction name="onSessionEnd" output="false">
>        <cfargument name="sessionScope" type="struct" required="true">
>        <cfargument name="appScope"     type="struct" required="false">
>
>        <cfset invokeSessionEvent("ModelGlue.onSessionEnd",
> arguments.sessionScope, appScope) />
> </cffunction>
>
> <cffunction name="invokeSessionEvent" output="false" access="private">
>        <cfargument name="eventName" />
>        <cfargument name="sessionScope" />
>        <cfargument name="appScope" />
>
>        <cfset var mgInstances = createObject("component",
> "ModelGlue.Util.ModelGlueFrameworkLocator").findInScope(appScope) />
>        <cfset var values = structNew() />
>        <cfset var i = "" />
>
>        <cfset values.sessionScope = arguments.sessionScope />
>
>        <cfloop from="1" to="#arrayLen(mgInstances)#" index="i">
>                <cfset mgInstances[i].executeEvent(arguments.eventName,
> values) />
>        </cfloop>
> </cffunction>
>
>
> </cfcomponent>
>
> Last thing I have found is that the file in
> /home/jomosque/htdocs/ModelGlue/gesture/module/XMLModuleLoader.cfc has
> some lines with the name "modelglue" in lowercases and this throws an
> error because my Model Glue Folder is UpperCase like "ModelGlue" so I
> fixed
> lines such as 373: /modelglue/event-handlers/event-handler with
>                          /ModelGlue/event-handlers/event-handler
>
> this is a little frustrating, I do not know where is going to be the
> next bug in my linux server application. Thanks for your help
> :)
> On 7/18/11, Dan Wilson <[email protected]> wrote:
> > Paste the contents of your application.cfc/cfm
> > On Jul 18, 2011 4:38 PM, "Jon Mosquera" <[email protected]> wrote:
> >> I have run my Model-Glue application in Internet Information Server
> >> with coldfusion 9. It runs perfect.
> >> However I have recently migrate to Ubuntu 11.04, I put the folders and
> >> files exactly as they were in the Windows File system and I've got
> >> this error when I try to invoke an event.
> >> http://mgfundamentals/index.cfm?event=uppercaser.form
> >>
> >> Element modelglue.onApplicationInitialization is undefined in a CFML
> >> structure referenced as part of an expression.
> >>
> >> The error occurred in /home/jomosque/htdocs/ModelGlue/gesture/
> >> MemoizedModelGlue.cfc: line 84
> >> Called from /home/jomosque/htdocs/ModelGlue/gesture/eventrequest/phase/
> >> Initialization.cfc: line 44
> >> Called from /home/jomosque/htdocs/ModelGlue/gesture/eventrequest/
> >> EventRequestPhase.cfc: line 44
> >> Called from /home/jomosque/htdocs/ModelGlue/gesture/eventrequest/
> >> EventContext.cfc: line 187
> >> Called from /home/jomosque/htdocs/ModelGlue/gesture/ModelGlue.cfc:
> >> line 297
> >> Called from /home/jomosque/htdocs/ModelGlue/gesture/ModelGlue.cfm:
> >> line 97
> >> Called from /home/jomosque/htdocs/mgfundamentals/index.cfm: line 41
> >>
> >> 82 : </cfif>
> >> 83 :
> >> 84 : <cfreturn this.eventHandlers[arguments.eventHandlerName] />
> >> 85 : </cffunction>
> >> 86 :
> >>
> >> Any help?
> >> 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]
> >> 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
>
> --
> 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
>



-- 
Plutarch - "The mind is not a vessel to be filled but a fire to be kindled."

-- 
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

Reply via email to