原因:
1.由于在struts-config.xml中配置出错,注意type属性的值。
2.由于没有编译,在classes目录下面没有对应的action文件。
3.由于struts是线程安全的,所以在action中,如果部分属性加载失败,也会报这个异常。比如,在ssh整合时,往往要在action中取得service,如下:
SelfAppointService selfService = (SelfAppointService) getBean("selfAppointService");
如果在其他action中,getBean("selfAppointService")中的selfAppointService已经存在,也会抛出异常。
1.由于在struts-config.xml中配置出错,注意type属性的值。
2.由于没有编译,在classes目录下面没有对应的action文件。
3.由于struts是线程安全的,所以在action中,如果部分属性加载失败,也会报这个异常。比如,在ssh整合时,往往要在action中取得service,如下:
SelfAppointService selfService = (SelfAppointService) getBean("selfAppointService");
如果在其他action中,getBean("selfAppointService")中的selfAppointService已经存在,也会抛出异常。