Announcement Announcement Module

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
Random namespace schema validation error Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Random namespace schema validation error

    We're sometimes seeing the following when we start our (Blueprint-enabled) Felix-based OSGi runtime:

    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:gateway'.
    at erWrapper.createSAXParseException(ErrorHandlerWrap
    at erWrapper.error(
    at porter.reportError(
    at porter.reportError(
    at maValidator$XSIErrorReporter.reportError(XMLSchema
    at maValidator.reportSchemaError(XMLSchemaValidator.j ava:3182)
    at maValidator.handleStartElement(XMLSchemaValidator. java:1927)
    at maValidator.emptyElement( 25)
    at entScannerImpl.scanStartElement(XMLNSDocumentScann
    at tFragmentScannerImpl$
    at 140)
    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( 75)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio
    ... 18 more

    We think we know what's going on but we're unsure of the best solution.

    Some background: one of our bundles depends on Spring Integration. That bundle uses the standard SI namespace:

    <?xml version="1.0" encoding="UTF-8"?>
    <blueprint xmlns=""



    Based on the debug logging it looks like this bundle is getting started and parsed by Spring-DM before the Spring Integration bundle has fully started, so the schema embedded inside the spring integration jar isn't found.

    The question is, how can/should we work around this? One way would be to use start levels such that our system bundles (Spring-DM, Integration, etc.) are started before our application bundles.

    Could it actually be that the blueprint extender is a little too agressive in waiting for bundle STARTING events instead of STARTED events before looking for and parsing the blueprint.xml?