You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by km...@apache.org on 2013/09/18 15:28:11 UTC

git commit: Yet more temporary debugging to resolve build env issue.

Updated Branches:
  refs/heads/master 86c136a9e -> e20669679


Yet more temporary debugging to resolve build env issue.


Project: http://git-wip-us.apache.org/repos/asf/incubator-knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-knox/commit/e2066967
Tree: http://git-wip-us.apache.org/repos/asf/incubator-knox/tree/e2066967
Diff: http://git-wip-us.apache.org/repos/asf/incubator-knox/diff/e2066967

Branch: refs/heads/master
Commit: e2066967974f5562b264200364e219ff0d390a03
Parents: 86c136a
Author: Kevin Minder <ke...@hortonworks.com>
Authored: Wed Sep 18 09:28:06 2013 -0400
Committer: Kevin Minder <ke...@hortonworks.com>
Committed: Wed Sep 18 09:28:06 2013 -0400

----------------------------------------------------------------------
 .../java/org/apache/hadoop/gateway/deploy/DeploymentFactory.java | 3 +++
 .../gateway/services/security/impl/DefaultKeystoreService.java   | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/e2066967/gateway-server/src/main/java/org/apache/hadoop/gateway/deploy/DeploymentFactory.java
----------------------------------------------------------------------
diff --git a/gateway-server/src/main/java/org/apache/hadoop/gateway/deploy/DeploymentFactory.java b/gateway-server/src/main/java/org/apache/hadoop/gateway/deploy/DeploymentFactory.java
index 94a7ba3..d5fc51c 100644
--- a/gateway-server/src/main/java/org/apache/hadoop/gateway/deploy/DeploymentFactory.java
+++ b/gateway-server/src/main/java/org/apache/hadoop/gateway/deploy/DeploymentFactory.java
@@ -175,7 +175,10 @@ public abstract class DeploymentFactory {
     wad.createServlet().servletName( servletName ).servletClass( servletClass );
     wad.createServletMapping().servletName( servletName ).urlPattern( "/*" );
     if (gatewayServices != null) {
+System.out.println( "SERVICES ARE AVAILABLE TO DEPLOYMENT FACTORY" ); //DEBUG
       gatewayServices.initializeContribution(context);
+    } else {
+System.out.println( "NO SERVICES AVAILABLE TO DEPLOYMENT FACTORY" ); //DEBUG
     }
     for( String role : providers.keySet() ) {
       for( ProviderDeploymentContributor contributor : providers.get( role ) ) {

http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/e2066967/gateway-server/src/main/java/org/apache/hadoop/gateway/services/security/impl/DefaultKeystoreService.java
----------------------------------------------------------------------
diff --git a/gateway-server/src/main/java/org/apache/hadoop/gateway/services/security/impl/DefaultKeystoreService.java b/gateway-server/src/main/java/org/apache/hadoop/gateway/services/security/impl/DefaultKeystoreService.java
index a8aba9e..a10973e 100644
--- a/gateway-server/src/main/java/org/apache/hadoop/gateway/services/security/impl/DefaultKeystoreService.java
+++ b/gateway-server/src/main/java/org/apache/hadoop/gateway/services/security/impl/DefaultKeystoreService.java
@@ -54,9 +54,11 @@ public class DefaultKeystoreService extends BaseKeystoreService implements Keyst
     File ksd = new File(this.keyStoreDir);
     if (!ksd.exists()) {
       if( !ksd.mkdirs() ) {
-        throw new ServiceLifecycleException( "FAILED TO CREATE DIR " + ksd ); //DEBUG
+System.out.println( "FAILED TO CREATE KEYSTORE DIRECTORY " + ksd.getAbsolutePath() ); //DEBUG
+        throw new ServiceLifecycleException( "FAILED TO CREATE KEYSTORE DIRECTORY " + ksd ); //DEBUG
       }
     }
+System.out.println( "USING KEYSTORE DIRECTORY " + ksd.getAbsolutePath() ); //DEBUG
   }
 
   @Override