perfsonar-dev - [GEANT/SA2/ps-java-services] r5649 - trunk/perfsonar-java-xml-ls/src/main/java/org/perfsonar/service/lookupservice/servlets
Subject: perfsonar development work
List archive
[GEANT/SA2/ps-java-services] r5649 - trunk/perfsonar-java-xml-ls/src/main/java/org/perfsonar/service/lookupservice/servlets
Chronological Thread
- From:
- To:
- Subject: [GEANT/SA2/ps-java-services] r5649 - trunk/perfsonar-java-xml-ls/src/main/java/org/perfsonar/service/lookupservice/servlets
- Date: Mon, 17 May 2010 13:33:11 +0100
Author: psnc.trzaszczka
Date: 2010-05-17 13:33:11 +0100 (Mon, 17 May 2010)
New Revision: 5649
Modified:
trunk/perfsonar-java-xml-ls/src/main/java/org/perfsonar/service/lookupservice/servlets/ExistDbInitializerServlet.java
Log:
initalizing DB method changed - bug PSSERVICES-497
Modified:
trunk/perfsonar-java-xml-ls/src/main/java/org/perfsonar/service/lookupservice/servlets/ExistDbInitializerServlet.java
===================================================================
---
trunk/perfsonar-java-xml-ls/src/main/java/org/perfsonar/service/lookupservice/servlets/ExistDbInitializerServlet.java
2010-05-17 12:32:38 UTC (rev 5648)
+++
trunk/perfsonar-java-xml-ls/src/main/java/org/perfsonar/service/lookupservice/servlets/ExistDbInitializerServlet.java
2010-05-17 12:33:11 UTC (rev 5649)
@@ -7,6 +7,7 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
+import org.apache.log4j.Logger;
import org.exist.security.User;
import org.exist.xmldb.UserManagementService;
import org.exist.xmldb.XmldbURI;
@@ -27,6 +28,7 @@
@SuppressWarnings("serial")
public class ExistDbInitializerServlet extends ExistDBInitServlet {
+ private Logger
logger=Logger.getLogger(ExistDbInitializerServlet.class);
/**
*
@@ -116,23 +118,17 @@
@Override
protected void processRequest(HttpServletRequest req,
- HttpServletResponse resp) {
+ HttpServletResponse resp) throws PerfSONARException{
try {
PrintWriter out = resp.getWriter();
ConfigurationManager configManager;
configManager = ConfigurationManager.getInstance();
String dbContentDirPath =
getServletContext().getRealPath("/")+"/db";
- try {
initializeDatabase(dbContentDirPath,
configManager);
out.append("DbInitializer - success");
- } catch (PerfSONARException ex) {
- out.append(ex.getMessage());
- }
} catch (IOException e) {
- e.printStackTrace();
- } catch (PerfSONARException e) {
- e.printStackTrace();
+ logger.warn(e);
}
}
- [GEANT/SA2/ps-java-services] r5649 - trunk/perfsonar-java-xml-ls/src/main/java/org/perfsonar/service/lookupservice/servlets, svn-noreply, 05/17/2010
Archive powered by MHonArc 2.6.16.