Announcement Announcement Module
Collapse
No announcement yet.
Junit & applicationContext errors Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Which version of Spring are you using?

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

    Comment


    • #3
      I'm using 1.2.7

      Comment


      • #4
        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....

        Comment

        Working...
        X