users@glassfish.java.net

Re: GF3 TP2: java.security.NoSuchAlgorithmException "DESede"

From: <glassfish_at_javadesktop.org>
Date: Mon, 19 May 2008 05:22:03 PDT

Hi,

  No extra jars are really required for this. Unfortunately i am unable to reproduce the problem that you are using. I tried JDK 1.5.0_06 and JDK1.6.0-b105 and with both of them my Servlet Executed Fine. Here is my Servlet code...

---------------------------
 protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        try {
            javax.crypto.SecretKeyFactory fact =
            javax.crypto.SecretKeyFactory.getInstance("DESede");
            
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Servlet NewServlet</title>");
            out.println("</head>");
            out.println("<body>");
            out.println("<h1>Servlet NewServlet at " + request.getContextPath () + "</h1>");
            out.println("</body>");
            out.println("</html>");
           
        } catch (Exception e) {
            e.printStackTrace(out);
        } finally {
            out.close();
        }
    }
-------------------------------------

Let us know the steps to reproduce the problem so we can help.

Thanks
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]

http://forums.java.net/jive/thread.jspa?messageID=275151