From: Eduardo J. F. C. <EFE...@sa...> - 2001-03-13 17:24:18
|
Still no success, after adding self to the doGet() method. (And now the = deprecation warning appears again) This is what appears in the apache error.log Java Traceback: at org.python.core.Py.AttributeError(Py.java:90) at org.python.core.PyObject.__getattr__(PyObject.java, Compiled = Code) at org.python.core.Py.initProxy(Py.java, Compiled Code) at Hello.<init>(Hello.java:139) 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' Thanks to everyone that is taking the time to check into this. Best regards. -- Eduardo J. Fernandez Corrales >>> "Robert W. Bill" <rb...@di...> 13/03/01 17:35 >>> On Tue, 13 Mar 2001, brian zimmer wrote: > Robert, >=20 > This works for you? Don't you need to add 'self' to the doGet()=20 > method? It's an instance method, no? YES! Thank you. Typing changes in reply instead of copy/paste=20 from the servlet was just error prone. Sooo sorry about that. Brian is right, it must have self as first parameter to method. =20 Robert |