diff --git a/pom.xml b/pom.xml index e4ed6f96..89bc50fe 100644 --- a/pom.xml +++ b/pom.xml @@ -710,17 +710,17 @@ - + org.glassfish.jersey.containers - jersey-container-servlet + jersey-container-servlet-core 2.27 diff --git a/src/main/java/com/scienceminer/nerd/kb/db/WikipediaDomainMap.java b/src/main/java/com/scienceminer/nerd/kb/db/WikipediaDomainMap.java index d4cac085..c549a731 100644 --- a/src/main/java/com/scienceminer/nerd/kb/db/WikipediaDomainMap.java +++ b/src/main/java/com/scienceminer/nerd/kb/db/WikipediaDomainMap.java @@ -237,7 +237,7 @@ private Map> readMapping(String mappingFilePath) throws I LOGGER.warn(category + " is not a category found in Wikipedia."); else { categoryId = theCategory.getId(); - if (domains.get(new Integer(categoryId)) != null) { + if (domains.get(categoryId) != null) { LOGGER.warn(category + " is already defined in " + mappingFilePath); } } diff --git a/src/main/java/com/scienceminer/nerd/kb/model/Page.java b/src/main/java/com/scienceminer/nerd/kb/model/Page.java index 87e6db81..c3238aa0 100755 --- a/src/main/java/com/scienceminer/nerd/kb/model/Page.java +++ b/src/main/java/com/scienceminer/nerd/kb/model/Page.java @@ -1,6 +1,5 @@ package com.scienceminer.nerd.kb.model; -import com.scienceminer.nerd.exceptions.ResourceNotFound; import com.scienceminer.nerd.kb.db.KBLowerEnvironment; import com.scienceminer.nerd.kb.model.hadoop.DbPage; diff --git a/src/main/java/com/scienceminer/nerd/service/NerdRestProcessQuery.java b/src/main/java/com/scienceminer/nerd/service/NerdRestProcessQuery.java index 75f370d0..13575017 100644 --- a/src/main/java/com/scienceminer/nerd/service/NerdRestProcessQuery.java +++ b/src/main/java/com/scienceminer/nerd/service/NerdRestProcessQuery.java @@ -168,7 +168,7 @@ public String processQueryText(NerdQuery nerdQuery) { long end = System.currentTimeMillis(); nerdQuery.setRuntime(end - start); - System.out.println("runtime: " + (end - start)); + LOGGER.info("runtime: " + (end - start)); Collections.sort(nerdQuery.getEntities()); LOGGER.debug(methodLogOut()); diff --git a/src/main/resources/log4j-jetty.xml b/src/main/resources/log4j-jetty.xml index 19febdc2..2b573058 100644 --- a/src/main/resources/log4j-jetty.xml +++ b/src/main/resources/log4j-jetty.xml @@ -8,7 +8,8 @@ - + +