Message3942
I am using Jython SVN revision 5773, Django (both 1.0.2 and 1.1pre-
alpha) and django-jython trunk. Applications run ok using the Django
built in webserver and also builds a valid war file.
Upon deployment to an application server (tested on both Tomcat 6.0.18
and Glassfish 2, using JDK 1.6.0_05) the deployed application generates
the following Java exception:
exception
javax.servlet.ServletException: Servlet.init() for servlet modjy threw
exception
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:845)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.
process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run
(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
root cause
java.lang.ClassCastException: org.python.core.PyType cannot be cast to
org.python.core.PyClass
com.xhaus.modjy.ModjyJServlet.init(ModjyJServlet.java:82)
javax.servlet.GenericServlet.init(GenericServlet.java:212)
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:845)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.
process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run
(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:619)
This occurs whether using an existing Django application with database
connectsion etc, or whether a fresh application with no db's and just
the django default 'getting started' page. I haven't been able to test
any other Python code as a deployed web application. |
|
Date |
User |
Action |
Args |
2008-12-17 11:00:17 | JohnSJohnM | set | recipients:
+ JohnSJohnM |
2008-12-17 11:00:17 | JohnSJohnM | set | messageid: <1229511617.63.0.502104666739.issue1207@psf.upfronthosting.co.za> |
2008-12-17 11:00:17 | JohnSJohnM | link | issue1207 messages |
2008-12-17 11:00:16 | JohnSJohnM | create | |
|