-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matt,

Matthew Kerle wrote:
> this is weird, check this out:
> 
> //code (tomcat 5.5.23)
> java.security.Principal p = request.getUserPrincipal();
> System.out.println(p.getClass().getName().equals(MemoryUser.class.getName()));
> // prints "true"
> System.out.println(p.getClass().equals(MemoryUser.class)); //prints "false"

So, the class names are the same, but not the classes. This indicates
that you have the same class loaded using two different ClassLoaders. Do
you have a JAR file from the Tomcat distro sitting in your webapp's
WEB-INF/lib directory?

If so, you'll need to figure out how to deploy the JAR in one place but
use it everywhere ($CATALINA_HOME/common/lib for TC 5.5 and, I think,
just $CATALINA_HOME/lib for TC 6.0).

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGxFOX9CaO5/Lv0PARAsBQAJ9vXQKyDl2T6FXHz9Ijw241juk1OQCgvf4+
UzPy8kYFxyvPhBiY7DSh04k=
=EM9K
-----END PGP SIGNATURE-----

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