在做ssh整合测试的时候,碰到Servlet Action is not available 错误的其他可能原因和解决方法
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" />
</plug-in>
从Struts-Config.xml中移除,在web.xml中加入了
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
<servlet>
<servlet-name>context</servlet-name>
<servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
调试的时候发现了错误java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool
原来是缺少了commons-pool包,手动复制下。