SS integration problems
It took half a day to get this first time ..... The following are some solutions to the problem, all from the Internet...
Problem 1, cocould not open servletcontext resource [/WEB-INF/applicationcontext. xml]
1. Web. xml Problems
<Context-param>
<Param-Name> contextconfiglocation </param-Name>
<Param-value>/WEB-INF/classes/applicationcontext. xml </param-
Value>
</Context-param>
The default configuration file location for loading spring is usually in the/WEB-INF/to find applicationcontext. xml file
. The applicationcontext file automatically generated by myeclipse is stored in/Web-
INF/classes/applicationcontext. xml. Therefore, it cannot be found in the default loading.
For the applicationcontext. xml file, the above configuration must be added.
Problem 2: Unable to load configuration.-Action-| caused by: Action class [Login] Not found-action-error logging ing application listener of class
Question 3: org. springframework. Web. Context. contextloaderlistener
2. Struts and spring jar packages are missing
Directly use the struts and spring jar in myeclipse8.0, but the jar is still missing when the two are integrated.
Added the struts jar
Struts2-spring-plugin-2.1.8.jar
Jar package to be added in spring
Spring. Jar
Spring-web.jar