> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Subject: RE: JDBC Realm doesn't work properly
> 
> I'm using Tomcat 5.5.9 and my realm-class definetly extends 
> the JDBC realm and not the JAAS realm.

However, your stack trace shows that the authentication is going through
JAAS.  Looks like somewhere you have configured or extended the
JAASRealm.  I suppose it's possible that such an old level of 5.5 (it
came out almost 3 years ago) might have a bug in it regarding Realm
selection, but I've never heard of it.

> Can you show me a better way to define different context
> in the server.xml? 

As is frequently discussed on this list, <Context> elements should not
be placed in server.xml; read the doc:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

Your <Context> elements would normally be placed in each webapp's
META-INF/context.xml file.  Neither the path nor the docBase attributes
should be used in this case.

> Because I found my solution somewhere in the www.

Unfortunately, the Internet is strong evidence that Sturgeon's law may
have been optimistic.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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