Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1168

XML file describing feature not deployed if contains xmlns attribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.1.4
    • 2.2.1
    • karaf
    • None

    Description

      I have two xml files. They only differ in usage of xmlns attribute in element features.

      1) The xml file deployed below is not being properly processed by karaf and nothing is installed.

      <?xml version="1.0" encoding="UTF-8"?>
      <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
      <feature name="hot-filemover" version="1.0">
      <bundle>mvn:com.xtech.cfa/filemover/1.0.0-SNAPSHOT</bundle>
      <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.scala-library/2.9.1_1</bundle>
      <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jasypt/1.7_3</bundle>
      <config name="com.xtech.cfa.filemover">
      cfa.filemover.infolder=/home/user/infolder
      cfa.filemover.outfolder=/home/user/outfolder
      cfa.filemover.initialDelay=500
      </config>
      </feature>
      </features>

      2) If I remove the xmlns attribute and I use the file as below then karaf picks up the file and bundles are installed properly.

      <?xml version="1.0" encoding="UTF-8"?>
      <features>
      <feature name="hot-filemover" version="1.0">
      <bundle>mvn:com.xtech.cfa/filemover/1.0.0-SNAPSHOT</bundle>
      <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.scala-library/2.9.1_1</bundle>
      <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jasypt/1.7_3</bundle>
      <config name="com.xtech.cfa.filemover">
      cfa.filemover.infolder=/home/user/infolder
      cfa.filemover.outfolder=/home/user/outfolder
      cfa.filemover.initialDelay=500
      </config>
      </feature>
      </features>

      The file with xmlns attribute can be placed in Features repository or added from console as feature url and there is no problem in using it from the command line.
      It seems this xmlns attribute is only problematic if used in deploy folder.

      I have not tested it with the newest version of karaf.

      Attachments

        Issue Links

          Activity

            People

              ffang Freeman Yue Fang
              radsz Radoslaw Szymanek
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: