On Oct 25, 3:18 pm, Armando <[email protected]> wrote:
Hello, I'm new to Mach II. I put Mach II in the subdirectory of my web
application. Following the installation directions I modified
application.cfc and mach-ii.xml. When trying index.cfm I got an error
which has been fixed. However I'm now getting the following error:
Could not find the included template ../views/exception.cfm. I've
tried
modifying mach-ii.xml and viewContext.cfc with no luck. Any assistance
would be greatly appreciated.

Additional information which might be helpful.
Directory structure:
e:
   Inetpub
      secure
         mvc (app name)
            MachII

Application.cfc reads as:
<cfcomponent displayname="Application.cfc" extends="Mach-II"
output="false">

        <!---
        PROPERTIES - APPLICATION SPECIFIC
        --->
        <cfset this.name = "mvc" />
        <cfset this.loginStorage = "session" />
        <cfset this.sessionManagement = true />
        <cfset this.setClientCookies = true />
        <cfset this.setDomainCookies = false />
        <cfset this.sessionTimeOut = CreateTimeSpan(0,1,0,0) />
        <cfset this.applicationTimeOut = CreateTimeSpan(1,0,0,0) />
        <cfset this.mappings["/MachII"] = "e:/inetpub/secure/mvc/MachII" />

           <!---
   PROPERTIES - MACH-II SPECIFIC
   --->
<!--- Set the path to the application's mach-ii.xml file. --->
<cfparam name="MACHII_CONFIG_PATH" type="string"
default="#ExpandPath('/config/mach-ii.xml')#" />
<!--- Set the configuration mode (when to reload). --->
<cfparam name="MACHII_CONFIG_MODE" type="numeric" default="0" />
<!--- Set the app key for sub-apps within a single cf-application. ---
>
<cfparam name="MACHII_APP_KEY" type="string"
default="#GetFileFromPath(ExpandPath('.'))#" />
<!--- Whether or not to validate the configuration XML before parsing.
--->
<cfparam name="MACHII_VALIDATE_XML" type="boolean" default="false" />
<!--- Set the path to the Mach-II's DTD file. --->
<cfparam name="MACHII_DTD_PATH" type="string"
default="#ExpandPath('/MachII/mach-ii_1_8_1.dtd')#" />


        <!---
                Most of the rest of the properties, methods, etc. have 
"intelligent
defaults"
                set in MachII.mach-ii (which Application.cfc extends). The 
typical
Mach-II
                properties such as MACHII_CONFIG_PATH, MACHII_APP_KEY,
MACHII_CONFIG_MODE, etc.
                can be overridden here, as can the Application CFC methods to 
which
you wish
                to add custom functionality.

                If you do override any of the methods, make sure to call super 
or
copy/paste
                the contents from MachII.mach-ii into your overridden methods. 
This
is particularly
                important with:
                * onApplicationStart(): this must call loadFramework()
                * onRequestStart(): this must call handleRequest()
        --->
</cfcomponent>

If I manually change the var viewPath to /mvc/views/exception.cfm I
get the following error:
Mach-II Exception
Message The getMessage method was not found.

Detail Either there are no methods with the specified method name and
argument types, or the getMessage method is overloaded with argument
types that ColdFusion cannot decipher reliably. ColdFusion found 0
methods that matched the provided arguments. If this is a Java object
and you verified that the method exists, you may need to use the
javacast function to reduce ambiguity.

Extended Info

Tag Context E:\Inetpub\Secure\mvc\views\exception.cfm (9)

E:\Inetpub\Secure\mvc\MachII\framework\ViewContext.cfc (115)

E:\Inetpub\Secure\mvc\MachII\framework\EventContext.cfc (475)

E:\Inetpub\Wwwroot\mvc\MachII\framework\commands\ViewPageCommand.cfc
(92)

E:\Inetpub\Wwwroot\mvc\MachII\framework\EventHandler.cfc (88)

E:\Inetpub\Secure\mvc\MachII\framework\RequestHandler.cfc (386)

E:\Inetpub\Secure\mvc\MachII\framework\RequestHandler.cfc (334)

E:\Inetpub\Secure\mvc\MachII\framework\RequestHandler.cfc (278)

E:\Inetpub\Secure\mvc\MachII\framework\RequestHandler.cfc (208)

E:\Inetpub\Secure\mvc\mach-ii.cfc (210)

E:\Inetpub\Secure\mvc\mach-ii.cfc (121)

-- 
To post to this group, send email to [email protected]
For more options and to unsubscribe, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en

SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/

Reply via email to