当我尝试在http:// localhost:7080/first /或http:// localhost:7080/first/start-page.html访问我的项目主页时,我收到此消息:
HTTP状态404 - 类型状态报告消息说明请求的资源()不可用.Apache Tomcat/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>
Run Code Online (Sandbox Code Playgroud) 我将使用installshield 2010制作安装文件.(我的程序是.net框架工作4).根据安装盾的安装要求,我标记了microsoft .net framework 4 full full和client package但是在我想设置安装文件后进行设置后,出现"你的系统中必须有.net framework 4"的错误.我想在客户端计算机的安装过程中设置.net框架4.0,但我面临的错误是:你的系统中必须有.net framework 4.请帮我
我是Java的初学者.我正在使用eclipse Helios和Tomcat 7.
我配置了服务器并编写了我的第一个JSF页面,但是我收到了这个错误:
HTTP Status 404 - /
type Status report
message /
description The requested resource (/) is not available.
Apache Tomcat/7.0.27
Run Code Online (Sandbox Code Playgroud)
第一页的代码是这样的:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<h:head>
<title>JSF 2.0 Hello World</title>
</h:head>
<h:body>
<h3>JSF 2.0 Hello World Example - hello.xhtml</h3>
</h:body>
</html>
Run Code Online (Sandbox Code Playgroud)
然后我将端口更改为8088.但是当我输入localhost:8088
浏览器时,我得到了同样的错误.