[
https://issues.apache.org/jira/browse/KARAF-2635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
metatech updated KARAF-2635:
----------------------------
Description:
The bundles copied into the "deploy" directory are deployed in Karaf using the
"Felix File Install". By default, this component is configured to log only
errors, and not warnings. Some warnings prevent the bundle from being started,
and the cause of the problem is not logged anywhere in the logs. Please
increase the default log level by adding the property
{code}
felix.fileinstall.log.level=2
{code}
in file
{code}
org.apache.felix.fileinstall-deploy.cfg
{code}
Thanks.
Below is an example of "warning" which prevents the bundle from being deployed :
{code}
2013-12-18 13:40:57,975 | WARN | ervicemix/deploy | | fileinstall
| Failed to install artifact:
C:\smx\servicemix\deploy\my-service-1.0.jar
org.osgi.framework.BundleException: Duplicate import: org.apache.camel.impl
at
org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeImportClauses(ManifestParser.java:318)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:145)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.framework.ModuleImpl.<init>(ModuleImpl.java:243)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.framework.BundleImpl.createModule(BundleImpl.java:1153)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:79)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.framework.Felix.installBundle(Felix.java:2535)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.framework.Felix.installBundle(Felix.java:2443)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:129)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.installOrUpdateBundle(DirectoryWatcher.java:984)[7:org.apache.felix.fileinstall:3.1.10]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:898)[7:org.apache.felix.fileinstall:3.1.10]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:811)[7:org.apache.felix.fileinstall:3.1.10]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:449)[7:org.apache.felix.fileinstall:3.1.10]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:266)[7:org.apache.felix.fileinstall:3.1.10]
{code}
was:
The bundles copied from the "deploy" directory are deployed in Karaf using the
"Felix File Install". By default, this component is configured to log only
errors, and not warnings. Some warnings prevent the bundle from being started,
and the cause of the problem is not logged anywhere in the logs. Please
increase the default log level by adding the property
{code}
felix.fileinstall.log.level=2
{code}
in file
{code}
org.apache.felix.fileinstall-deploy.cfg
{code}
Thanks.
Below is an example of "warning" which prevents the bundle from being deployed :
{code}
2013-12-18 13:40:57,975 | WARN | ervicemix/deploy | | fileinstall
| Failed to install artifact:
C:\smx\servicemix\deploy\my-service-1.0.jar
org.osgi.framework.BundleException: Duplicate import: org.apache.camel.impl
at
org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeImportClauses(ManifestParser.java:318)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:145)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.framework.ModuleImpl.<init>(ModuleImpl.java:243)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.framework.BundleImpl.createModule(BundleImpl.java:1153)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:79)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.framework.Felix.installBundle(Felix.java:2535)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.framework.Felix.installBundle(Felix.java:2443)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:129)[org.apache.felix.framework-3.0.9.jar:]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.installOrUpdateBundle(DirectoryWatcher.java:984)[7:org.apache.felix.fileinstall:3.1.10]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:898)[7:org.apache.felix.fileinstall:3.1.10]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:811)[7:org.apache.felix.fileinstall:3.1.10]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:449)[7:org.apache.felix.fileinstall:3.1.10]
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:266)[7:org.apache.felix.fileinstall:3.1.10]
{code}
> Deployment errors/warnings for bundles within "deploy" directory should be
> logged
> ---------------------------------------------------------------------------------
>
> Key: KARAF-2635
> URL: https://issues.apache.org/jira/browse/KARAF-2635
> Project: Karaf
> Issue Type: Bug
> Components: karaf-config
> Affects Versions: 2.2.4
> Environment: ServiceMix 4.4.2
> Reporter: metatech
>
> The bundles copied into the "deploy" directory are deployed in Karaf using
> the "Felix File Install". By default, this component is configured to log
> only errors, and not warnings. Some warnings prevent the bundle from being
> started, and the cause of the problem is not logged anywhere in the logs.
> Please increase the default log level by adding the property
> {code}
> felix.fileinstall.log.level=2
> {code}
> in file
> {code}
> org.apache.felix.fileinstall-deploy.cfg
> {code}
> Thanks.
> Below is an example of "warning" which prevents the bundle from being
> deployed :
> {code}
> 2013-12-18 13:40:57,975 | WARN | ervicemix/deploy | | fileinstall
> | Failed to install artifact:
> C:\smx\servicemix\deploy\my-service-1.0.jar
> org.osgi.framework.BundleException: Duplicate import: org.apache.camel.impl
> at
> org.apache.felix.framework.util.manifestparser.ManifestParser.normalizeImportClauses(ManifestParser.java:318)[org.apache.felix.framework-3.0.9.jar:]
> at
> org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:145)[org.apache.felix.framework-3.0.9.jar:]
> at
> org.apache.felix.framework.ModuleImpl.<init>(ModuleImpl.java:243)[org.apache.felix.framework-3.0.9.jar:]
> at
> org.apache.felix.framework.BundleImpl.createModule(BundleImpl.java:1153)[org.apache.felix.framework-3.0.9.jar:]
> at
> org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:79)[org.apache.felix.framework-3.0.9.jar:]
> at
> org.apache.felix.framework.Felix.installBundle(Felix.java:2535)[org.apache.felix.framework-3.0.9.jar:]
> at
> org.apache.felix.framework.Felix.installBundle(Felix.java:2443)[org.apache.felix.framework-3.0.9.jar:]
> at
> org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:129)[org.apache.felix.framework-3.0.9.jar:]
> at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.installOrUpdateBundle(DirectoryWatcher.java:984)[7:org.apache.felix.fileinstall:3.1.10]
> at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:898)[7:org.apache.felix.fileinstall:3.1.10]
> at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.install(DirectoryWatcher.java:811)[7:org.apache.felix.fileinstall:3.1.10]
> at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:449)[7:org.apache.felix.fileinstall:3.1.10]
> at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:266)[7:org.apache.felix.fileinstall:3.1.10]
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)