X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=server%2Fruntime%2Forg.argeo.server.ads%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fserver%2Fads%2FAdsContainer.java;h=eab158618d0adc99a02caa360659fccdd04d67b1;hb=cdfd09387221a87b3a36f54fd3d5e8a6f4279baf;hp=febc3630318bcb9b40500a71fd16153138afecf5;hpb=3726464fdf85bf773fa1cd4a3510f90d566808bf;p=lgpl%2Fargeo-commons.git diff --git a/server/runtime/org.argeo.server.ads/src/main/java/org/argeo/server/ads/AdsContainer.java b/server/runtime/org.argeo.server.ads/src/main/java/org/argeo/server/ads/AdsContainer.java index febc36303..eab158618 100644 --- a/server/runtime/org.argeo.server.ads/src/main/java/org/argeo/server/ads/AdsContainer.java +++ b/server/runtime/org.argeo.server.ads/src/main/java/org/argeo/server/ads/AdsContainer.java @@ -19,6 +19,7 @@ import org.apache.commons.logging.LogFactory; import org.apache.directory.server.configuration.MutableServerStartupConfiguration; import org.apache.directory.server.core.configuration.ShutdownConfiguration; import org.apache.directory.server.jndi.ServerContextFactory; +import org.argeo.ArgeoException; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.InitializingBean; import org.springframework.core.io.Resource; @@ -87,8 +88,8 @@ public class AdsContainer implements InitializingBean, DisposableBean { try { new InitialDirContext(env); } catch (NamingException e) { - throw new RuntimeException( - "Failed to start Apache Directory server", e); + throw new ArgeoException("Failed to start Apache Directory server", + e); } } @@ -110,8 +111,8 @@ public class AdsContainer implements InitializingBean, DisposableBean { try { new InitialContext(env); } catch (NamingException e) { - throw new RuntimeException( - "Failed to stop Apache Directory server", e); + throw new ArgeoException("Failed to stop Apache Directory server", + e); } if (workingDirectory.exists() && deleteWorkingDirOnExit) {