added eduPerson init to HS
authorblk <blk@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 18 Jun 2002 20:38:42 +0000 (20:38 +0000)
committerblk <blk@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 18 Jun 2002 20:38:42 +0000 (20:38 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@146 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

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

index e3b84f9..e85f088 100644 (file)
@@ -24,6 +24,7 @@ public class HandleServlet extends HttpServlet {
        ServletContext sctx = sc.getServletContext();
 
        try {
+           edu.internet2.middleware.eduPerson.Init.init();
            InputStream is = sctx.getResourceAsStream
                (getInitParameter("KSpath"));
            hsSAML = new HandleServiceSAML( getInitParameter("domain"), 
@@ -46,12 +47,14 @@ public class HandleServlet extends HttpServlet {
        catch (java.security.KeyStoreException ex) {
            throw new ServletException( "Error initializing private KeyStore: " + ex );
        }
-       
+       catch (RuntimeException ex) {
+           throw new ServletException( "Error initializing eduPerson.Init: "+ ex); 
+       }
        catch (HandleException ex) {
            throw new ServletException( "Error initializing Handle Service: " +ex );
        }
        catch (Exception ex) {
-           throw new ServletException( "Error initializing private KeyStore: " +ex );
+           throw new ServletException( "Error in initialization: " +ex );
        }
 
        sctx.setAttribute("HandleRepository", hrf);