[Will]
> I've been trying to get the modjy_webapp demo app working with tomcat6,
> but I'm getting the following:
>
> javax.servlet.ServletException: Exception creating modjy servlet: Traceback (most recent call last):
> File "/usr/lib/jython/Lib/modjy/modjy.py", line 43, in __init__
> HttpServlet.__init__(self)
> RuntimeError: maximum recursion depth exceeded
I've been looking at this one some more.
One unusual aspect is that I see the problem when running Tomcat 6 as
a Windows service, but not see it when I run the Tomcat from the
command line, using the "startup.bat" and "shutdown.bat" in the "bin"
directory.
Will, can you please try running the Tomcat 6 from the command line,
and see if the problem still happens?
This difference in behaviours leads me to believe that the problem
perhaps relates to some difference between JDKs and JREs, with the
command line using the former and the Windows service using the
latter.
Thinking that it may be memory related, I increased the memory
allocation for the Windows service to a large amount, 1024M. But the
problem still happens.
The traceback reported is attached.
At this stage, I don't know what is causing this problem, and am open
to suggestions for avenues of research to follow up.
Regards,
Alan.
SEVERE: Servlet /modjy_webapp threw load() exception
Traceback (most recent call last):
File "C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\modjy_webapp\WEB-INF\lib-python\Lib\modjy\modjy.py", line 43, in __init__
HttpServlet.__init__(self)
RuntimeError: maximum recursion depth exceeded
at org.python.core.PyException.fillInStackTrace(PyException.java:70)
at java.lang.Throwable.<init>(Throwable.java:181)
at java.lang.Exception.<init>(Exception.java:29)
at java.lang.RuntimeException.<init>(RuntimeException.java:32)
at org.python.core.PyException.<init>(PyException.java:46)
at org.python.core.PyException.<init>(PyException.java:43)
at org.python.core.PyException.<init>(PyException.java:61)
at org.python.core.Py.RuntimeError(Py.java:124)
at org.python.core.Py.JavaError(Py.java:450)
at org.python.core.PyTableCode.call(PyTableCode.java:168)
at org.python.core.PyBaseCode.call(PyBaseCode.java:297)
at org.python.core.PyBaseCode.call(PyBaseCode.java:191)
at org.python.core.PyFunction.__call__(PyFunction.java:385)
at org.python.core.PyMethod.__call__(PyMethod.java:215)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:221)
at org.python.core.PyMethod.__call__(PyMethod.java:206)
at org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1097)
at org.python.core.PyType.invoke_new_(PyType.java:444)
at org.python.core.PyType.type___call__(PyType.java:1397)
at org.python.core.PyType.__call__(PyType.java:1388)
at org.python.core.PyObject.__call__(PyObject.java:381)
at ModjyJServlet.init(ModjyJServlet.java:103)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
18-Oct-2009 17:04:16 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet modjy
Traceback (most recent call last):
File "C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\modjy_webapp\WEB-INF\lib-python\Lib\modjy\modjy.py", line 43, in __init__
HttpServlet.__init__(self)
RuntimeError: maximum recursion depth exceeded
at org.python.core.PyException.fillInStackTrace(PyException.java:70)
at java.lang.Throwable.<init>(Throwable.java:181)
at java.lang.Exception.<init>(Exception.java:29)
at java.lang.RuntimeException.<init>(RuntimeException.java:32)
at org.python.core.PyException.<init>(PyException.java:46)
at org.python.core.PyException.<init>(PyException.java:43)
at org.python.core.PyException.<init>(PyException.java:61)
at org.python.core.Py.RuntimeError(Py.java:124)
at org.python.core.Py.JavaError(Py.java:450)
at org.python.core.PyTableCode.call(PyTableCode.java:168)
at org.python.core.PyBaseCode.call(PyBaseCode.java:297)
at org.python.core.PyBaseCode.call(PyBaseCode.java:191)
at org.python.core.PyFunction.__call__(PyFunction.java:385)
at org.python.core.PyMethod.__call__(PyMethod.java:215)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:221)
at org.python.core.PyMethod.__call__(PyMethod.java:206)
at org.python.core.PyObjectDerived.dispatch__init__(PyObjectDerived.java:1097)
at org.python.core.PyType.invoke_new_(PyType.java:444)
at org.python.core.PyType.type___call__(PyType.java:1397)
at org.python.core.PyType.__call__(PyType.java:1388)
at org.python.core.PyObject.__call__(PyObject.java:381)
at ModjyJServlet.init(ModjyJServlet.java:103)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
at java.lang.Thread.run(Thread.java:619)
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Jython-dev mailing list
Jython-dev@...
https://lists.sourceforge.net/lists/listinfo/jython-dev