[fileinstall] make sure the LogService is available before using it

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@811284 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/Util.java b/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/Util.java
index ea90f44..688805d 100644
--- a/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/Util.java
+++ b/fileinstall/src/main/java/org/apache/felix/fileinstall/internal/Util.java
@@ -222,6 +222,15 @@
         OsgiLogger(BundleContext context)
         {
             this.context = context;
+            // Now make sure we can access the LogService class
+            try
+            {
+                getClass().getClassLoader().loadClass(LogService.class.getName());
+            }
+            catch (ClassNotFoundException e)
+            {
+                throw new NoClassDefFoundError(e.getMessage());
+            }
         }
 
         public void log(boolean debug, String message, Throwable throwable)