1
我知道的是關於順序,但我已經嘗試了所有posibilities, 如果它是某人可以解釋我我的web.xml文件 感謝的順序元素類型「servlet」的內容必須匹配「(icon?,servlet-name,display-name ?,
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<listener>
<listener-class>com.ewheelz.SessionCounter</listener-class>
</listener>
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>ConnectionPool</servlet-name>
<servlet-class>com.ewheelz.ConnectionPool</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ConnectionPool</servlet-name>
<url-pattern>/servlet/ConnectionPool</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>Home.html</welcome-file>
</welcome-file-list>
</web-app>
你檢查你的鏈接[DTD](http://java.sun.com/dtd/web-app_2_3.dtd)? – 2014-09-25 19:23:18