Jean-Baptiste Onofré created KARAF-3190:
-------------------------------------------

             Summary: features:chooseurl can't validate the cellar features XML
                 Key: KARAF-3190
                 URL: https://issues.apache.org/jira/browse/KARAF-3190
             Project: Karaf
          Issue Type: Bug
          Components: karaf-feature
    Affects Versions: 2.3.6
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré
             Fix For: 2.3.7


When using the features:chooseurl command to add the Cellar features, we get a 
validation error:

{code}
karaf@root> features:chooseurl cellar
Adding feature url 
mvn:org.apache.karaf.cellar/apache-karaf-cellar/[2,3)/xml/features
Error executing command: Unable to validate 
mvn:org.apache.karaf.cellar/apache-karaf-cellar/[2,3)/xml/features
{/code}

Whereas, if we use the features:addurl command, it works fine:

{code}
karaf@root> features:addurl 
mvn:org.apache.karaf.cellar/apache-karaf-cellar/2.3.2/xml/features
karaf@root> 
{/code}

The log says:

{code}
Caused by: org.xml.sax.SAXParseException: cvc-elt.1.a: Cannot find the 
declaration of element 'features'.
        at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source)[:]
        at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)[:]
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)[:]
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)[:]
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)[:]
        at 
org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown 
Source)[:]
        at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown 
Source)[:]
        at 
org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown 
Source)[:]
        at 
org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)[:]
        at 
org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown Source)[:]
        at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown 
Source)[:]
        at javax.xml.validation.Validator.validate(Unknown Source)[:2.4.0]
        at 
org.apache.karaf.features.internal.FeatureValidationUtil.validate(FeatureValidationUtil.java:69)[27:org.apache.karaf.features.core:2.3.6]
{/code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to