For java. lang. NoClassDefFoundError: org/apache/commons/collections/FastHashMap

Source: Internet
Author: User

For java. lang. NoClassDefFoundError: org/apache/commons/collections/FastHashMap

During Java EE development, when data in the configuration file or user form submitted data is encapsulated in the corresponding attributes of the corresponding JavaBean object: in actual development, use the third method toolkit BeanUtils (the commons-beanutils-xxx.jar depends on the commons-logging-xx.jar ).

For example, in the Java Web project, the imported jar package: commons-beanutils-1.9.3.jar and commons-logging-1.2.jar

This error is reported during running: eption in thread "main" java. lang. NoClassDefFoundError: org/apache/commons/collections/FastHashMap

It seems that you need to import the commons-collections-xx.jar package

Then Bo leads into the commens-collections4-4.1.jar and does not solve the problem

Finally, the problem is solved after the commens-collections-3.2.2.jar is imported.

Related Article

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.