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