Hi,
I am creating a web application using
servlets and derby with
tomcat 6.0.26.
Till now, I have created only 2 forms and one servlet.
I had done it in NetBeans and unfortunately my system broke down midway.
I have the project source code and am now trying to do it on a very old system using the non-IDE way.
The 2 pages are login.jsp and response.jsp and the response page just says a Hi, <username> when the user enters his name, after checking it in the database.
I have deployed the application correctly (not completely i think).
I get this error after entering a user name and password at the login page.
"HTTP Status 404 - Servlet LoginValidationServlet is not available
type Status report
message Servlet LoginValidationServlet is not available
description The requested resource (Servlet LoginValidationServlet is not available) is not available."
The class file for the servlet is located at:
web-inf/classes/servlets/LoginServlet.class
as the servlet is in the "servlets" package.
No errors in apache-root/logs/catalina <date here>.log and no other errors as of now.
Here is my web-xml file.
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<display-name>
ARGS
</display-name>
<description>
ARGS Desc Here
Based on servlets and
jsp.
</description>
<servlet>
<servlet-name>LoginValidationServlet</servlet-name>
<servlet-class>servlets.LoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LoginValidationServlet</servlet-name>
<url-pattern>/Login.do</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>15</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
Can you have a look..??