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

FileNotFoundException of framework-4.0.0-features.xml when start up karaf 4.0.0

    XMLWordPrintableJSON

Details

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

    Description

      After start karaf 4.0.0, there is exception about framework-4.0.0-features.xml could not be found.

      2015-07-01 16:36:04,041 | 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/checkout/assemblies/apache-karaf/target/assembly/system/org/apache/karaf/features/framework/4.0.0/framework-4.0.0-features.xml
      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 (The system cannot find the path specified) : file:/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
      	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_51]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_51]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_51]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_51]
      	at java.lang.Thread.run(Thread.java:744)[:1.7.0_51]
      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 (The system cannot find the path specified)
      	at java.io.FileInputStream.open(Native Method)[:1.7.0_51]
      	at java.io.FileInputStream.<init>(FileInputStream.java:146)[:1.7.0_51]
      	at java.io.FileInputStream.<init>(FileInputStream.java:101)[:1.7.0_51]
      	at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)[:1.7.0_51]
      	at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)[:1.7.0_51]
      	at java.net.URL.openStream(URL.java:1037)[:1.7.0_51]
      	at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:80)[8:org.apache.karaf.features.core:4.0.0]
      	... 12 more
      

      Looking into the etc/org.apache.karaf.features.cfg

      featuresRepositories = \
          file:/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, \
          mvn:org.apache.karaf.features/enterprise/4.0.0/xml/features, \
          mvn:org.apache.karaf.features/spring/4.0.0/xml/features, \
          mvn:org.apache.karaf.features/standard/4.0.0/xml/features
      

      seems wrong location is configued in the file.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xldai Xilai Dai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: