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