Hibernate, ta travando na linha INFO: building session factory

Pessoal ao rodar o hibernate trava na linha:

INFO: building session factory

to mandando o script:

09/11/2004 09:53:14 org.apache.coyote.http11.Http11Protocol init

INFO: Initializing Coyote HTTP/1.1 on http-8080

Starting service Tomcat-Standalone

Apache Tomcat/4.1.31

09/11/2004 09:53:16 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config=‘org.apache.struts.util.LocalStrings’, returnNull=tru

e

09/11/2004 09:53:16 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config=‘org.apache.struts.action.ActionResources’, returnNul

l=true

09/11/2004 09:53:16 org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config=‘org.apache.webapp.admin.ApplicationResources’, retur

nNull=true

09/11/2004 09:53:18 org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on http-8080

09/11/2004 09:53:18 org.apache.jk.common.ChannelSocket init

INFO: JK2: ajp13 listening on /0.0.0.0:8009

09/11/2004 09:53:18 org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/16 config=C:\SiafasWebMunicipal\Tomcat4131\conf\jk

2.properties

Teste 1

09/11/2004 09:53:24 net.sf.hibernate.cfg.Environment

INFO: Hibernate 2.1.6

09/11/2004 09:53:24 net.sf.hibernate.cfg.Environment

INFO: hibernate.properties not found

09/11/2004 09:53:24 net.sf.hibernate.cfg.Environment

INFO: using CGLIB reflection optimizer

09/11/2004 09:53:24 net.sf.hibernate.cfg.Configuration configure

INFO: configuring from resource: /hibernate.cfg.xml

09/11/2004 09:53:24 net.sf.hibernate.cfg.Configuration getConfigurationInputStre

am

INFO: Configuration resource: /hibernate.cfg.xml

09/11/2004 09:53:24 net.sf.hibernate.cfg.Configuration addResource

INFO: Mapping resource: br/gov/mds/siafaswebmunicipal/bean/entidade/TipoEntidade

.hbm.xml

09/11/2004 09:53:25 net.sf.hibernate.cfg.Binder bindRootClass

INFO: Mapping class: br.gov.mds.siafaswebmunicipal.bean.entidade.TipoEntidade ->

TIPOS_ENTIDADES

09/11/2004 09:53:25 net.sf.hibernate.cfg.Configuration addResource

INFO: Mapping resource: br/gov/mds/siafaswebmunicipal/bean/entidade/Categoria.hb

m.xml

09/11/2004 09:53:25 net.sf.hibernate.cfg.Binder bindRootClass

INFO: Mapping class: br.gov.mds.siafaswebmunicipal.bean.entidade.Categoria -> CA

TEGORIAS

09/11/2004 09:53:25 net.sf.hibernate.cfg.Configuration addResource

INFO: Mapping resource: br/gov/mds/siafaswebmunicipal/bean/entidade/Gestao.hbm.x

ml

09/11/2004 09:53:25 net.sf.hibernate.cfg.Binder bindRootClass

INFO: Mapping class: br.gov.mds.siafaswebmunicipal.bean.entidade.Gestao -> GESTO

ES

09/11/2004 09:53:25 net.sf.hibernate.cfg.Configuration addResource

INFO: Mapping resource: br/gov/mds/siafaswebmunicipal/bean/pessoafisica/Papel.hb

m.xml

09/11/2004 09:53:25 net.sf.hibernate.cfg.Binder bindRootClass

INFO: Mapping class: br.gov.mds.siafaswebmunicipal.bean.pessoafisica.Papel -> PA

PEIS

09/11/2004 09:53:25 net.sf.hibernate.cfg.Configuration doConfigure

INFO: Configured SessionFactory: java:comp/env/hibernate/SessionFactory

09/11/2004 09:53:25 net.sf.hibernate.cfg.Configuration secondPassCompile

INFO: processing one-to-many association mappings

09/11/2004 09:53:25 net.sf.hibernate.cfg.Configuration secondPassCompile

INFO: processing one-to-one association property references

09/11/2004 09:53:25 net.sf.hibernate.cfg.Configuration secondPassCompile

INFO: processing foreign key constraints

09/11/2004 09:53:25 net.sf.hibernate.dialect.Dialect

INFO: Using dialect: net.sf.hibernate.dialect.Oracle9Dialect

09/11/2004 09:53:25 net.sf.hibernate.cfg.SettingsFactory buildSettings

INFO: Use outer join fetching: true

09/11/2004 09:53:25 net.sf.hibernate.util.NamingHelper getInitialContext

INFO: JNDI InitialContext properties:{}

09/11/2004 09:53:25 net.sf.hibernate.connection.DatasourceConnectionProvider con

figure

INFO: Using datasource: java:comp/env//jdbc/SiafasWebMunicipal

09/11/2004 09:53:25 net.sf.hibernate.transaction.TransactionFactoryFactory build

TransactionFactory

INFO: Transaction strategy: net.sf.hibernate.transaction.JDBCTransactionFactory

09/11/2004 09:53:25 net.sf.hibernate.transaction.TransactionManagerLookupFactory

getTransactionManagerLookup

INFO: No TransactionManagerLookup configured (in JTA environment, use of process

level read-write cache is not recommended)

AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@e7f6eb)

LogAbandoned: false

RemoveAbandoned: true

RemoveAbandonedTimeout: 600

09/11/2004 09:53:26 net.sf.hibernate.cfg.SettingsFactory buildSettings

INFO: Use scrollable result sets: true

09/11/2004 09:53:26 net.sf.hibernate.cfg.SettingsFactory buildSettings

INFO: Use JDBC3 getGeneratedKeys(): false

09/11/2004 09:53:26 net.sf.hibernate.cfg.SettingsFactory buildSettings

INFO: Optimize cache for minimal puts: false

09/11/2004 09:53:26 net.sf.hibernate.cfg.SettingsFactory buildSettings

INFO: Query language substitutions: {}

09/11/2004 09:53:26 net.sf.hibernate.cfg.SettingsFactory buildSettings

INFO: cache provider: net.sf.hibernate.cache.EhCacheProvider

09/11/2004 09:53:26 net.sf.hibernate.cfg.Configuration configureCaches

INFO: instantiating and configuring caches

09/11/2004 09:53:26 net.sf.hibernate.impl.SessionFactoryImpl

INFO: building session factory

obrigado

Isso é o log :wink:

O que quer dizer com trava? Dá algum erro? Se sim, que erro? Se não da erro, quanto de ram você tem? Já tentou esperar bastante? Quando a instanciação da SessionFactory acontece? No startup do Tomcat? Já tentou instanciar a Factory fora do Tomcat? Se não, tente. Se sim, deu o mesmo erro/travamento?

Valeu LIPE mas resolvi trocando para o c3po. Rodou que foi uma beleza.

Valeu.

Rubens Saad