Note that there are some explanatory texts on larger screens.

plurals
  1. POTomcat 404 error in Eclipse - For any page except Welcome page
    primarykey
    data
    text
    <p>I am trying to run a website in Eclipse using Tomcat, but I just can view the welcome page. Any link or URL to other pages bring error 404. What I've done so far:</p> <ul> <li>I use a Dynamic Web Project, with some jsp pages. There are no errors in the files.</li> <li>I've tried Tomcat 6 &amp; 7 servers, and I can see the tomcat default page (http://localhost:8080).</li> <li>Everything seem fine in Tomcat server configurations, including HTTP port, Arguments, etc.</li> <li>When I run the server, I'm able to see the Welcome page using <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080/</a>.</li> <li>When I click on a link to another page in directory (ref to <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080/</a>/), or I redirect to <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080/</a>/ I receive the 404 error.</li> <li>I tried cleaning server, running new servers, renaming web file names, etc; but the problem remains.</li> <li>The files also seem OK in the Tomcat wtpwebapps folder.</li> </ul> <p>The website Web.xml is as follows:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"&gt; &lt;display-name&gt;ERF_Prototype&lt;/display-name&gt; &lt;welcome-file-list&gt; &lt;welcome-file&gt;/WEB-INF/Prototype.jsp&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; &lt;/web-app&gt; </code></pre> <p>Any Idea how to solve the problem? Thanks</p> <p>Update----------------------------------------------------------------<br> Problem not solved; I am just trying to avoid it by exporting website to .War, and then import it using tomcat manager.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload