<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.evenamonkey.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>even a monkey - coldspring</title>
 <link>http://www.evenamonkey.com/taxonomy/term/31/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>Perfect Unity between Model-glue 1 and    2</title>
 <link>http://www.evenamonkey.com/perfect_unity_between_model_glue_1_and_2--2006--doug_sims</link>
 <description>&lt;!-- google_ad_section_start --&gt;
&lt;p&gt;I have been working on a gigantic Modelglue 2 app at my day job. to aid in information exchange we had been using &lt;a href=&quot;http://ray.camdenfamily.com/projects/canvas&quot;&gt;canvas wiki&lt;/a&gt; (thanks &lt;a href=&quot;http://ray.camdenfamily.com/&quot;&gt;Ray!&lt;/a&gt; ). We have been using MG2 since its infancy (original semi-public beta in April). &lt;/p&gt;
&lt;p&gt;everything has been working better that expected, however, a few SVN updates ago the wiki stopped working with a Bean creation error. Apparently this is due to the reactor config path.&lt;/p&gt;
&lt;p&gt;Since our root site is a Unity app, the reactor bean in the coldspring config looks like this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;constructor-arg name=&amp;quot;pathToConfigXml&amp;quot;&amp;gt;&amp;lt;value&amp;gt;/config/Reactor.xml&amp;lt;/value&amp;gt;&amp;lt;/constructor-arg&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;When you try to launch the nested app, it doesnt like the path and gives this error:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt; Bean creation exception during init() of ModelGlue.unity.eventhandler.EventHandlerFactory&lt;br /&gt;Bean creation exception during init() of ModelGlue.unity.orm.ReactorAdapter&lt;br /&gt;The error occurred in C:\Inetpub\wwwroot\WebFiles\coldspring\beans\DefaultXmlBeanFactory.cfc: line 539&lt;br /&gt;Called from C:\Inetpub\wwwroot\WebFiles\coldspring\beans\DefaultXmlBeanFactory.cfc: line 332&lt;br /&gt;Called from C:\Inetpub\wwwroot\WebFiles\ModelGlue\unity\loader\XmlConfigurationLoader.cfc: line 16&lt;br /&gt;Called from C:\Inetpub\wwwroot\WebFiles\ModelGlue\unity\loader\XmlConfigurationLoader.cfc: line 319&lt;br /&gt;Called from C:\Inetpub\wwwroot\WebFiles\ModelGlue\unity\loader\XmlConfigurationLoader.cfc: line 49&lt;br /&gt;Called from C:\Inetpub\wwwroot\WebFiles\ModelGlue\unity\loader\FrameworkLoader.cfc: line 63&lt;br /&gt;Called from C:\Inetpub\wwwroot\WebFiles\ModelGlue\unity\ModelGlue.cfm: line 48&lt;br /&gt;Called from C:\Inetpub\wwwroot\WebFiles\ModelGlue\ModelGlue.cfm: line 1&lt;br /&gt;Called from C:\Sandboxes\Sandbox2\wiki\index.cfm: line 25&lt;br /&gt;537 : 								&amp;lt;cfthrow type=&amp;quot;coldspring.beanCreationException&amp;quot;&lt;br /&gt;538 : 									message=&amp;quot;Bean creation exception during init() of #beanDef.getBeanClass()#&amp;quot;&lt;br /&gt;539 : 									detail=&amp;quot;#cfcatch.message#&amp;quot;&amp;gt;&lt;br /&gt;540 : 							&amp;lt;/cfcatch&amp;gt;&lt;br /&gt;541 : 						&amp;lt;/cftry&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;h2&gt;How I fixed It&lt;/h2&gt;
&lt;p&gt;I simply copied the coldspring.xml and reactor.xml to:&lt;br /&gt;
 webroot/wiki/config&lt;br /&gt;
and changed the reactor config constructor-arg to&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;constructor-arg name=&amp;quot;pathToConfigXml&amp;quot;&amp;gt;&amp;lt;value&amp;gt;/wiki/config/Reactor.xml&amp;lt;/value&amp;gt;&amp;lt;/constructor-arg&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I did try to make the path relative (&quot;config/reactor.xml&quot; not /config/reactor.xml&quot;) but that didn&#039;t seem to work either. Please let me know if there is a better fix!&lt;/p&gt;
&lt;!-- google_ad_section_end --&gt;
</description>
 <comments>http://www.evenamonkey.com/perfect_unity_between_model_glue_1_and_2--2006--doug_sims#comment</comments>
 <category domain="http://www.evenamonkey.com/monkeyblog/coldfusion">coldfusion</category>
 <category domain="http://www.evenamonkey.com/monkeyblog/coldspring">coldspring</category>
 <category domain="http://www.evenamonkey.com/monkeyblog/modelglue">modelglue</category>
 <category domain="http://www.evenamonkey.com/monkeyblog/reactor">reactor</category>
 <pubDate>Fri, 14 Jul 2006 14:57:18 -0400</pubDate>
 <dc:creator>Doug Sims</dc:creator>
 <guid isPermaLink="false">37 at http://www.evenamonkey.com</guid>
</item>
</channel>
</rss>
