SS integration problems

Source: Internet
Author: User

 

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.