The solution of Java.lang.ClassCastException:org.apache.catalina.util.DefaultAnnotationProcessor

Source: Internet
Author: User

When Catalina.jar under Lib under the Tomcat directory is referenced in the project, when the project is deployed under Tomcat with MyEclipse, the Catalina.jar package is added under the Lib folder under Web-inf of the project, so that the package will be under Tomcat Face of the Lib under the Catalina.jar packet conflict will be reported java.lang.ClassCastException: Org.apache.catalina.util.DefaultAnnotationProcessor error, the workaround is to deploy the project to Tomcat below, and the project's web-inf/ The Catalina.jar under Lib is deleted, then the restart Tomcat, OK.

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.