Error java. Lang. nosuchmethoderror: anlr. Collections. Ast. Getline () Solution

Source: Internet
Author: User

Anlr. Collections. Ast. Getline () I exception
Struts + hibernate + springProblems frequently encountered in projects
Because struts comes with the antlr-2.7.2.jar, than hibernate3.3 comes with anlr-

2.7.6.jar must be of a low version, so the previous earlier version must be deleted.

Core libraries to delete the antlr-2.7.2.jar alone is not possible, fuck must put

The entire database can be killed.
Method 1:
1: Window --> perferences --> Search struts2 --> struts2 core Libraries

Antlr-2.7.2.jar inRemove and add hibernate
Antlr-2.7.6.jar in
2.Then romove the original struts2Libraries, just add the new library
3.If the program is already running, you also need to delete the antlr-2.7.2.jar under Tomcat
Method 2:
1. romoveOriginal struts2Libraries
2. Build pathStruts2 core Libraries
In addition-

2.7.2.jar. Therefore, the data \ 2.1 \ core package
Remove antlr-2.7.2.jar (this is

2.1)
Okay, this is removed from struts1.3 and 2.1, because the two jar files are

Chinese garbled characters

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.