Tomcat 404 error calling a Servlet from a XHTML page
843841Dec 12 2006 — edited Dec 12 2006Hi all,
It seems to be a stupid problem but I cannot find out its source.
I�ve a Servlets (Servicio) wich generates a xHTML page. It resides in Tomcat-5.5 inside the following directory >>>>>
>>>> <Tomcat-Inst-dir>/webapps/rnasini/WEB-INF/classes
where "rnasini" is my app-base directory. I mapped the servlet inside web.xml file setting:
<servlet>
<servlet-name>Serv</servlet-name>
<servlet-class>Servicio</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Serv</servlet-name>
<url-pattern>/servlet/Servicio/*</url-pattern>
</servlet-mapping>
Then, just to try I�ve a very simple xHtml page:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>NSN Movil</title>
</head>
<body>
<h2>TEST</h2>
<form action="www.nasinibursatil.com.ar/rnasini/servlet/Servicio" method="post">
<p>
Dato:
<input name="dato"/>
<input type="submit" />
</p>
</form>
</body>
</html>
When I submit the data, I�ve error:
HTTP error 404: URL /www.nasinibursatil.com.ar/rnasini/servlet/Servicio was not foun on this server.
But, If I try from OpenWave emulator or from Opera explorer by entering the URL: www.nasinibursatil.com.ar/rnasini/servlet/Servicio?dato="xxxx", the servlet works fine and the received data is showed.
Please, I would need some sugestion / idea about this issue.!!!!!
Regards.
BlufsteinEJ.
Message was edited by:
BlufsteinEJ