thanks, that gets it working. I hadn't realised the $ for absolute unix paths was required in per app mappings.
This does somewhat break compatibility with CF8 app mappings doesn't it? 2009/2/3 Anthony Hixon, Jr. <[email protected]> > Hi Chris, > > Add a $ in front of #settings.basedir# and see if that helps. like so: > > <cfset this.mappings["/coldspring"] = > "$#settings.basedir#/shared/coldspring" /> > > On Tue, Feb 3, 2009 at 1:50 PM, Chris Blackwell <[email protected]> wrote: > >> I'm trying to get an app running on openbd but i don't seem to be able to >> get past onApplicationStart >> >> My test case Application.cfc looks like this >> >> <cfcomponent> >> >> <cfset this.name = "openbd_test1" /> >> <cfset this.sessionManagement = true> >> <cfset this.sessionTimeout = createTimeSpan(0,0,50,0)> >> >> <cfset settings = structnew() /> >> <cfset settings["basedir"] = expandpath("/apps")> >> >> <cfset this.mappings["/coldspring"] = >> "#settings.basedir#/shared/coldspring" /> >> >> <cffunction name="onApplicationStart"> >> <cfset var beans = "" /> >> >> <cfdump var="#settings#"> >> <cfdump var="#this.mappings#"> >> <cfflush/> >> >> <cfset application.cs = createobject("component", >> "coldspring.beans.DefaultXmlBeanFactory").init() /> >> </cffunction> >> >> </cfcomponent> >> >> >> This gives me the following output >> >> basedir = >> /home/chris/Desktop/openbd/webroot_cfmlapps/cfmlWebContext_1/apps - correct >> /coldspring = >> /home/chris/Desktop/openbd/webroot_cfmlapps/cfmlWebContext_1/apps/shared/coldspring >> - correct >> >> followed by an error instantiatin the coldspring beanfactory >> >> TypeApplication Function(s)onApplicationStart >> DetailA request was made to a resource that could not be located Missing >> Filecoldspring.beans.DefaultXmlBeanFactory >> In other quick tests i don't seem to be able to get openbd to recognize >> any app mappings at all, not just this one >> >> I'm using the ready2run download (buildate 2009-02-02 05:55:54 GMT) on >> ubuntu 8.04. >> >> Anyone know what might be going on here? >> >> Cheers, Chris >> >> >> > > > -- > Anthony Hixon, Jr. > Certified Advanced ColdFusion MX 7 Developer > Mobile: (706) 639-3617 > [email protected] > > > > --~--~---------~--~----~------------~-------~--~----~ Open BlueDragon Public Mailing List http://groups.google.com/group/openbd?hl=en official site @ http://www.openbluedragon.org/ !! save a network - trim replies before posting !! -~----------~----~----~----~------~----~------~--~---
