karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (KARAF-3867) featureRepositories in org.apache.karaf.features.cfg contain local data
Date Fri, 06 Nov 2015 14:23:27 GMT

     [ https://issues.apache.org/jira/browse/KARAF-3867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jean-Baptiste Onofré resolved KARAF-3867.
-----------------------------------------
    Resolution: Fixed

> featureRepositories in org.apache.karaf.features.cfg contain local data
> -----------------------------------------------------------------------
>
>                 Key: KARAF-3867
>                 URL: https://issues.apache.org/jira/browse/KARAF-3867
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>         Environment: ubuntu linux 14.04
>            Reporter: thometal
>
> If I create a custom distribution like here
> http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html
> in section "Custom Distribution Example" described. In version 4.0.0.M3 in the file org.apache.karaf.features.cfg
at featuresRepositories the karaf framework is given in an maven url like:
> mvn:org.apache.karaf.features/framework/4.0.0/xml/features
> which works perfect in version 4.0.0 its given in a file url (file:///home/...) pointing
to the directory ${karaf.home}/system/file:///home/...
> But if I want to use karaf out side the building environment the url isnt necessary valid
and produces a stacktrace like
> java.io.IOException: .../target/assembly/system/org/apache/karaf/features/framework/4.0.0/framework-4.0.0-features.xml
(No such file or directory) : file://.../target/assembly/system/org/apache/karaf/features/framework/4.0.0/framework-4.0.0-features.xml
>         at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:85)[6:org.apache.karaf.features.core:4.0.0]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.loadRepository(FeaturesServiceImpl.java:391)[6:org.apache.karaf.features.core:4.0.0]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:411)[6:org.apache.karaf.features.core:4.0.0]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:402)[6:org.apache.karaf.features.core:4.0.0]
>         at org.apache.karaf.features.internal.service.BootFeaturesInstaller.installBootFeatures(BootFeaturesInstaller.java:86)[6:org.apache.karaf.features.core:4.0.0]
>         at org.apache.karaf.features.internal.service.BootFeaturesInstaller.start(BootFeaturesInstaller.java:76)[6:org.apache.karaf.features.core:4.0.0]
>         at org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:257)[6:org.apache.karaf.features.core:4.0.0]
>         at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:233)[6:org.apache.karaf.features.core:4.0.0]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_45-internal]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_45-internal]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_45-internal]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_45-internal]
>         at java.lang.Thread.run(Thread.java:745)[:1.8.0_45-internal]
> Caused by: java.io.FileNotFoundException: .../target/assembly/system/org/apache/karaf/features/framework/4.0.0/framework-4.0.0-features.xml
(No such file or directory)
>         at java.io.FileInputStream.open0(Native Method)[:1.8.0_45-internal]
>         at java.io.FileInputStream.open(FileInputStream.java:195)[:1.8.0_45-internal]
>         at java.io.FileInputStream.<init>(FileInputStream.java:138)[:1.8.0_45-internal]
>         at java.io.FileInputStream.<init>(FileInputStream.java:93)[:1.8.0_45-internal]
>         at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)[:1.8.0_45-internal]
>         at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)[:1.8.0_45-internal]
>         at java.net.URL.openStream(URL.java:1038)[:1.8.0_45-internal]
>         at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:80)[6:org.apache.karaf.features.core:4.0.0]
>         ... 12 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message