antlr.CommonToken cannot be cast to antlr.Token
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.