Message10435

Author helix84
Recipients helix84, public.marvin, zyasoft
Date 2015-11-06.09:16:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446801395.44.0.344114174426.issue2392@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, "import re" turned out to be a red herring (the fact that in 2.5.2  and even in 2.7.0 calling re without importing it works when it shouldn't remains, but it seems to be a separate issue).

This problem just occurred again. After tomcat restart, first call of the script worked, later calls didn't.

To make the script work again, it was actually enough to save the .py file again unchanged (that's why adding "import re" seemingly helped the first time - I saved the file).

I'm using standard stuff in web.xml:
        <servlet>
                <servlet-name>PyServlet</servlet-name>
                <servlet-class>org.python.util.PyServlet</servlet-class>
                <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
                <servlet-name>PyServlet</servlet-name>
                <url-pattern>*.py</url-pattern>
        </servlet-mapping>
History
Date User Action Args
2015-11-06 09:16:35helix84setmessageid: <1446801395.44.0.344114174426.issue2392@psf.upfronthosting.co.za>
2015-11-06 09:16:35helix84setrecipients: + helix84, zyasoft, public.marvin
2015-11-06 09:16:35helix84linkissue2392 messages
2015-11-06 09:16:33helix84create