2015-09-15 61 views
0

我是一名新的eclipse,在新的webapp开始时遇到困难。 index.jsp不显示。eclipse webapp欢迎文件显示错误

enter image description here

的web.xml:

<?xml version="1.0" encoding="UTF-8"?> 
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> 

<display-name>PizzaOrderApp</display-name> 

<welcome-file-list> 
<welcome-file>index.jsp</welcome-file> 
</welcome-file-list> 
</web-app> 

我已经与http://localhost:8080/PizzaOrderApp/index.jsphttp://localhost:8080/PizzaOrderApp/jsp/index.jsp

tryed删除 - READD Tomcat服务器后:

enter image description here

回答

0

您是否曾尝试将.jsp文件直接放入WebContent文件夹中,而不是为JSP页面创建文件夹?

+0

是的。已经试过了。我想问题是在Web描述符或Tomcat配置端。不幸的是我不熟悉那个。 – Istvan

+0

您是否在控制台中发生错误?如果是这样的话......错误是什么 – Chandrasekar

+0

2行可能有原因: 警告:[SetPropertiesRule] {Server/Service/Engine/Host/Context}将属性'source'设置为'org.eclipse.jst.jee.server: PizzaOrderApp'没有找到匹配的属性。 信息:基于APR的Apache Tomcat本机库允许在生产环境中获得最佳性能,但未在java.library.path中找到: – Istvan

0

我也遇到了这个问题,但我做错了什么,我创建了 动态项目在Eclipse与动态Web模块版本3.0。它 不会给你Web.xml文件。我从其他项目 添加Web.xml文件,但仍欢迎文件没有得到。

然后我删除了该项目,并使用Dynamic Web创建了该项目 模块版本2.4,它给了我Web.xml文件。我再次在Web.xml文件中配置 欢迎文件,之后它的工作正常。服务器 我使用的是Tomcat 7和Eclipse 1.7,Eclipse Luna。 enter image description here

相关问题