From: Eduardo J. F. C. <EFE...@sa...> - 2001-03-13 09:45:09
|
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 but = the Hello.class file gets generated. - Moved the .class to the servlet directory (Other servlets like IsItWorkig= n run fine. This is Apache 1.3.6 with Jserv 1.0) - Tried to run the servlet. The browser just hangs there and I get a = timeout Looking at the apache logs I get this in the error.log file: Java Traceback: at org.python.core.Py.AttributeError(Py.java:90) at org.python.core.PyObject.__getattr__(PyObject.java:672) at org.python.core.Py.initProxy(Py.java, Compiled Code) at Hello.<init>(Hello.java:141) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java, Compiled Code) at org.apache.jserv.JServServletManager.load_init(JServServletManag= er.java) at org.apache.jserv.JServServletManager.loadServlet(JServServletMan= ager.java) at org.apache.jserv.JServConnection.processRequest(JServConnection.= java) at org.apache.jserv.JServConnection.run(JServConnection.java) at java.lang.Thread.run(Thread.java:479) Traceback (innermost last): (no code object) at line 0 AttributeError: class 'Hello' has no attribute 'Hello' What could be the problem? Thanks in advance. -- Eduardo J. Fern=E1ndez Corrales |