From: Updike, C. <Cla...@jh...> - 2001-12-24 01:40:35
|
Finn Bock suggested removing the tabs in front of the class declaration and indeed that did the trick (they were the result of a cut/paste I did on the Hello.py servlet). Thanks to Finn for the suggestion. Tech support on a Sunday two days before Christmas... God bless open source and the people that make it happen. -Clark > I'm trying to run the Hello.py servlet example but I get the exception > from PyServlet.loadServlet() shown below. The strange thing is that I > can execute the statement execfile('C:\Program Files\Apache Tomcat > 4.0\webapps\JythonServlet\Hello.py') from the interactive interpreter > without getting the 'invalid syntax' problem (which I think shows that > the path is valid). Anyone have any ideas? > > TIA, > Clark > > javax.servlet.ServletException: Could not create Jython servletTraceback > (innermost last): > (no code object) at line 0 > SyntaxError: ('invalid syntax', ('C:\Program Files\Apache Tomcat > 4.0\webapps\JythonServlet\Hello.py', 3, 9, ' class > Hello(javax.servlet.http.HttpServlet):')) <snip> |