Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by AndreaNobili
, 2 years ago
[PersistenceUnit: wifipnsdPU] Unable to build EntityManagerFactory
via java-forum.org by Unknown author, 2 years ago
[PersistenceUnit: my_unit] Unable to build EntityManagerFactory
via Stack Overflow by Daniel Calderon Mori
, 1 year ago
[PersistenceUnit: HBOService] Unable to build EntityManagerFactory
via Stack Overflow by Amson
, 2 years ago
[PersistenceUnit: cofee_p_unit] Unable to build EntityManagerFactory
via Stack Overflow by Unknown author, 2 years ago
[PersistenceUnit: Hx_Maven_JSF-web] Unable to build EntityManagerFactor**y
via Stack Overflow by Gert
, 2 years ago
[PersistenceUnit: core_rw_pu_hibernate] Unable to build EntityManagerFactory
java.lang.ClassCastException: antlr.CommonToken cannot be cast to antlr.Token	at antlr.CharScanner.makeToken(CharScanner.java:173)	at org.hibernate.sql.ordering.antlr.GeneratedOrderByLexer.mIDENT(GeneratedOrderByLexer.java:239)	at org.hibernate.sql.ordering.antlr.GeneratedOrderByLexer.nextToken(GeneratedOrderByLexer.java:139)	at antlr.TokenBuffer.fill(TokenBuffer.java:69)	at antlr.TokenBuffer.LA(TokenBuffer.java:80)	at antlr.LLkParser.LA(LLkParser.java:52)	at org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentParser.expression(GeneratedOrderByFragmentParser.java:565)	at org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentParser.sortKey(GeneratedOrderByFragmentParser.java:346)	at org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentParser.sortSpecification(GeneratedOrderByFragmentParser.java:241)	at org.hibernate.sql.ordering.antlr.GeneratedOrderByFragmentParser.orderByFragment(GeneratedOrderByFragmentParser.java:190)	at org.hibernate.sql.ordering.antlr.OrderByFragmentTranslator.translate(OrderByFragmentTranslator.java:63)	at org.hibernate.sql.ordering.antlr.OrderByFragmentTranslator.translate(OrderByFragmentTranslator.java:69)	at org.hibernate.sql.Template.translateOrderBy(Template.java:721)	at org.hibernate.persister.collection.AbstractCollectionPersister.(AbstractCollectionPersister.java:561)	at org.hibernate.persister.collection.OneToManyPersister.(OneToManyPersister.java:88)	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)	at java.lang.reflect.Constructor.newInstance(Constructor.java:408)	at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:231)	at org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:253)	at org.hibernate.persister.internal.PersisterFactoryImpl.createCollectionPersister(PersisterFactoryImpl.java:201)	at org.hibernate.internal.SessionFactoryImpl.(SessionFactoryImpl.java:415)	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1794)	at org.hibernate.ejb.EntityManagerFactoryImpl.(EntityManagerFactoryImpl.java:96)	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:924)	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:899)	at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:76)	at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:200)	at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$600(PersistenceUnitServiceImpl.java:57)	at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:99)