我的struts2.0的web.xml配置如下为什么一启动tomcat就出现这样的错误呢,谁能帮帮忙,谢谢了
<?xml version="1.0" encoding="ISO-8859-1"?>
<!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>
<display-name> Struts 2.0 Hello World </display-name>
<filter>
<filter-name> struts2 </filter-name>
<filter-class> org.apache.struts2.dispatcher.FilterDispatcher </filter-class>
</filter>
<filter-mapping>
<filter-name> struts2 </filter-name>
<url-pattern> /* </url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file> index.html </welcome-file>
</welcome-file-list>
</web-app> Struts.xml文件如下 <!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd"> <struts>
<package name="tutorial" extends="struts-default">
<action name="hello" class="tutorial.HelloWorld">
<result> /HelloWorld.jsp </result>
</action>
<!-- Add your actions here -->
</package>
</struts>
tomcat启动错误如下:
007-11-26 10:19:30 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2007-11-26 10:19:30 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors
<?xml version="1.0" encoding="ISO-8859-1"?>
<!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>
<display-name> Struts 2.0 Hello World </display-name>
<filter>
<filter-name> struts2 </filter-name>
<filter-class> org.apache.struts2.dispatcher.FilterDispatcher </filter-class>
</filter>
<filter-mapping>
<filter-name> struts2 </filter-name>
<url-pattern> /* </url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file> index.html </welcome-file>
</welcome-file-list>
</web-app> Struts.xml文件如下 <!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd"> <struts>
<package name="tutorial" extends="struts-default">
<action name="hello" class="tutorial.HelloWorld">
<result> /HelloWorld.jsp </result>
</action>
<!-- Add your actions here -->
</package>
</struts>
tomcat启动错误如下:
007-11-26 10:19:30 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2007-11-26 10:19:30 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货