Unable to instantiate Action, action.UsersAction, defined for 'Users_login' in

阅读更多

今天遇到一个很奇葩的问题,就是我在没有动过struts.xml情况下,无端端地执行action会出现下面的情况:

Unable to instantiate Action, action.UsersAction,  defined for 'Users_login' in 
namespace '/users'action.UsersAction - action - file:/D:/tomcat/webapps/Sapt/WEB-INF/
classes/struts.xml:12:63
而且执行登陆的action也是没有问题的,以下是我的struts.xml




	
	

	
	
		
		/users/Users_login_success.jsp
		/users/Users_login.jsp
		/users/Users_login.jsp
		/users/Users_login.jsp
		
	

	
		
		/students/Students_query_success.jsp
		/students/Students_add_success.jsp
		/students/Students_modify_success.jsp
		/students/Students_modify_fail.jsp
		/students/Students_modify.jsp
		/students/Students_queryone.jsp
		/students/Students_Query_result.jsp
		/students/Students_Query_noresult.jsp
		Students_query
		/students/Students_login_success.jsp
		
		/students/Students_login.jsp
		/students/Students_add.jsp
		/students/Students_add.jsp
/students/Students_add.jsp
Students_selectByCondition.action
		
	

	
		
		/webStudent/webStudent_inputExcel.jsp
	/webStudent/webStudent_inputExcel_success.jsp
		
	/webStudent/webStudent_inputExcel_failed.jsp
		
		
	
	
		
	/score/Score_query_success.jsp
	/score/AddScore_success.jsp
		/score/UpdateScore_success.jsp
		
	

	
		
			/sign/AddSign.jsp
		
	

	
		

		
	
	
		
			/score/listUI.jsp
		
	

	
		
			/class/listUI.jsp
			/class/listStudentUI.jsp
			/class/addUI.jsp
	Class_listUI.action
		
	

	
		
			/score/listUI.jsp
			/score/listClassUI.jsp
		
	


然后我就按照它提示的路径打开tomcat里的struts.xml,发现内容没错啊。我猜系myeclipse sort佐,重启一下就ok了。

你可能感兴趣的:(struts)