-->
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: Problem with missing property file which does not missing
PostPosted: Mon Sep 22, 2008 8:50 am 
Newbie

Joined: Mon Sep 22, 2008 8:45 am
Posts: 5
This line of code in famous HibernateUtil:

Code:
sessionFactory = new Configuration().configure(HIBERNATE_CONFIG).buildSessionFactory();


prints this:

Code:
21.09.2008. 21.40.59 org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.6
21.09.2008. 21.40.59 org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
21.09.2008. 21.40.59 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
21.09.2008. 21.40.59 org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
21.09.2008. 21.40.59 org.hibernate.cfg.Configuration configure
INFO: configuring from resource: model/hibernate/hibernate.cfg.xml
21.09.2008. 21.40.59 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: model/hibernate/hibernate.cfg.xml
21.09.2008. 21.40.59 org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : model/hibernate/Country.hbm.xml
21.09.2008. 21.40.59 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: model.hibernate.Country -> country
21.09.2008. 21.40.59 org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : model/hibernate/Airport.hbm.xml
21.09.2008. 21.40.59 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: model.hibernate.Airport -> airport
21.09.2008. 21.40.59 org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : model/hibernate/Flight.hbm.xml
21.09.2008. 21.40.59 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: model.hibernate.Flight -> flight
21.09.2008. 21.41.00 org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : model/hibernate/Ticket.hbm.xml
21.09.2008. 21.41.00 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: model.hibernate.Ticket -> ticket
21.09.2008. 21.41.00 org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : model/hibernate/Airplane.hbm.xml
21.09.2008. 21.41.00 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: model.hibernate.Airplane -> airplane
21.09.2008. 21.41.00 org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
21.09.2008. 21.41.00 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
INFO: Mapping collection: model.hibernate.Airport.flightsForToId -> flight
21.09.2008. 21.41.00 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
INFO: Mapping collection: model.hibernate.Airport.flightsForFromId -> flight
21.09.2008. 21.41.00 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
INFO: Mapping collection: model.hibernate.Flight.ticketsForReturningId -> ticket
21.09.2008. 21.41.00 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
INFO: Mapping collection: model.hibernate.Flight.ticketsForDepartureId -> ticket
21.09.2008. 21.41.00 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
INFO: Mapping collection: model.hibernate.Airplane.flights -> flight
21.09.2008. 21.41.00 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
21.09.2008. 21.41.00 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 20
21.09.2008. 21.41.00 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: autocommit mode: false
21.09.2008. 21.41.00 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: org.gjt.mm.mysql.Driver at URL: jdbc:mysql://localhost/sat
21.09.2008. 21.41.00 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=umpirsky, password=****}
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: RDBMS: MySQL, version: 5.0.51b-community-nt
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.5 ( Revision: ${svn.Revision} )
21.09.2008. 21.41.00 org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
21.09.2008. 21.41.00 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Using default transaction strategy (direct JDBC transactions)
21.09.2008. 21.41.00 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch size: 15
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch updates for versioned data: disabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): enabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Maximum outer join fetch depth: 2
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL inserts for batching: disabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
21.09.2008. 21.41.00 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: disabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.NoCacheProvider
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
21.09.2008. 21.41.00 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
21.09.2008. 21.41.00 org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
21.09.2008. 21.41.01 org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
21.09.2008. 21.41.01 org.hibernate.impl.SessionFactoryImpl close
INFO: closing
21.09.2008. 21.41.01 org.hibernate.connection.DriverManagerConnectionProvider close
INFO: cleaning up connection pool: jdbc:mysql://localhost/sat
21.09.2008. 21.41.03 org.hibernate.impl.SessionFactoryImpl close
INFO: closing
21.09.2008. 21.41.03 org.hibernate.connection.DriverManagerConnectionProvider close
INFO: cleaning up connection pool: jdbc:mysql://localhost/sat
21.09.2008. 21.41.03 org.hibernate.impl.SessionFactoryImpl close
INFO: closing
21.09.2008. 21.41.03 org.hibernate.connection.DriverManagerConnectionProvider close
INFO: cleaning up connection pool: jdbc:mysql://localhost/sat
21.09.2008. 21.41.03 org.hibernate.impl.SessionFactoryImpl close
INFO: closing
21.09.2008. 21.41.03 org.hibernate.connection.DriverManagerConnectionProvider close
INFO: cleaning up connection pool: jdbc:mysql://localhost/sat


hibernate.cfg.xml looks like this:

Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
    <session-factory>
        <property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property>
        <property name="hibernate.connection.password">*******</property>
        <property name="hibernate.connection.url">jdbc:mysql://localhost/sat</property>
        <property name="hibernate.connection.username">user</property>
        <property name="hibernate.current_session_context_class">thread</property>
        <property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
        <mapping resource="model/hibernate/Country.hbm.xml" />
        <mapping resource="model/hibernate/Airport.hbm.xml" />
        <mapping resource="model/hibernate/Flight.hbm.xml" />
        <mapping resource="model/hibernate/Ticket.hbm.xml" />
    </session-factory>
</hibernate-configuration>


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.