Shapira, Yoav wrote:

Howdy,
Assuming you mean beyond the classpath documented in the Classloder
HOW-TO, you'd have to write some tomcat specific code.  In your webapp,
you would do:

import org.apache.catalina.Loader;
...

ClassLoader cl = this.getClass().getClassLoader();
Loader catalinaLoader = (Loader) cl;
String[] repositories = catalinaLoader.findRepositories();

In Tomcat 5 + SecurityManager, this will not work ( access denied ).



But why do you want to do this?


Yes why :-)

-- Jeanfrancois


Yoav Shapira Millennium ChemInformatics




-----Original Message-----
From: mourad jaber [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 12:25 PM
To: Tomcat Users List
Subject: how to get WebClassLoader Classpath ?

Hi,
I need to get the classpath used by classloader of my web app...
System properties don't help me, as there are not used by


WebClassLoader


of tomcat...
How can I get it ?

Any idea

Thanks



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to