Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2635

Deployment errors/warnings for bundles within "deploy" directory should be logged

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.4
    • 2.2.12, 2.4.0, 3.0.1, 2.3.4
    • karaf
    • None
    • ServiceMix 4.4.2

    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

      felix.fileinstall.log.level=2
      

      in file

      org.apache.felix.fileinstall-deploy.cfg
      

      Thanks.

      Below is an example of "warning" which prevents the bundle from being deployed :

      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]
      

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            metatech metatech
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: