The useContextClassLoader config option doesn't work right. - it is ignored when setting userClassNames and roleClassNames - it's respected when the LoginContext is created, but that is insufficient, because all the needed classes are not necessarily loaded until loginContext.login() is called Patch to follow. With it I'm able to keep everything related to the JAASRealm in my webapp.
Created attachment 21278 [details] patch to fix useContextClassLoader for JAASRealm
Created attachment 21279 [details] better patch Made a mistake about the second thing. Actually the only problem with the LoginContext stuff is that the logic was backwards. This patch is better.
AFAIK this issue was caused by the patch applied for bug 40150. I reopened it because it really is a show stopper for us and blocks deploying our Jetspeed portal on Tomcat 5.5.25, and also on Tomcat 6 likewise. I think your patch can and need also be back ported to Tomcat 5.5
*** Bug 43392 has been marked as a duplicate of this bug. ***
Fixed in trunk and proposed for the next releases of 5.5.x and 6.0.x
(In reply to comment #5) > Fixed in trunk and proposed for the next releases of 5.5.x and 6.0.x The proposal now has enough votes, so this issue will be fixed in Tomcat 6.0.15.
This has been fixed in svn and will be included in 6.0.16 onwards.
Fixed in 5.5.x and will be included in 5.5.26 onwards.