[ 
https://issues.apache.org/jira/browse/KARAF-1168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13198631#comment-13198631
 ] 

Freeman Fang commented on KARAF-1168:
-------------------------------------

Ok, just found this issue is duplicated with KARAF-518[1] and is fixed since 
Karaf 2.2.1

[1]https://issues.apache.org/jira/browse/KARAF-518
                
> XML file describing feature not deployed if contains xmlns attribute
> --------------------------------------------------------------------
>
>                 Key: KARAF-1168
>                 URL: https://issues.apache.org/jira/browse/KARAF-1168
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-features
>    Affects Versions: 2.1.4
>            Reporter: Radoslaw Szymanek
>            Assignee: Freeman Fang
>            Priority: Trivial
>             Fix For: 2.2.1
>
>
> 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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to