mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
Minor fixes
This commit is contained in:
committed by
Emmanuel Bernard
parent
969cd5eb23
commit
4b004279a4
@@ -70,7 +70,7 @@ public class RequestContext implements AlterableContext {
|
||||
try {
|
||||
instance.destroy();
|
||||
} catch (Exception e) {
|
||||
throw new IllegalStateException("Unable to destroy instance" + instance.get());
|
||||
throw new IllegalStateException("Unable to destroy instance" + instance.get(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ import org.jboss.shamrock.runtime.StartupContext;
|
||||
import io.undertow.Undertow;
|
||||
import io.undertow.server.HttpHandler;
|
||||
import io.undertow.server.HttpServerExchange;
|
||||
import io.undertow.server.handlers.CanonicalPathHandler;
|
||||
import io.undertow.server.handlers.resource.ClassPathResourceManager;
|
||||
import io.undertow.servlet.Servlets;
|
||||
import io.undertow.servlet.api.DeploymentInfo;
|
||||
@@ -122,7 +123,7 @@ public class UndertowDeploymentTemplate {
|
||||
if (undertow == null) {
|
||||
undertow = Undertow.builder()
|
||||
.addHttpListener(Integer.parseInt(port), "localhost")
|
||||
.setHandler(ROOT_HANDLER)
|
||||
.setHandler(new CanonicalPathHandler(ROOT_HANDLER))
|
||||
.build();
|
||||
undertow.start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user