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;
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);
}
}
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) {