为什么Eclipse打开http:// localhost:8080 / de.vogella.jersey.first / WEB-INF / web.xml

时间:2011-09-27 14:53:05

标签: eclipse web.xml

我遵循了以下教程(虽然我安装了Glassfish开源版,而不是Tomcat,并使用Eclipse Indigo):http://www.vogella.de/articles/REST/article.html

Web服务没问题,但是当我从Eclipse“运行”项目时,Eclipse会打开一个新窗格,显示Web浏览到http://localhost:8080/de.vogella.jersey.first/WEB-INF/web.xml的结果。 关键是浏览器产生以下结果:

HTTP Status 404 - 

--------------------------------------------------------------------------------

type Status report

message

descriptionThe requested resource () is not available.

--------------------------------------------------------------------------------

GlassFish Server Open Source Edition 3.1.1

我不明白这是什么。获取web.xml的重点是什么? 我这是正常的行为吗?如何删除?

谢谢!

SCO

1 个答案:

答案 0 :(得分:1)

我可能不正确但我认为你单击运行时必须关注web.xml。所以eclipse试图运行你要求的任何东西。打开你的index.jspx或你想先看的任何jsp页面,然后点击run。

相关问题