karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todor Boev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-806) ProxyLoginModule should actually be on the bootclasspath classpath right?
Date Fri, 05 Aug 2011 14:36:27 GMT
ProxyLoginModule should actually be on the bootclasspath classpath right?

                 Key: KARAF-806
                 URL: https://issues.apache.org/jira/browse/KARAF-806
             Project: Karaf
          Issue Type: Question
          Components: karaf-documentation
    Affects Versions: 2.2.2
            Reporter: Todor Boev
            Priority: Trivial
             Fix For: 2.2.3

In Developers Guide,  Security Framework, Architecture (section)

It is mentioned that ProxyLoginModule must be "available from the system classloader". This
does not seem correct. The LoginContext class calls Class.forName(<module class>, true,
<context class loader>) to load the login module classes. When the context loader is
null Class.forName() delegates to the loader of the current class, which in the case of LoginContext
is the boot loader. So if we have ProxyLoginModule on the system classpath it will be bypassed.

In equinox we can get away with this because equinox sets a context class loader of it's own,
which delegates to the system loader. I suspect on Felix this will not work.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message