Paul Spencer created KARAF-7640: ----------------------------------- Summary: "schemaLocation... must have even number of URI's." in example feature.xml files Key: KARAF-7640 URL: https://issues.apache.org/jira/browse/KARAF-7640 Project: Karaf Issue Type: Bug Components: karaf Affects Versions: 4.4.3 Reporter: Paul Spencer
Getting the following errors when viewing feature.xml files in the Karaf 4.4.3 example directories: Multiple annotations found at this line: - SchemaLocation: schemaLocation value = '[http://karaf.apache.org/xmlns/features/v1.4.0]' must have even number of URI's. - cvc-elt.1.a: Cannot find the declaration of element 'features’. Offending tag: <features name="karaf-war-example-${project.version}" xmlns="[http://karaf.apache.org/xmlns/features/v1.4.0]" xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance]" xsi:schemaLocation="[http://karaf.apache.org/xmlns/features/v1.4.0]”> The duplicating the URL in the xsi:schemaLocation attribute appears to resolve the issue error. Working tag: <features name="karaf-war-example-${project.version}" xmlns="[http://karaf.apache.org/xmlns/features/v1.4.0]" xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance]" xsi:schemaLocation="[http://karaf.apache.org/xmlns/features/v1.4.0] [http://karaf.apache.org/xmlns/features/v1.4.0]”> -- This message was sent by Atlassian Jira (v8.20.10#820010)