Hi Tom (again),

Yes, you are not joking when you say this is confusing. Thanks for
your help here.

I'll try to make my setup as clear as 4am in the morning will allow.
This may reveal that I don't really know what I'm doing with IIS
(which I don't)...

Inetpub folders:

c:\inetpub\wwwroot\ModelGlue
c:\inetpub\wwwroot\ColdSpring
c:\inetpub\wwwroot\Reactor
c:\inetpub\wwwroot\MyApp containing application.cfm, index.cfm and c:
\inetpub\wwwroot\MyApp\css

In IIS:

www.myappsdomain.com is setup as a website - Home directory is c:
\inetpub\wwwroot\myapp
c:\inetpub\wwwroot\MyApp\config setup as a virtual directory
c:\inetpub\wwwroot\MyApp\controller setup as a virtual directory
c:\inetpub\wwwroot\MyApp\views setup as a virtual directory

In CFAdministrator Mappings

 /modelglue  mapped to c:\inetpub\wwwroot\modelglue
 /reactor  mapped to c:\inetpub\wwwroot\reactor
 /coldspring  mapped to c:\inetpub\wwwroot\coldspring
 /myapp  mapped to       c:\MyApps\myapp\

In ColdSpring.xml <property name="configurationPath"><value>config/
ModelGlue.xml</value></property>

In index.cfm <cfset ModelGlue_LOCAL_COLDSPRING_PATH = "C:/MyApps/myapp/
config/ColdSpring.xml" />


I tried the mapping that you suggested but couldn't get it to work. I
did try changing the Home Directory in IIS for the www.myappsdomain.com
to c:\inetpub\wwwroot\myapp which I think might've made some progress.
However, it then threw an error saying it wasn't able to find the
controller path (from ModelGlue.xml):

This is the error message:


Could not find the ColdFusion Component or Interface
controller.controller.
Ensure that the name is correct and that the component or interface
exists.

The error occurred in C:\Inetpub\wwwroot\ModelGlue\unity\loader
\XmlConfigurationLoader.cfc: line 200
Called from C:\Inetpub\wwwroot\ModelGlue\unity\loader
\XmlConfigurationLoader.cfc: line 49
Called from C:\Inetpub\wwwroot\ModelGlue\unity\loader
\FrameworkLoader.cfc: line 63
Called from C:\Inetpub\wwwroot\ModelGlue\unity\ModelGlue.cfm: line 65
Called from C:\MyApps\oxjewelsNew\index.cfm: line 52

198 :                           <cfset autowireController(instance) />
199 :                   <cfelseif structKeyExists(ctrl.xmlAttributes, "type")>
200 :                           <cfset instance = createObject("component",
ctrl.xmlAttributes.type).init(arguments.mg, ctrl.xmlAttributes.name) /
>
201 :                           <cfset autowireController(instance) />
202 :                   </cfif>


I was then not able to make it successfully find the path to the
controller.cfc in modelglue.xml.

This is really frustrating as I seem to have tried almost every
combination that I can think of.

If you can help shed any light on this problem I'll happily buy you a
beer.

Cheers,
Tom


On Nov 12, 3:35 am, "Tom McNeer" <[EMAIL PROTECTED]> wrote:
> Tom,
>
> This is confusing, definitely. I screw it up almost every time I set up a
> new Model-Glue app.
>
> The value for the path is relative to the index.cfm which announces the
> event.
>
> So if the index.cfm is at "C:\Inetpub\wwwroot\myapp\index.cfm"
>
> ... and the config file is at "C:\MyApps\config\myapp\ModelGlue.xml"
>
> ... a relative path would be something like
> "../../../MyApps/config/myapp/ModelGlue.xml"
>
> Give it a try and let us know how it works.
>
> If it works, you could then apply a mapping to make it simpler.
>
> --
> Thanks,
>
> Tom
>
> Tom McNeer
> MediumCoolhttp://www.mediumcool.com
> 1735 Johnson Road NE
> Atlanta, GA 30306
> 404.589.0560
--~--~---------~--~----~------------~-------~--~----~
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

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to