> From: Rutherford, Michael [mailto:[EMAIL PROTECTED] > Subject: Determining the complete classpath for a web app in > Tomcat 5.5 > > I am attempting to find a (preferably simple :-) way to find out the > complete classpath for a web app.
Not sure why you want to do this, but in any event, first Read The Fine Manual: http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html If you have access to any Class object for the web app, you can get its ClassLoader object. Assuming you're using Tomcat's standard WebappClassLoader, this is a subclass of URLClassLoader, so it has a getURLs() method that can be used to retrieve the paths it processes. You can follow the getParent() chain of class loaders and do the same thing all the way up to the system class loader. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]