Java.lang.NoSuchMethodError:org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar

Source: Internet
Author: User

Today in the server deployment, this problem occurred, clearly in the use of the machine, no error occurred, but posted to the server when the error occurred, Baidu for a long time, found that there are many people encounter this problem, but there is no more satisfactory answer, and then through Google to the answer, This problem occurs because of a problem with the package conflict, here is the answer I found:

You ' re probably picking a incompatible mix of classes from Xerces 2.8.1 and some old version of Xerces (something Prio R to 2.7.0) which are somewhere on your classpath or perhaps in the endorsed directory of your JDK 1.4 installation.

, and then I went to my project carefully review, found that really is, lib package under the Xerces 2.8.1 and xerces2.6.x, then I put 2.6 of that rack to delete, there is no problem. Because afraid of this problem later, do not know how to solve, so remember

Java.lang.NoSuchMethodError:org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar

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.