CetSetsAper
New Member
I'm getting the 404 error when trying to debug my project on the server however I have found many similar problems such as this HTTP Status 404 error in Eclipse using Tomcat where the problem is just folder positions , this isn't the problem here as all thats in my webinf is web.xml , can anyone help with possible solutions ? \[code\]<?xml version="1.0" encoding="UTF-8"?><web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"><display-name>The_Quiz</display-name> <!-- Tell the server to use BASIC authentication. --> <login-config> <auth-method>BASIC</auth-method><realm-name>The_Quiz</realm-name> </login-config> <!-- Protect financial plan. Employees or executives. --> <security-constraint><web-resource-collection> <web-resource-name>Question_1</web-resource-name> <url-pattern>/Question_1.jsp</url-pattern></web-resource-collection><auth-constraint> <role-name>employee</role-name> <role-name>executive</role-name></auth-constraint>\[/code\]\[code\] <!-- The security roles used in this app. --> <security-role> <role-name>employee</role-name> </security-role> <security-role> <role-name>executive</role-name> </security-role> <!-- A servlet that redirects users to the home page. --> <servlet> <servlet-name>Redirector</servlet-name> <servlet-class>The_Quiz.RedirectorServlet</servlet-class> </servlet> <!-- Turn off invoker. Send requests to index.jsp. --> <servlet-mapping> <servlet-name>Redirector</servlet-name> <url-pattern>/Question_1.jsp</url-pattern> </servlet-mapping> <!-- If URL gives a directory but no filename, try index.jsp first and index.html second. If neither is found, the result is server specific (e.g., a directory listing or a 404 error). --> <welcome-file-list> <!-- <welcome-file>index.jsp</welcome-file> --> <welcome-file>index.html</welcome-file> </welcome-file-list></web-app>\[/code\]