File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes No servlet maps to URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "No servlet maps to URL" Watch "No servlet maps to URL" New topic

No servlet maps to URL

vidhya jay

Joined: Aug 15, 2004
Posts: 15

I have written a sample servlet program.

public class ServletPro extends HttpServlet {
public void init(ServletConfig config) throws ServletException {

= config.getInitParameter("WPFolder").trim()
vidhya jay

Joined: Aug 15, 2004
Posts: 15
the above mail was not complete.

strName = config.getInitParameter("Name1");

I have also initialised the variables in File and i am deploying it in Domino Web Server.

I am getting the following Error :

Servlet Status Code: 404

Servlet Status Message: No servlet maps to URL

What could be the reason for the above error. Kindly Help.

Vijay Sharma
Ranch Hand

Joined: Feb 02, 2005
Posts: 32
Hi Vidhya,
Check your Web.xml file,That is your configuration file of servlet.I think you have missed your servlet Mapping tag there in ur web.xml file.So just check might be that is the problem.

Vijay Sharma
I agree. Here's the link:
subject: No servlet maps to URL
It's not a secret anymore!