jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r727388 - /jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/remote/RMIRemoteBindingServlet.java
Date Wed, 17 Dec 2008 14:23:33 GMT
Author: jukka
Date: Wed Dec 17 06:23:32 2008
New Revision: 727388

URL: http://svn.apache.org/viewvc?rev=727388&view=rev
Log:
JCR-1910: RMIRemoteBindingServlet fails to initialize if the RMI registry is not available

Just log a warning instead of failing with an exception when the repository can't be bound
to the RMI registry.

Modified:
    jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/remote/RMIRemoteBindingServlet.java

Modified: jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/remote/RMIRemoteBindingServlet.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/remote/RMIRemoteBindingServlet.java?rev=727388&r1=727387&r2=727388&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/remote/RMIRemoteBindingServlet.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-servlet/src/main/java/org/apache/jackrabbit/servlet/remote/RMIRemoteBindingServlet.java
Wed Dec 17 06:23:32 2008
@@ -77,13 +77,11 @@
         try {
             Naming.bind(url, getRemoteRepository());
         } catch (MalformedURLException e) {
-            throw new ServletException("Invalid RMI URL: " + url, e);
+            log("Invalid RMI URL: " + url, e);
         } catch (AlreadyBoundException e) {
-            throw new ServletException(
-                    "RMI URL is already bound: " + url, e);
+            log("RMI URL is already bound: " + url, e);
         } catch (RemoteException e) {
-            throw new ServletException(
-                    "Failed to bind repository to RMI: " + url, e);
+            log("Failed to bind repository to RMI: " + url, e);
         }
     }
 



Mime
View raw message