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.  [ 3 posts ] 
Author Message
 Post subject: Strange problem creating Session Factory and mappings
PostPosted: Thu May 05, 2005 11:07 am 
Newbie

Joined: Thu May 05, 2005 10:48 am
Posts: 4
Sorry if it's a stupid error but I'm working with Hibernate 3.0 and I'm loving the developing beneficts my company had developing web applications with Hibernate.
But with a particular web application, using JBOSS, I had a stange behavior o Hibernate that can't stop the configuration process of the Session Factory and mapping process of my classes.

I using the following hibernate.cfg.xml:

<?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>
<!-- properties -->
<property name="show_sql">true</property>
<property name="connection.username">root</property>
<property name="connection.url">jdbc:mysql://192.168.1.202/requisitos</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.password">some_password_here</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>

<!-- mapping files -->
<!-- <mapping resource="Requisito.hbm.xml"/>-->
<mapping resource="Status.hbm.xml"/>
<!-- <mapping resource="CasoUso.hbm.xml"/>
<mapping resource="Modulo.hbm.xml"/>
<mapping resource="Projeto.hbm.xml"/>-->
</session-factory>

</hibernate-configuration>

When the application initiates, no error is given by the eclipse console. The only thing that happens is that some messages are repeated all the time until I stop JBoss. While this, nothing is shown by the browser.

Here's the messages that repeats:

*************************************************************************************************************
10:44:05,957 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
10:44:05,957 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
10:44:05,980 INFO [Configuration] Mapping resource: Requisito.hbm.xml
10:44:06,637 INFO [HbmBinder] Mapping class: app.Requisito -> requisito
10:44:06,688 INFO [Configuration] Mapping resource: Status.hbm.xml
10:44:06,731 INFO [HbmBinder] Mapping class: app.Status -> status
10:44:06,735 INFO [Configuration] Mapping resource: CasoUso.hbm.xml
10:44:06,752 INFO [HbmBinder] Mapping class: app.CasoUso -> caso_uso
10:44:06,754 INFO [Configuration] Mapping resource: Modulo.hbm.xml
10:44:06,795 INFO [HbmBinder] Mapping class: app.Modulo -> modulo
10:44:06,796 INFO [Configuration] Mapping resource: Projeto.hbm.xml
10:44:06,814 INFO [HbmBinder] Mapping class: app.Projeto -> projeto
10:44:06,816 INFO [Configuration] Configured SessionFactory: null
10:44:06,817 INFO [Configuration] processing extends queue
10:44:06,818 INFO [Configuration] processing collection mappings
10:44:06,818 INFO [Configuration] processing association property references
10:44:06,818 INFO [Configuration] processing foreign key constraints
10:44:07,121 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
10:44:07,154 INFO [SettingsFactory] Maximum outer join fetch depth: 2
10:44:07,155 INFO [SettingsFactory] Default batch fetch size: 1
10:44:07,156 INFO [SettingsFactory] Generate SQL with comments: disabled
10:44:07,156 INFO [SettingsFactory] Order SQL updates by primary key: disabled
10:44:07,156 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
10:44:07,168 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
10:44:07,169 INFO [SettingsFactory] Query language substitutions: {}
10:44:07,179 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
10:44:07,180 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20
10:44:07,180 INFO [DriverManagerConnectionProvider] autocommit mode: false
10:44:07,222 INFO [DriverManagerConnectionProvider] using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://192.168.1.202/requisitos
10:44:07,223 INFO [DriverManagerConnectionProvider] connection properties: {user=root, password=}
10:44:07,619 INFO [SettingsFactory] JDBC batch size: 15
10:44:07,619 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
10:44:07,622 INFO [SettingsFactory] Scrollable result sets: enabled
10:44:07,623 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
10:44:07,629 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
10:44:07,640 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
10:44:07,640 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
10:44:07,640 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
10:44:07,641 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
10:44:07,653 INFO [SettingsFactory] Second-level cache: enabled
10:44:07,654 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
10:44:07,654 INFO [SettingsFactory] Structured second-level cache entries: enabled
10:44:07,654 INFO [SettingsFactory] Query cache: disabled
10:44:07,654 INFO [SettingsFactory] Echoing all SQL to stdout
10:44:07,654 INFO [SettingsFactory] Statistics: disabled
10:44:07,654 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
10:44:07,657 INFO [SettingsFactory] Default entity-mode: pojo
10:44:08,959 INFO [SessionFactoryImpl] building session factory
10:44:08,988 WARN [Configurator] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/usr/java/jboss-4.0.0RC1/server/default/deploy/Axsys_Requisitos.war/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml

THE SAME MESSAGE AGAIN
*************************************************************************************************************
10:44:09,821 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
10:44:09,821 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
10:44:09,828 INFO [Configuration] Mapping resource: Requisito.hbm.xml
10:44:09,841 INFO [HbmBinder] Mapping class: app.Requisito -> requisito
10:44:09,841 INFO [Configuration] Mapping resource: Status.hbm.xml
10:44:09,861 INFO [HbmBinder] Mapping class: app.Status -> status
10:44:09,863 INFO [Configuration] Mapping resource: CasoUso.hbm.xml
10:44:09,900 INFO [HbmBinder] Mapping class: app.CasoUso -> caso_uso
10:44:09,901 INFO [Configuration] Mapping resource: Modulo.hbm.xml
10:44:09,914 INFO [HbmBinder] Mapping class: app.Modulo -> modulo
10:44:09,915 INFO [Configuration] Mapping resource: Projeto.hbm.xml
10:44:09,929 INFO [HbmBinder] Mapping class: app.Projeto -> projeto
10:44:09,930 INFO [Configuration] Configured SessionFactory: null
10:44:09,931 INFO [Configuration] processing extends queue
10:44:09,931 INFO [Configuration] processing collection mappings
10:44:09,931 INFO [Configuration] processing association property references
10:44:09,931 INFO [Configuration] processing foreign key constraints
10:44:09,932 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
10:44:09,933 INFO [SettingsFactory] Maximum outer join fetch depth: 2
10:44:09,933 INFO [SettingsFactory] Default batch fetch size: 1
10:44:09,933 INFO [SettingsFactory] Generate SQL with comments: disabled
10:44:09,933 INFO [SettingsFactory] Order SQL updates by primary key: disabled
10:44:09,934 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
10:44:09,934 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
10:44:09,934 INFO [SettingsFactory] Query language substitutions: {}
10:44:09,934 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
10:44:09,934 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20
10:44:09,934 INFO [DriverManagerConnectionProvider] autocommit mode: false
10:44:09,935 INFO [DriverManagerConnectionProvider] using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://192.168.1.202/requisitos
10:44:09,935 INFO [DriverManagerConnectionProvider] connection properties: {user=root, password=}
10:44:09,988 INFO [SettingsFactory] JDBC batch size: 15
10:44:09,988 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
10:44:09,988 INFO [SettingsFactory] Scrollable result sets: enabled
10:44:09,989 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
10:44:09,989 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
10:44:09,989 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
10:44:09,989 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
10:44:09,989 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
10:44:09,989 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
10:44:09,989 INFO [SettingsFactory] Second-level cache: enabled
10:44:09,989 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
10:44:09,989 INFO [SettingsFactory] Structured second-level cache entries: enabled
10:44:09,989 INFO [SettingsFactory] Query cache: disabled
10:44:09,989 INFO [SettingsFactory] Echoing all SQL to stdout
10:44:09,989 INFO [SettingsFactory] Statistics: disabled
10:44:09,990 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
10:44:09,990 INFO [SettingsFactory] Default entity-mode: pojo
10:44:09,990 INFO [SessionFactoryImpl] building session factory

THE SAME MESSAGE AGAIN
****************************************************************
10:44:09,994 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
10:44:09,994 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
10:44:10,006 INFO [Configuration] Mapping resource: Requisito.hbm.xml
10:44:10,130 INFO [HbmBinder] Mapping class: app.Requisito -> requisito
10:44:10,131 INFO [Configuration] Mapping resource: Status.hbm.xml
10:44:10,140 INFO [HbmBinder] Mapping class: app.Status -> status
10:44:10,141 INFO [Configuration] Mapping resource: CasoUso.hbm.xml
10:44:10,151 INFO [HbmBinder] Mapping class: app.CasoUso -> caso_uso
10:44:10,152 INFO [Configuration] Mapping resource: Modulo.hbm.xml
10:44:10,163 INFO [HbmBinder] Mapping class: app.Modulo -> modulo
10:44:10,164 INFO [Configuration] Mapping resource: Projeto.hbm.xml
10:44:10,176 INFO [HbmBinder] Mapping class: app.Projeto -> projeto
10:44:10,177 INFO [Configuration] Configured SessionFactory: null
10:44:10,178 INFO [Configuration] processing extends queue
10:44:10,178 INFO [Configuration] processing collection mappings
10:44:10,178 INFO [Configuration] processing association property references
10:44:10,178 INFO [Configuration] processing foreign key constraints
10:44:10,179 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
10:44:10,180 INFO [SettingsFactory] Maximum outer join fetch depth: 2
10:44:10,180 INFO [SettingsFactory] Default batch fetch size: 1
10:44:10,180 INFO [SettingsFactory] Generate SQL with comments: disabled
10:44:10,180 INFO [SettingsFactory] Order SQL updates by primary key: disabled
10:44:10,180 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
10:44:10,180 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
10:44:10,180 INFO [SettingsFactory] Query language substitutions: {}
10:44:10,181 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
10:44:10,181 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20
10:44:10,181 INFO [DriverManagerConnectionProvider] autocommit mode: false
10:44:10,181 INFO [DriverManagerConnectionProvider] using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://192.168.1.202/requisitos
10:44:10,181 INFO [DriverManagerConnectionProvider] connection properties: {user=root, password=}
10:44:10,216 INFO [SettingsFactory] JDBC batch size: 15
10:44:10,217 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
10:44:10,217 INFO [SettingsFactory] Scrollable result sets: enabled
10:44:10,217 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
10:44:10,217 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
10:44:10,217 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
10:44:10,217 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
10:44:10,217 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
10:44:10,217 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
10:44:10,217 INFO [SettingsFactory] Second-level cache: enabled
10:44:10,217 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
10:44:10,218 INFO [SettingsFactory] Structured second-level cache entries: enabled
10:44:10,218 INFO [SettingsFactory] Query cache: disabled
10:44:10,218 INFO [SettingsFactory] Echoing all SQL to stdout
10:44:10,218 INFO [SettingsFactory] Statistics: disabled
10:44:10,218 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
10:44:10,218 INFO [SettingsFactory] Default entity-mode: pojo
10:44:10,218 INFO [SessionFactoryImpl] building session factory
****************************************************************

Thank's for any help...

Plinio

_________________
Plinio Marcos Mendonça
Axsys Soluções em TI


Top
 Profile  
 
 Post subject: Re: Strange problem creating Session Factory and mappings
PostPosted: Thu May 05, 2005 11:12 am 
Newbie

Joined: Thu May 05, 2005 10:48 am
Posts: 4
Sorry I put a wrong hibernate.cfg.xml, here's my hibernate.cfg.xml:

<?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>
<!-- properties -->
<property name="show_sql">true</property>
<property name="connection.username">root</property>
<property name="connection.url">jdbc:mysql://192.168.1.202/requisitos</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.password">some_password_here</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>

<!-- mapping files -->
<mapping resource="Requisito.hbm.xml"/>
<mapping resource="Status.hbm.xml"/>
<mapping resource="CasoUso.hbm.xml"/>
<mapping resource="Modulo.hbm.xml"/>
<mapping resource="Projeto.hbm.xml"/>
</session-factory>

</hibernate-configuration>

pliniomarcos wrote:
Sorry if it's a stupid error but I'm working with Hibernate 3.0 and I'm loving the developing beneficts my company had developing web applications with Hibernate.
But with a particular web application, using JBOSS, I had a stange behavior o Hibernate that can't stop the configuration process of the Session Factory and mapping process of my classes.

I using the following hibernate.cfg.xml:

<?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>
<!-- properties -->
<property name="show_sql">true</property>
<property name="connection.username">root</property>
<property name="connection.url">jdbc:mysql://192.168.1.202/requisitos</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.password">some_password_here</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>

<!-- mapping files -->
<!-- <mapping resource="Requisito.hbm.xml"/>-->
<mapping resource="Status.hbm.xml"/>
<!-- <mapping resource="CasoUso.hbm.xml"/>
<mapping resource="Modulo.hbm.xml"/>
<mapping resource="Projeto.hbm.xml"/>-->
</session-factory>

</hibernate-configuration>

When the application initiates, no error is given by the eclipse console. The only thing that happens is that some messages are repeated all the time until I stop JBoss. While this, nothing is shown by the browser.

Here's the messages that repeats:

*************************************************************************************************************
10:44:05,957 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
10:44:05,957 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
10:44:05,980 INFO [Configuration] Mapping resource: Requisito.hbm.xml
10:44:06,637 INFO [HbmBinder] Mapping class: app.Requisito -> requisito
10:44:06,688 INFO [Configuration] Mapping resource: Status.hbm.xml
10:44:06,731 INFO [HbmBinder] Mapping class: app.Status -> status
10:44:06,735 INFO [Configuration] Mapping resource: CasoUso.hbm.xml
10:44:06,752 INFO [HbmBinder] Mapping class: app.CasoUso -> caso_uso
10:44:06,754 INFO [Configuration] Mapping resource: Modulo.hbm.xml
10:44:06,795 INFO [HbmBinder] Mapping class: app.Modulo -> modulo
10:44:06,796 INFO [Configuration] Mapping resource: Projeto.hbm.xml
10:44:06,814 INFO [HbmBinder] Mapping class: app.Projeto -> projeto
10:44:06,816 INFO [Configuration] Configured SessionFactory: null
10:44:06,817 INFO [Configuration] processing extends queue
10:44:06,818 INFO [Configuration] processing collection mappings
10:44:06,818 INFO [Configuration] processing association property references
10:44:06,818 INFO [Configuration] processing foreign key constraints
10:44:07,121 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
10:44:07,154 INFO [SettingsFactory] Maximum outer join fetch depth: 2
10:44:07,155 INFO [SettingsFactory] Default batch fetch size: 1
10:44:07,156 INFO [SettingsFactory] Generate SQL with comments: disabled
10:44:07,156 INFO [SettingsFactory] Order SQL updates by primary key: disabled
10:44:07,156 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
10:44:07,168 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
10:44:07,169 INFO [SettingsFactory] Query language substitutions: {}
10:44:07,179 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
10:44:07,180 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20
10:44:07,180 INFO [DriverManagerConnectionProvider] autocommit mode: false
10:44:07,222 INFO [DriverManagerConnectionProvider] using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://192.168.1.202/requisitos
10:44:07,223 INFO [DriverManagerConnectionProvider] connection properties: {user=root, password=}
10:44:07,619 INFO [SettingsFactory] JDBC batch size: 15
10:44:07,619 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
10:44:07,622 INFO [SettingsFactory] Scrollable result sets: enabled
10:44:07,623 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
10:44:07,629 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
10:44:07,640 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
10:44:07,640 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
10:44:07,640 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
10:44:07,641 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
10:44:07,653 INFO [SettingsFactory] Second-level cache: enabled
10:44:07,654 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
10:44:07,654 INFO [SettingsFactory] Structured second-level cache entries: enabled
10:44:07,654 INFO [SettingsFactory] Query cache: disabled
10:44:07,654 INFO [SettingsFactory] Echoing all SQL to stdout
10:44:07,654 INFO [SettingsFactory] Statistics: disabled
10:44:07,654 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
10:44:07,657 INFO [SettingsFactory] Default entity-mode: pojo
10:44:08,959 INFO [SessionFactoryImpl] building session factory
10:44:08,988 WARN [Configurator] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/usr/java/jboss-4.0.0RC1/server/default/deploy/Axsys_Requisitos.war/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml

THE SAME MESSAGE AGAIN
*************************************************************************************************************
10:44:09,821 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
10:44:09,821 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
10:44:09,828 INFO [Configuration] Mapping resource: Requisito.hbm.xml
10:44:09,841 INFO [HbmBinder] Mapping class: app.Requisito -> requisito
10:44:09,841 INFO [Configuration] Mapping resource: Status.hbm.xml
10:44:09,861 INFO [HbmBinder] Mapping class: app.Status -> status
10:44:09,863 INFO [Configuration] Mapping resource: CasoUso.hbm.xml
10:44:09,900 INFO [HbmBinder] Mapping class: app.CasoUso -> caso_uso
10:44:09,901 INFO [Configuration] Mapping resource: Modulo.hbm.xml
10:44:09,914 INFO [HbmBinder] Mapping class: app.Modulo -> modulo
10:44:09,915 INFO [Configuration] Mapping resource: Projeto.hbm.xml
10:44:09,929 INFO [HbmBinder] Mapping class: app.Projeto -> projeto
10:44:09,930 INFO [Configuration] Configured SessionFactory: null
10:44:09,931 INFO [Configuration] processing extends queue
10:44:09,931 INFO [Configuration] processing collection mappings
10:44:09,931 INFO [Configuration] processing association property references
10:44:09,931 INFO [Configuration] processing foreign key constraints
10:44:09,932 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
10:44:09,933 INFO [SettingsFactory] Maximum outer join fetch depth: 2
10:44:09,933 INFO [SettingsFactory] Default batch fetch size: 1
10:44:09,933 INFO [SettingsFactory] Generate SQL with comments: disabled
10:44:09,933 INFO [SettingsFactory] Order SQL updates by primary key: disabled
10:44:09,934 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
10:44:09,934 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
10:44:09,934 INFO [SettingsFactory] Query language substitutions: {}
10:44:09,934 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
10:44:09,934 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20
10:44:09,934 INFO [DriverManagerConnectionProvider] autocommit mode: false
10:44:09,935 INFO [DriverManagerConnectionProvider] using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://192.168.1.202/requisitos
10:44:09,935 INFO [DriverManagerConnectionProvider] connection properties: {user=root, password=}
10:44:09,988 INFO [SettingsFactory] JDBC batch size: 15
10:44:09,988 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
10:44:09,988 INFO [SettingsFactory] Scrollable result sets: enabled
10:44:09,989 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
10:44:09,989 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
10:44:09,989 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
10:44:09,989 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
10:44:09,989 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
10:44:09,989 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
10:44:09,989 INFO [SettingsFactory] Second-level cache: enabled
10:44:09,989 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
10:44:09,989 INFO [SettingsFactory] Structured second-level cache entries: enabled
10:44:09,989 INFO [SettingsFactory] Query cache: disabled
10:44:09,989 INFO [SettingsFactory] Echoing all SQL to stdout
10:44:09,989 INFO [SettingsFactory] Statistics: disabled
10:44:09,990 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
10:44:09,990 INFO [SettingsFactory] Default entity-mode: pojo
10:44:09,990 INFO [SessionFactoryImpl] building session factory

THE SAME MESSAGE AGAIN
****************************************************************
10:44:09,994 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
10:44:09,994 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
10:44:10,006 INFO [Configuration] Mapping resource: Requisito.hbm.xml
10:44:10,130 INFO [HbmBinder] Mapping class: app.Requisito -> requisito
10:44:10,131 INFO [Configuration] Mapping resource: Status.hbm.xml
10:44:10,140 INFO [HbmBinder] Mapping class: app.Status -> status
10:44:10,141 INFO [Configuration] Mapping resource: CasoUso.hbm.xml
10:44:10,151 INFO [HbmBinder] Mapping class: app.CasoUso -> caso_uso
10:44:10,152 INFO [Configuration] Mapping resource: Modulo.hbm.xml
10:44:10,163 INFO [HbmBinder] Mapping class: app.Modulo -> modulo
10:44:10,164 INFO [Configuration] Mapping resource: Projeto.hbm.xml
10:44:10,176 INFO [HbmBinder] Mapping class: app.Projeto -> projeto
10:44:10,177 INFO [Configuration] Configured SessionFactory: null
10:44:10,178 INFO [Configuration] processing extends queue
10:44:10,178 INFO [Configuration] processing collection mappings
10:44:10,178 INFO [Configuration] processing association property references
10:44:10,178 INFO [Configuration] processing foreign key constraints
10:44:10,179 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
10:44:10,180 INFO [SettingsFactory] Maximum outer join fetch depth: 2
10:44:10,180 INFO [SettingsFactory] Default batch fetch size: 1
10:44:10,180 INFO [SettingsFactory] Generate SQL with comments: disabled
10:44:10,180 INFO [SettingsFactory] Order SQL updates by primary key: disabled
10:44:10,180 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
10:44:10,180 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
10:44:10,180 INFO [SettingsFactory] Query language substitutions: {}
10:44:10,181 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
10:44:10,181 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20
10:44:10,181 INFO [DriverManagerConnectionProvider] autocommit mode: false
10:44:10,181 INFO [DriverManagerConnectionProvider] using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://192.168.1.202/requisitos
10:44:10,181 INFO [DriverManagerConnectionProvider] connection properties: {user=root, password=}
10:44:10,216 INFO [SettingsFactory] JDBC batch size: 15
10:44:10,217 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
10:44:10,217 INFO [SettingsFactory] Scrollable result sets: enabled
10:44:10,217 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
10:44:10,217 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
10:44:10,217 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
10:44:10,217 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
10:44:10,217 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
10:44:10,217 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
10:44:10,217 INFO [SettingsFactory] Second-level cache: enabled
10:44:10,217 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
10:44:10,218 INFO [SettingsFactory] Structured second-level cache entries: enabled
10:44:10,218 INFO [SettingsFactory] Query cache: disabled
10:44:10,218 INFO [SettingsFactory] Echoing all SQL to stdout
10:44:10,218 INFO [SettingsFactory] Statistics: disabled
10:44:10,218 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
10:44:10,218 INFO [SettingsFactory] Default entity-mode: pojo
10:44:10,218 INFO [SessionFactoryImpl] building session factory
****************************************************************

Thank's for any help...

Plinio

_________________
Plinio Marcos Mendonça
Axsys Soluções em TI


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 11:43 am 
Regular
Regular

Joined: Thu Apr 21, 2005 9:05 am
Posts: 50
Location: Boston, U.S
Are you building your SessionFactory object for each request,
If that is the case this may happen.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.