-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: EnityManager NamedQuery
PostPosted: Thu Oct 19, 2006 6:18 pm 
Newbie

Joined: Thu Mar 31, 2005 11:59 pm
Posts: 10
Is there any way to turn on a more detailed trace for the parsing of named queries under the EntityManager?

Right now with the GA version 3.2 of Hibernate, Annotations, and EnityManager running on Glassfish I merely get an exception that says "Errors in named Queries" with no more specificity.



log4j:WARN Please initialize the log4j system properly.
org.hibernate.HibernateException: Errors in named queries: Enamel.findAll
javax.persistence.PersistenceException: org.hibernate.HibernateException: Errors in named queries: Enamel.findAll
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:698)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:195)
at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:91)
at com.sun.enterprise.server.AbstractLoader.loadPersistenceUnits(AbstractLoader.java:849)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 20, 2006 1:27 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
configure log4j properly so log4j:WARN Please initialize the log4j system properly doesn't occur.

then you get all the info you want.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.