jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r543804 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/servlet/JNDIBindingServlet.java
Date Sat, 02 Jun 2007 23:04:18 GMT
Author: jukka
Date: Sat Jun  2 16:04:17 2007
New Revision: 543804

URL: http://svn.apache.org/viewvc?view=rev&rev=543804
Log:
JCR-956: More informative exception and log messages.

Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/servlet/JNDIBindingServlet.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/servlet/JNDIBindingServlet.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/servlet/JNDIBindingServlet.java?view=diff&rev=543804&r1=543803&r2=543804
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/servlet/JNDIBindingServlet.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/servlet/JNDIBindingServlet.java
Sat Jun  2 16:04:17 2007
@@ -86,7 +86,8 @@
             context =  new InitialContext(environment);
             context.bind(location, new ServletRepository(this));
         } catch (NamingException e) {
-            throw new ServletException("Unable to bind repository in JNDI", e);
+            throw new ServletException(
+                    "Failed to bind repository to JNDI: " + location, e);
         }
     }
 
@@ -97,7 +98,7 @@
         try {
             context.unbind(location);
         } catch (NamingException e) {
-            log("Unable to unbind repository from JNDI", e);
+            log("Failed to unbind repository from JNDI: " + location, e);
         }
     }
 



Mime
View raw message