karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Shakirin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-4031) Unresolved repository inside the feature causes Karaf freezing during startup
Date Wed, 07 Oct 2015 10:00:30 GMT
Andrei Shakirin created KARAF-4031:

             Summary: Unresolved repository inside the feature causes Karaf freezing during
                 Key: KARAF-4031
                 URL: https://issues.apache.org/jira/browse/KARAF-4031
             Project: Karaf
          Issue Type: Improvement
    Affects Versions: 4.0.1
         Environment: Windows
            Reporter: Andrei Shakirin

I have observed following behavior: there is a feature containing a repository URL inside
the feature.xml:

<?xml version="1.0" encoding="UTF-8"?>
        xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.0.0 http://karaf.apache.org/xmlns/features/v1.0.0


    <feature name="test-bad" version="${project.version}">

The repository URL mvn:org.mycompany/thirdparty-features/9.9.9/xml is not exist and cannot
be resolved.
I specify the feature URL in org.apache.karaf.features.cfg featuresRepositories, but NOT mention
the feature in featuresBoot:

featuresRepositories = \
    mvn:org.apache.karaf.features/enterprise/4.0.1/xml/features, \
    mvn:org.apache.karaf.features/framework/4.0.1/xml/features, \
    mvn:org.apache.karaf.features/spring/4.0.1/xml/features, \

# Comma separated list of features to install at startup
featuresBoot = \
    aries-blueprint, \
    bundle, \
    config, \
    deployer, \
    diagnostic, \
    feature, \
    instance, \
    jaas, \
    kar, \
    log, \
    management, \
    package, \
    service, \
    shell, \
    shell-compat, \
    ssh, \
    system, \

Current behavior:
1) Karaf writes error message in the log file:
java.io.IOException: Error resolving artifact de.conrad.ccp.basit:thirdparty-features:xml:9.9.9:
Could not find artifact de.conrad.ccp.basit:thirdparty-features:xml:9.9.9 in central (http://repo1.maven.org/maven2/)
: mvn:de.conrad.ccp.basit/thirdparty-features/9.9.9/xml
(absolutely correct)
2) further startup process is completely blocked (problem)

Expected behavior: write error message and continue startup process: feature is not specified
in featuresBoot and must not be installed.

Interesting, if unresolved feature URL is specified directly in featuresRepositories, Karaf
proceed it correctly: writes error message, but continues startup. Blocking appears only if
unresolved URL is specified inside the feature.xml.

This message was sent by Atlassian JIRA

View raw message