diff --git a/source/de/anomic/soap/httpdSoapHandler.java b/source/de/anomic/soap/httpdSoapHandler.java index b5528c70c1..1fdb312417 100644 --- a/source/de/anomic/soap/httpdSoapHandler.java +++ b/source/de/anomic/soap/httpdSoapHandler.java @@ -137,7 +137,7 @@ public final class httpdSoapHandler extends httpdAbstractHandler implements http "" - + "" + + "" + "" + "" + "" @@ -198,8 +198,9 @@ public final class httpdSoapHandler extends httpdAbstractHandler implements http /** * Constructor of this class * @param theSwitchboard + * @throws Exception */ - public httpdSoapHandler(serverSwitch theSwitchboard) { + public httpdSoapHandler(serverSwitch theSwitchboard) throws Exception { super(); this.switchboard = theSwitchboard; @@ -231,25 +232,36 @@ public httpdSoapHandler(serverSwitch theSwitchboard) { if (additionalServices == null) synchronized (initSync) { deployAdditionalServices(); } } - private void deployDefaultServices() { - // create an Axis server - this.theLogger.logInfo("Init soap engine ..."); - engine = new AxisServer(); - - // setting some options ... - engine.setShouldSaveConfig(false); - - this.theLogger.logInfo("Deploying default services ..."); - for (int i=0; i < defaultServices.length; i++) { - String[] nextService = defaultServices[i].split("="); - this.theLogger.logInfo("Deploying service " + nextService[0] + ": " + nextService[1]); - String deploymentStr = serviceDeploymentString - .replaceAll("@serviceName@", nextService[0]) - .replaceAll("@className@", nextService[1]); + private void deployDefaultServices() throws Exception { + try { + // create an Axis server + this.theLogger.logInfo("Init soap engine ..."); + engine = new AxisServer(); - // deploy the service - deployService(deploymentStr,engine); - } + // setting some options ... + engine.setShouldSaveConfig(false); + + } catch (Exception e) { + this.theLogger.logSevere("Unable to initialize soap engine",e); + throw e; + } + + try { + this.theLogger.logInfo("Deploying default services ..."); + for (int i=0; i < defaultServices.length; i++) { + String[] nextService = defaultServices[i].split("="); + this.theLogger.logInfo("Deploying service " + nextService[0] + ": " + nextService[1]); + String deploymentStr = serviceDeploymentString + .replaceAll("@serviceName@", nextService[0]) + .replaceAll("@className@", nextService[1]); + + // deploy the service + deployService(deploymentStr,engine); + } + } catch (Exception e) { + this.theLogger.logSevere("Unable to deploy default soap services.",e); + throw e; + } } private void deployAdditionalServices() {