Pessoal to num sistema com spring + hibernate + jsp... tudo funcionando e funcionalidades ok....
o problema é, as vezes entro numa página e olho no log, ele roda o código várias vezes, tem hora que até 15 vezes no mesmo código, as vezes 1 vez....
alguém saberia me ajudar, ja passaram por isso?
org.springframework.context.support.AbstractApplicationContext prepareRefresh
ai vai e passa N vezes, e depois abre o que foi pedido, porém no segundo pedido que eu fizer, ele dá falta de memória de tanto ficar passando no código...
vou colocar aqui uma das passada dele, é sempre igual, porém as vezes passa 1 vez e abre o pedido, porém as vezes passa 15 vezes.....e ai estoura memória...
01/04/2008 18:02:30 org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1a9bced: display name [org.springframework.context.support.ClassPathXmlApplicationContext@1a9bced]; startup date [Tue Apr 01 18:02:30 BRT 2008]; root of context hierarchy
01/04/2008 18:02:30 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [applicationContext.xml]
01/04/2008 18:02:30 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@1a9bced]: org.springframework.beans.factory.support.DefaultListableBeanFactory@515f40
01/04/2008 18:02:30 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from class path resource [jdbc.properties]
01/04/2008 18:02:30 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.springframework.aop.config.internalAutoProxyCreator' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
01/04/2008 18:02:30 org.springframework.orm.jpa.LocalEntityManagerFactoryBean createNativeEntityManagerFactory
INFO: Building JPA EntityManagerFactory for persistence unit 'VirtualProjectNegocioPU'
01/04/2008 18:02:30 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: com.virtual.Model.Assinatura
01/04/2008 18:02:30 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity com.virtual.Model.Assinatura on table assinatura
01/04/2008 18:02:30 org.hibernate.cfg.AnnotationBinder bindClass/
// AQUI ELE PASSA POR TODAS AS CLASSES ANOTADAS E VAI FAZENDO esse bindClass em todas
INFO: Bind entity com.virtual.Model.Usuario on table parametro_usuario
01/04/2008 18:02:31 org.hibernate.cfg.AnnotationBinder bindClass
INFO: Binding entity from annotated class: com.virtual.Model.ParametroVirtual
01/04/2008 18:02:31 org.hibernate.cfg.annotations.EntityBinder bindTable
INFO: Bind entity com.virtual.Model.ParametroVirtual on table parametro_virtual
01/04/2008 18:02:31 org.hibernate.cfg.AnnotationConfiguration secondPassCompile
INFO: Hibernate Validator not found: ignoring
01/04/2008 18:02:31 org.hibernate.cfg.AnnotationConfiguration secondPassCompile
INFO: Hibernate Validator not found: ignoring
01/04/2008 18:02:31 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
01/04/2008 18:02:31 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 20
01/04/2008 18:02:31 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: autocommit mode: true
01/04/2008 18:02:31 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: org.postgresql.Driver at URL: jdbc:postgresql://localhost:5432/virtualhomologacao
01/04/2008 18:02:31 org.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=postgres, password=****, autocommit=true, release_mode=auto}
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: RDBMS: PostgreSQL, version: 8.2.6
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.2 JDBC4 with SSL (build 506)
01/04/2008 18:02:31 org.hibernate.dialect.Dialect <init>
INFO: Using dialect: org.hibernate.dialect.PostgreSQLDialect
01/04/2008 18:02:31 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
INFO: Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
01/04/2008 18:02:31 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic flush during beforeCompletion(): disabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Automatic session close at end of transaction: disabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch size: 15
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC batch updates for versioned data: disabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Scrollable result sets: enabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JDBC3 getGeneratedKeys(): disabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Connection release mode: auto
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default batch fetch size: 1
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Generate SQL with comments: disabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL updates by primary key: disabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Order SQL inserts for batching: disabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
01/04/2008 18:02:31 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
INFO: Using ASTQueryTranslatorFactory
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query language substitutions: {}
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: JPA-QL strict compliance: enabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Second-level cache: enabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: enabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.EhCacheProvider
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory createQueryCacheFactory
INFO: Query cache factory: org.hibernate.cache.StandardQueryCacheFactory
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Statistics: disabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Deleted entity synthetic identifier rollback: disabled
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Default entity-mode: pojo
01/04/2008 18:02:31 org.hibernate.cfg.SettingsFactory buildSettings
INFO: Named query checking : enabled
01/04/2008 18:02:31 org.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
01/04/2008 18:02:31 net.sf.ehcache.config.ConfigurationFactory parseConfiguration
WARNING: No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/home/hewerton/NetBeansProjects/Virtual/build/web/WEB-INF/lib/ehcache-1.2.3.jar!/ehcache-failsafe.xml
01/04/2008 18:02:31 net.sf.ehcache.CacheManager detectAndFixDiskStorePathConflict
WARNING: Creating a new instance of CacheManager using the diskStorePath "/home/hewerton/.netbeans/6.1beta/apache-tomcat-6.0.16_base/temp" which is already used by an existing CacheManager.
The source of the configuration was classpath.
The diskStore path for this CacheManager will be set to /home/hewerton/.netbeans/6.1beta/apache-tomcat-6.0.16_base/temp/ehcache_auto_created_1207083751420.
To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
01/04/2008 18:02:31 org.hibernate.cache.CacheFactory createCache
WARNING: read-only cache configured for mutable class: com.virtual.Model.PessoaPerfilProjeto
01/04/2008 18:02:31 org.hibernate.cache.EhCacheProvider buildCache
WARNING: Could not find configuration [com.virtual.Model.PessoaPerfilProjeto]; using defaults.
01/04/2008 18:02:31 org.hibernate.cache.CacheFactory createCache
WARNING: read-only cache configured for mutable class: com.virtual.Model.PerfilProjeto
01/04/2008 18:02:31 org.hibernate.cache.EhCacheProvider buildCache
WARNING: Could not find configuration [com.virtual.Model.PerfilProjeto]; using defaults.
01/04/2008 18:02:31 org.hibernate.cache.CacheFactory createCache
WARNING: read-only cache configured for mutable class: com.virtual.Model.Pessoa
01/04/2008 18:02:31 org.hibernate.cache.EhCacheProvider buildCache
WARNING: Could not find configuration [com.virtual.Model.Pessoa]; using defaults.
01/04/2008 18:02:31 org.hibernate.cache.CacheFactory createCache
WARNING: read-only cache configured for mutable class: com.virtual.Model.Perfil
01/04/2008 18:02:31 org.hibernate.cache.EhCacheProvider buildCache
WARNING: Could not find configuration [com.virtual.Model.Perfil]; using defaults.
01/04/2008 18:02:31 org.hibernate.cache.CacheFactory createCache
WARNING: read-only cache configured for mutable class: com.virtual.Model.Usuario
01/04/2008 18:02:31 org.hibernate.cache.EhCacheProvider buildCache
WARNING: Could not find configuration [com.virtual.Model.Usuario]; using defaults.
01/04/2008 18:02:31 org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
01/04/2008 18:02:31 org.hibernate.cache.UpdateTimestampsCache <init>
INFO: starting update timestamps cache at region: org.hibernate.cache.UpdateTimestampsCache
01/04/2008 18:02:31 org.hibernate.cache.EhCacheProvider buildCache
WARNING: Could not find configuration [org.hibernate.cache.UpdateTimestampsCache]; using defaults.
01/04/2008 18:02:31 org.hibernate.cache.StandardQueryCache <init>
INFO: starting query cache at region: org.hibernate.cache.StandardQueryCache
01/04/2008 18:02:31 org.hibernate.cache.EhCacheProvider buildCache
WARNING: Could not find configuration [org.hibernate.cache.StandardQueryCache]; using defaults.
01/04/2008 18:02:31 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'entityManagerFactory' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
01/04/2008 18:02:31 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
01/04/2008 18:02:31 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
01/04/2008 18:02:31 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'entityManagerFactory' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
01/04/2008 18:02:31 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'transactionManager' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
01/04/2008 18:02:31 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean '(inner bean)' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
01/04/2008 18:02:31 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean '(inner bean)' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
01/04/2008 18:02:31 org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
01/04/2008 18:02:31 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
e ai após isso dependendo do pedido ele roda mais 15 vezes, e estoura memória, não tenho idéia do que seja, já conferi meus xmls com o padrão usado..etc... mas nada.... se alguma alma caridosa puder ajudar....
vlw Hewerton