You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rajendra Sakpal <ra...@gmail.com> on 2007/03/12 11:19:25 UTC

HTTP 400 error when deployment descriptor (web.xml) is used.

Hi,


> I have created a web application that is running fine with the Invoker
> servlet settings enabled in the "Tomcat 5.5\conf\web.xml".  Next, I tried
> the following:
>
> 1.> Added a web.xml in the WEB-INF directory of my application.
> 2.> Re-started my server.
> 3.> Attempted to access the homepage of my application.
>
> Result: I get a HTTP 400 error. Following is the error message:
>
> =======
> *type* Status report
>
> *message* */Jonathon/UI/Welcome.htm*
>
> *description* *The requested resource (/Jonathon/UI/Welcome.htm) is not
> available.*
>
> =======
>
> Queries:
>
> 1.> What could be wrong with the web.xml ? Do I need to revert the Invoker
> servlet settings enabled in the "Tomcat 5.5\conf\web.xml" ?
>
> 2.> Do all the servlets used in the application need to be registered in
> web.xml of the deployment ?
>
> 3.> Do I need to change the calls for the servlets made in the
> JSPs/HTMLs/Servlets to one specified in the <servlet-name> parameter in the
> web.xml ?
>
> Example:
>
>
>
> Earlier, [with no deployment descriptor], the HMTL reference to servlet
> was as follows:
>
> <form action="/Jonathon/servlet/business.ResponseServlet_requestDispatch"
> method="POST">
>
> Do I need to change it to :
>
> <form action="/Jonathon/confirmation" method="POST">
>
> ========
>

 I have attached the web.xml of my deployment with the mail for your
reference.


>
> thanks & regards,
>
> Rajendra
>