From: Jaroslav G. <j_g...@ya...> - 2001-02-16 14:02:27
|
--- brian zimmer <bz...@zi...> wrote: > Are you using the latest CVS version of jython? Finn has > fixed where the jars and clases under your WEB-INF were > not being found. Since the servlet container does not add > the WEB-INF/* subdirs to the CLASSPATH, jython originally > had no means of getting to those classes. But the patch > added support to have the jython classloader look in optional > directories for jar's and class'es. I have tested this under > JRun with great success and I believe others have used > Tomcat. Thak you for the tip! I will optionally upgrade - but I would prefer to use at least milestone release in my software, I do not like CVS snapshots a lot. ;) Meantime I solved the problem with the Jython 2.0 relase: Step 1: modify the property in the reistry file (my.lib): ---sample--- python.packages.paths = my.lib, java.class.path, sun.boot.class.path python.packages.directories = java.ext.dirs ---END--- Step 2 run JVM with proper settings: java -cp ... -Dpython.home=<path to reg. file> -Dmy.lib=<path to jar> It works and jython finds the classes in your custom JAR file. Regards 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/ |