From: <bc...@wo...> - 2001-03-13 20:45:09
|
[Eduardo Jesus Fernandez Corrales] >Hello everyone: > >I am trying to run a compiled servlet written in Jython. Here's what I = >have done > >- I have installed Jython 2.0 in windows NT workstation with servicepack = >6, using java 1.2.2 >- Wrote the servlet in file Hello.py. This is the usual simple servlet = >that just prints hello world >- Compiled the servlet with jythonc. I get some deprecation warnings Which is ok. >but the Hello.class file gets generated. And so does the Hello$_PyInner.class file. The two classfiles belong together. Also, when you compile with jythonc make absolutely sure that the output include the text: Creating .java files: Hello module Hello extends javax.servlet.http.HttpServlet If you don't see that message there is a problem, usually with the classpath during the jythonc compilation. >- Moved the .class to the servlet directory You have to move both the generated class files. regards, finn |