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
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<web-app>
<servlet>
<servlet-name>confirmation</servlet-name>
<servlet-class>business.ResponseServlet_requestDispatch</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>confirmation</servlet-name>
<url-pattern>/servlet/business/*</url-pattern>
</servlet-mapping>
</web-app>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]