I am trying to learn servlets using Eclipse Juno. I am trying to run a servlet Hello2.java using Tomcat v7.0. This error of HTTP Status 404 keeps coming up. If there is any error in my code, then How can I debug it. And if there is something by which I can ignore this error please do tell me as soon as possible.

[![Error Status](https://i.stack.imgur.com/Nh61d.png)](https://i.stack.imgur.com/Nh61d.png)

```
import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.Servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebServlet;

@WebServlet("/Hello2")
public class Hello2 implements Servlet {
    private static final long serialVersionUID = 1L;

    ServletConfig config = null;

    public Hello2() {
        super();
    }

    @Override
    public void init(ServletConfig config) throws ServletException {
        this.config=config;

        System.out.println("Servlet is initialized!");
        System.out.println(serialVersionUID);
    }

    @Override
    public void service(ServletRequest req, ServletResponse res)
            throws ServletException, IOException {
        res.setContentType("text/html");
        PrintWriter out = res.getWriter();

        out.println("<html><title>");
        out.println("Hello again!");
        out.println("</title><body>");
        out.println("Hello Hello!!!!!!");
        out.println("</body></html>");

        //out.close();
    }

    @Override
    public void destroy() {
        System.out.println("Servlet is destroyed.");
    }

    @Override
    public ServletConfig getServletConfig() {   
        return config;
    }

    @Override
    public String getServletInfo() {
        return "Copyright 2017-2018";
    }

}

```