antlr.CommonToken cannot be cast to antlr.Token

Solution Unverified - Updated -

Issue

  • When we deploy our application (which was working in tomcat earlier), we get the following error:

{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"abc.war#abclog\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"abc.war#abclog\": javax.persistence.PersistenceException: [PersistenceUnit: abclog] Unable to build EntityManagerFactory Caused by: javax.persistence.PersistenceException: [PersistenceUnit: abclog] Unable to build EntityManagerFactory Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.collection.OneToManyPersister Caused by: org.hibernate.HibernateException: Unable to parse order-by fragment Caused by: java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token"}}}}

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content