http://localhost:7080/first/またはhttp://localhost:7080/first/start-page.htmlでプロジェクトのホームにアクセスしようとすると、次のメッセージが表示されます。
HTTP ステータス 404 - タイプ ステータス レポート メッセージの説明 要求されたリソース () は利用できません。アパッチ トムキャット/7.0.27
しかし、localhost:7080/ を要求すると、Tomcat のホームページが正しく見つかります。
誰かが私を助けることができますか?
eclipes から start-page.html を取得できないのはなぜですか? しかし、C:\Users\Mohsen\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\first\WEB-INF\start-page.html から実行すると、正しく実行されます。
<?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>