tomcat一重启,就报出来这个错误Unable to load configuration 5
Unabletoloadconfiguration.-action-file:/E:/apache-tomcat-7.0.52/webapps/struts2_demo1...
Unable to load configuration. - action - file:/E:/apache-tomcat-7.0.52/webapps/struts2_demo1/WEB-INF/classes/struts.xml:9:88
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
at
tomcat一重启,就报出来这个错误,struts.xml配置如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<include file="struts-default.xml"/>
<package name="struts2_login" extends="struts-default" >
<action name="checkLogin" class="com.info.act.LoginAction" method="checkLogin">
<result name="success">/index.jsp</result>
<result name="login">/login.jsp</result>
</action>
</package>
</struts>
坐等高手回答。 展开
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
at
tomcat一重启,就报出来这个错误,struts.xml配置如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<include file="struts-default.xml"/>
<package name="struts2_login" extends="struts-default" >
<action name="checkLogin" class="com.info.act.LoginAction" method="checkLogin">
<result name="success">/index.jsp</result>
<result name="login">/login.jsp</result>
</action>
</package>
</struts>
坐等高手回答。 展开
1个回答
2014-12-03
展开全部
加载struts.xml配置文件的时候报错了,配置action的时候,method="checkLogin"这个属性不要,还有你引入的struts-default.xml这个xml代码呢?<result name="success">/index.jsp</result>这里改成<result name="success" type="dispatcher">/index.jsp</result>试试看。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询