HTTP 404 Status Description The requested resource () is not available. Apache Tomcat / 7.0.27

when I try to access my project home at http: // localhost: 7080 / first / or http: // localhost: 7080 / first / start-page.html I get this message:

HTTP Status 404 - Type Description of the status report message The requested resource () is not available. Apache Tomcat / 7.0.27

but if I ask localhost: 7080 / the tomcat homepage is found correctly.

Can someone help me?

why can't i get my start-page.html from eclipse? but when I start from C: \ Users \ Mohsen \ workspace.metadata.plugins \ org.eclipse.wst.server.core \ tmp0 \ wtpwebapps \ first \ WEB-INF \ start-page.html, it works correctly.

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>first page</title>
</h:head>
<h:body>
<fieldset>
<legend>Random Results Page</legend>
<h:form>
Press button to get one of three possible results pages.
<br/>
<h:commandButton value="Go to Random Page"
/>
</h:form>
</fieldset>
</h:body></html>
+5
source share
4

"", : enter image description here

, "" . // → " " → "" "" → "" , .

0

, "", . , ( ).

- , " " " ".

, ( , ).

0

start-page.html .

sudo mv start-page.html /etc/tomcat7/Catalina/localhost

, start-page.html.

4 .xml docs.xml, examples.xml, manager.xml .., start-page.html, tomcat7.

404 start-page.html

0

I think you created the “xhtml file” by creating the “file” and changing the file extension. This is not true. You must create an html file and configure the extension again. Then press the next button. After that you should select “New Facelet Template”. Then finish.

0
source

All Articles