Re: MemoryRealm question

2007-11-19 Thread Mark Thomas
Bárbara Vieira wrote:
> When I use that Realm, how the principals variable, that is declared in that
> class(MemoryRealm) as a HashMap, is loaded?

Configure Tomcat to use the MemoryRealm.
Start tomcat with JPDA debugging enabled.
Set a break point at the start of the authenticate() method.
Access a protected resource.
Use the debugger to step through the authentication process.

You might want to set some break points in RealmBase as well.

Mark


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



MemoryRealm question

2007-11-19 Thread Bárbara Vieira
 

Hi everyone!!

I have a question about org.apache.catalina.realm.MemoryRealm. 

When I use that Realm, how the principals variable, that is declared in that
class(MemoryRealm) as a HashMap, is loaded? I.e. How the data that is in the
file (ex. Tomcat-users.xml) is loaded to that variable?! I’m trying to
implement my own realm, but using that MemoryRealm as a model. However when
I run my program with my own realm, the principals variable is null.

 

If anyone can help, I appreciate. 

 

Regards from Braga, Portugal

Bárbara Vieira