updated context properly
authorblk <blk@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 25 Jun 2002 23:44:48 +0000 (23:44 +0000)
committerblk <blk@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 25 Jun 2002 23:44:48 +0000 (23:44 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@197 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/hs/HandleServlet.java

index 2635c75..aa28410 100644 (file)
@@ -115,12 +115,11 @@ public class HandleServlet extends HttpServlet {
            throw new ServletException( "Error in initialization: " +ex );
        }
 
-       sctx.setAttribute("HandleRepository", hrf);
-       
        if (hsSAML == null) {
            log.fatal("Error initializing SAML libraries: No Profile created." );
            throw new ServletException( "Error initializing SAML libraries: No Profile created." );
        }  
+
     }
 
 
@@ -286,6 +285,8 @@ public class HandleServlet extends HttpServlet {
            hrf = HandleRepositoryFactory.getInstance(                                                Constants.POLICY_CLUBSHIB, 
                                                                                                      repositoryType,
                                                                                                      this );
+           sctx.setAttribute("HandleRepository", hrf);
+           log.info("A new HandleRepository created by HS: "+hrf);
        }
        return hrf;
     }