servlets not running in tomcat

Posted on 2004-11-04
Last Modified: 2012-05-05

   I am working on tomcat for the first time.I have made some servlets,jsps & html files which i want to deploy on tomcat(on win 2003).
   I have made a test folder under webapps folder.In test folder i have made WEB-INF folder. In WEB-INF folder , I have made 2 folders ....   classes and lib. I have put all my jsps and htmls files in test folder and  servlets in classes folder. I have made a web.xml file also in WEB-INF folder .  have added  the follwoing line in  /conf/server.xml file

       <Context path="/test" docBase="test" debug="0" reloadable="true" />
The contents of web.xml file are

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"



though i read that one does not need add <servlet> tag if the servlets are without initialisation parameters which my case is.

I have also uncommented the lines swithced on the invoker servlet feature in /conf/web.xml

Still my servlets are not running. jsps and html file are running fine.

HTTP Status 404 - /test/login
type Status report
message /test/login
description The requested resource (/test/login) is not available.

Above error comes.

Any help
Thanks in advance

Question by:rajneesh75
    1 Comment
    LVL 13

    Accepted Solution


    add thid to ur web.xml


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack or Above. The following steps a…
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now