Qasim, This is a bug, and it's been recorded, and fixed.
http://code.coldspringframework.org/browse/CSP-75?page=all You can pull the latest from CVS, or simply make the minor change yourself within coldspring/beans/BeanProperty.cfc Around line 259 (or higher depending what version of the code you are on) look for this: ---------------------------------------------------------------------------------------- <cfcase value="bean"> <!--- we gotta do the inner bean creation thing again. See parseChildNode above to figure out what's going on here ---> <cfif not (StructKeyExists(entryChild.XmlAttributes,'class')) and not ( StructKeyExists(Child.XmlAttributes,'factory-bean') and StructKeyExists(Child.XmlAttributes,'factory-method') ) > <cfthrow type="coldspring.MalformedInnerBeanException" message="Xml inner bean definitions must contain a 'class' attribute or 'factory-bean'/'factory-method' attributes!"> </cfif> ----------------------------------------------------------------------------- See the "child", it needs to be "entryChild". The fix will look like: ----------------------------------------------------------------------------- <cfcase value="bean"> <!--- we gotta do the inner bean creation thing again. See parseChildNode above to figure out what's going on here ---> <cfif not (StructKeyExists(entryChild.XmlAttributes,'class')) and not ( StructKeyExists(entryChild.XmlAttributes,'factory-bean') and StructKeyExists(entryChild.XmlAttributes,'factory-method') ) > <cfthrow type="coldspring.MalformedInnerBeanException" message="Xml inner bean definitions must contain a 'class' attribute or 'factory-bean'/'factory-method' attributes!"> </cfif> ----------------------------------------------------------------------------- thanks, Dave On 10/21/06, Qasim Rasheed <[EMAIL PROTECTED]> wrote:
Folks, Any thoughts on this issue? Thanks, Qasim On 10/20/06, Qasim Rasheed <[EMAIL PROTECTED] > wrote: > Yep, When I try to use the above xml snippet I see this error > > Element XMLATTRIBUTES is undefined in CHILD. <br>The error occurred on line 259. > > Although replacing the above xml to this, seems to solve the problem > > <bean id="SecurityService" class="........"> > <property name="Gateways"> > <map> > <entry key="secMenuTable"> > <ref bean="myGateway" /> > </entry> > </map> > </property> > </bean> > > <bean id="myGateway" factory-bean="reactorFactory" factory-method="createGateway"> > <constructor-arg name="objectAlias"> > <value>MenuTable</value> > </constructor-arg> > </bean> > > However I think that bean tag should work within a entrykey. Not sure what might be causing this. > > TIA > > Qasim > > > > On 10/20/06, Dave Ross <[EMAIL PROTECTED]> wrote: > > Yes, it should... are you having issues? > > > > On 10/20/06, Qasim Rasheed <[EMAIL PROTECTED]> wrote: > > > thanks for a quick response. However an unrelated question about the child > > > for a <map><entrykey .. tag. Does it support a <bean /> tag with-in entrykey > > > e.g. > > > > > > <bean id="SecurityService" class="........"> > > > <property name="Gateways"> > > > <map> > > > <entry key="secMenuTable"> > > > <bean factory-bean="reactorFactory" > > > factory-method="createGateway"> > > > <constructor-arg name="objectAlias"> > > > <value>MenuTable</value> > > > </constructor-arg> > > > </bean> > > > </entry> > > > </map> > > > </property> > > > </bean> > > > > > > TIA, > > > > > > QASIM > > > On 10/20/06, Dave Ross < [EMAIL PROTECTED] > wrote: > > > > wokring on it right now - should be up within an hour > > > > > > > > On 10/20/06, Qasim Rasheed < [EMAIL PROTECTED]> wrote: > > > > > > > > > Dave, > > > > > > > > > > Any update of the status of the coldspringframework.org site? I am > > > looking > > > > > for the reference documentation. > > > > > > > > > > Thanks, > > > > > > > > > > Qasim > > > > > > > > > > On 10/18/06, Dave Ross < [EMAIL PROTECTED]> wrote: > > > > > > Last weekend the server hosting that site finally died (it already had > > > > > > one bad drive, and it looks like the other one is now toast). It's > > > > > > just a matter of moving the site over to different hardware, which > > > > > > should happen shortly. CVS and JIRA are still up. > > > > > > > > > > > > thanks. > > > > > > > > > > > > Dave > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
