0 Replies Latest reply on Apr 29, 2004 8:37 AM by parnanzio

    [Servlet] Allocate exception

    parnanzio Newbie

      Hi all.. I have a problem with my login servlet, that extends AdminServlet. When I try to launch LoginServlet, mapped in /login (invocating it from a jsp page), it calls a init() function, which give a Allocate exception

      This is the code:

      AdminServlet.java

      public void init(ServletConfig config) throws ServletException {
       super.init();
       try {
       Debug.print("Dentro la doPost di loginServlet 2");
       Context context = new InitialContext();
       Debug.print("Dentro la doPost di loginServlet 3");
       Object ojbref = context.lookup(AdminControllerHome.JNDI_NAME);
       Debug.print("Dentro la doPost di loginServlet 4");
       AdminControllerHome home = (AdminControllerHome)PortableRemoteObject.narrow(objref, AdminControllerHome.class);
       Debug.print("Dentro la doPost di loginServlet 5");
       ac = home.create();
       out.println("Dentro la doPost di loginServlet 6");
       }catch (Exception e) {
       throw new ServletException(e.getMessage());
       }
       }
      


      ******************************************************
      15:05:31,762 INFO [MainDeployer] Deployed package: file:/Applications/jboss-3.2.2/server/default/deploy/WebExams.war
      15:11:52,410 INFO [STDOUT] Debug: Dentro la doPost di loginServlet 2
      15:11:52,412 INFO [STDOUT] Debug: Dentro la doPost di loginServlet 3
      15:11:52,412 INFO [STDOUT] Debug: Dentro la doPost di loginServlet 4
      15:11:52,456 ERROR [Engine] StandardWrapperValve[LoginServlet]: Allocate exception for servlet LoginServlet
      ******************************************************

      Any helps?!
      Thanks!