From: Waclawczyk J. <Jan...@ic...> - 2001-08-06 07:50:48
|
Hi, I installed and ran JythonSerlvet on tomcat3.2.3 and with jython-2.1a2 as described at http://jywiki.sourceforge.net/index.php?JythonServlet. The first example hello.py works fine ! Then I tried to copy my jar files to the directory <context>/WEB-INF/lib and use them within my jython servlet scripts (i.e. I import java classes in these scripts) but it didn't function: the package manager reported about all these new jar files, but that's all: when running script I got exception: ClassNotFoundException for classes included in those jar files. Each time I started tomcat and my jython servlet, the package manager reported about new jar files, although they were already recognized during previous starts. The package manager creates each time a new file in the cachedir: myjar.pkc, myjar$1.pkc, myjar$2.pkc, ... This happens also to jython.jar (jython.pkc, jython$1.pkc, ...). I placed then all the jar files in the CLASSPATH before running tomcat and all my servlet scripts worked fine ! What's wrong ? Regards, Janusz Waclawczyk |