karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-2635) Deployment errors/warnings for bundles within "deploy" directory should be logged
Date Sun, 12 Jan 2014 20:39:02 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13869138#comment-13869138
] 

Jean-Baptiste Onofré commented on KARAF-2635:
---------------------------------------------

Fixed on karaf-2.x: https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commitdiff;h=9fbeb5a45c905dc8e20d7e30bf4fc92c70d5c880

> 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
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.12, 2.4.0, 3.0.1, 2.3.4
>
>
> 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.5#6160)

Mime
View raw message