I'm getting some strange behaviour when using Spring from an ant task :
I use this simple code :
I've restricted my context to :Code:ApplicationContext context = new ClassPathXmlApplicationContext( "Designer-context.xml");
When I run my code from a "main", everything is ok, I get a bean in context of type String.Code:<beans> <bean id="reverse" class="java.lang.String"/> </beans>
When I run it from a ANT task (minimalist : it only runs this simple code), I get an exception :
According to source code, this means beanClass in the BeanDefinition has not been converted to a class Object.Code:java.lang.IllegalStateException: Bean definition does not carry a resolved bean class at org.springframework.beans.factory.support.AbstractBeanDefinition.getBeanClass(AbstractBeanDefinition.java:205)
WHAT'S HAPPENING ???


Reply With Quote