问题:
Unable to load configuration. - package - file:/F:/Tomcat/Tomcat%206.0/webapps/Struts_Hibernate/WEB-INF/classes/struts.xml:6:51struts.xml的配置
<interceptors>
<interceptor name="myInterceptor" class="org.tool.MyInterceptor"></interceptor>
</interceptors>
<default-interceptor-ref name=""></default-interceptor-ref>

<action name="getAllKc" class="org.action.KcAction">
<result name="success">/allKc.jsp</result>
<interceptor-ref name="defaultStack"></interceptor-ref>
<interceptor-ref name="myInterceptor"></interceptor-ref>
</action>myInterceptor.java文件package org.tool;
import java.util.Map;
import org.action.KcAction;
import org.model.Dlb;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;public class MyInterceptor extends AbstractInterceptor{
public String intercept(ActionInvocation arg0) throws Exception{
KcAction action=(KcAction)arg0.getAction();
Map session=(Map)ActionContext.getContext().getSession();
Dlb user=(Dlb)session.get("user");
if(user==null){
return Action.ERROR;
}
return arg0.invoke();
}
}