Re: Custom Principal casting problem

2006-09-22 Thread Darren Clarke
Sorry all - my bad. Suggestion 3 in the WIKI (http://wiki.apache.org/tomcat/HowTo#head- cb66e750a22dea34b56f508dd675ed3c2e2e221a) works perfectly as advertised. For the archive, my problem was due to an old JAR lurking in server/ lib that I thought had gone, so my custom principal interface

Re: Custom Principal casting problem

2006-09-21 Thread Darren Clarke
Well, I'm not 100% sure about this as I've not proven all of it, but what I believe is happening from the various Tomcat docs I've read is: 1) My custom realm's authenticate() method(s) are invoked and these instantiate and return the custom principal objects (this bit is proven). If I do

RE: Custom Principal casting problem

2006-09-21 Thread Peter Crowther
> From: Darren Clarke [mailto:[EMAIL PROTECTED] > request.getUserPrincipal().getClass().toString() returns > "poc.security.TestPrincipal" > > (request.getUserPrincipal() instanceof > poc.security.I_TestPrincipal returns false Ah. Are you loading everything through the sa

Re: Custom Principal casting problem

2006-09-21 Thread Darren Clarke
"Darren Clarke" <[EMAIL PROTECTED]> To: Sent: Thursday, September 21, 2006 7:53 AM Subject: Custom Principal casting problem Hi Apologies in advance if I'm going over old ground here - I have spent a day and a bit searching the web and have found people with the same problem,

Re: Custom Principal casting problem

2006-09-21 Thread Martin Gainty
Sent: Thursday, September 21, 2006 7:53 AM Subject: Custom Principal casting problem > Hi > > Apologies in advance if I'm going over old ground here - I have spent > a day and a bit searching the web and have found people with the same > problem, but I'm not finding t

Custom Principal casting problem

2006-09-21 Thread Darren Clarke
Hi Apologies in advance if I'm going over old ground here - I have spent a day and a bit searching the web and have found people with the same problem, but I'm not finding the solution anywhere... I've created my own Tomcat Realm that performs custom authentication. The various authentic