Servlet Action is not available 错误的其他可能原因和解决方法
Servlet Action is not available 错误的其他可能原因和解决方法
今天碰到了这个错误,找了很多方法包括了Amigo姐姐的,都不能解决。。没办法只好把
<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>
调试的时候发现了错误,Myeclipse在部署的时候没有把一些类库添加到lib里面(我的是jboss-j2ee.jar )。手动复制下。
解决后,再改回来就没问题了。