Installation Help Needed

4 views
Skip to first unread message

Monica

unread,
Feb 24, 2009, 5:23:33 PM2/24/09
to model-glue
Hi, I'd like to give Model-Glue a try but I'm having troubles
installing everything. The issue is that I do not have access to
webroot and I cannot change anything in CFadmin (that means no
mappings). CF is also not allowed to write to the file system (is
this an issue? this is why I can't use a current version of
Fusebox). This is not a shared host and I can't change any of these
factors. It's just how it is. But I'd still like to use a framework.

I didn't find any installation instructions for ColdSpring and the
Model-Glue installation instructions say it's a requirement, so I just
made a directory and put the files in it. So here's what I have:

ColdSpring
ColdSpring/framework
ColdSpring/support
ModelGlue
ModelGlue/actionpacks
ModelGlue/Bean
(etc.)

Next, I followed all of the QuickStart 1 instructions at http://docs.model-glue.com/
and I have some more directories:

config
controller
css
model
views

I changed ColdSpring.xml, ModelGlue.xml, Application.cfm and
index.cfm. I loaded the page in a browser window and received the
following error:

Could not find the ColdFusion Component or Interface
coldspring.beans.DefaultXmlBeanFactory.

Rather than setting out to fix this error I thought I'd run this
installation by all of you. Will it work? What else should I
change? Thanks!

Dan Wilson

unread,
Feb 24, 2009, 5:39:18 PM2/24/09
to model...@googlegroups.com
For this to work, you will either need to have ColdSpring and ModelGlue in your webroot, or use mappings.

What is the URL you are using to load your application? Where is ColdSpring and ModelGlue in relation to the webroot?


DW
--
“Come to the edge, he said. They said: We are afraid. Come to the edge, he said. They came. He pushed them and they flew.”

Guillaume Apollinaire quotes

Monica

unread,
Feb 24, 2009, 6:02:48 PM2/24/09
to model-glue
My application is in a subdirectory off of webroot and off of the main
domain name, and I only have access to that subdirectory. I cannot
use mappings. So I just put everything in my subdirectory under their
own directories just to see if it would work. So am I out of luck?
> Guillaume Apollinaire quotes- Hide quoted text -
>
> - Show quoted text -

Dan Wilson

unread,
Feb 24, 2009, 6:11:15 PM2/24/09
to model...@googlegroups.com
Essentially, yes.

Somehow, ColdFusion has to know where these CFCs are in order to use them. 

You pretty much have to either put ModelGlue and ColdSpring in the webroot, or provide a mapping for it. This is just the way ColdFusion deals with CFC paths. 

You mentioned you do not have access to the webroot. I assume you mean the ColdFusion root. If so, that is ok, you just need to set up a virtual host and put your frameworks and code in there. 

Having a host that doesn't let you create a virtual host or such, would be strange.

denstar

unread,
Feb 24, 2009, 6:16:52 PM2/24/09
to model...@googlegroups.com
On Tue, Feb 24, 2009 at 3:23 PM, Monica wrote:
...

> mappings).  CF is also not allowed to write to the file system (is
> this an issue?  this is why I can't use a current version of
> Fusebox).  This is not a shared host and I can't change any of these
> factors.  It's just how it is.  But I'd still like to use a framework.

You will /have/ to write to the file system *somewhere* if you wish to
use ColdSpring, or Reactor, or Model-Glue Scaffolding. Or MG, I
guess. ;)

ColdSpring is the only one that's required for MG, as far as I know.

For ColdSpring, if you cannot create a mapping (what about
per-application mappings? Are you on CF8? These are swell, if so),
I've got a hacked up version that lets you specify where you want the
temporary files to be written.

Generally it's fine even pointing at a temp directory, and CF *must*
have some type of filesystem write capabilities, as far as I know,
somewhere (what happens if you try to write a file using
getTempDirectory()?), so you could use the same place, probably.

I've even have a hacked up version of Reactor that lets you specify
the "temp" project directory path, although it's much cleaner to use a
mapping (I haven't put the code anywhere where others could hurt
themselves with it, but if you need it, I have it, and it *seems* to
be working =]).

Basically you *really* want to be able to do some mappings, and
per-application are a *awesome* way of doing mappings, so if you're
not on CF8, maybe you could convince your IT folks to move to it, or
to Railo (Railo is a speed demon!).

I've got most of our MG (tho they are MG3 now) applications deployed
on a cluster that has read-only access to the application code, so
I've been down that road, at least, if you need more help there.

Good Luck, and may the Force Be With You!

:Denny

--
Where there is a will, there is a way
-someone said one day

Monica

unread,
Feb 24, 2009, 6:21:12 PM2/24/09
to model-glue
This isn't a publicly hosted site, it's a government-managed one using
CF7 and I'm stuck with it as it is (I can't change hosts and I can't
change how it's organized). The folder and corresponding URL I have
access to is like so:

C:\some\path\to\my\folder
www.example.com/folder

And writing to the file system (or any file system) is forbidden.
This is sounding like more trouble than it's worth, for me. Bummer!

denstar

unread,
Feb 24, 2009, 6:22:54 PM2/24/09
to model...@googlegroups.com
I should add that for Reactor, and MG scaffolding, if you don't mind
doing everything locally and storing the generated code in your
repository (I'm assuming you're using some type of version control),
you really shouldn't need to write anything anywhere, but as far as I
know, you *do* need access to write temp files for ColdSpring.

So really it's just ColdSpring, at least until some of these nifty "in
memory" features make it.

As far as I'm aware, at least, which might not be saying much. =]

:DeN

--
For the things of this world cannot be made known without a knowledge
of mathematics.
Roger Bacon

On Tue, Feb 24, 2009 at 4:16 PM, denstar wrote:
...

Nando

unread,
Feb 24, 2009, 6:35:17 PM2/24/09
to model...@googlegroups.com
Wasn't there a method for setting mappings by dropping down into java that worked on CFMX7? Don't know if that would actually help, but I remember using that approach in a similar situation once.
--

Nando M. Breiter
The CarbonZero Project
CP 234
6934 Bioggio
Switzerland
+41 76 303 4477
na...@carbonzero.ch

denstar

unread,
Feb 24, 2009, 6:52:59 PM2/24/09
to model...@googlegroups.com
On Tue, Feb 24, 2009 at 4:21 PM, Monica wrote:
...

> And writing to the file system (or any file system) is forbidden.
> This is sounding like more trouble than it's worth, for me.  Bummer!

In that case, the only solution is a "search and replace" (perhaps
using an ANT task, as that would be a one-click deal), renaming
modelglue to yourapp.modelglue, and same goes for coldspring and
whatever else.

FWIW, although it sounds like a pain in the ass, and it is, it's
probably less of a pain in the ass in the long run, if you put a
process in place for upgrading code (or even if you just run with what
you get).

These "frameworks" are really swell, whatever and whichever you choose.

--
Reasoning draws a conclusion, but does not make the conclusion
certain, unless the mind discovers it by the path of experience.
Roger Bacon

Monica

unread,
Feb 24, 2009, 6:56:01 PM2/24/09
to model-glue
> Wasn't there a method for setting mappings by dropping down into java that
> worked on CFMX7? Don't know if that would actually help, but I remember
> using that approach in a similar situation once.

Wow, that would be perfect! I'm going to start researching this.

Monica

unread,
Feb 24, 2009, 6:58:52 PM2/24/09
to model-glue
> I should add that for Reactor, and MG scaffolding, if you don't mind
> doing everything locally and storing the generated code in your
> repository (I'm assuming you're using some type of version control),
> you really shouldn't need to write anything anywhere, but as far as I
> know, you *do* need access to write temp files for ColdSpring.

I think I'm going to quit while I'm ahead and assume that something
will need to write to the file system. I wasted quite a bit of time
with Fusebox before I discovered that it had to write files in order
to work. Thanks so much for all of the quick help!

denstar

unread,
Feb 24, 2009, 7:05:57 PM2/24/09
to model...@googlegroups.com
On Tue, Feb 24, 2009 at 4:35 PM, Nando wrote:
> Wasn't there a method for setting mappings by dropping down into java that
> worked on CFMX7? Don't know if that would actually help, but I remember
> using that approach in a similar situation once.

Never heard of it, but that would be *awesome*!

They could always just set up symbolic links using the OS, I guess, or
put the frameworks in the main CF context root, but it sounds like
"freedom" is limited, which always makes things hard.

Guess that's one good thing about being the end-all, be-all -- Yes,
silver lining-- that's the ticket!

:D

--
The strongest arguments prove nothing so long as the conclusions are
not verified by experience. Experimental science is the queen of
sciences and the goal of all speculation.
Roger Bacon

Nando

unread,
Feb 24, 2009, 8:45:30 PM2/24/09
to model...@googlegroups.com
I took a minute to dig it up for you:

<cfset factory = createObject('java','
coldfusion.server.ServiceFactory')>

<cfset mappings = factory.runtimeService.getMappings()>

From there you can add and remove mappings as you please.

e.g.

Add a mapping:

<cfset mappings["/test"] = "C:\somedirectory">

Remove a mapping:

<cfset structDelete(mappings,"/test")>

This is undocumented, unsupported, may change in future releases etc.

Spike

Nando

unread,
Feb 24, 2009, 8:48:52 PM2/24/09
to model...@googlegroups.com
And another:

http://www.cfczone.org/cfcs/index.cfm

Scroll down to the pod named CF Admin Mappings and download the zip.

Good luck! I really like using MG.

Nando

Monica

unread,
Feb 25, 2009, 1:28:02 AM2/25/09
to model-glue
Wow, this is really great stuff! I'm looking forward to trying this
out. Very cool!

denstar

unread,
Feb 25, 2009, 5:13:57 AM2/25/09
to model...@googlegroups.com
On Tue, Feb 24, 2009 at 6:45 PM, Nando wrote:
> I took a minute to dig it up for you:
...

Although I will hopefully never need that again, it has been filed
away, as it just tickles me.

Ditto-Cool, Thanks!

--
A Truth is the subjective development of that which is at once both
new and universal. New: that which is unforeseen by the order of
creation. Universal: that which can interest, rightly, every human
individual, according to his pure humanity.
Alain Badiou

Nando

unread,
Feb 25, 2009, 8:49:09 AM2/25/09
to model...@googlegroups.com
Hope it works for you in your situation! Keep in mind that an administrator logging into the admin panel on the CF server will see the mapping you've set, if they look, and if they remember well enough what was there before and compare it to what they see in front of them.

On Wed, Feb 25, 2009 at 7:28 AM, Monica <jeepm...@gmail.com> wrote:

Wow, this is really great stuff!  I'm looking forward to trying this
out.  Very cool!




Brian Meloche

unread,
Feb 25, 2009, 9:16:10 AM2/25/09
to model...@googlegroups.com
That's a great tip, Nando! I'll have to see if that works on 6.1,
too, for the times I have to support that version of CF. You should
blog that tip - I'm sure others would want to know it.

Sincerely,

Brian Meloche
brianmeloche at gmail dot com
Producer and Host, CFConversations Podcast
http://www.cfconversations.com
Blog: http://www.brianmeloche.com/blog/
Adobe Community Expert:
http://www.adobe.com/communities/experts/members/BrianMeloche.html
Twitter: http://twitter.com/coofuushun
User Group Manager,
Cleveland ColdFusion Users Group,
http://www.clevelandcfug.org

Nando

unread,
Feb 25, 2009, 9:52:39 AM2/25/09
to model...@googlegroups.com
Brian, Not sure anymore which versions it works on. Please go ahead and blog it ... i'm not able to keep up. ;-) n.

Adam Tuttle

unread,
Feb 25, 2009, 10:02:29 AM2/25/09
to model...@googlegroups.com
Wow, that's an incredible tip! I've scheduled a blog post for later this afternoon to save it for my own reference... :)

Adam

Brian Meloche

unread,
Feb 25, 2009, 10:06:12 AM2/25/09
to model...@googlegroups.com
I'm not sure I'll have time to do so before my surgery (Friday). I've
got a bunch of things to do before then. I do want to blog on a few
things, though (like why I am having the surgery), so I'll try.

Sincerely,

Brian Meloche
brianmeloche at gmail dot com
Producer and Host, CFConversations Podcast
http://www.cfconversations.com
Blog: http://www.brianmeloche.com/blog/
Adobe Community Expert:
http://www.adobe.com/communities/experts/members/BrianMeloche.html
Twitter: http://twitter.com/coofuushun
User Group Manager,
Cleveland ColdFusion Users Group,
http://www.clevelandcfug.org



Monica

unread,
Feb 25, 2009, 4:10:34 PM2/25/09
to model-glue
FYI it works like a charm! The issue on my end is that the person who
has access to CFadmin is not very responsive, and he has a tendency to
mess with it and screw things up. Even if he notices it'll be okay
(though I doubt he'll notice). It was strange to not see any other
mappings, though.

On a side note, it looks like ColdSpring does need to write to the
file system. It looks like a good addition but it won't work for me
in this instance. Maybe I'll get a chance to try it out for some
other project. Thanks to everyone for your help!

denstar

unread,
Feb 25, 2009, 7:14:41 PM2/25/09
to model...@googlegroups.com
On Wed, Feb 25, 2009 at 2:10 PM, Monica wrote:
>
> FYI it works like a charm!  The issue on my end is that the person who
> has access to CFadmin is not very responsive, and he has a tendency to
> mess with it and screw things up.  Even if he notices it'll be okay
> (though I doubt he'll notice).  It was strange to not see any other
> mappings, though.

Hot dang!

> On a side note, it looks like ColdSpring does need to write to the
> file system.  It looks like a good addition but it won't work for me
> in this instance.  Maybe I'll get a chance to try it out for some
> other project.  Thanks to everyone for your help!

Good to know, it must be related to advice / proxy creation and whatnot.

Thanks for the update, it's somehow heartening. =]

--
Evil is the moment when I lack the strength to be true to the Good
that compels me.
Alain Badiou

Nando

unread,
Feb 25, 2009, 7:48:00 PM2/25/09
to model...@googlegroups.com
On a side note, it looks like ColdSpring does need to write to the
file system.  It looks like a good addition but it won't work for me
in this instance.  Maybe I'll get a chance to try it out for some
other project.  Thanks to everyone for your help!

How have you determined this? Did you actually try the MG quickstart app in your environment? CS has a lot of functionality that isn't used in a basic MG app.

Monica

unread,
Feb 25, 2009, 8:25:20 PM2/25/09
to model-glue
Actually, three people have told me that CS requires it. I've just
posted the question in the CS Google group, so I'll report back what I
find out.

Alan Livie

unread,
Feb 25, 2009, 8:33:14 PM2/25/09
to model...@googlegroups.com
I know CS writes files when doing remote proxies but didn't think it did with the standard IoC stuff. I could be wrong though.
 
Alan



From: Monica <jeepm...@gmail.com>
To: model-glue <model...@googlegroups.com>
Sent: Thursday, February 26, 2009 1:25:20 AM
Subject: [Model-Glue] Re: Installation Help Needed

denstar

unread,
Feb 25, 2009, 8:36:07 PM2/25/09
to model...@googlegroups.com

To my admittedly addled brain, I'm thinking that so long as you stick
to IoC, CS probably wouldn't actually need to write anything anywhere.

Aspects are one of the coolest aspects of CS, but IoC isn't a bad
pattern in itself.

:Den

--
Three, it's the magic number
- School House Rock

Nando

unread,
Feb 25, 2009, 9:19:51 PM2/25/09
to model...@googlegroups.com
I have a suspicion it will work for what you need. I know CS can be a little intimidating, but all you need to do is ask us for help setting up a few examples in the XML config file, and then you should be good to go.

Monica

unread,
Feb 25, 2009, 10:52:58 PM2/25/09
to model-glue
If you follow the thread at http://groups.google.com/group/coldspring-users/browse_thread/thread/aad205af012ea2c4#
it looks like CS needs to write to the file system no matter what.
Bummer.

"AOP proxies are written to disk as well, they're just deleted
immediately after instantiation. So you still need write access to
disk, even though it's not creating general purpose CFCs like
RemoteProxy does."

Monica

unread,
Feb 25, 2009, 11:00:43 PM2/25/09
to model-glue
Clarification: I can use the IoC but it sounds like everything else
probably requires writing to the file system. Good to know!

Dan Wilson

unread,
Feb 26, 2009, 9:32:23 AM2/26/09
to model...@googlegroups.com
I've built many successful applications without AOP or Remote Proxies.


DW


On Wed, Feb 25, 2009 at 11:00 PM, Monica <jeepm...@gmail.com> wrote:

Clarification: I can use the IoC but it sounds like everything else
probably requires writing to the file system.  Good to know!




--
“Come to the edge, he said. They said: We are afraid. Come to the edge, he said. They came. He pushed them and they flew.”

Guillaume Apollinaire quotes
Reply all
Reply to author
Forward
0 new messages