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”>

Shall I file a JIRA?

Paul Spencer

Reply via email to