jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1374929 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java
Date Mon, 20 Aug 2012 07:39:24 GMT
Author: mduerig
Date: Mon Aug 20 07:39:24 2012
New Revision: 1374929

URL: http://svn.apache.org/viewvc?rev=1374929&view=rev
Log:
OAK-256: JAAS Authentication failing in OSGi env due to classloading issue
 don't swallow original stack trace

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java?rev=1374929&r1=1374928&r2=1374929&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/RepositoryImpl.java
Mon Aug 20 07:39:24 2012
@@ -18,8 +18,6 @@ package org.apache.jackrabbit.oak.jcr;
 
 import java.util.concurrent.Executors;
 import java.util.concurrent.ScheduledExecutorService;
-import java.util.concurrent.ScheduledThreadPoolExecutor;
-import java.util.concurrent.TimeUnit;
 
 import javax.jcr.Credentials;
 import javax.jcr.Repository;
@@ -136,7 +134,7 @@ public class RepositoryImpl implements R
             ContentSession contentSession = contentRepository.login(credentials, workspaceName);
             return new SessionDelegate(this, executor, contentSession, false).getSession();
         } catch (LoginException e) {
-            throw new javax.jcr.LoginException(e.getMessage());
+            throw new javax.jcr.LoginException(e.getMessage(), e);
         }
     }
 



Mime
View raw message