Analysis and Solution to the unable to load configuration error in struts2

Source: Internet
Author: User

From: http://www.itzhai.com/struts2-in-unable-to-load-configuration-error-analysis-and-solution.html

When an error such as unable to load configuration. occurs, you can find out the cause based on the error prompt.

 
Unable to load configuration. -interceptor-ref-file:/D:/Java/Apache-Tomcat-6.0.32/webapps/examquestions/WEB-INF/classes/struts. XML: 28: 49at COM. opensymphony. xwork2.config. configurationmanager. getconfiguration (configurationmanager. java: 58 )... caused by: unable to find interceptor class referenced by ref-name excludeparamsstack-interceptor-ref-file:/D: /Java/Apache-Tomcat-6.0.32/webapps/examquestions/WEB-INF/classes/struts. XML: 28: 49at COM. opensymphony. xwork2.config. providers. interceptorbuilder. constructinterceptorreference (interceptorbuilder. java: 52 )...

If you encounter this error, view the above:

 
Unable to load configuration.-interceptor-ref-file:/D:/Java/Apache-Tomcat-6.0.32/webapps/examquestions/WEB-INF/classes/struts. xml: 28: 49

An error occurred while listing 49 columns in 28 rows of Struts. xml. Locate the corresponding location and find the corresponding location.Code:

 
<Interceptor-ref name = "excludeparamsstack"/>

Continue to check the following prompt for caused by, and find that the referenced Interceptor: excludeparamsstack is not found here. After checking, it turns out that it was forgotten in struts. the interception stack excludeparamsstack is defined in the XML file.

The solution is to add the following configuration in struts. xml:
 
   
    
     
      ext-comp -. *  
     
    
   

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.