Model-Glue and Coldspring 2.0?

61 views
Skip to first unread message

marc

unread,
Jun 22, 2012, 10:49:54 AM6/22/12
to model-glue
Hi,

A few months ago I tried out Model-Glue with CF 9.01 ORM using and
found out that the version of Coldspring that ships with MG 3.2.439 is
not compatible with CF9 ORM. Recently I saw on the CS site version 2.0
is out. Can I use CS 2.0 with MG latest version? If yes, how?

Thanks,

Marc

Dan Wilson

unread,
Jun 22, 2012, 10:57:01 AM6/22/12
to model...@googlegroups.com
ColdSpring 1.0 is not compatible with CF9 ORM?

I didn't know that. In what way?

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."

Dan Skaggs

unread,
Jun 22, 2012, 11:04:54 AM6/22/12
to model...@googlegroups.com
Marc…

I'm not sure what you mean by not compatible with CF9 ORM. I've got an application in production using CF9 ORM with the latest ModelGlue and ColdSpring 1.2 that is working perfectly.

Can you elaborate on what isn't working for you in that setup? Maybe we can shed some light on some alternatives.

Dan S.

Matt Quackenbush

unread,
Jun 22, 2012, 11:28:39 AM6/22/12
to model...@googlegroups.com
I have a ton of apps running CS1.2 on Railo (w/ ORM) and one on ACF 9.0.1 (w/ ORM).  There are no ColdSpring issues whatsoever.

marc

unread,
Jun 22, 2012, 12:42:46 PM6/22/12
to model...@googlegroups.com
Hmmm, maybe I should have jumped into the code and check before saying CS is not compatible...
I remember running into some issues using CF9 ORM and MG 3.2.439/CS 1.2 that had to do with the way CF9 handles instantiation of the entities. I wanted to inject beans in the entities and found that CS had difficulties with that. But hey - if nobody is having problems with that, I think I should look again..

Anyway, still my question remains: What's happening witrh MG and CS2.0? Are there plans to integrate MG with Narwahl?
Can't check the CS site, it's down (again). I hope so since MG with CS are the frameworks I have been using exclusively for the last 2 years.

Marc

Dan Wilson

unread,
Jun 22, 2012, 12:46:12 PM6/22/12
to model...@googlegroups.com
We haven't considered what adding CS2.0 into the mix for ModelGlue would entail.

I'm not sure of the value it would bring to the framework at this point.  If you wanted to use CS2 in your applications, I'm pretty sure you could set up a Parent Bean Factory relationship between with the internal ColdSpring instance and your CS2 instance. 

From the modelglueapplicationtemplate/index.cfm:


<!---
**HIERARCHIAL BEAN FACTORY SUPPORT**

If you'd like to designate a parent bean factory for the one that powers Model-Glue,
simply do whatever you need to do to set the following value to the parent bean factory 
instance:
<cfset ModelGlue_PARENT_BEAN_FACTORY = ??? />
--->


--
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



--

Chris Blackwell

unread,
Jun 22, 2012, 2:29:30 PM6/22/12
to model...@googlegroups.com

its not really feasible to set up a CS2 parent factory,  as that would require you to have both cs1 and cs2 running side by side which won the work.

fwiw,  I have managed to get model glue running with cs2. It wasn't simple,  but it is possible.

The updated totally unofficial code might be on github - https://github.com/d1rtym0nk3y.  If not I'll try to remember to post it next week.

marc

unread,
Jun 22, 2012, 5:33:34 PM6/22/12
to model-glue
Thanks, I am looking forward to the ColdFusion 9 ORM Integration
classes.

Marc

On Jun 22, 8:29 pm, Chris Blackwell <ch...@team193.com> wrote:
> its not really feasible to set up a CS2 parent factory,  as that would
> require you to have both cs1 and cs2 running side by side which won the
> work.
>
> fwiw,  I have managed to get model glue running with cs2. It wasn't
> simple,  but it is possible.
>
> The updated totally unofficial code might be on github -https://github.com/d1rtym0nk3y.  If not I'll try to remember to post it
> next week.
> On Jun 22, 2012 5:46 PM, "Dan Wilson" <sipac...@gmail.com> wrote:
>
>
>
>
>
>
>
> > We haven't considered what adding CS2.0 into the mix for ModelGlue would
> > entail.
>
> > I'm not sure of the value it would bring to the framework at this point.
> >  If you wanted to use CS2 in your applications, I'm pretty sure you could
> > set up a Parent Bean Factory relationship between with the internal
> > ColdSpring instance and your CS2 instance.
>
> > *From the modelglueapplicationtemplate/index.cfm:*
>
> > <!---
> > **HIERARCHIAL BEAN FACTORY SUPPORT**
>
> > If you'd like to designate a parent bean factory for the one that powers
> > Model-Glue,
> > simply do whatever you need to do to set the following value to the parent
> > bean factory
> >  instance:
> >  <cfset ModelGlue_PARENT_BEAN_FACTORY = ??? />
> > --->
>

Chris Blackwell

unread,
Jun 25, 2012, 7:59:27 AM6/25/12
to model...@googlegroups.com
Marc,

the code in my ModelGlue repo on github contains the changes needed to make it work with CS2.  The code there is based on 3.2 RC1 with the following changes

ModelGlue/gesture/loading/ColdSpringBootstrapper.cfc has been updated to detect which version of Coldspring is in use and create it appropriately.

ModelGlue/gesture/configuration/ModelGlueConfiguration.xml has had the coldspring 2 xml namespaces added to the <beans> element

ModelGlue/gesture/configuration/ColdSpring2RegistryCleaner.cfc added, called by ColdSpringBootstrapper. this removes the core beans for Transfer or Reactor if the libraries are not installed. Coldspring 2 will throw and error if defined beans can not be instantiated.

The changes were designed to be backward compatible with CS1.2, but its not fully tested. The code was thrown together for a project i'm working on, but we're since swapped to FW1, so i'm not currently using this code.

Cheers, Chris

Marc Bakker

unread,
Jun 29, 2012, 7:22:31 PM6/29/12
to model...@googlegroups.com
Hi Chris,

I copied the three files from your github to the locations mentioned,added a copy of Coldspring 2.0 Alpha1 into my project folder and updated the mapping to point to CS 2.0 Alpha-1 instead of Coldspring (v1.2).

Then I did a init=true but my first request gave an Object instantiation exception:

Object instantiation exception.
An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. Error: ''.
 
The error occurred in H:\www\CMS\Frameworks\coldspring\beans\AbstractBeanFactory.cfc: line 253
Called from H:\www\CMS\Frameworks\coldspring\beans\AbstractBeanFactory.cfc: line 42
Called from H:\www\CMS\wwwroot\Application.cfc: line 67

Am I missing something?

Thanks,

Marc
Met vriendelijke groet,

Marc Bakker

Chris Blackwell

unread,
Jun 30, 2012, 2:40:07 AM6/30/12
to model...@googlegroups.com

Marc,

in the course of getting this working I logged a few bugs which were fixed in the development branch

I believe this is a bug in CS2 alpha 1 related to abstract parent bean definitions,  which are used in MG's configuration.

so you'll need to pull the code from github and checkout the development branch.

let me know if that works.

Chris

Marc Bakker

unread,
Jun 30, 2012, 7:58:34 AM6/30/12
to model...@googlegroups.com
Hi Chris,

so I did this:
1) copied the three MG files you mentioned in your first post from your GitHub repos;
added those file to my copy of MG 3.2 RC1 (3.2.439);
2) removed the CS 2.0. Alpha 1 took earlier and exported the trunk from Mark Mandels CS repos to my local project;
3) updated the mapping to point to this new version of CS20

But I keep getting errors when requesting a page (with init=true):

"Could not find the ColdFusion component or interface coldspring.beans.DefaultXmlBeanFactory.
Ensure that the name is correct and that the component or interface exists.
 
The error occurred in H:\www\CMS\wwwroot\Application.cfc: line 67"

I'm not quite sure what you mean with development branch but I also tried this with the CS copy in
https://github.com/markmandel/coldspring/branches/feature/92-aop-factory-bean
which also gave errors on first request.

Is this the correct approach? And what shouyld I export from https://github.com/markmandel/coldspring is you refer to the development branch?

I'd like to use CS2.0 with my projects since that adds remote proxybeans and AOP to the picture which DI/1 from Sean Corfield does not I believe. Are you using DI/1 or CS20 witrh FW/1?

Thanks for your time and effort!

Marc

Chris Blackwell

unread,
Jun 30, 2012, 8:18:52 AM6/30/12
to model...@googlegroups.com
Hi Marc,

If you are trying to use coldspring in your application (not just in ModelGlue) then you'll need to adjust your code accordingly. Please refer to the migration guide  http://sourceforge.net/apps/trac/coldspring/wiki/MigratingFrom1.xTo2.0

I believe Mark's default branch for Coldspring is develop, this is the code you want.
go to https://github.com/markmandel/coldspring and click download zip.

Cheers, Chris

Marc Bakker

unread,
Jun 30, 2012, 6:32:11 PM6/30/12
to model...@googlegroups.com
Ok, got it working now.

I copied  CS2.0 developbranch and I copied your _modified_ copy of MG over from your Git. The 3.2.439 ModelGlue version gave errors, even with the 3 modificatins you mentioned before.

Thanks,

Marc

Chris Blackwell

unread,
Jul 1, 2012, 3:08:15 AM7/1/12
to model...@googlegroups.com

the list of changes in gave wasn't meant to be exhaustive,  it was from memory and only meant to give an idea of what i had changed.  so I'm not surprised you saw errors until replacing the whole framework.

you should bare in mind that,  as it says on my github repo,  this code is entirely unofficial and unsupported.  its not currently in development so will not receive updates or bug fixes.

that said,  let me know if you encounter any issues related to coldspring 2 and ill try and help.

Cheers Chris

Reply all
Reply to author
Forward
0 new messages