installing MachII in a folder that IS NOT the webroot

7 views
Skip to first unread message

jarthel

unread,
May 11, 2009, 9:57:21 PM5/11/09
to Mach-II for CFML
I thought I got this working for it seems I forgot to delete the
machii folder in the webroot. :(

I followed the tips in this page:
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/FAQApplicationSpecificMappingWorkaround.
I still have a copy of mach-ii.cfc in /myfolder/MachII. No changes
were made to mach-ii.cfc.

But somehow I'm getting this error:
++++++++++++
Element APPLOADER is undefined in a CFML structure referenced as part
of an expression.

The error occurred in C:\web\apache\htdocs\flinders\webapps\edss\mach-
ii.cfc: line 179

177 : <cffunction name="getAppManager" access="public"
returntype="MachII.framework.AppManager" output="false"
178 : hint="Get the Mach-II AppManager. Not available until
loadFramework has been called.">
179 : <cfreturn application[getAppKey()].appLoader.getAppManager() /
>
180 : </cffunction>
181 :
++++++++++++++++++++++

Any ideas? Thanks for the help :)

This is what my application.cfc looks like:
++++++++++++++++
<cfcomponent extends="mach-ii" output="false">

<!--- Application variables --->
<cfset this.name = "Ethics" />
<cfset this.loginStorage = "session" />
<cfset this.sessionManagement = true />
<cfset this.setClientCookies = false />
<cfset this.setDomainCookies = false />
<cfset this.sessionTimeOut = CreateTimeSpan(0,0,30,0) />
<cfset this.applicationTimeOut = CreateTimeSpan(1,0,0,0) />

<!--- Custom mappings --->
<!--- Windows path --->
<cfset this.mappings["/coldspring"] = "C:\web\apache\htdocs\flinders
\webapps\edss\coldspring">
<cfset this.mappings["/MachII"] = "C:\web\apache\htdocs\flinders
\webapps\edss\MachII">
<cfset this.mappings["/transfer"] = "C:\web\apache\htdocs\flinders
\webapps\edss\transfer">

<!--- Mach-II variables --->
<cfset MACHII_APP_KEY = getFileFromPath(ExpandPath(".")) />
<cfset MACHII_CONFIG_MODE = 0 />
<cfset MACHII_CONFIG_PATH = "C:\web\apache\htdocs\flinders\webapps
\edss\config\mach-ii.xml" />
<cfset MACHII_DTD_PATH = "C:\web\apache\htdocs\flinders\webapps\edss
\MachII\mach-ii_1_6_1.dtd" />
<cfset MACHII_VALIDATE_XML = false />
++++++++++++++++++

Peter J. Farrell

unread,
May 12, 2009, 12:18:28 PM5/12/09
to mach-ii-for...@googlegroups.com
CFML engine get a little wonky when you move folders around when you have mappings like that.  Bouncing (restarting) your CFML server should correct this error.

Also, the mach-ii.cfc should be in the same folder as your Application.cfc and you'll need to delete the MachII folder in your webroot because that is the first place that the CFML engine will look (even before the app-specific mappings).

.Peter

jarthel said the following on 5/11/2009 8:57 PM:

No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database: 270.12.24/2108 - Release Date: 05/11/09 05:52:00

jarthel

unread,
May 12, 2009, 9:10:38 PM5/12/09
to Mach-II for CFML
I'll try your suggestions. Thanks Peter. :)

On May 13, 1:18 am, "Peter J. Farrell" <pe...@mach-ii.com> wrote:
> CFML engine get a little wonky when you move folders around when you
> have mappings like that.  Bouncing (restarting) your CFML server should
> correct this error.
>
> Also, the mach-ii.cfc should be in the same folder as your
> Application.cfc and you'll need to delete the MachII folder in your
> webroot because that is the first place that the CFML engine will look
> (even before the app-specific mappings).
>
> .Peter
>
> jarthel said the following on 5/11/2009 8:57 PM:
>
> > I thought I got this working for it seems I forgot to delete the
> > machii folder in the webroot. :(
>
> > I followed the tips in this page:
> >http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/FAQApplicationS....
> > > ------------------------------------------------------------------------

jarthel

unread,
May 13, 2009, 1:50:22 AM5/13/09
to Mach-II for CFML
works like a charm. I only have to reboot PC. :)

thanks again

Peter J. Farrell

unread,
May 13, 2009, 1:54:00 AM5/13/09
to mach-ii-for...@googlegroups.com
Great, glad it was resolved.

-----Original Message-----
From: jarthel <jar...@gmail.com>

Date: Tue, 12 May 2009 22:50:22
To: Mach-II for CFML<mach-ii-for...@googlegroups.com>
Subject: [Mach-II] Re: installing MachII in a folder that IS NOT the webroot
Reply all
Reply to author
Forward
0 new messages