Results 1 to 2 of 2

Thread: class attribute not resolved !

  1. #1
    Join Date
    Jan 2005
    Posts
    144

    Default class attribute not resolved !

    I'm getting some strange behaviour when using Spring from an ant task :

    I use this simple code :
    Code:
    ApplicationContext context = new ClassPathXmlApplicationContext(
            "Designer-context.xml");
    I've restricted my context to :
    Code:
    <beans>
        <bean id="reverse" class="java.lang.String"/>
    </beans>
    When I run my code from a "main", everything is ok, I get a bean in context of type String.

    When I run it from a ANT task (minimalist : it only runs this simple code), I get an exception :
    Code:
    java.lang.IllegalStateException&#58; Bean definition does not carry a resolved bean class
            at org.springframework.beans.factory.support.AbstractBeanDefinition.getBeanClass&#40;AbstractBeanDefinition.java&#58;205&#41;
    According to source code, this means beanClass in the BeanDefinition has not been converted to a class Object.

    WHAT'S HAPPENING ???

  2. #2
    Join Date
    Jan 2005
    Posts
    144

    Default

    After testing on a minimalist code, this seems to be a maven problem : my ANT task is used from a maven jelly script.

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. Replies: 3
    Last Post: Sep 4th, 2005, 11:11 PM
  5. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •