Updated Branches:
  refs/heads/develop 9589f1ca4 -> 5e5836886

Improved error log on ambiguous marmotta backends in the classpath


Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/6fa889c9
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/6fa889c9
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/6fa889c9

Branch: refs/heads/develop
Commit: 6fa889c9495fe61ee73aef1784c03c05d045cdbd
Parents: 9589f1c
Author: Jakob Frank <[email protected]>
Authored: Thu Feb 6 17:18:23 2014 +0100
Committer: Jakob Frank <[email protected]>
Committed: Thu Feb 6 17:18:23 2014 +0100

----------------------------------------------------------------------
 .../platform/core/services/triplestore/SesameServiceImpl.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/6fa889c9/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/triplestore/SesameServiceImpl.java
----------------------------------------------------------------------
diff --git 
a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/triplestore/SesameServiceImpl.java
 
b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/triplestore/SesameServiceImpl.java
index fb35c67..9b243d6 100644
--- 
a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/triplestore/SesameServiceImpl.java
+++ 
b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/triplestore/SesameServiceImpl.java
@@ -45,6 +45,7 @@ import javax.enterprise.event.Event;
 import javax.enterprise.inject.Instance;
 import javax.enterprise.inject.Produces;
 import javax.inject.Inject;
+import java.util.Iterator;
 
 /**
  * Offers access to the Sesame repository underlying this Apache Marmotta 
instance. The activation/deactivation methods
@@ -140,6 +141,10 @@ public class SesameServiceImpl implements SesameService {
 
             if(storeProviders.isAmbiguous()) {
                 log.error("more than one storage backend in classpath; please 
only select one storage backend");
+                Iterator<StoreProvider> it = storeProviders.iterator();
+                while (it.hasNext()) {
+                    log.error("  - {}", it.next().getName());
+                }
                 return;
             }
             if(storeProviders.isUnsatisfied()) {

Reply via email to