1:Cannot locate the chosen ObjectFactory implementation: spring
缺少jar包:struts2-spring-plugin-2.1.8.jar类找不着
2:Line: 209 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1
此错误原因是struts对spring的支持需要struts2-spring-plugin-2.1.8.jar 包,添加jar包之后需要在web.xml中添加对应的监听spring监听器和配置参数
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
3:Struts dispatcher cannot be found. This is usually caused by using Struts tags
web.xml中url-pattern的值必须是/*保证所有的请求都要经过struts的过滤器