Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9183

java.lang.IllegalArgumentException: Unsupported namespaces: [http://camel.apache.org/schema/blueprint]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.16.0
    • 2.17.0
    • examples
    • None
    • Unknown

    Description

      Version used of Blueprint Web : 1.0

      I don't know if this example has ever work - https://github.com/apache/camel/blob/master/examples/camel-example-servlet-tomcat-blueprintweb/src/main/resources/META-INF/blueprint.xml but this is apparently not the longer case.

      When we start mvn jetty:run within the project, we get this error

      2015-09-30 10:37:29.054:WARN:/:Failed to startup blueprint container. java.lang.IllegalArgumentException: Unsupported namespaces: http://camel.apache.org/schema/blueprint
      java.lang.IllegalArgumentException: Unsupported namespaces: http://camel.apache.org/schema/blueprint
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.init(BlueprintContainerImpl.java:99)
      at org.apache.aries.blueprint.container.BlueprintContainerImpl.<init>(BlueprintContainerImpl.java:73)
      at org.apache.aries.blueprint.web.BlueprintContextListener.contextInitialized(BlueprintContextListener.java:86)

      Why, when the BlueprintContext is created, then it fails to load the camel namespace handler

      We should upgrade to this version of Blueprint Web :

      https://github.com/apache/aries/blob/trunk/blueprint/blueprint-web/src/main/java/org/apache/aries/blueprint/web/BlueprintContextListener.java#L55-L56

      which allow to specify :

      blueprintNamespaceHandlers OR META-INF/blueprint.handlers

      and adapt the example to pass the blueprintNamespaceHandlers

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            cmoulliard Moulliard Charles
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: