eclipse 请求的资源 () 不可用。(在下载 JSF 2.0 项目后运行 Tomcat 7.0 时)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4728110/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
The requested resource () is not available. (when running Tomcat 7.0 after downloading of JSF 2.0 project)
提问by kungcc
I have created a new Dynamic Web Project in eclipse 3.6.
我在 eclipse 3.6 中创建了一个新的动态 Web 项目。
I added a Tomcat 7.0 server and choose "Run on server" on a jsf file. Working fine!
我添加了一个 Tomcat 7.0 服务器并在 jsf 文件上选择“在服务器上运行”。工作正常!
I added it to a SVN repository to share it with other.
我将它添加到 SVN 存储库以与其他人共享。
I close Eclipse.
我关闭 Eclipse。
I create a new fresh workspace to check that everything works okey. Checking out the same project as above.
我创建了一个新的新工作区来检查一切是否正常。检查与上述相同的项目。
I added a Tomcat 7.0 server and choose "Run on server" on the same file as before. This result in a 404: "HTTP Status 404 .... - description The requested resource () is not available."
我添加了一个 Tomcat 7.0 服务器并像以前一样在同一个文件上选择“在服务器上运行”。这会导致 404:“HTTP 状态 404 .... - 描述请求的资源 () 不可用。”
Why is that?? This is really strange! Don't you think? Can you please help me?
这是为什么??这真的很奇怪!你不觉得吗?你能帮我么?
Best regards
此致
回答by Thorbj?rn Ravn Andersen
Remove the dynamic web project from the Tomcat server and add it again.
从 Tomcat 服务器中删除动态 Web 项目并重新添加。