You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rajarshi Guha <rx...@psu.edu> on 2006/03/06 20:53:14 UTC

getting a list of jar files located in shared/lib

Hi, I'm running Tomcat 5.5 on Fedora Core 4, with JDK 1.5

My problem is this:

I have a web service that depends on some libraries. These libraries are
placed in $CATALINA_HOME/shared/lib since I plan to have other web
services which will also require these libraries.

Now the problem is that one method in these libraries attempts, by
default, to get the classpath (by default the system classpath) and
looks for a specific set of classes. 

However the method can also be supplied a list of jars to examine

Now, when my web service runs, I can see that I don't have access to the
system classpath. Thus the default behavior of my library function will
not work.

Thus what  I would like to do is, from my webservice code, determine the
jars in $CATALINA_HOME/shared/lib and basically pass the file names to
my library method.

I looked at org.apache.catalina.loader.WebappLoader but it looks more
like a way to build my own loader rather than get information about
jars/clases available to my web service.

The thing is, I know that my web service is accessing the classes
located in the jars under $CATALINA_HOME/share/lib, since other methods
in the web service run fine.

What I can't see how to do is to get the list of jars/classes that are
available to the webservice from the shared/lib directory.

Any pointers would be greatly appreciated.

Thanks,

-------------------------------------------------------------------
Rajarshi Guha <rx...@psu.edu> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
Despite the high cost of living, it remains popular.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org