title: Maven BundleException: Unable to cache bundle
body: <p>I am trying to launch my maven-based project and at the time of launching I always get the following exception:</p>
  
  <pre><code>Cannot install bundle: weasis-dicom-explorer-0.5.14 (org.osgi.framework.BundleException: Unable to cache bundle: file:/org/weasis/dicom/weasis-dicom-explorer/0.5.14/weasis-dicom-explorer-0.5.14.jar - java.io.FileNotFoundException: \org\weasis\dicom\weasis-dicom-explorer\0.5.14\weasis-dicom-explorer-0.5.14.jar (The system cannot find the path specified))
  org.osgi.framework.BundleException: Unable to cache bundle: file:/org/weasis/dicom/weasis-dicom-explorer/0.5.14/weasis-dicom-explorer-0.5.14.jar
      at org.apache.felix.framework.Felix.installBundle(Felix.java:2858)
      at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
      at org.weasis.launcher.AutoProcessor.installBundle(AutoProcessor.java:551)
      at org.weasis.launcher.AutoProcessor.processAutoProperties(AutoProcessor.java:335)
      at org.weasis.launcher.AutoProcessor.process(AutoProcessor.java:102)
      at org.weasis.launcher.WebStartLoader.setFelix(WebStartLoader.java:203)
      at org.weasis.launcher.WeasisLauncher.launch(WeasisLauncher.java:343)
      at org.weasis.launcher.WeasisLauncher.main(WeasisLauncher.java:200)
  Caused by: java.io.FileNotFoundException: \org\weasis\dicom\weasis-dicom-explorer\0.5.14\weasis-dicom-explorer-0.5.14.jar (The system cannot find the path specified)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:120)
      at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:79)
      at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
      at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
      at org.apache.felix.framework.util.SecureAction.getURLConnectionInputStream(SecureAction.java:524)
      at org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:165)
      at org.apache.felix.framework.cache.JarRevision.&lt;init&gt;(JarRevision.java:77)
      at org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878)
      at org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)
      at org.apache.felix.framework.cache.BundleArchive.&lt;init&gt;(BundleArchive.java:153)
      at org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)
      at org.apache.felix.framework.Felix.installBundle(Felix.java:2854)
      ... 7 more
  Cannot install native bundle: jai-lib-windows-x86-1.1.4-b03
  Cannot install bundle: slf4j-api-1.6.4 (org.osgi.framework.BundleException: Unable to cache bundle: file:/org/slf4j/slf4j-api/1.6.4/slf4j-api-1.6.4.jar - java.io.FileNotFoundException: \org\slf4j\slf4j-api\1.6.4\slf4j-api-1.6.4.jar (The system cannot find the path specified))
  org.osgi.framework.BundleException: Unable to cache bundle: file:/org/slf4j/slf4j-api/1.6.4/slf4j-api-1.6.4.jar
      at org.apache.felix.framework.Felix.installBundle(Felix.java:2858)
      at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
      at org.weasis.launcher.AutoProcessor.installBundle(AutoProcessor.java:551)
      at org.weasis.launcher.AutoProcessor.processAutoProperties(AutoProcessor.java:335)
      at org.weasis.launcher.AutoProcessor.process(AutoProcessor.java:102)
      at org.weasis.launcher.WebStartLoader.setFelix(WebStartLoader.java:203)
      at org.weasis.launcher.WeasisLauncher.launch(WeasisLauncher.java:343)
      at org.weasis.launcher.WeasisLauncher.main(WeasisLauncher.java:200)
  </code></pre>
  
  <p>My sample model of pom.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;parent&gt;
          &lt;artifactId&gt;weasis-parent&lt;/artifactId&gt;
          &lt;groupId&gt;org.weasis&lt;/groupId&gt;
          &lt;version&gt;1.14&lt;/version&gt;
          &lt;relativePath&gt;../weasis-parent/pom.xml&lt;/relativePath&gt;
      &lt;/parent&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;org.weasis.launcher&lt;/groupId&gt;
      &lt;artifactId&gt;weasis-launcher&lt;/artifactId&gt;
      &lt;!-- The weasis launcher is not OSGI bundle, it is a simple jar --&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
      &lt;name&gt;Weasis Launcher (Felix) [${project.artifactId}]&lt;/name&gt;
      &lt;version&gt;0.5.14&lt;/version&gt;
      &lt;licenses&gt;
          &lt;license&gt;
              &lt;name&gt;Eclipse Public License v1.0&lt;/name&gt;
              &lt;url&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/url&gt;
              &lt;distribution&gt;repo&lt;/distribution&gt;
          &lt;/license&gt;
          &lt;license&gt;
              &lt;!-- WeasisLauncher and AutoProcessor classes are derived from the Apache Felix launcher --&gt;
              &lt;name&gt;Apache 2&lt;/name&gt;
              &lt;url&gt;http://www.apache.org/licenses/LICENSE-2.0.txt&lt;/url&gt;
              &lt;distribution&gt;repo&lt;/distribution&gt;
          &lt;/license&gt;
      &lt;/licenses&gt;
      &lt;profiles&gt;
          &lt;profile&gt;
              &lt;id&gt;jarsign&lt;/id&gt;
              &lt;build&gt;
                  &lt;plugins&gt;
                      &lt;plugin&gt;
                          &lt;artifactId&gt;maven-jarsigner-plugin&lt;/artifactId&gt;
                          &lt;executions&gt;
                              &lt;execution&gt;
                                  &lt;goals&gt;
                                      &lt;goal&gt;sign&lt;/goal&gt;
                                  &lt;/goals&gt;
                              &lt;/execution&gt;
                          &lt;/executions&gt;
                          &lt;configuration&gt;
                          &lt;/configuration&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/build&gt;
          &lt;/profile&gt;
      &lt;/profiles&gt;
      &lt;!-- Dependencies below are provided for debugging Weasis from IDE (by launching WeasisLauncher) --&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;org.apache.felix.framework&lt;/artifactId&gt;
              &lt;version&gt;4.2.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;org.apache.felix.scr&lt;/artifactId&gt;
              &lt;version&gt;1.6.2&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;org.apache.felix.metatype&lt;/artifactId&gt;
              &lt;version&gt;1.0.6&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;org.apache.felix.prefs&lt;/artifactId&gt;
              &lt;version&gt;1.0.4&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.weasis.thirdparty.javax.jnlp&lt;/groupId&gt;
              &lt;artifactId&gt;javaws&lt;/artifactId&gt;
              &lt;version&gt;1.6.0-17&lt;/version&gt;
              &lt;type&gt;jar&lt;/type&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;org.apache.felix.bundlerepository&lt;/artifactId&gt;
              &lt;version&gt;1.6.6&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;org.apache.felix.configadmin&lt;/artifactId&gt;
              &lt;version&gt;1.6.0&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
              &lt;artifactId&gt;org.apache.felix.gogo.command&lt;/artifactId&gt;
              &lt;version&gt;0.12.0&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.weasis.thirdparty.com.sun.media&lt;/groupId&gt;
              &lt;artifactId&gt;jai-lib-linux-x86&lt;/artifactId&gt;
              &lt;version&gt;1.1.4-b03&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.weasis.thirdparty.com.sun.media&lt;/groupId&gt;
              &lt;artifactId&gt;jai-lib-linux-x86-64&lt;/artifactId&gt;
              &lt;version&gt;1.1.4-b03&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.weasis.thirdparty.com.sun.media&lt;/groupId&gt;
              &lt;artifactId&gt;jai-lib-windows-x86&lt;/artifactId&gt;
              &lt;version&gt;1.1.4-b03&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.weasis.thirdparty.com.sun.media&lt;/groupId&gt;
              &lt;artifactId&gt;vecmath&lt;/artifactId&gt;
              &lt;version&gt;1.5.2&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.weasis.thirdparty&lt;/groupId&gt;
              &lt;artifactId&gt;tilecachetool&lt;/artifactId&gt;
              &lt;version&gt;1.0.2&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.weasis.thirdparty&lt;/groupId&gt;
              &lt;artifactId&gt;substance&lt;/artifactId&gt;
              &lt;version&gt;7.2.1&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>