The Java conversion is a problem caused by the jar package required by JSON,

Source: Internet
Author: User

The Java conversion is a problem caused by the jar package required by JSON,

(i), under the webcontent/web-inf-lib of this project, there is no jar required to import JSON,

(b), the version of the jar package can also cause similar problems, as early as the jar package or the latest version will be caused.

I'm using: Commons-lang3-3.1.jar an exception:

Java.lang.noclassdeffounderror:org/apache/commons/lang/exception/nestableruntimeexception

It can be seen that the jar package is missing, but obviously I have already imported, why do you still report this error?

I used to have this bag Commons-lang3-3.1.jar,

It would be nice to replace him with this bag commons-lang-2.4.jar.

Another reason is that the directory for the imported jar package should not be the same.


Error of which package, corresponding to find, feel the package imported also reported wrong, open the package directory to see if there is no that class, no other version to see, lang3 and Lang directory has changed, so there will be errors.

There are 6 jar packages in JSON,

The following is online search, do not want to see can be ignored:

If there are similar errors can be consulted, the version is different, remember to see if the name of the bread and error messages corresponding to the above.

Commons-beanutils-1.8.0.jar don't add this bag.
Java.lang.noclassdeffounderror:org/apache/commons/beanutils/dynabean
Commons-collections.jar don't add this bag.
Java.lang.noclassdeffounderror:org/apache/commons/collections/map/listorderedmap
Commons-lang-2.4.jar don't add this bag.
Java.lang.noclassdeffounderror:org/apache/commons/lang/exception/nestableruntimeexception
Commons-logging-1.1.1.jar don't add this bag.
Java.lang.noclassdeffounderror:org/apache/commons/logging/logfactory
Ezmorph-1.0.4.jar don't add this bag.
Java.lang.noclassdeffounderror:net/sf/ezmorph/morpher
Json-lib-2.3-jdk15.jar don't add this bag.
Java.lang.noclassdeffounderror:net/sf/json/jsonobject
The corresponding jar package can be downloaded to the Internet, or can be provided below!


The Java conversion is a problem caused by the jar package required by JSON,

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.