【问题标题】:Why does Eclipse opens http://localhost:8080/de.vogella.jersey.first/WEB-INF/web.xml为什么 Eclipse 打开 http://localhost:8080/de.vogella.jersey.first/WEB-INF/web.xml
【发布时间】:2011-09-27 14:53:04
【问题描述】:

我遵循了以下教程(尽管我安装了 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 有什么意义? 我这是正常行为吗?这个怎么去掉?

谢谢!

上海

【问题讨论】:

    标签: eclipse web.xml


    【解决方案1】:

    我可能不正确,但我认为您在单击运行时一定已经将注意力集中在 web.xml 上。所以eclipse只是试图运行你要求的任何东西。首先打开你的 index.jspx 或任何你想看到的 jsp 页面,然后点击运行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-26
      • 2018-01-27
      • 1970-01-01
      • 2014-05-13
      • 2016-10-05
      • 2013-07-23
      • 1970-01-01
      • 2018-04-16
      相关资源
      最近更新 更多