Announcement Announcement Module
No announcement yet.
cvc-elt.1: Cannot find the declaration of element 'beans Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • cvc-elt.1: Cannot find the declaration of element 'beans

    I've got this error during an attempt to upgrade from spring 1.2.5 to spring 2.0x.
    It's like xerces doesn't find the dtd.

    I found messages in the spring forums that seem to address the same issue. However, they couldn't help me figuring out things for my particular case.

    Please note that debug messages in chainsaw indicate that the dtd has been found:

    Trying to locate [spring-beans-2.0.dtd] in Spring jar
    Found beans DTD [] in classpath

    I've tried by specifying the schemas instead too, but I steadily get the same message:

    org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
    at erWrapper.createSAXParseException(ErrorHandlerWrap
    at erWrapper.error(
    at porter.reportError(
    at porter.reportError(
    at maValidator.handleStartElement(XMLSchemaValidator. java:1944)
    at maValidator.startElement( 05)
    at Validator.startElement(
    at entScannerImpl.scanStartElement(XMLNSDocumentScann
    at entScannerImpl$NSContentDispatcher.scanRootElement Hook(
    at tFragmentScannerImpl$FragmentContentDispatcher.dis patch(
    at tFragmentScannerImpl.scanDocument(XMLDocumentFragm
    at nfiguration.parse(
    at nfiguration.parse(
    at er.parse(
    at er.parse(
    at ilderImpl.parse(
    at org.springframework.beans.factory.xml.DefaultDocum entLoader.loadDocument( 77)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio

    Of course I've checked that my springapp-servlet.xml is ok, and it is (it hasn't actually changed from back then when I used spring 1.2.5)

    Please help, I've been working on this all this sunday afternoon on this problem and I really ask you in despair :-(

    Thank you in advance,