eborisow wrote:
Gabe Wong wrote:
Check the syntax as it was just done on the fly.


Here's the latest.  I created a class that extends JNDIRealm and I can see
some debug messages in my constructor, but I don't see my authenticate
method getting invoked.  I just wanted to see if I could override the
authenticate method before I started messing around with the name.  Here is
my code:

public Principal authenticate(String arg0, String arg1)
{
        System.out.println("Starting authenticate");
        Principal principal = super.authenticate(arg0, arg1);
        System.out.println("Principal Name: " + principal.getName());
        System.out.println("Finished authenticate");
        
        return principal;
}

Could be how logging output is setup. The constructor may be created before output gets redirected elsewhere. Look in the other log files under the logs directory. Also is the realm configured in server.xml or context.xml?


--
Regards

Gabe Wong
NGASI AppServer Manager
JAVA AUTOMATION and SaaS Enablement
<a href=http://www.ngasi.com>http://www.ngasi.com</a>
NEW! 8.0 - Centrally manage multiple physical servers


---------------------------------------------------------------------
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