From dd0253048e2522fc5187f7f19bdb47061750bca4 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Wed, 11 Jun 2014 17:14:55 -0500 Subject: [PATCH] SEC-2650: Fix Jetty Warn NoInitialContextException on shutdown --- samples/cas/server/casserver.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/cas/server/casserver.gradle b/samples/cas/server/casserver.gradle index d3d98dc825..84f62ecdf5 100644 --- a/samples/cas/server/casserver.gradle +++ b/samples/cas/server/casserver.gradle @@ -57,5 +57,7 @@ task casServer (type: org.gradle.api.plugins.jetty.JettyRunWar, dependsOn: 'casS doFirst() { System.setProperty('javax.net.ssl.trustStore', keystore) System.setProperty('javax.net.ssl.trustStorePassword', password) + System.setProperty('java.naming.factory.url.pkgs','org.mortbay.naming') + System.setProperty('java.naming.factory.initial','org.mortbay.naming.InitialContextFactory') } }