使用myeclipse整合struts与hibernate时出现此问题:
java.lang.NoSuchMethodError: antlr.collections.AST.getLine()
原因: antlr版本冲突
解决方法:
右键工程-> Properties -> Java Build Path -> Libraries
-> 选择 'Struts x.x Libraries' -> Edit...
-> 打勾 Enable project specific advanced configuration
-> 取消 'Struts x.x Libraries > Core > antlr-2.7.2.jar'
-> Finish