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

Karaf Scripting examples from manual 5.2.8 doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.2.3
    • None
    • karaf

    Description

      Copy paste https://karaf.apache.org/manual/latest/#_examples second example to etc/scripts execute failed.

      karaf@root()> wait-for-command dev watch
      Error executing command: can't coerce [org.apache.felix.framework.BundleContextImpl@19bb07ed, (&(objectClass=org.apache.felix.service.command.Function)(osgi.command.scope=dev)(osgi.command.function=watch)), null] to any of [public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,org.osgi.framework.Filter,org.osgi.util.tracker.ServiceTrackerCustomizer), public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,java.lang.String,org.osgi.util.tracker.ServiceTrackerCustomizer), public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,org.osgi.framework.ServiceReference,org.osgi.util.tracker.ServiceTrackerCustomizer), public org.osgi.util.tracker.ServiceTracker(org.osgi.framework.BundleContext,java.lang.Class,org.osgi.util.tracker.ServiceTrackerCustomizer)]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            johnson.jedi Johnson Hsu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: