From: brian z. <bz...@zi...> - 2001-03-13 13:13:18
|
It's hard to tell without the servlet file, but make sure the file Hello.= py has a single class called 'Hello' that extends from HttpServlet: class Hello(HttpServlet): ... Could you post the servlet code as this would help tremendously. hope this helps, brian > -----Original Message----- > From: jyt...@li... > [mailto:jyt...@li...]On Behalf Of Eduardo > Jesus Fernandez Corrales > Sent: Tuesday, March 13, 2001 3:43 AM > To: jyt...@li... > Subject: [Jython-users] compiled servlet does not run > > > 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 > IsItWorkign 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(JServServletManager.java= ) > at > org.apache.jserv.JServServletManager.loadServlet(JServServletManager.ja= va) > 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 > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > http://lists.sourceforge.net/lists/listinfo/jython-users |