[Go] Project-antlr-2.7.2.jar package conflict based on S2SH framework

Source: Internet
Author: User

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

Org.hibernate.hql.ast.HqlSqlWalker.generatePositionalParameter (hqlsqlwalker.java:896)

Org.hibernate.hql.antlr.HqlSqlBaseWalker.parameter (hqlsqlbasewalker.java:4819)

ORG.HIBERNATE.HQL.ANTLR.HQLSQLBASEWALKER.EXPR (hqlsqlbasewalker.java:1373)

Org.hibernate.hql.antlr.HqlSqlBaseWalker.exprOrSubquery (hqlsqlbasewalker.java:4243)

ORG.HIBERNATE.HQL.ANTLR.HQLSQLBASEWALKER.COMPARISONEXPR (hqlsqlbasewalker.java:3725)

ORG.HIBERNATE.HQL.ANTLR.HQLSQLBASEWALKER.LOGICALEXPR (hqlsqlbasewalker.java:1864)

ORG.HIBERNATE.HQL.ANTLR.HQLSQLBASEWALKER.LOGICALEXPR (hqlsqlbasewalker.java:1789)

Org.hibernate.hql.antlr.HqlSqlBaseWalker.whereClause (hqlsqlbasewalker.java:818)

Org.hibernate.hql.antlr.HqlSqlBaseWalker.query (hqlsqlbasewalker.java:604)

Org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement (hqlsqlbasewalker.java:288)

Org.hibernate.hql.antlr.HqlSqlBaseWalker.statement (hqlsqlbasewalker.java:231)

Org.hibernate.hql.ast.QueryTranslatorImpl.analyze (querytranslatorimpl.java:254)

Org.hibernate.hql.ast.QueryTranslatorImpl.doCompile (querytranslatorimpl.java:185)

Org.hibernate.hql.ast.QueryTranslatorImpl.compile (querytranslatorimpl.java:136)

Org.hibernate.engine.query.hqlqueryplan.<init> (hqlqueryplan.java:101)

Org.hibernate.engine.query.hqlqueryplan.<init> (HQLQUERYPLAN.JAVA:80)

Org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan (queryplancache.java:94)

Org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan (abstractsessionimpl.java:156)

Org.hibernate.impl.AbstractSessionImpl.createQuery (abstractsessionimpl.java:135)

Org.hibernate.impl.SessionImpl.createQuery (sessionimpl.java:1651)

........................................................................

When we are building Struts2, Spring, hibernate framework.

Encounter a problem, the execution of Hibernate statement after the project is issued error: Java.lang.NoSuchMethodError:antlr.collections.AST.getLine (),

Previously heard is a jar package conflict problem, originally also calculate SSH integration when a classic bug (the main strange MyEclipse):

The Antlr-2.7.2.jar of struts comes in conflict with the Antlr-2.7.6.jar of Hibernate3.3, and the old jar package needs to be removed. Although the process is a bit difficult, but finally, the final summary is as follows:

    1. Search Antlr-2.7.2.jar in the Configuration\org.eclipse.osgi\bundles directory of MyEclipse, delete all antlr-2.7.2 jar package files; MyEclipse in common In the \plugins directory
    2. Search *struts*.jar A total of 3 jar packages, with software such as WinRAR to open it, delete lib or data under the Antlr-2.7.2.jar file.

[Go] Project-antlr-2.7.2.jar package conflict based on S2SH framework

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.