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

Christian Schneider commented on KARAF-601:
-------------------------------------------

The problem is that the features file does not contain a namespace definition. 
So the parser loads it and there even is a features variable but it contains 
only null for each attribute. So when listing the features none are found.

I talked to jbonofre on irc. He said that we do not want to load old style 
feature files without namespaces. So I will add checks to make sure an error is 
displayed when such a file is loaded. I will also adjusst the camel and cxf 
feature files on trunk to make sure they contain namespace definitions.

> features:list does not show features of newly installed feature file
> --------------------------------------------------------------------
>
>                 Key: KARAF-601
>                 URL: https://issues.apache.org/jira/browse/KARAF-601
>             Project: Karaf
>          Issue Type: Bug
>          Components: console
>    Affects Versions: 3.0.0
>         Environment: Windows 7, maven 3, java 6
>            Reporter: Christian Schneider
>
> I installed a feature file containing:
> <?xml version="1.0" encoding="UTF-8"?>
> <features>
>   <feature name='camel-core' version='2.7.1' resolver='(obr)'>
>     <feature version="3.0.5.RELEASE">spring</feature>
>     <bundle 
> dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.7.0</bundle>
>     <bundle 
> dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/1.7.0</bundle>
>     <bundle 
> dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.7.0</bundle>
>     
> <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.1.1_1</bundle>
>     <bundle>mvn:org.fusesource.commonman/commons-management/1.0</bundle>
>     <bundle>mvn:org.apache.camel/camel-core/2.7.1</bundle>
>   </feature>
> </features>
> using the command:
> features:addurl file:///tmp/apache-camel-2.7.1-features.xml
> The url is then listed in features:listurl:
> karaf@root> features:listurl
>  Loaded   URI
>   true    
> mvn:org.apache.karaf.assemblies.features/standard/3.0.0-SNAPSHOT/xml/features
>   true    
> mvn:org.apache.karaf.assemblies.features/enterprise/3.0.0-SNAPSHOT/xml/features
>   true    file:///tmp/apache-camel-2.7.1-features.xml
> But features:list does not show the camel-core feature

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to