From 992473a22ba0bee130a39e88643e5080a8a61276 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 26 Nov 2009 10:15:01 +0000 Subject: Try to avoid the current modification exceptions that hapen sometimes on shutdown. We don't need Jetty to have its own shutdown thread as the Tuscany code should always being shutting down the jetty server git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@884485 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/tuscany/sca/http/jetty/JettyServer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sca-java-2.x/trunk/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyServer.java b/sca-java-2.x/trunk/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyServer.java index b966e38a29..e746767338 100644 --- a/sca-java-2.x/trunk/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyServer.java +++ b/sca-java-2.x/trunk/modules/host-jetty/src/main/java/org/apache/tuscany/sca/http/jetty/JettyServer.java @@ -123,6 +123,8 @@ public class JettyServer implements ServletHost, LifeCycleListener { keyStoreType = System.getProperty("javax.net.ssl.keyStoreType", KeyStore.getDefaultType()); trustStoreType = System.getProperty("javax.net.ssl.trustStoreType", KeyStore.getDefaultType()); + + System.setProperty("JETTY_NO_SHUTDOWN_HOOK", "true"); return null; } }); -- cgit v1.2.3