Configuration Issue

38 views
Skip to first unread message

Learner

unread,
May 13, 2012, 7:11:18 AM5/13/12
to model-glue
Dear Guru's,

i just started to learn MVC in coldfusion, i followed all steps for
instllation now im on "Section 2: Show Me Some Skinning " i created
all the templates in layout when i uncomment "<!-- Uncomment:
#navigationcontent# -->" and i put <cfoutput>#navigationcontent#</
cfoutput> im getting error

Message Variable NAVIGATIONCONTENT is undefined.
Detail
Extended Info
Tag Context C:\Inetpub\wwwroot\PlantOMatic\views\primary.cfm (34)
C:\Inetpub\wwwroot\ModelGlue\gesture\view\ViewRenderer.cfm (6)
C:\Inetpub\wwwroot\ModelGlue\gesture\view\ViewRenderer.cfc (56)
C:\Inetpub\wwwroot\ModelGlue\gesture\eventrequest\EventContext.cfc
(661)
C:\Inetpub\wwwroot\ModelGlue\gesture\eventrequest\EventContext.cfc
(246)
C:\Inetpub\wwwroot\ModelGlue\gesture\eventrequest\phase\Invocation.cfc
(62)
C:\Inetpub\wwwroot\ModelGlue\gesture\eventrequest\EventContext.cfc
(155)
C:\Inetpub\wwwroot\ModelGlue\gesture\ModelGlue.cfc (215)
C:\Inetpub\wwwroot\ModelGlue\gesture\ModelGlue.cfm (58)
C:\Inetpub\wwwroot\PlantOMatic\index.cfm (50)


please guys help me to solve this issue i know im missing something
but i don't know what ....

Thanks

Dan Wilson

unread,
May 13, 2012, 7:36:49 AM5/13/12
to model...@googlegroups.com
What step were you on in section 2?

DW



--
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 model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en



--
Plutarch - "The mind is not a vessel to be filled but a fire to be kindled."

Onlyamir007

unread,
May 13, 2012, 7:39:35 AM5/13/12
to model-glue
Yes
Section 2: Show Me Some Skinning
http://docs.model-glue.com/wiki/Training/Section02

Onlyamir007

unread,
May 13, 2012, 7:42:10 AM5/13/12
to model-glue
A Flexible One Column Template ¶

Now, when we run our application at http://localhost/PlantOMatic/ we
see our template in action:

http://docs.model-glue.com/raw-attachment/wiki/Training/Section02/training02-2.png
One Column Layout

---------------------------------------------------------------------------------------------------------------------------------------------------------------------

Primary.cfm
--------------------------------------------------------------------------------------------------------------------------------------------------------------------

<!---I am a blank slate.

You should skin me with <a href="template.html">This Template</a>
--->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!-- ========================================================== -->
<!-- Created by Devit Schizoper -->
<!-- Created HomePages http://LoadFoo.starzonewebhost.com -->
<!-- Created Day 01.12.2006 -->
<!-- ========================================================== -->

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" /
>
<meta name="author" content="LoadFoO" />
<meta name="description" content="Site description" />
<meta name="keywords" content="key, words" />

<title>PlantOMatic</title>
<link rel="stylesheet" type="text/css" href="www/css/style.css"
media="screen" />
<link rel="shortcut icon" href="favicon.ico" />
<script type="text/javascript" src="www/js/textsizer.js"></script>
<script type="text/javascript" src="www/js/rel.js"></script>
</head>

<body>

<div id="wrap">
<div id="top">
<h2><a href="/" title="Back to main page">Home</a></h2>
<div id="menu">
<cfoutput>#navigationcontent#</cfoutput>
<!-- Create File: views/layout/Layout.Navigation.cfm -->
<ul>
<li><a href="/PlantOMatic" class="current">home</a></li>
</ul>
<!-- End Create File: views/layout/Layout.Navigation.cfm -->
</div>
</div>
<div id="content">
<div style="float: right;">
<!-- Create File: views/layout/Layout.MessageBox.cfm -->
<div id="highlightnews">
<ul>
<li class="SuccessMessage">You have successfully viewed a
template</li>
</ul>
</div>
<!-- End Create File: views/layout/Layout.MessageBox.cfm -->
</div>
<div id="left" >
<!-- Replace File Contents File: views/primary.cfm -->
<h1> My Area for content</h1>
<h2>Primary Content Area</h2>
<ul>
<li>Primary Content Point</li>
<li>Another Primary Content Point</li>
<li>Yet Another Primary Content Point</li>
<li>See Above</li>
</ul>
<!-- End Replace File Contents File: views/primary.cfm -->
</div>
<div id="right">
<!-- Create File: views/secondary.cfm -->
<ul id="nav">
<li><a href="##">Subnavigational Element</a></li>
<li><a href="##">The Next Subnavigational Element</a></li>
<li><a href="##">Another Subnavigational Element</a></li>
<li><a href="##">Even More Subnavigational Element</a></li>
</ul>
<!-- End Create File: views/secondary.cfm -->
</div>
<div id="clear"></div>
</div>
<!-- Create File: views/layout/Layout.Footer.cfm -->
<div id="footer">
<p>Copyright 2006 LoadFoO [V1]. Designed by <a href="http://
loadfoo.org/" rel="external">LoadFoO</a>. Valid <a href="http://
jigsaw.w3.org/css-validator/check/referer" rel="external">CSS</a>
&amp; <a href="http://validator.w3.org/check?uri=referer"
rel="external">XHTML</a></p>
</div>
<!-- End Create File: views/layout/Layout.Footer.cfm -->
</div>

</body>
</html>



------------------------------------------------------------------------------------------------------------------------------------------------------------------------


On May 13, 3:36 pm, Dan Wilson <sipac...@gmail.com> wrote:

Ezra Parker

unread,
May 13, 2012, 2:43:21 PM5/13/12
to model...@googlegroups.com
OK, I think I see what's going on -- am I correct that the code you pasted in your last message is currently what you have in views/primary.cfm? If so, then I think you misunderstood the instructions on how to split up the HTML template. Let me see if I can clarify this a bit:

The template.html file contains five sections that are delimited by comments, and each of these sections needs to be placed in its own file. Four of these files need to be created, but the fifth, primary.cfm, already exists, so you need to *replace* the contents of that file with the corresponding snippet/section. This means that you will create the following four new files:

1. views/layout/Layout.Navigation.cfm
2. views/layout/Layout.MessageBox.cfm
3. views/secondary.cfm
4. views/layout/Layout.Footer.cfm

For all 5 files (the four new ones and primary.cfm), the entire code for each should be the portion *within* the corresponding start and end comments. So for primary.cfm, this is the comment-delimited area:

<!-- Replace File Contents File: views/primary.cfm -->
<h2>Primary Content Area</h2>
<ul>
<li>Primary Content Point</li>
<li>Another Primary Content Point</li>
<li>Yet Another Primary Content Point</li>
<li>See Above</li>
</ul>
<!-- End Replace File Contents File: views/primary.cfm  -->

Meaning that primary.cfm should look like this:

<h2>Primary Content Area</h2>
<ul>
<li>Primary Content Point</li>
<li>Another Primary Content Point</li>
<li>Yet Another Primary Content Point</li>
<li>See Above</li>
</ul>

For views/layout/Layout.Navigation.cfm, the delimited block is this:

<!-- Create File: views/layout/Layout.Navigation.cfm -->
<ul>
<li><a href="/PlantOMatic" class="current">home</a></li>
</ul>
<!-- End Create File: views/layout/Layout.Navigation.cfm -->

So that file should contain this code:

<ul>
<li><a href="/PlantOMatic" class="current">home</a></li>
</ul>

Once you have done this for the five view files and then make the indicated changes to your ModelGlue.xml configuration file (adding the templatedPage event-type, and the corresponding type attribute to each event-handler), you should see the template layout render as expected when loading the site at http://localhost/PlantOMatic/

Please give this a shot and post back if you encounter further difficulties.

HTH,

--
Ezra Parker

Muhammad Amir

unread,
May 14, 2012, 1:45:26 AM5/14/12
to model...@googlegroups.com, ez...@cfgrok.com
dear Ezra,
 
you mean to say this piece of code i have to put in "views/layout/Layout.Navigation.cfm"
 
<ul>
    <li><a href="/PlantOMatic" class="current">home</a></li>
   </ul>
i  did its there now about ModelGlue.xml file look like this
 
-------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<modelglue>
 <controllers>
  <controller id="GlobalController" type="PlantOMatic.controller.GlobalController">
   <message-listener message="onRequestStart" function="doSetUp" />
   <message-listener message="require"  function="require" />
  </controller>
 </controllers>
 <event-types>
  <event-type name="templatedPage"> 
    <after> 
       <views>  
      <include name="navigation" template="layout/Layout.Navigation.cfm"> 
      <value name="xe_ShipmentList" value="Shipment.List" /> 
      </include> 
      <include name="message" template="layout/Layout.MessageBox.cfm" /> 
      <include name="footer" template="layout/Layout.Footer.cfm" /> 
      <include name="main" template="layout/Master.Layout.cfm" /> 
     </views> 
    </after>         
  </event-type> 
 </event-types>
 
 <event-handlers>
  <!-- A homepage for your application. -->
  <event-handler name="default">
   <views>
    <include name="primary" template="primary.cfm" />
   </views>
  <event-handler name="page.error" type="templatedPage"> 
   <views> 
    <include name="primary" template="layout/Master.Exception.cfm" /> 
   </views> 
  </event-handler> 
  
  <event-handler name="page.missing" type="templatedPage"> 
   <views> 
    <include name="primary" template="layout/Master.MissingEvent.cfm" /> 
   </views> 
  </event-handler> 
  </event-handler>
  <!-- An error event to show when an error occurs, much like <cferror>. -->
  <event-handler name="page.error">
   <views>
    <include name="primary" template="layout/Master.Exception.cfm" />
   </views>
  </event-handler>
  <!-- A "404" event to show when the requested event isn't defined. -->
  <event-handler name="page.missing">
   <broadcasts />
   <views>
    <include name="primary" template="layout/Master.MissingEvent.cfm" />
   </views>
  </event-handler>
 </event-handlers>
</modelglue>
<!--
 Sample Event Handler:
 <event-handler name="eventname">
  <broadcasts>
   <message name="message" />
  </broadcasts>
  <results>
   <result name="resultName" do="otherEvent" />
  </results>
  <views>
   <include name="body" template="content.cfm" />
  </views>
 </event-handler>
 -->
 
------------------------------------------------------------------------ 
About Primary.cfm what should i do there .... shell i <cfinclude>  "Layout.Navigation.cfm" this file or what how it'll show there ???
 
Thanks

Muhammad Amir

unread,
May 14, 2012, 7:06:36 AM5/14/12
to model...@googlegroups.com, ez...@cfgrok.com
hi,
 
 
i did everything as u said but when i run http://localhost/PlantOMatic/" i can see only primary.cfm file  screen shoot im attaching.
 
Thanks
primary.jpg

Muhammad Amir

unread,
May 14, 2012, 7:13:14 AM5/14/12
to model...@googlegroups.com, ez...@cfgrok.com

Please have a look this screen also
primary.jpg

Ezra Parker

unread,
May 14, 2012, 1:48:53 PM5/14/12
to Muhammad Amir, model...@googlegroups.com
It appears to me that you are missing the "type" attribute on your default event-handler in ModelGlue.xml -- it should look like this:

<event-handler name="default" type="templatedPage">

Actually, if you are using the ModelGlue.xml you pasted a few messages ago, then it looks like the type is missing on several of the event-handler tags.

Regarding your question as to how the Model-Glue view/layout rendering system works, my recommendation would be to step through the Quickstart before continuing with the online training, as it provides an overview of the basics of how a Model-Glue application is put together, and the training builds on this knowledge:


--
Ezra Parker

Muhammad Amir

unread,
May 15, 2012, 7:45:17 AM5/15/12
to Ezra Parker, model...@googlegroups.com
Dear Ezra,
 
as you said i started Quick Start now im facing new issue ...
 
im setting up new application ... i already replaced all "modelglueapplicationtemplate" to translator
 
please see the Attached screen shoot...
 
Thanks
primary.jpg

Muhammad Amir

unread,
May 16, 2012, 6:55:31 AM5/16/12
to Ezra Parker, model...@googlegroups.com
guys please help me im really frustrated..... :(
primary.jpg

Dan Wilson

unread,
May 16, 2012, 7:02:49 AM5/16/12
to model...@googlegroups.com

This is a mapping problem.

The MG framework is not reachable from your application.

In order for me to help, you need to provide your directory structure of where your app is, where Model ue is, and how you're accessing it in the URL.

Dw

Matt Quackenbush

unread,
May 16, 2012, 7:11:20 AM5/16/12
to model...@googlegroups.com

Also, please be patient as many (most?) Are traveling to cf.Objective() today, and have limited connectivity.

Shutting down phone now, per BS FAA regulations.

Sent from my Samsung Galaxy SII

Muhammad Amir

unread,
May 16, 2012, 7:31:16 AM5/16/12
to model...@googlegroups.com

Please help me,   how can i run one simple hello world app im just trying to run model-glue past 4days but still im no where :(
 
im attaching all my screen shoot i hope these screens will help you to understand where and what im doing wrong ...
 
 
Thanks
1.jpg
2.jpg
3.jpg
4.jpg
5.jpg

Muhammad Amir

unread,
May 16, 2012, 7:37:31 AM5/16/12
to model...@googlegroups.com
Sorry i forgot to write where i download model-Glue
 
http://model-glue.com/ here is the URL from where i downloaded  model-glue

James Allen

unread,
May 16, 2012, 7:41:18 AM5/16/12
to model...@googlegroups.com

Muhammad,

 

From the screenshots, you need to move c:\inetpub\wwwroot\ModelGlue_3.1.299\ModelGlue

 

To

 

c:\inetpub\wwwroot\ModelGlue

 

The error is because ModelGlue cannot be found in the web root.

 

Try that and report back.

 

---

James  Allen

E: ja...@jamesallen.name

Blog: http://jamesallen.name

Twitter: @CFJamesAllen (Coldfusion / Web development)

Twitter: @jamesallenuk (General)

Twitter: @JamesAllenVoice (Voiceover)

 

Tune in to the best in community radio – Codebass Radio: http://codebassradio.net

Dan Wilson

unread,
May 16, 2012, 7:46:11 AM5/16/12
to model...@googlegroups.com

Ok, you are overthinking this. The error you are getting is the same error you would get for any file not found.

Basically, Your Model Glue folder needs to be in the web root. (wwwroot, in your case)

You have ModelGlue3.2.299 in the webroot. This means none of the ModelGlue framework can be found at the expected location.

Move the entire contents of the ModelGlue3.2.299 folder into the wwwroot folder and try again.

DW

Muhammad Amir

unread,
May 16, 2012, 7:46:25 AM5/16/12
to model...@googlegroups.com

i re-named but still same error  even i copied in mvc_app folder also still same error

James Allen

unread,
May 16, 2012, 7:48:00 AM5/16/12
to model...@googlegroups.com

But you actually move the ModelGlue_3.1.2999\ModelGlue folder to the c:\inetpub\wwwroot?

 

You didn’t just rename ModelGlue_3.1.2999 to ModelGlue right as that won’t work.

Muhammad Amir

unread,
May 16, 2012, 8:01:05 AM5/16/12
to model...@googlegroups.com
Now new error
i copied all the files in root as u said now error changed
6.jpg
7.jpg

Dan Wilson

unread,
May 16, 2012, 8:04:10 AM5/16/12
to model...@googlegroups.com

Ok, good.

You also need to download the ColdSpring framework and install it.

That step was linked on the first page of the quickstart and can be found here. http://docs.model-glue.com/wiki/InstallingModelGlue

Be sure to put the ColdSpring framework in the webroot.

Don't worry, you are almost home free!

DW

Muhammad Amir

unread,
May 16, 2012, 8:04:43 AM5/16/12
to model...@googlegroups.com
inside folder mvc_app
8.jpg

Dan Wilson

unread,
May 16, 2012, 8:07:05 AM5/16/12
to model...@googlegroups.com

That looks fine, but the ModelGlue folder in there is unnecessary.

DW

James Allen

unread,
May 16, 2012, 8:07:49 AM5/16/12
to model...@googlegroups.com

The problem now is that the ColdSpring website no longer works.

 

So to avoid Muhammad having to search around, here is a zip file of the 1.2 final of ColdSpring I’ve uploaded to my site:

 

http://jamesallen.name/temp/coldspring1-2-final.zip

 

Muhammad,

Download this and unzip it into a folder called ColdSpring.

 

Make sure it is here:

 

C:\inetpub\wwwroot\ColdSpring

 

Then report back.

 

---

James  Allen

E: ja...@jamesallen.name

Blog: http://jamesallen.name

Twitter: @CFJamesAllen (Coldfusion / Web development)

Twitter: @jamesallenuk (General)

Twitter: @JamesAllenVoice (Voiceover)

 

Tune in to the best in community radio – Codebass Radio: http://codebassradio.net

 

Dan Wilson

unread,
May 16, 2012, 8:09:12 AM5/16/12
to model...@googlegroups.com

Well done James.

I'm getting on a plane. Thanks for helping Muhammad get sorted out.

DW

James Allen

unread,
May 16, 2012, 8:10:17 AM5/16/12
to model...@googlegroups.com

No probs Dan – glad I can help.

 

Have a blast at CF.O. I can feel the electricity from here. ;)

Matt Quackenbush

unread,
May 16, 2012, 8:15:13 AM5/16/12
to model...@googlegroups.com

James, I thought you were coming, too?

(One flight done. Two more to go for me!)

Sent from my Samsung Galaxy SII

James Allen

unread,
May 16, 2012, 8:17:56 AM5/16/12
to model...@googlegroups.com

I’m the odd one out I think. J Would love to be there, just the expense to get over from the UK really with a big vacation coming up later in the year. L

 

Would be good to do it one year though for sure.

 

Looking forward to keeping up with all the happenings on Twitter though.

 

---

James  Allen

E: ja...@jamesallen.name

Blog: http://jamesallen.name

Twitter: @CFJamesAllen (Coldfusion / Web development)

Twitter: @jamesallenuk (General)

Twitter: @JamesAllenVoice (Voiceover)

 

Tune in to the best in community radio – Codebass Radio: http://codebassradio.net

 

Matt Quackenbush

unread,
May 16, 2012, 8:55:19 AM5/16/12
to model...@googlegroups.com

Damn. Could have sworn I saw you're name on the list. Oh well. One of these centuries I need to make the hop across the pond myself. :-)

Sent from my Samsung Galaxy SII

James Allen

unread,
May 16, 2012, 8:58:44 AM5/16/12
to model...@googlegroups.com

For sure. Shame we don’t have big UK conferences to make the trip easier to justify.

Muhammad Amir

unread,
May 16, 2012, 10:22:59 AM5/16/12
to model...@googlegroups.com
LOVE U Guys..... its WORKINGGGGGGGGGGGGGGGGGG :-)  now i have can go on next step  lol after 4days ...

Thanks to All

James Allen
Dan Wilson
Ezra
Matt

Muhammad Amir

unread,
May 16, 2012, 10:24:32 AM5/16/12
to model...@googlegroups.com
LOVE U Guys..... its WORKINGGGGGGGGGGGGGGGGGG :-)  now i can go on next step  lol after 4days ...

James Allen

unread,
May 16, 2012, 10:25:03 AM5/16/12
to model...@googlegroups.com

Awesome news Mohammad!

 

I know how frustrating this kind of thing can be.

 

The fun part can start now though as you begin to explore the world of ModelGlue – it’s a great framework.

Muhammad Amir

unread,
May 16, 2012, 10:32:15 AM5/16/12
to model...@googlegroups.com
yes it was really frustrating because this is my first time working on any framework so i had no idea where to go  but, guys because of ur support i succeeded and im sure u guys will be there for me whenever i need help again ;)

Thanks again

Muhammad Amir

unread,
May 17, 2012, 12:04:43 AM5/17/12
to model...@googlegroups.com

hi guys me again,
 
just i was wondering, is there any template plugin or something for dreamweaver ?? or is there any settings do i have to do in DM ???
 
Thanks

Muhammad Amir

unread,
May 17, 2012, 4:11:19 AM5/17/12
to model...@googlegroups.com

Hi guys,
 
im stuck again it seem's like very small issue i check everything but im not able to figure out what is the issue ... 
 
i defined  Event "translationFormAction" in modelGlue.xml but still im getting error
 

Oops!

No event named "translationFormAction" is defined.
 
Please have loop my attachments ...
modelGlue_xml.jpg
translationForm.jpg
translationFormAction_error.jpg

Muhammad Amir

unread,
May 17, 2012, 5:43:58 AM5/17/12
to model...@googlegroups.com
Guys anyone there ?????

James Allen

unread,
May 17, 2012, 6:12:08 AM5/17/12
to model...@googlegroups.com

Hi Muhammad,

 

Your modelglue.xml looks fine to me so not sure why that event is not seen. In the screen shot the file in Dreamweaver isn’t saved but I assume that’s just when you took the screenshot – it’s definitely been saved right? I might as well check.

 

Only other thing I could think is if you have reload = false in the coldspring. Xml but you shouldn’t have as the default is true which means that the config files etc reload on every load..

 

Though try adding init=true to the URL that isn’t working to see if it helps.

Muhammad Amir

unread,
May 17, 2012, 6:23:02 AM5/17/12
to model...@googlegroups.com

Hi James,

thanks for replying reload switch is already true.. you can have a look my ColdSpring.xml File also…  i don't know why it is not working funny thing

for testing  deleted everything in modelGlue.xml then I saved but app still working no error is coming my mind is blowing :( ,  i deleted all the extra directories from wwwRoot still same situation


On Thu, May 17, 2012 at 2:12 PM, James Allen <sling...@googlemail.com> wrote:

Hi Muhammad,

 

Your modelglue.xml looks fine to me so not sure why that event is not seen. In the screen shot the file in Dreamweaver isn’t saved but I assume that’s just when you took the screenshot – it’s definitely been saved right? I might as well check.

 

Only other thing I could think is if you have reload = false in the coldspring. Xml but you shouldn’t have as tThe default is true which means that the config files etc reload on every load..

ColdSpring.jpg

Muhammad Amir

unread,
May 17, 2012, 6:33:13 AM5/17/12
to model...@googlegroups.com

is there anything cache or soming thing u know what is happening now in the full webserver all coldspring and modelglue XML i renames but app still working fine

James Allen

unread,
May 17, 2012, 6:43:34 AM5/17/12
to model...@googlegroups.com

Quickest thing is if you can send me a zip file of the current translator/ folder and I’ll take a proper look.

Muhammad Amir

unread,
May 17, 2012, 6:50:54 AM5/17/12
to model...@googlegroups.com

james,
 
it was cache ... its working now ... what was happening i don't know literally :)  what i did.
 i just restarted my server everyting back :)
 thanks man ...

James Allen

unread,
May 17, 2012, 8:46:44 AM5/17/12
to model...@googlegroups.com

Ah great to hear Muhammad. It did sound like a weird caching issue. Glad you sorted it.

Muhammad Amir

unread,
May 21, 2012, 2:57:01 AM5/21/12
to model...@googlegroups.com

hi guys me again ...
 
can you guys help me to debug i don't know how to debug in model-glue  i downloaded this cfcookbook from this URL http://www.raymondcamden.com/index.cfm/2006/1/18/ModelGlue-Sample--Cookbook trying to run but it is continue giving error i tried to fix all path but still  :(
 
i just wanted to run this app to get idea how does model-glue works i really want to learn but every step im stuck :(
 
 
------------------This error im getting when im trying to run this app http://localhost/cfcookbook-----------------
 

Could not find the included template views/exception.cfm.

Note: If you wish to use an absolute template path (for example, template="/mypath/index.cfm") with CFINCLUDE, you must create a mapping for the path using the ColdFusion Administrator. Or, you can use per-application settings to specify mappings specific to this application by specifying a mappings struct to THIS.mappings in Application.cfc.
Using relative paths (for example, template="index.cfm" or template="../index.cfm") does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible.
  The error occurred in C:\Inetpub\wwwroot\cfcookbook\ModelGlue\gesture\view\ViewRenderer.cfm: line 28
Called from C:\Inetpub\wwwroot\ModelGlue\gesture\view\ViewRenderer.cfc: line 80
Called from C:\Inetpub\wwwroot\wwwroottoshare\ModelGlue\gesture\eventrequest\EventContext.cfc: line 661
Called from C:\Inetpub\wwwroot\wwwroottoshare\ModelGlue\gesture\eventrequest\EventContext.cfc: line 275
Called from C:\Inetpub\wwwroot\wwwroottoshare\ModelGlue\gesture\eventrequest\EventContext.cfc: line 199
Called from C:\Inetpub\wwwroot\ModelGlue\gesture\ModelGlue.cfc: line 243
Called from C:\Inetpub\wwwroot\cfcookbook\ModelGlue\gesture\ModelGlue.cfm: line 83
Called from C:\Inetpub\wwwroot\cfcookbook\ModelGlue\ModelGlue.cfm: line 27
Called from C:\Inetpub\wwwroot\cfcookbook\index.cfm: line 27
26 : <cfset viewcollection = attributes.viewcollection />
27 : <cfset helpers = attributes.helpers />
28 : </cfsilent><cfinclude template="#attributes.includePath#" /></cfif>
--------------------------------------------
 
------------------This error im getting when im trying to run this app http://localhost:4465---im using local IP which is 10.0.0.64--------------
 
 
 

Could not find the included template views/exception.cfm.

Note: If you wish to use an absolute template path (for example, template="/mypath/index.cfm") with CFINCLUDE, you must create a mapping for the path using the ColdFusion Administrator. Or, you can use per-application settings to specify mappings specific to this application by specifying a mappings struct to THIS.mappings in Application.cfc.
Using relative paths (for example, template="index.cfm" or template="../index.cfm") does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible.
The error occurred in C:\Inetpub\wwwroot\cfcookbook\ModelGlue\gesture\view\ViewRenderer.cfm: line 28
Called from C:\Inetpub\wwwroot\ModelGlue\gesture\view\ViewRenderer.cfc: line 80
Called from C:\Inetpub\wwwroot\cfcookbook\ModelGlue\gesture\eventrequest\EventContext.cfc: line 661
Called from C:\Inetpub\wwwroot\cfcookbook\ModelGlue\gesture\eventrequest\EventContext.cfc: line 275
Called from C:\Inetpub\wwwroot\cfcookbook\ModelGlue\gesture\eventrequest\EventContext.cfc: line 199
Called from C:\Inetpub\wwwroot\ModelGlue\gesture\ModelGlue.cfc: line 243
Called from C:\Inetpub\wwwroot\cfcookbook\ModelGlue\gesture\ModelGlue.cfm: line 83
Called from C:\Inetpub\wwwroot\cfcookbook\ModelGlue\ModelGlue.cfm: line 27
Called from C:\Inetpub\wwwroot\cfcookbook\index.cfm: line 28
26 : <cfset viewcollection = attributes.viewcollection />
27 : <cfset helpers = attributes.helpers />
28 : </cfsilent><cfinclude template="#attributes.includePath#" /></cfif>

Resources:

Browser Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/5.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Remote Address 10.0.0.4
Referrer
Date/Time 21-May-12 10:53 AM

Dan Wilson

unread,
May 21, 2012, 9:14:07 AM5/21/12
to model...@googlegroups.com
Hmmm.... It seems to me you went a little nuts with your installation.

The ModelGlue  framework must always be reachable in the top most container of your application. You have a copy of ModelGlue inside your application, which seems to be getting confused on paths, I know paths can get a little confusing, so think of it this way:

If you access your application at localhost/muhammad/index.cfm, the top level container is localhost. This means ModelGlue MUST be reachable at localhost/ModelGlue/gesture/ModelGlue.cfm. You can find out if this is correct by simply accessing localhost/ModelGlue/gesture/ModelGlue.cfm and reading the error. If you get a 404, file not found error, you have ModelGlue in the wrong place, relative to your application.

If you access your application at muhammad.com, the top level container is muhammad.com. This means ModelGlue MUST be reachable at  muhammad.com/ModelGlue/gesture/ModelGlue.cfm. You can find out if this is correct by simply accessing  muhammad.com/ModelGlue/gesture/ModelGlue.cfm and reading the error. If you get a 404, file not found error, you have ModelGlue in the wrong place, relative to your application.


Since you didn't tell me how you are accessing your application, it is hard for me to tell what exactly the problem is. However, in your stack trace, there are two different references to the ModelGlue framework. I'm sure this is why things are getting messed up since the directory structures are changing mid-stream:

  • C:\Inetpub\wwwroot\ModelGlue\
  • C:\Inetpub\wwwroot\cfcookbook\ModelGlue\


    So the first thing you need to do is delete the ModelGlue directory in C:\Inetpub\wwwroot\cfcookbook\ModelGlue, if you have a coldspring directory in there also, delete it.

    Try to run your application again. Report back what you find.



    DW

    Muhammad Amir

    unread,
    May 22, 2012, 12:08:20 AM5/22/12
    to model...@googlegroups.com
    one word..... its "WORKING"  LOL thanks man i really need to learn so many thing with help of you guys ... thanks again .............
     
    MA

    Muhammad Amir

    unread,
    May 22, 2012, 6:31:14 AM5/22/12
    to model...@googlegroups.com

    Hi guys me again :


    im on training 3 http://docs.model-glue.com/wiki/Training/Section03

    trying to do  exercise I made also files but im getting this error
     
    Thanks
    error1.jpg
    error2.jpg

    Muhammad Amir

    unread,
    May 22, 2012, 6:36:16 AM5/22/12
    to model...@googlegroups.com

    ShipmentManager.cfc   file is there
    error3.jpg

    Dan Wilson

    unread,
    May 22, 2012, 6:43:52 AM5/22/12
    to model...@googlegroups.com
    You put the definition for the ShipmentManager.cfc in the wrong file. It does not belong in the ModelGlue.xml.

    Take it out and put it in the ColdSpring.xml file. All beans are defined in ColdSpring.


    From the directions:
    1. Open /PlantOMatic/config/ColdSpring.xml and add the following bean definition
    1. <bean id="ShipmentManager" class="PlantOMatic.model.ShipmentManager">  
    2.   <constructor-arg name="dsn">  
    3.     <bean factory-bean="reactorConfiguration" factory-method="getDsn" />  
    4.   </constructor-arg>  
    5. </bean>

    Muhammad Amir

    unread,
    May 22, 2012, 6:46:37 AM5/22/12
    to model...@googlegroups.com
    oooops..... :-) Thanks man ... its working ....

    Muhammad Amir

    unread,
    May 22, 2012, 6:49:41 AM5/22/12
    to model...@googlegroups.com

    i should get this screen ???
    error4.jpg

    Dan Wilson

    unread,
    May 22, 2012, 6:59:56 AM5/22/12
    to model...@googlegroups.com

    Based on the URL, that screen looks right.

    DW

    ...

    Muhammad Amir

    unread,
    May 22, 2012, 7:03:58 AM5/22/12
    to model...@googlegroups.com

    i tried to click all links but im not getting this screen

    my question where should i check what im missing if everything is right why not im getting blow screen
     
    sorry for stupid questions...

     

    Putting It All Together

    Once you successfully complete the above tasks, run your application and click the home navigation element. You should see a screen load with the title of Saved Shipments (see figure below). You may interact with this screen, pressing Edit, Print, Display and the other links in the User Interface. All of them will work, except for New Item. We'll cover New Item in a future section.

    Training 03 Image 1
    Shipment List View

    Dan Wilson

    unread,
    May 22, 2012, 7:10:09 AM5/22/12
    to model...@googlegroups.com

    Ahh, I see what you mean.

    Go back through the steps and see which one you skipped.

    DW

    ...

    Muhammad Amir

    unread,
    May 22, 2012, 7:22:23 AM5/22/12
    to model...@googlegroups.com

    im checking 3rd time it seems like everything is fine im  going to check one more time
    here is my code ...
     
     

     
    --
    Training3.zip

    Dan Wilson

    unread,
    May 22, 2012, 9:06:08 AM5/22/12
    to model...@googlegroups.com
    Hey Muhammand, 

    I don't believe you did a very good job of checking the steps.

    I'm not going to go through this completely, because I do not have the time to tell you what you missed. The training has steps that are mandatory and you may not skip them, or change the steps without understanding the ramifications of the steps.

    When I look at your ModelGlue.xml code, I see:

    <event-type name="templatedAmir">
     <after>
    <views> 
     <include name="navigation" template="layout/Layout.Navigation.cfm">
    <value name="xe_ShipmentList" value="Shipment.List" />
     </include>
     <include name="message" template="layout/Layout.MessageBox.cfm" />
     <include name="footer" template="layout/Layout.Footer.cfm" />
     <include name="main" template="layout/Master.Layout.cfm" />
    </views>
     </after>
    </event-type>
    <!-- Amir Work Area -->
    <event-handler name="default" type="templatedAmir">
     <views>
    <include name="primary" template="primary.cfm" />
    <include name="secondary" template="secondary.cfm"/>
     </views>
    </event-handler>

    Based on the way you built this application, it is working correctly. You are asking why you are not seeing the correct links as indicated in the Training, correct?

    The reason why is the Training does not say to make an event type called "templatedAmir". You have not followed ther directions in the training and thus the application does not work as the training shows. You must follow the steps exactly for the application to work exactly as we show in the training.

    Please update your application accordingly. I, along with others on this list, are happy to help you understand Model Glue and get up to speed. However, the understanding is that when you ask for help, you have tried to resolve the problem on your end beforehand and have ensured you followed the directions in the training material. Please hold off your experimentation until you successfully complete the steps.


    DW



    onlya...@gmail.com

    unread,
    May 22, 2012, 11:39:16 AM5/22/12
    to model...@googlegroups.com
    Thanks Dan I  know u can't see this still I send I changed immediately after changing I changed for my understanding after changing nothing I'm going check again step 2 and let u know thanks 

    Sent from my iPhone
    Reply all
    Reply to author
    Forward
    0 new messages