Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3817

Karaf does not start because java.io.IOException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Duplicate
    • 4.0.0
    • None
    • karaf
    • None

    Description

      Just downloaded the Karaf Distribution from http://mirror.easyname.ch/apache/karaf/4.0.0/apache-karaf-4.0.0.tar.gz and got following exception after starting it:

      2015-06-30 23:27:32,655 | ERROR | pool-1-thread-1 | BootFeaturesInstaller | 8 - org.apache.karaf.features.core - 4.0.0 | Error installing boot feature repository file:/x1/asf/karaf/k40x/target/ch$
      java.io.IOException: /x1/asf/karaf/k40x/target/checkout/assemblies/apache-karaf/target/assembly/system/org/apache/karaf/features/framework/4.0.0/framework-4.0.0-features.xml (No such file or directory) : fil$
      at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:85)[8:org.apache.karaf.features.core:4.0.0]
      at org.apache.karaf.features.internal.service.FeaturesServiceImpl.loadRepository(FeaturesServiceImpl.java:391)[8:org.apache.karaf.features.core:4.0.0]
      at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:411)[8:org.apache.karaf.features.core:4.0.0]
      at org.apache.karaf.features.internal.service.FeaturesServiceImpl.addRepository(FeaturesServiceImpl.java:402)[8:org.apache.karaf.features.core:4.0.0]
      at org.apache.karaf.features.internal.service.BootFeaturesInstaller.installBootFeatures(BootFeaturesInstaller.java:86)[8:org.apache.karaf.features.core:4.0.0]
      at org.apache.karaf.features.internal.service.BootFeaturesInstaller.start(BootFeaturesInstaller.java:76)[8:org.apache.karaf.features.core:4.0.0]
      at org.apache.karaf.features.internal.osgi.Activator.doStart(Activator.java:257)[8:org.apache.karaf.features.core:4.0.0]
      at org.apache.karaf.util.tracker.BaseActivator.run(BaseActivator.java:233)[8:org.apache.karaf.features.core:4.0.0]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_79]
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_79]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_79]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_79]
      at java.lang.Thread.run(Thread.java:745)[:1.7.0_79]
      Caused by: java.io.FileNotFoundException: /x1/asf/karaf/k40x/target/checkout/assemblies/apache-karaf/target/assembly/system/org/apache/karaf/features/framework/4.0.0/framework-4.0.0-features.xml (No such fil$
      at java.io.FileInputStream.open(Native Method)[:1.7.0_79]
      at java.io.FileInputStream.<init>(FileInputStream.java:146)[:1.7.0_79]
      at java.io.FileInputStream.<init>(FileInputStream.java:101)[:1.7.0_79]
      at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)[:1.7.0_79]
      at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)[:1.7.0_79]
      at java.net.URL.openStream(URL.java:1037)[:1.7.0_79]
      at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:80)[8:org.apache.karaf.features.core:4.0.0]
      ... 12 more

      It seams that the karaf-maven-plugin uses/generates the absolute path to framework-4.0.0-features.xml (I saw the same error during building our own distro)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              roland.hauser@bechtle.ch Roland Hauser
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: