Results 1 to 4 of 4

Thread: Junit & applicationContext errors

  1. #1
    Join Date
    Jun 2005
    Location
    Manchester,UK
    Posts
    13

    Default Junit & applicationContext errors

    Hi

    I'm getting a frustrating error trying to run junit with ant:

    Exception in constructor: testSavePolicy (org.springframework.beans.factory.BeanDefinitionS toreException: Line 11 in XML document from class path resource [WEB-INF/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Attribute "value" must be declared for element type "property". org.xml.sax.SAXParseException: Attribute "value" must be declared for element type "property".

    The problem is I just can't see what's wrong with the xml:

    <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.Pr opertyPlaceholderConfigurer">
    <property name="location" value="/WEB-INF/jdbc.properties"/>
    </bean>

    Any ideas?

    Best DF

  2. #2
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    Which version of Spring are you using?

    Make sure you have the correct DTD referenced as well. Check the samples.

  3. #3
    Join Date
    Jun 2005
    Location
    Manchester,UK
    Posts
    13

    Default

    I'm using 1.2.7

  4. #4
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    Hmm, that is very strange then. What is the DTD declaration?

    Do you have any old cached copies of the DTD anywhere that are being picked up....

Posting Permissions

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