Generally speaking you will see errors like this when your Model-Glue
application is configured to run in a directory off your web root
(e.g., http://localhost/sunshine/), and you are hitting it via a
domain directly (e.g., http://mydomain.com/).

If I am correct that this is the issue here, then the simplest fix
would be to create a mapping for the site (in your case called
"sunshine") that points to your MG directory. You can also edit the
various files involved to remove the "sunshine" root from all the
relevant paths, but setting up a mapping is going to be less work.

HTH,

--
Ezra Parker



On Wed, Jan 6, 2010 at 2:52 PM, Preserved Killick <[email protected]> wrote:
> I've got a test site that I've moved onto a new VPS with a fresh
> install of Railo (not sure if that matters).
>
> I keep getting this error that model glue can't find the
> mysite.controller.controller as defined in the modelglue.xml file.
>
> It's a standard install, with mappings set. What am I missing?
>
> Here's the error:
>
> Message: invalid component definition, can't find
> sunshine.controller.Controller
>
> The Error Occurred in
>  C:\inetpub\wwwroot\ModelGlue\gesture\module\XMLModuleLoader.cfc: line
> 209
>
>  called fromC:\inetpub\wwwroot\ModelGlue\gesture\module
> \XMLModuleLoader.cfc: line 101
>  called fromC:\inetpub\wwwroot\ModelGlue\gesture\modules\internal
> \configuration\controller\ConfigurationController.cfc: line 21
>  called fromC:\inetpub\wwwroot\ModelGlue\gesture\eventrequest
> \EventContext.cfc: line 298
>  called fromC:\inetpub\wwwroot\ModelGlue\gesture\eventrequest
> \EventContext.cfc: line 225
>  called fromC:\inetpub\wwwroot\ModelGlue\gesture\eventrequest\phase
> \Configuration.cfc: line 27
>  called fromC:\inetpub\wwwroot\ModelGlue\gesture\eventrequest
> \EventContext.cfc: line 155
>  called fromC:\inetpub\wwwroot\ModelGlue\gesture\ModelGlue.cfc: line
> 215
>  called fromC:\inetpub\wwwroot\ModelGlue\gesture\ModelGlue.cfm: line
> 58
>  called fromC:\inetpub\wwwroot\sunshine\index.cfm: line 50
>
>
> If I edit modelglue.xml
>
>  <controller id="Controller" type="sunshine.controller.Controller">
> to <controller id="Controller" type="controller.Controller">
>
> I get further to another error:
> The template (pages/exception.cfm) was not found in any registered
> view mappings (/sunshine/views).
>
> It seems like model-glue can't seem to find anything.
>
> At this point, either I'm missing something obvious or my Railo site
> setup is not correct.
>
> Am I missing something?
>
> --
> 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

Reply via email to