Caused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location] 的解决方式
1。添加网上所说的struts2 plugin jar包
2.
<!-- Struts2配置 -->
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
<init-param>
<param-name>config</param-name>
<param-value>struts-default.xml,struts-plugin.xml,struts.xml</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
添加上述配置文件xml
ssh ssi整合心得:可以先通过myeclipse的支持,但是这样可能会有很多不必要的jar包。练习的时候不要在乎这些细节。
Spring包(9个):?
commons-dbcp.jar、commons-pool.jar、spring.jar、spring-beans.jar、?
spring-context.jar、spring-core.jar、spring-dao.jar、?
spring-hibernate3.jar、spring-web.jar。
struts2.0包(6个):commons-logging-api-1.1.jar、freemarker-2.3.8.jar?
ognl-2.6.11.jar、struts2-core-2.0.8.jar、?
struts2-spring-plugin-2.0.11.2.jar、xwork-2.0.3.jar