Remove JSON dependency from log sample and other users that don't use json


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@8970 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java b/user/src/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java
index 2835ac2..d3c1904 100644
--- a/user/src/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java
+++ b/user/src/com/google/gwt/logging/server/RemoteLoggingServiceUtil.java
@@ -16,8 +16,6 @@
 
 package com.google.gwt.logging.server;
 
-import org.json.JSONException;
-
 import java.util.logging.LogRecord;
 import java.util.logging.Logger;
 
@@ -71,7 +69,9 @@
       lr = JsonLogRecordServerUtil.logRecordFromJson(
           serializedLogRecordJson);
       logOnServer(lr, strongName, deobfuscator, loggerNameOverride);
-    } catch (JSONException e) {
+    } catch (Exception e) {
+      // We don't want to import the JsonException, which will require the json
+      // jar when this class loads, so we just catch all exceptions here
       throw new RemoteLoggingException("Failed to deserialize JSON", e);
     }
   }