Java.lang.NoSuchMethodError:antlr.collections.AST.getLine () I error resolution

Source: Internet
Author: User

Under the Java EE Framework to develop Web sites, this problem is often encountered, as long as we search online, we can see a lot of versions, I tidy up:
The first possibility to solve: Look at my project: mainly inside the structs 1.3 (structs 2) and Hibernate 3.2 (or later) in the jar package antlr2.7.2 with antlr2.7.6 conflict, just delete structs The low version of antlr2.7.2 in 1.3 is available. Here's how to do this: under MyEclipse,windows-->preferences--> Search in the text box struts2--> Select Antlr2.7.2-->remove
The second possibility to solve: mainly inside the structs 1.3 and Tomact in the antlr2.7.2 and antlr2.7.6 conflict Delete antlr2.7.2 can, concrete method: MyEclipse under,windows-->  Preferences--> Search in text box struts2--> Select Antlr2.7.2-->remove in tomcat the app's directory web-inf\lib delete Antlr2.7.2.jar It seems like there are two ways to solve this.

Java.lang.NoSuchMethodError:antlr.collections.AST.getLine () I error resolution

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.