Results 1 to 5 of 5

Thread: Spring Integration Recipient List Router namespace Error

  1. #1

    Default Spring Integration Recipient List Router namespace Error

    I am not able to use the recipient List router. It is giving me the name space error. Please suggest.

    Schema Configuration:
    ~~~~~~~~~~~~~~
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns=" http://www.springframework.org/schema/beans "
    xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:si=" http://www.springframework.org/schema/integration "
    xmlns:context=" http://www.springframework.org/schema/context "
    xmlns:jms=" http://www.springframework.org/schema/integration/jms "
    xmlns:tx=" http://www.springframework.org/schema/tx " xmlns:util=" http://www.springframework.org/schema/util "
    xmlns=" http://www.springframework.org/schema/p "
    xsi:schemaLocation=" http://www.springframework.org/schema/beans
    http://www.springframework.org/schem...-beans-2.5.xsd
    http://www.springframework.org/schema/integration
    http://www.springframework.org/schem...ration-1.0.xsd
    http://www.springframework.org/schema/integration/jms
    http://www.springframework.org/schem...on-jms-1.0.xsd
    http://www.springframework.org/schema/util
    http://www.springframework.org/schem...g-util-2.5.xsd
    http://www.springframework.org/schema/tx
    http://www.springframework.org/schem...ing-tx-2.5.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-2.5.xsd">

    Recipient List Router Configuration:
    ~~~~~~~~~~~~~~~~~~~~~~

    <si:recipient-list-router id="test.recipientRouter"
    input-channel="test.toRecipientRouter" timeout="1234"
    ignore-send-failures="true" apply-sequence="true">
    <si:recipient channel="test.toBlotter1" />
    </si:recipient-list-router>


    I am getting the following exception:
    ~~~~~~~~~~~~~~~~~~~~~~
    Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'si:recipient-list-router'.
    at com.sun.org.apache.xerces.internal.util.ErrorHandl erWrapper.createSAXParseException(ErrorHandlerWrap per.java:195)
    at com.sun.org.apache.xerces.internal.util.ErrorHandl erWrapper.error(ErrorHandlerWrapper.java:131)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorRe porter.reportError(XMLErrorReporter.java:384)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorRe porter.reportError(XMLErrorReporter.java:318)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSche maValidator$XSIErrorReporter.reportError(XMLSchema Validator.java:410)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSche maValidator.reportSchemaError(XMLSchemaValidator.j ava:3165)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSche maValidator.handleStartElement(XMLSchemaValidator. java:1898)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSche maValidator.startElement(XMLSchemaValidator.java:6 85)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocum entScannerImpl.scanStartElement(XMLNSDocumentScann erImpl.java:400)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl$FragmentContentDriver.next(XM LDocumentFragmentScannerImpl.java:2747)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumen tScannerImpl.next(XMLDocumentScannerImpl.java:648)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocum entScannerImpl.next(XMLNSDocumentScannerImpl.java: 140)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl.scanDocument(XMLDocumentFragm entScannerImpl.java:510)
    at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(XML11Configuration.java:807)
    at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(XML11Configuration.java:737)
    at com.sun.org.apache.xerces.internal.parsers.XMLPars er.parse(XMLParser.java:107)
    at com.sun.org.apache.xerces.internal.parsers.DOMPars er.parse(DOMParser.java:225)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBu ilderImpl.parse(DocumentBuilderImpl.java:283)
    at org.springframework.beans.factory.xml.DefaultDocum entLoader.loadDocument(DefaultDocumentLoader.java: 75)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:396)
    ... 27 more

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    What version of the Spring Integration JARs are you using?

  3. #3

    Default Spring Integration jars

    Jars files in use for spring Integration:
    ~~~~~~~~~~~~~~~~~~~~~~~~

    C:\..\org\springframework\integration\spring-integration-adapter\1.0.1.RELEASE\spring-integration-adapter-1.0.1.RELEASE.jar

    C:\..\org\springframework\integration\spring-integration-jms\1.0.1.RELEASE\spring-integration-jms-1.0.1.RELEASE.jar

    C:\..\org\springframework\spring-jms\2.5.6\spring-jms-2.5.6.jar

    C:\..\org\springframework\integration\spring-integration-core\1.0.1.RELEASE\spring-integration-core-1.0.1.RELEASE.jar

  4. #4
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    Can you upgrade to version 1.0.3?

    The 'recipient-list-router' namespace support was added in that release.

  5. #5

    Default

    Thanks for suggestion. It works.

Posting Permissions

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