diff --git a/pom.xml b/pom.xml index cca682a..bae705f 100644 --- a/pom.xml +++ b/pom.xml @@ -26,10 +26,10 @@ ${project.basedir}/src/main/webapp/WEB-INF - 2.20.2 + 2.21.13 2.8.11 1.7.4 - 2.5.0 + 2.6.0 ${project.basedir}/distro REST web service for Jackrabbit @@ -48,12 +48,6 @@ pom import - - org.apache.tika - tika-parsers - 2.5.0 - pom - org.aspectj aspectjrt @@ -165,11 +159,11 @@ jackrabbit-core ${jackrabbit.version} - + com.fasterxml.jackson.core @@ -194,12 +188,17 @@ org.apache.tika tika-core - 2.5.0 + ${tika.version} + + + org.apache.tika + tika-parsers-standard-package + ${tika.version} org.apache.tika tika-parser-microsoft-module - 2.5.0 + ${tika.version} diff --git a/src/main/java/org/gcube/data/access/storagehub/RepositoryInitializerImpl.java b/src/main/java/org/gcube/data/access/storagehub/RepositoryInitializerImpl.java index 82a7c63..776ce4d 100644 --- a/src/main/java/org/gcube/data/access/storagehub/RepositoryInitializerImpl.java +++ b/src/main/java/org/gcube/data/access/storagehub/RepositoryInitializerImpl.java @@ -37,8 +37,9 @@ public class RepositoryInitializerImpl implements RepositoryInitializer{ InitialContext context = new InitialContext(); Context environment = (Context) context.lookup("java:comp/env"); repository = (Repository) environment.lookup("jcr/repository"); - }catch (Exception e) { - new RuntimeException("error initializing repository",e); + }catch (Throwable e) { + log.error("error initializing repository", e); + throw new RuntimeException("error initializing repository",e); } } diff --git a/src/main/java/org/gcube/data/access/storagehub/handlers/plugins/StorageBackendHandler.java b/src/main/java/org/gcube/data/access/storagehub/handlers/plugins/StorageBackendHandler.java index 91d41b8..2387c4b 100644 --- a/src/main/java/org/gcube/data/access/storagehub/handlers/plugins/StorageBackendHandler.java +++ b/src/main/java/org/gcube/data/access/storagehub/handlers/plugins/StorageBackendHandler.java @@ -38,7 +38,6 @@ public class StorageBackendHandler { throw new RuntimeException("multiple storage backend with the same name"); } storagebackendMap.put(connector.getName(), connector); - } else throw new RuntimeException("storage backend implementation not found");