|
From: Thierry N. <Thi...@iu...> - 2001-12-05 16:59:23
|
I've read different messages (see = http://aspn.activestate.com/ASPN/Python/Cookbook/Recipe/54158 and the = available information for installing the Servlet) but I've still = problems to use Servlets in Python with Tomcat4=20 I'am able to run servlets in Java ; Jython is seems to be correctly = configured. The Tomcat Server (version 4) running on a PC (running windows 2000 ) = starts without any error but When I load the hello.py = (http://localhost:8080/nods/hello.py), I get this error : description : The server encountered an internal error (Internal Server = Error) that prevented it from fulfilling this request. exception=20 javax.servlet.ServletException: Wrapper cannot find servlet class = org.python.util.PyServlet> or a class it depends on at = org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:807) at = org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:61= 5) at = org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve= .java:214) at = org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav= a:566) at = org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47= 2) at = org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at = org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve= .java:201) at = org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav= a:566) at = org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorB= ase.java:472) at = org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.jav= a:564) at = org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:47= 2) at = org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) ....... My web.xml file is : <?xml version=3D"1.0" encoding=3D"ISO-8859-1" ?>=20 <!DOCTYPE web-app (View Source for full doctype...)>=20 - <web-app> - <servlet> <servlet-name>pyServlet</servlet-name>=20 <servlet-class>org.python.util.PyServlet></servlet-class>=20 </servlet> - <servlet-mapping> <servlet-name>pyServlet</servlet-name>=20 <url-pattern>*.py</url-pattern>=20 </servlet-mapping> </web-app> Could you put in the FAQ some instructions to install a Pyservlet = example Where should I put the file : jython.jar where the PyServlet class is = stored ? It appears that this class in the jython.jar can't be found by = the server Thanks for your answer T. NODENOT |