ClassLoader webappClassLoader = Thread.currentThread().getContextClassLoader(); Class webappClass = webappClassLoader.loadClass("comm.foo.bar.MyClass");
> AXA eSolutions GmbH > AXA Konzern AG Germany > Oliver Lauer > Web Architect > Wörthstraße 34 > D-50668 Köln > Germany > Tel.: +49 221 148 31277 > Fax: +49 221 148 43963 > Mobil: +49 179 59 064 59 > e-Mail: [EMAIL PROTECTED] > _____________________________ > -----Ursprüngliche Nachricht----- Von: Antony Bowesman [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 26. Februar 2002 12:36 An: TomcatUser Betreff: Access to shared classloader from common classes Hi, We have a realm implementation that authenticates against a user repository in an EJB container. To do this it uses some proxy classes to connect to the EJB container. These proxies are also used by web applications. Thus, these proxy class are in the common/lib directory. However, this means that a lot of the webapp client framework has to go in the common/lib directory and not in the shared webapp directory where it should be. I need to change but am not sure how the small authentication component (called by the realm implementation) which is in common/lib can find the webapp shared classloader to load the relevant proxy classes. Is there any (legal) way I can get the webapp shared classloader from the catalina startup classes. Rgds Antony -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> ------------------------------------------------------------------------------ Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. ---------------------------- For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. ============================================================================== -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>