I tried a smaller version of your code since I don't have the
dependent Classes as follows:

--------------------------------------------------------------------------------
........\MyProject\WEB-INF\classes\net\digitalassembly\auth\Pam.class
--------------------------------------------------------------------------------

package net.digitalassembly.auth;

public class Pam {

   private static Pam instance = new Pam();

   private Pam() {
   }

   public boolean authenticate(String username, String password) {
       return false;
   }

   public static Pam getInstance() {
       return instance;
   }
}

----------------------------------------------------------------------------------------
.....\MyProject\somefolder\authenticate.jsp
----------------------------------------------------------------------------------------
<%@ page import="net.digitalassembly.auth.Pam" %>
<%
   Pam pam = Pam.getInstance();
   if (pam != null) {
       out.println(" pam not null ");
   } else {
       out.println("Pam failed to initialize");
   }
%>


And it printed "pam not null" on the screen.

So it worked.

-Rashmi

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to