"Error" Java.lang.RuntimeException:Invalid action class configuration references an unknown class named [Xxxaction]

Source: Internet
Author: User

Java.lanG.runtimeexception:invalid Action class configuration that references an unknown class named [Xxxaction].

When using SSH for project development, the above error may occur inadvertently. Summary of the Forum expert development experience for the cause of this error to do a specific analysis, hoping to help the same problem of the children's shoes:

Such a question can be simply understood as not finding an action with the name XXX

1) xxxaction does not configure the corresponding action in the Struts.xml;

capitalization is critical, and it's important to check the names in struts.xml for errors .

2) If spring is used to manage the action, it is possible that the corresponding bean is not configured in the spring configuration file;

Spring Injection Check

3) If all of the above are excluded, the result results may not be configured in the action configuration in Struts.xml, at which point the result entry is checked, or if the type of result is correct, check that the return string of the action is spelled correctly;

If the action returns an uppercase "SUCCESS" or "INPUT", the Name property of result in Struts.xml must be uppercase. If lowercase, configure lowercase. Failure to match can also cause the above error to occur.

4) If the above is excluded, may be the action in the form page data, the data type is incompatible, such as taking a string into the int type variable;

Your form submission or hyperlink jump is an error in the delivery of the parameter:

1. If there is a related set and get method that receives this parameter in action

2. The type of receive parameter in action and whether the page matches

5) If all of the above are excluded, you may have written the validate () method of the form verification, you need to examine the logic carefully

"Error" Java.lang.RuntimeException:Invalid action class configuration references an unknown class named [Xxxaction]

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.