Message12820

Author gbach
Recipients gbach
Date 2019-12-11.12:32:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576067560.92.0.318022345169.issue2844@roundup.psfhosted.org>
In-reply-to
Content
When updating a working webapplication from jython 2.7.1 to jython 2.7.2b2 (because of issue2487) it does not start anymore without any error or log-entry.
The container (tomcat 7) only tells me that the "Deployment of web application directory ... has finished" but the servlet is not setup.

I can reproduce this behaviour with the help of this guide: https://seanmcgrath.blogspot.com/JythonWebAppTutorialPart1.html.

I get:

HTTP Status 500 – Internal Server Error

Type Exception Report

Message Servlet.init() for servlet PyServlet threw exception

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

javax.servlet.ServletException: Servlet.init() for servlet PyServlet threw exception
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:444)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1137)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:317)
	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	java.lang.Thread.run(Thread.java:748)

Root Cause

java.lang.NoClassDefFoundError: Could not initialize class org.python.core.PySystemState
	org.python.util.PyServlet.createInterpreter(PyServlet.java:123)
	org.python.util.PyServlet.reset(PyServlet.java:170)
	org.python.util.PyServlet.init(PyServlet.java:90)
	javax.servlet.GenericServlet.init(GenericServlet.java:158)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:444)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
	org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1137)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:317)
	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	java.lang.Thread.run(Thread.java:748)

Note The full stack trace of the root cause is available in the server logs.
Apache Tomcat/7.0.96


----
Java is jdk-8u231-linux-x64
Tomcat is apache-tomcat-7.0.96
Jython is jython-installer-2.7.2b2
History
Date User Action Args
2019-12-11 12:32:40gbachsetrecipients: + gbach
2019-12-11 12:32:40gbachsetmessageid: <1576067560.92.0.318022345169.issue2844@roundup.psfhosted.org>
2019-12-11 12:32:40gbachlinkissue2844 messages
2019-12-11 12:32:40gbachcreate