Fixes for karaf 4.2.1 CLI annotations for events app

Change-Id: Ifb78566498855cf0301c7568310646e67cc9e44a
diff --git a/apps/events/BUILD b/apps/events/BUILD
index d5d9ebf..52b97c7 100644
--- a/apps/events/BUILD
+++ b/apps/events/BUILD
@@ -1,6 +1,7 @@
 COMPILE_DEPS = CORE_DEPS + JACKSON + CLI
 
 osgi_jar_with_tests(
+    karaf_command_packages = ["org.onosproject.events"],
     resources = glob(["src/main/resources/**"]),
     resources_root = "src/main/resources",
     deps = COMPILE_DEPS,
diff --git a/apps/events/src/main/java/org/onosproject/events/EventHistoryManager.java b/apps/events/src/main/java/org/onosproject/events/EventHistoryManager.java
index 549b358..490e585 100644
--- a/apps/events/src/main/java/org/onosproject/events/EventHistoryManager.java
+++ b/apps/events/src/main/java/org/onosproject/events/EventHistoryManager.java
@@ -51,7 +51,7 @@
 /**
  * Application to store history of instance local ONOS Events.
  */
-@Component(immediate = true, service = EventHistoryManager.class)
+@Component(immediate = true, service = EventHistoryService.class)
 public class EventHistoryManager
     implements EventHistoryService {