私は Java EE の初心者です。私は Eclipse Helios 3.6.2 と Tomcat 7 を使用しています。JSF 2.0 で動的 Web プロジェクトを作成しました。シンプルなページを実行すると、エラーが発生します。
HTTP Status 404 - /first/
type Status report
message /first/
description The requested resource (/first/) is not available.
Apache Tomcat/7.0.27
コード:
<?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>
</h:body>
</html>
プロジェクトの何が問題になっていますか? プロジェクトをデプロイするにはどうすればよいですか? 私は変更する必要があり<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">
ますか?