From: Alan K. <jyt...@xh...> - 2009-03-23 16:13:34
|
[Marcos] > * I am not including rome.jar in the java classpath. > * Dynamic code (a user plugin) adds rome.jar to sys.path. > * Some internal module needs a properties file that gets loaded (if I > put rome.jar in the classpath) by a call to > classLoader.getResourceAsStream > * The resource is not found. > > Is there some way to trick this classloader to look in the jars added to > sys.path? Which class loader? Adding to sys.path only affects the jython class loader. This will not affect any other class loader in effect, e.g. a web application class loader, which will go through the usual mechanisms, e.g. loading from WEB-INF/lib, etc. If the resource is in rome.jar, then you're going to have to put rome.jar in the classpath, where the (non-jython) class loader can find it. Is there any reason why you can't put rome.jar in the classpath? Alan. |