If I set org.knopflerfish.framework.bundlestorage.file.unpack=false when starting knopflerfish, bundles with a classpath entry that starts with / (like /nanoxml-2.2.1.jar in kf_metatype_all-1.0.0.jar) don't load becuase the jar file can't be found. I get the following exception when installing kf_metatype_all-1.1.1.jar:
Couldn't install/start bundle: file:jars/kf_metatype_all-1.0.0.jar (due to: java
.io.IOException: No such JAR componenet: /nanoxml-2.2.1.jar)
java.io.IOException: No such JAR componenet: /nanoxml-2.2.1.jar
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at org.knopflerfish.framework.bundlestorage.file.Archive.<init>(Archive.java:272)
at org.knopflerfish.framework.bundlestorage.file.Archive.getSubArchive(Archive.java:459)
at org.knopflerfish.framework.bundlestorage.file.BundleArchiveImpl.setClassPath(BundleArchiveImpl.java:495)
at org.knopflerfish.framework.bundlestorage.file.BundleArchiveImpl.<init>(BundleArchiveImpl.java:125)
at org.knopflerfish.framework.bundlestorage.file.BundleStorageImpl.insertBundleJar(BundleStorageImpl.java:132)
at org.knopflerfish.framework.Bundles$1.run(Bundles.java:97)
at java.security.AccessController.doPrivileged(AccessController.java:189)
at org.knopflerfish.framework.Bundles.install(Bundles.java:87)
at org.knopflerfish.framework.BundleContextImpl.installBundle(BundleContextImpl.java:95)
at org.knopflerfish.bundle.frameworkcommands.FrameworkCommandGroup.cmdInstall(FrameworkCommandGroup.java:596)
at java.lang.reflect.AccessibleObject.invokeImpl(Native Method)
at java.lang.reflect.AccessibleObject.invokeI(AccessibleObject.java:215)
at java.lang.reflect.Method.invoke(Method.java:263)
at org.knopflerfish.service.console.CommandGroupAdapter.execute(CommandGroupAdapter.java:234)
at org.knopflerfish.bundle.console.Command$2.run(Command.java:205)
at java.security.AccessController.doPrivileged(AccessController.java:147)
at org.knopflerfish.bundle.console.Command.run(Command.java:192)
at java.lang.Thread.run(Thread.java:791)
Is this a problem with the file archive or the kf_metatype bundle?
Thanks,
Nathan Klemperer
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I set org.knopflerfish.framework.bundlestorage.file.unpack=false when starting knopflerfish, bundles with a classpath entry that starts with / (like /nanoxml-2.2.1.jar in kf_metatype_all-1.0.0.jar) don't load becuase the jar file can't be found. I get the following exception when installing kf_metatype_all-1.1.1.jar:
Couldn't install/start bundle: file:jars/kf_metatype_all-1.0.0.jar (due to: java
.io.IOException: No such JAR componenet: /nanoxml-2.2.1.jar)
java.io.IOException: No such JAR componenet: /nanoxml-2.2.1.jar
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at org.knopflerfish.framework.bundlestorage.file.Archive.<init>(Archive.java:272)
at org.knopflerfish.framework.bundlestorage.file.Archive.getSubArchive(Archive.java:459)
at org.knopflerfish.framework.bundlestorage.file.BundleArchiveImpl.setClassPath(BundleArchiveImpl.java:495)
at org.knopflerfish.framework.bundlestorage.file.BundleArchiveImpl.<init>(BundleArchiveImpl.java:125)
at org.knopflerfish.framework.bundlestorage.file.BundleStorageImpl.insertBundleJar(BundleStorageImpl.java:132)
at org.knopflerfish.framework.Bundles$1.run(Bundles.java:97)
at java.security.AccessController.doPrivileged(AccessController.java:189)
at org.knopflerfish.framework.Bundles.install(Bundles.java:87)
at org.knopflerfish.framework.BundleContextImpl.installBundle(BundleContextImpl.java:95)
at org.knopflerfish.bundle.frameworkcommands.FrameworkCommandGroup.cmdInstall(FrameworkCommandGroup.java:596)
at java.lang.reflect.AccessibleObject.invokeImpl(Native Method)
at java.lang.reflect.AccessibleObject.invokeI(AccessibleObject.java:215)
at java.lang.reflect.Method.invoke(Method.java:263)
at org.knopflerfish.service.console.CommandGroupAdapter.execute(CommandGroupAdapter.java:234)
at org.knopflerfish.bundle.console.Command$2.run(Command.java:205)
at java.security.AccessController.doPrivileged(AccessController.java:147)
at org.knopflerfish.bundle.console.Command.run(Command.java:192)
at java.lang.Thread.run(Thread.java:791)
Is this a problem with the file archive or the kf_metatype bundle?
Thanks,
Nathan Klemperer