So you want to install ModelGlue:Unity

ModelGlue:Unity is a ColdFusion framework that comes with a lot of of functionality and power right out of the box. In this tutorial, we will download all of the files needed to install ModelGlue:Unity, set up the framework and test our configuration.

ModelGlue:Unity requires the ModelGlue framework as well as the ColdSpring framework. We begin by downloading each part then placing them under our webroot.

You can find the latest builds in zip file format at of ModelGlue:Unity at http://svn.model-glue.com/trunk/modelgluebuilds. Select the most recent build and save it in a folder.

Update: Make sure the version of the ModelGlue:Unity framework is at LEAST version 284.

You will run into errors if you use an earlier version of the ModelGlue:Unity framework.

You can find version 284 here. A complete list of builds is here. Note the builds are sorted alphabetically so if you want the most recent, pay attention to the LAST decimal number. I.E. modelglue_2.0.284.zip is a later version then modelglue_2.0.52.zip even though it appears above in the list.

Next, download Coldspring 1.0 into the same directory.

Update: These instructions assume you will have both frameworks in webroot.

Placing frameworks in webroot is standard and preferred practice. If for some reason you MUST place the frameworks in a directory apart from webroot, you will need ColdFusion mappings for ModelGlue and for ColdSpring. There are few good reasons to install the frameworks in a directory other than webroot. If you have a good reason to do this, then you know who you are and what to do about it.

Now, unzip the contents of modelglue_2.0.xxx.zip underneath your webroot. When complete, you should have 4 directories direct children of your webroot.

  1. documentation
  2. modelglue
  3. modelglueapplicationtemplate
  4. modelgluesamples

Next, unzip the contents of the coldspring.zip file underneath your webroot. When complete you should have a directory called ColdSpring as a direct child of your webroot.

Verify the directories were created properly then run http://localhost/modelglueapplicationtemplate

If everything has been installed correctly, you will see:

Model-Glue 2.0: Unity

Model-Glue is up and running! Now Rejoice and tune in to the next tutorial.

There are no comments for this entry.

Add Comment Subscribe to Comments

1/23/07 9:38 AM # Sez Michael Sewell

OK, I followed the instructions, but I cant get this to work. I keep getting this error: "Could not find the ColdFusion Component/Interface reactor.reactorFactory." Any idea as to what we are doing wrong?


1/23/07 9:39 AM # Sez Dan Wilson

Hi Michael,

You should remove the bean named reactorConfiguration in your ColdSpring.xml file.


2/2/07 12:25 PM # Sez DK

just an FYI, I know the tutorial explicitly said put in the web root but I couldn't. I needed it to be in a sub directory and out of the box that was somewhat confusing just following the tutorials. Even after I modified the cfm file as its comment stated I still received pathing errors to the CFCs etc. Just saying you may wanna add a small blurb on that for other beginners of this combo who wanna play (I figured it out after a couple min on my own :D )


2/2/07 2:33 PM # Sez DK

i went to http://svn.model-glue.com/trunk/modelgluebuilds and grabbed 2.0.68 and cs 1.0 and get the same error Michael was getting. Removing the bean from coldspring.xml doesn't fix it for me.

============
<code>
The error occurred in Z:\path_to_web_root\ModelGlue\unity\loader\FrameworkLoader.cfc: line 37
Called from Z:\path_to_web_root\ModelGlue\unity\ModelGlue.cfm: line 38
Called from Z:\path_to_web_rootmodelglueapplicationtemplate\index.cfm: line 33

35 :    <cftry>
36 :       <!--- See if it's installed --->
37 :       <cfset createObject("component", "reactor.reactorFactory")>
38 :       <cfset ormBeans = mg.getConfigSetting("ORMBeans") />
39 :       <cfcatch>
</code>

================


2/2/07 6:06 PM # Sez Dan Wilson

Hi Dana,

The framework is probably cached. Reload it using the &init=true URL parameter and it will clear it up.

HTH


2/8/07 6:24 PM # Sez Jericho Escobar

As an FYI, when I got this error. I was also stuck for a bit until I added the correct application mappings through the ColdFusion administrator. (i.e. map /ModelGlue to C:\path\to\ModelGlue and /coldspring to C:\path\to\coldspring.)

Hopefully that helps someone


2/10/07 11:30 PM # Sez Eric Miller

I'm getting Could not find the ColdFusion Component reactor.reactorFactory. as well. done every thing from above. does it matter that im running it from url http://localhost:8300/modelglueapplicationtemplate...


2/10/07 11:35 PM # Sez Dan Wilson

Eric,

Remove the reactorFactory mapping in the ColdSpring.xml file. This is what is causing the issue.

Once you remove the bean definition for the reactorFactory, you might have to reload your framework using init=true in the URL.


Hope that helps...

DW


2/23/07 11:58 PM # Sez Sean Corfield

Note: the most recent build is 2.0.284:

http://svn.model-glue.com/trunk/modelgluebuilds/mo...

NOT 2.0.68

Using 284 will solve the problems most people are seeing here.


2/25/07 12:56 PM # Sez Dan Wilson

@Sean,


I could have been clearer about which version of the framework to install. I'll edit the post and clarify which versions are acceptable.


DW


8/2/07 2:55 PM # Sez Andrew

Thank you, Dan! You wrote a nice manual. God luck!

__
http://www.bizsearch.info


3/14/10 7:54 PM # Sez John Barrett

Hi, I get this error:
The method setup was not found in component ModelGlue.gesture.eventrequest.phase.Initialization.

Any thoughts, been having a hard time setting up Model Glue:(


Add Comment Subscribe to Comments