[
https://issues.apache.org/jira/browse/FELIX-3459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet resolved FELIX-3459.
------------------------------------
Resolution: Not A Problem
Assignee: Guillaume Nodet
I've tested with 3.3.x and I have the following in my log:
2012-06-11 17:41:03,654 | ERROR | -SNAPSHOT/deploy | fileinstall
| 6 - org.apache.felix.fileinstall - 3.3.0.SNAPSHOT | Failed to install
artifact:
/Users/gnodet/work/git/karaf/assemblies/apache-karaf/target/apache-karaf-2.2.5-fuse-SNAPSHOT/deploy/test2
org.osgi.framework.BundleException: Duplicate import: org.osgi.framework
at
org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeImportClauses(ManifestParser.java:342)[org.apache.felix.framework-4.1.0-fuse-SNAPSHOT.jar:]
at
org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:163)[org.apache.felix.framework-4.1.0-fuse-SNAPSHOT.jar:]
at
org.apache.felix.framework.BundleRevisionImpl.<init>(BundleRevisionImpl.java:114)[org.apache.felix.framework-4.1.0-fuse-SNAPSHOT.jar:]
at
org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1199)[org.apache.felix.framework-4.1.0-fuse-SNAPSHOT.jar:]
at
org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:95)[org.apache.felix.framework-4.1.0-fuse-SNAPSHOT.jar:]
at
org.apache.felix.framework.Felix.installBundle(Felix.java:2862)[org.apache.felix.framework-4.1.0-fuse-SNAPSHOT.jar:]
at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)[org.apache.felix.framework-4.1.0-fuse-SNAPSHOT.jar:]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.installOrUpdateBundle(DirectoryWatcher.java:1031)[6:org.apache.felix.fileinstall:3.3.0.SNAPSHOT]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:945)[6:org.apache.felix.fileinstall:3.3.0.SNAPSHOT]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:858)[6:org.apache.felix.fileinstall:3.3.0.SNAPSHOT]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:483)[6:org.apache.felix.fileinstall:3.3.0.SNAPSHOT]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)[6:org.apache.felix.fileinstall:3.3.0.SNAPSHOT]
FileInstall uses the OSGi Logging Service to log errors, so you need to have it
installed and wired.
> Loading of bundle with duplicate import fails silently
> ------------------------------------------------------
>
> Key: FELIX-3459
> URL: https://issues.apache.org/jira/browse/FELIX-3459
> Project: Felix
> Issue Type: Bug
> Components: File Install
> Affects Versions: fileinstall-3.1.10
> Environment: Felix 4.0.2
> Reporter: Basil Brunner
> Assignee: Guillaume Nodet
>
> Loading a bundle with an invalid Import-Package definition (in my case,
> org.slf4j was imported twice) fails silently. No error message is displayed
> and the bundle doesn't show up in the bundle list.
> Installing the same bundle with the felix:install command displays an error
> message ("duplicate import"). It would be helpful if the same error message
> is displayed while loading the bundle with the file install bundle.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira