Hello Group, Hai! I deployed the servlet in the J2EE server. The deployment is successful. Now when I type the URL of the servlet in the browser(Internet Explorer) and press enter....the servlet is not executed. Instead the browser shows the error as..."Error type 404 - Resource not found". Please help me to solve this problem.
I have also given the code of my servlet: import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class HitCount extends HttpServlet { static int count; public void init(ServletConfig config) throws ServletException { super.init(config); } public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); count++; out.println("<html>"); out.println("<head><title>BasicServlet</title></head>"); out.println("<Body>"); out.println("Your are user number " + String.valueOf(count) + "Visiting our web site" + "\n"); out.println("</body></html>"); } public String getServletInfo() { return "BasicServlet Information"; } } The context name that I have given while deploying is: "hitCountContext". The alias name that I have given while deploying is: "hitCountAlias". The URL that I have typed in the browser is: "http://localhost:8000/hitCountContext/hitCountAlias". So when I type the url in the browser and press enter....I get the error in the browser stating..."Type 404 error--Resource not found". Help me out.. bye cheers, suresh =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".