From: Alan K. <jyt...@xh...> - 2009-01-08 08:01:55
|
[Jacob] > After all this work I still can't get it to run. When I start Tomcat I get > this error: > > java.lang.ClassCastException: org.python.core.PyType > at com.xhaus.modjy.ModjyJServlet.init(ModjyJServlet.java:96) > at javax.servlet.GenericServlet.init(GenericServlet.java:212) > ... > > I have no idea what that means! Here's the line in the ModjyServlet.java > file: > PyObject pyServlet = > ((PyClass)interp.get(MODJY_PYTHON_CLASSNAME)).__call__(); You've tripped across a bug in modjy, that was caused by some API changes in jython 2.5b0. You can fix it by downloading and using the latest modjy from SVN, https://jython.svn.sourceforge.net/svnroot/jython/trunk/jython/extlibs/modjy_0_25_1.zip or by waiting for the next beta, which will include the updated library. Regards, Alan. |