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
- duplicates
-
KARAF-518 Unable to load features.xml with included schema attribute
- Closed