我编了个struts2文件,可是启动tomcat时就报错误 :错误1:Error filterStart
警告:Settings:Couldnotparsestruts.localesetting,substitutingdefaultVMlocale2011-11-2022...
警告: Settings: Could not parse struts.locale setting, substituting default VM locale
2011-11-20 22:13:38 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Action class [loginAction] not found - action - file:/D:/tomcat/Tomcat%206.0/webapps/struts2/WEB-INF/classes/struts.xml:13:42
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfi
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<!-- 配置Struts2核心控制器拦截所有用户请求 -->
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app> 展开
2011-11-20 22:13:38 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Action class [loginAction] not found - action - file:/D:/tomcat/Tomcat%206.0/webapps/struts2/WEB-INF/classes/struts.xml:13:42
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfi
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<!-- 配置Struts2核心控制器拦截所有用户请求 -->
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app> 展开
展开全部
struts.xml中loginAction没配好,你贴的是web.xml的代码吧
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
兄弟,你的错误我怀疑是struts.xml中的,你把个web.xml的帖出来干毛毛,还让不让人过年了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
配置文件贴出来?
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询