Thanks Guilherme and everybody else that helped me regarding the 404 problem

The mistake was mine. I decided to create a web.xml file from scratch insted
of using an existing one and by mistake included all my servlets into one
<servlet> and <servlet-mapping> tag.

It was working fine with just one servlet but the second one messed up
completely.

thanks once more

Sio

-----Mensagem original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
nome de Guilherme Silveira
Enviada em: quinta-feira, 27 de julho de 2006 20:09
Para: Tomcat Users List
Assunto: Re: Back to 404 problem: The requested resource
(/Sisc/servlet/servle ts/PesquisaTabPeriferica) is not available


Oi Siomara,


>   <servlet>
>       <servlet-name>incluiMarcaPropriedade</servlet-name>
>       <servlet-class>servlets.IncluiMarcaPropriedade</servlet-class>
>
>       <servlet-name>pesquisaTabPeriferica</servlet-name>
>       <servlet-class>servlets.PesquisaTabPeriferica</servlet-class>
>
>           <servlet-name>registraMarcaPropriedade</servlet-name>
>       <servlet-class>servlets.RegistraMarcaPropriedade</servlet-class>
>   </servlet>
The servlet specification doesnt mention allowing two servlets
configured in one servlet tag.... (take a look at the dtd file)

For the 2.3 specs you should put 8 lines of code for each
servlet+servlet mapping

This might be your prob

Att

Guilherme Silveira

This never happened to me before. I am
> losing confidence regarding TOMCAT and don't know what to do.
> Can someone help me please. I do appreciate your feed back.
> These are my calls from the application:
>
> from index.htm:
> ...
>         <td width="50%" height="20"><a
> href="servlet/servlets/PesquisaTabPeriferica?idTabela=1">
>         Consultar/Manutenção Marca de Propriedade</a></td>
> ...
>
>
> from incluiMarcaPropriedade.htm:
> ...
>
////////////////////////////////////////////////////////////////////////////
> ///
> // Validate fields and submit form elements to servlet
> RegistraMarcaPropriedade
> //
> function doFormSubmit()
> {
>         objfrm=document.incluiAlteraMarcaPropriedade;
>         //Store the file path of the next servlet/jsp to be called
>         strFilePath = "servlet/servlets/RegistraMarcaPropriedade"
>
>         strDescricao=objfrm.txtDescricao.value;
>         if(isSpecialChar(strDescricao) || !isChar(strDescricao))
>         {
>         alert("Favor entrar com uma descrição válida.");
>                 objfrm.txtDescricao.focus();
>                 return false;
>         }
>
>         if(isEmpty(strDescricao))
>         {
>         alert("Campo obrigatório");
>                 objfrm.TxtNumber.focus();
>                 return false;
>         }
>
>         objfrm.method="post";
>         objfrm.action=strFilePath;
>         return true;
>         objfrm.submit();
>
> }
> ...
> Thanks a lot
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Guilherme Silveira
--------------------------------------------------
[EMAIL PROTECTED]
Caelum - Ensino e Solucoes em Java
www.caelum.com.br

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to