From: Jaroslav G. <j_g...@ya...> - 2001-02-16 10:45:57
|
Hello all, I have the following problem with classpaths under Tomcat: Short intro: all JAR files located in $TOMCAT_HOME/lib are added to the Java CLASSPATH and are visible to Jython. NOTE: Their classes are loaded by the system classloader. All JAR files located in an application specific lib directory + application classes directory are visible to a given application. Application specific classes located in: $TOMCAT_HOME/webapps/myapp/WEB-INF/classes Application spec. libraries in: $TOMCAT_HOME/webapps/myapp/WEB-INF/lib NOTE: application specific classes are loader using org.apache.tomcat.loader.AdaptiveClassLoader12 (!) There is only oneway visibility: application classes can refer to classes loaded by the system classloader but NOT vice versa. I have my runtime library mylib.jar located in the application lib directory togehter with the jython.jar $TOMCAT_HOME/webapps/myapp/WEB-INF/lib/mylib.jar $TOMCAT_HOME/webapps/myapp/WEB-INF/lib/jython.jar THE PROBLEM: jython does not see the classes from mylib.jar, it only creates cache for the packages found in the standard Java classpath. (meaning $TOMCAT_HOME/lib + JRE/lib + ...) How to turn jython to inlcude mylib.jar into package cache and make mylib.jar classes accessible? NOTE: I can not move mylib.jar to $TOMCAT_HOME/lib becaus mylib.jar requires access to application specific classses. Thans for any hint Gergic ===== Jaroslav Gergic (Gergi) mailto:j_g...@ya... http://nenya.ms.mff.cuni.cz/~gergic/ __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ |