error Tomcat web.xml??

solemusitu
04 de Marzo del 2004
Hola a todos, soy nueva en este foro.
Podría alguien ayudarme?
Estoy intentando probar un ejemplo que vi en un articulo en la pagina::
http://developers.sun.com/dev/evangcentral/totallytech/jmf2.html
Me baje los archivos que proporcionaban pero no consigo hacer que funcione.
Creo que el error viene del archivo web.xml. Aqui lo teneis:
<web-app>
<display-name>Web Cam Image Servlet</display-name>
<description>
This servlet retrieves an image from a webcam connected to the server
and sends it to the client browser in JPEG format
</description>

<context-param>
<param-name>videoconfigfile</param-name>
<param-value>c:TomcatwebappsWebCamServletvideo.properties</param-value>
<description>
This parameter can be used to provide the name of a video
configuration properties file that will be used by the libraries
to determine the name of the device to use, the resolution of the
image and the colour depth
</description>
</context-param>

<servlet>
<servlet-name>WebCamServlet</servlet-name>
<servlet-class>WebCamServlet</servlet-class>
<description>
The JMF based webcam image servlet
</description>
</servlet>

<!-- Servlet name mapping to be used in the URL -->
<servlet-mapping>
<servlet-name>WebCamServlet</servlet-name>
<url-pattern>/WebCamServlet</url-pattern>
</servlet-mapping>
</web-app>

Al iniciar el Tomcat, obtengo este error:


05-dic-2003 14:14:51
org.apache.commons.digester.Digester error
GRAVE: Parse Error at line 40 column 13: The content
of element type "servlet" must match
"(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-fil
e),init-param*,load-on-startup?,security-role-ref*)".
org.xml.sax.SAXParseException: The content of element
type "servlet" must match
"(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-pa
ram*,load-on-startup?,security-role-ref*)".

Could it be there's something wrong with the web.xml
file about the servlet-mapping?
<servlet-mapping>
<servlet-name>WebCamServlet</servlet-name>
<url-pattern>/webcam</url-pattern>
</servlet-mapping>
I don't understand neither the url-pattern "/webcam"
nor the index.html file:
<img
SRC="http://130.206.173.134:8080/WebCamServlet/webcam"
height=240 width=320>

Agradecería cualquier ayuda.
Muchas gracias de todas formas.

sin usuario
04 de Marzo del 2004
Me parece que lo que te está diciendo, es que no acepta description cuando defines los servlets.
<description>
The JMF based webcam image servlet
</description>

solemusitu
04 de Marzo del 2004
Gracias por el consejo, pero he probado a borrar los tags <description></description> y me sigue sin funcionar

Bye!

solemusitu
04 de Marzo del 2004
Bueno, en realidad ya no me da ningun error pero no funciona la historia de la webcam!!!!!