错误提示为: Thecontentofelementtype "web-app" mustmatch
经查证错误原因为:WEB.XML中对Filter , servlet ,taglib等配置信息的顺序有特别严格的规定。
其顺序应该如下所示:
<filter>
<filter-name>popedomcontrol</filter-name>
<filter-class>com.wake.util.PopedomControl</filter-class>
</filter>
<filter-mapping>
<filter-name>popedomcontrol</filter-name>
<url-pattern>/admin/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>webwork</servlet-name>
<servlet-class>com.opensymphony.webwork.dispatcher.ServletDispatcher</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>webwork</servlet-name>
<url-pattern>*.action</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>/error.jsp</location>
</error-page>
<taglib>
<taglib-uri>webwork</taglib-uri>
<taglib-location>/WEB-INF/webwork.tld</taglib-location>
</taglib>