Browse Source

SEC-2650: Fix Jetty Warn NoInitialContextException on shutdown

Rob Winch 11 năm trước cách đây
mục cha
commit
a0ee80bc61
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      samples/cas/server/casserver.gradle

+ 2 - 0
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')
     }
 }