|
From: Colin S. <col...@ex...> - 2004-08-03 02:23:18
|
Barry Kaplan wrote: > I take it back. I still get the error. Does anybody see what I might > be doing wrong? > > <bean id="com.its.formatter" lazy-init="true"> > <property name="foo"> > <ref bean="com.its.foo"/> > </property> > <property name="bar"> > <ref bean="com.its.bar"/> > </property> > </bean> > > <bean id="com.its.fixedWidthFormatter" > parent="com.its.formatter" > class="com.its.FixedWidthFormatter"> > </bean> > > <bean id="com.its.variableWidthFormatter" > parent="com.its.formatter" > class="com.its.VariableWidthFormatter"> > </bean> Bean definitions internally have a class property that is either a Class object, or a String object representing the classname of the class. The exception you got is thrown when somebody calls the getClass method to get the Class object, and the property in fact is not holding a Class. That means it is either null, or a String. Hard for me to tell in this case without more info. Now one thing I have to ask is why your log is complaining about being unable to create the bean "com.its". That's not one of the ones above. Which bean is that? Colin |