[英]Tomcat v7.0 - http://localhost:8080/ works but my page doesnt
Im new to JSF and I've been having the following issue: 我刚接触JSF,一直遇到以下问题:
I tried a simple example from a Tutorial, the famous Hello World thing... But I keep getting 404 Errors. 我尝试了一个教程中的一个简单示例,即著名的Hello World之类的东西,但是我不断收到404错误。
I dont have any problems when accessing the localhost:8080 from my Eclipse (Indigo). 从我的Eclipse(Indigo)访问localhost:8080时,我没有任何问题。 But it only works when I choose the option in the Tomcat server I created in Eclipse: (double click in server) -> Server locations -> Use Tomcat installation
但是只有在我在Eclipse中创建的Tomcat服务器中选择该选项时,它才起作用:(双击服务器)->服务器位置->使用Tomcat安装
But when I try to connect to any page of my projects, I get 404 Error. 但是,当我尝试连接到项目的任何页面时,都会出现404错误。
"description The requested resource is not available." “说明所请求的资源不可用。”
I really tried a lot of things, Ive been searching about it for days (yes, days) and nothing so far. 我真的做了很多事情,我已经搜索了好几天(是,几天),到目前为止没有任何东西。
Does any one have a clue? 有人有线索吗?
Do you see your files in the tomcat/webapp directory? 您在tomcat / webapp目录中看到文件了吗? If not check your deploy path in eclipse server configuration.
如果没有,请在Eclipse服务器配置中检查您的部署路径。 The deploy path is
<Tomcat>/webapp/
and you find your files under <tomcat>/webapps/<yourprojectname>/xyz.xhtml
fe 部署路径为
<Tomcat>/webapp/
,您可以在<tomcat>/webapps/<yourprojectname>/xyz.xhtml
fe下找到文件。
Hope this helps ... 希望这可以帮助 ...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.