-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate Log Messages, Is hibernate configured correctly?
PostPosted: Fri Jun 13, 2014 11:51 am 
Newbie

Joined: Fri Jun 13, 2014 11:30 am
Posts: 1
I am trying to set up Hibernate for a JNDI resource pool in tomcat. I have read tutorials explaining how to configure hibernate to use the JNDI resource and Hibernate works, at least i am able to insert into a table User in my database. However I don't know how to confirm if Hibernate is using the JNDI resource. Here is the log:
Code:
Jun 13, 2014 6:42:13 PM org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
Jun 13, 2014 6:42:13 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.2.6.Final}
Jun 13, 2014 6:42:13 PM org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
Jun 13, 2014 6:42:13 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
Jun 13, 2014 6:42:13 PM org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
Jun 13, 2014 6:42:13 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
Jun 13, 2014 6:42:13 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
Jun 13, 2014 6:42:13 PM org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: database/User.hbm.xml
Jun 13, 2014 6:42:13 PM org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
Jun 13, 2014 6:42:13 PM org.hibernate.dialect.Dialect <init>
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
Jun 13, 2014 6:42:13 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
Hibernate: insert into AxioDB.User (usernameHash, firstName, lastName, address, email, passwordHash, telephone, username) values (?, ?, ?, ?, ?, ?, ?, ?)


Does this mean that Hibernate is not picking up the JNDI and is using its own configuration?
Code:
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)


Mind that I dont have any experience with any ORM models.
Also excuse me for my poor english.
Thank you in advance


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

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.