Rick Horowitz wrote:
RH> Oleg Nitz wrote:
>>
>> Rickard �berg wrote:
>> R�> Oleg Nitz wrote:
>> >> JAAS wouldn't find them. It always uses the system class loader to
>> >> load LoginModules. I guess, there are some security reasons for that.
>>
>> R�> Hm... I'm guessing it's a bug... IMHO it should use the context
>> R�> classloader...
>> There is not just
>>
>> Class.forName(name)
>>
>> there is
>>
>> Class.forName(name, true, ClassLoader.getSystemClassLoader());
RH> Excuse me for butting in here, but are you referring to code in JAAS?
RH> Are the JAAS sources available? If so, where can I get them?
I don't have the sources, as well as info about their availability.
But my statement can be "calculated" from the JAAS befavior.
When I put both jaas.jar and jboss.jar to lib/ext, they are both
loaded by the same classloader (thus, in this case the context class
loader is not needed at all), so Class.forName(name) should work, but
it causes ClassNotFound exception. Can you propose another explanation
of this behavior?
Best regards,
Oleg
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]