I'm getting some strange behaviour when using Spring from an ant task :
I use this simple code :
I've restricted my context to :
ApplicationContext context = new ClassPathXmlApplicationContext(
When I run my code from a "main", everything is ok, I get a bean in context of type String.
<bean id="reverse" class="java.lang.String"/>
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.
java.lang.IllegalStateException: Bean definition does not carry a resolved bean class
WHAT'S HAPPENING ???