Upgrading to new MG 3 Beta 1 Error

0 views
Skip to first unread message

Darren

unread,
May 23, 2009, 2:32:57 PM5/23/09
to model-glue
Anyone else had this issue? This was right after upgrading the MG:

The method setapplicationPath was not found in component C:
\ColdFusion8\frameworks\ModelGlue\gesture\configuration
\ModelGlueConfiguration.cfc.
Ensure that the method is defined, and that it is spelled correctly.

The error occurred in C:\ColdFusion8\frameworks\coldspring1-2-final
\beans\DefaultXmlBeanFactory.cfc: line 940
Called from C:\ColdFusion8\frameworks\coldspring1-2-final\beans
\DefaultXmlBeanFactory.cfc: line 632
Called from C:\ColdFusion8\frameworks\ModelGlue\gesture\loading
\ColdSpringBootstrapper.cfc: line 80
Called from C:\ColdFusion8\frameworks\ModelGlue\gesture\loading
\ColdSpringBootstrapper.cfc: line 88
Called from C:\ColdFusion8\frameworks\ModelGlue\gesture\ModelGlue.cfm:
line 43
Called from C:\ColdFusion8\wwwroot\yy\index.cfm: line 72

938 : method="set#propDefs[prop].getName()#">
939 : <cfinvokeargument name="#propDefs[prop].getArgumentName()
#"
940 : value="#propDefs[prop].getValue()#"/>
941 : </cfinvoke>
942 : <cfelseif propType eq "map" or propType eq "list">

Ezra Parker

unread,
May 23, 2009, 3:01:37 PM5/23/09
to model...@googlegroups.com
Hi Darren,

It looks like the applicationPath config setting has been changed to
applicationMapping in the beta release. Try changing the name of this
setting to applicationMapping in your ColdSpring.xml file, as I think
this should resolve the issue.

HTH,

--
Ezra Parker

denstar

unread,
May 23, 2009, 3:03:39 PM5/23/09
to model...@googlegroups.com
On Sat, May 23, 2009 at 12:32 PM, Darren wrote:
>
> Anyone else had this issue?  This was right after upgrading the MG:
>
> The method setapplicationPath was not found in component C:
> \ColdFusion8\frameworks\ModelGlue\gesture\configuration
> \ModelGlueConfiguration.cfc.
> Ensure that the method is defined, and that it is spelled correctly.

I think it's called "applicationMapping" now, changing the name should
fix it for you, but we need to accommodate the previous setting too, I
reckon.

--
The wise person often shuns society for fear of being bored.
Jean de la Bruyere

Ezra Parker

unread,
May 23, 2009, 7:43:48 PM5/23/09
to model...@googlegroups.com
@Den

Good point. I have raised a ticket for this issue.

--
Ezra

Darren

unread,
May 23, 2009, 2:11:12 PM5/23/09
to model-glue
I just wanted to see if anyone else had this issue when upgrading
their MG.

After the upgrade I now get the following:

The method setapplicationPath was not found in component C:
\ColdFusion8\frameworks\ModelGlue\gesture\configuration
\ModelGlueConfiguration.cfc.
Ensure that the method is defined, and that it is spelled correctly.

The error occurred in C:\ColdFusion8\frameworks\coldspring1-2-final
\beans\DefaultXmlBeanFactory.cfc: line 940
Called from C:\ColdFusion8\frameworks\coldspring1-2-final\beans
\DefaultXmlBeanFactory.cfc: line 632
Called from C:\ColdFusion8\frameworks\ModelGlue\gesture\loading
\ColdSpringBootstrapper.cfc: line 80
Called from C:\ColdFusion8\frameworks\ModelGlue\gesture\loading
\ColdSpringBootstrapper.cfc: line 88
Called from C:\ColdFusion8\frameworks\ModelGlue\gesture\ModelGlue.cfm:
line 43
Called from C:\ColdFusion8\wwwroot\yy\index.cfm: line 72

938 : method="set#propDefs[prop].getName()#">
939 : <cfinvokeargument name="#propDefs[prop].getArgumentName()
#"
940 : value="#propDefs[prop].getValue()#"/>
941 : </cfinvoke>
942 : <cfelseif propType eq "map" or propType eq "list">


Best,

Darren

Darren

unread,
May 25, 2009, 4:48:32 PM5/25/09
to model-glue
That resolved the issue. I appreciate your help!

Doug Hughes

unread,
May 26, 2009, 7:30:11 AM5/26/09
to model...@googlegroups.com
Can someone also add a note to the upgrading page on the wiki about this?  Even if it's not complete, we should have the note there to build on.

Doug Hughes, President
Alagad Inc.
dhu...@alagad.com
888 Alagad4 (x300)
Office: 919-550-0755
Fax: 888-248-7836

Ezra Parker

unread,
May 26, 2009, 1:31:48 PM5/26/09
to model...@googlegroups.com
@Doug,

I'd be happy to add a notation regarding this issue, but what should
be written will somewhat depend upon how this will be handled.

In short, will the applicationPath setting be supported but
deprecated, or will it be unsupported, thus necessitating a change to
the use of applicationMapping?

Given that we're talking about a change between the alpha and beta
versions, I wasn't sure what the consensus would be here -- Dan,
what's your take on this?

If it is desirable to support the old setting name, then I attached a
patch to the ticket that adds a function for this:

http://docs.model-glue.com/ticket/343

There is also an attached patch to change the setting name in the
sample applications, which were all still referencing applicationPath
in their config files.

--
Ezra

Dan Wilson

unread,
Jun 2, 2009, 7:15:38 PM6/2/09
to model...@googlegroups.com
Hey Darren,

I think this was answered somewhere, but ApplicationPath has been changed to ApplicationMapping. If you still have an issue with ApplicationPath errors, please update the ModelGlueConfiguration Bean to have a node called ApplicationMapping (and not ApplicationPath)

Post back if you have any problems.


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
Reply all
Reply to author
Forward
0 new messages