AnsweredAssumed Answered

AuthenticationUtils.startSession() does not work in JSP pag

Question asked by chengdong on Mar 30, 2010
Latest reply on Jun 18, 2010 by mangar
Hi
I am trying to get a ticket by calling  AuthenticationUtils.startSession(). It does not work in JSP.  it works in standalone java class. Did I miss anything in the jar file, certificate or classpath?

Thanks for help



   try {
         WebServiceFactory.setEndpointAddress("https://cms-dev.vbi.vt.edu/alfresco/api");
          AuthenticationUtils.startSession("admin", "admin");
         String ticket = AuthenticationUtils.getTicket();
         return ticket;

      } catch (Exception serviceException) {
         throw new RuntimeException("Problem invoking web script",
               serviceException);
      }
      finally {           
       // End the session
       AuthenticationUtils.endSession();
       if (conn != null) conn.disconnect();
       }
   }%>

Outcomes