Hi!
I am running a Spring application inside JBoss 3.2.5. I decided to play with the Hibernate integration, so I set up a simple DAO, and used a configuration very similar to what is in the docs.
But when I start up my server, it appears to go into an endless loop, attempting to build my SessionFactory over and over again. Are there any obvious problems in the configuration?
My springcontext.xml (which is loaded through a SingletonBeanFactoryLocator) contains the following:
Code:<!-- Hibernate --> <bean id="bigdealDataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName"> <value>java:/BigDealDS</value> </property> </bean> <bean id="bigdealSessionFactory" class="org.springframework.orm.hibernate.LocalSessionFactoryBean"> <property name="mappingResources"> <list> <value>bigdeal.hbm.xml</value> </list> </property> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">net.sf.hibernate.dialect.FirebirdDialect</prop> <prop key="hibernate.hbm2ddl.auto">create</prop> <prop key="hibernate.show_sql">true</prop> </props> </property> <property name="dataSource"> <ref bean="bigdealDataSource"/> </property> </bean> <bean id="bigdealHibernateInterceptor" class="org.springframework.orm.hibernate.HibernateInterceptor"> <property name="sessionFactory"> <ref bean="bigdealSessionFactory"/> </property> </bean> <bean id="userDaoTarget" class="com.blued.bigdeal.dao.UserDaoBean"> <property name="sessionFactory"> <ref bean="bigdealSessionFactory"/> </property> </bean> <bean id="userDao" class="org.springframework.aop.framework.ProxyFactoryBean"> <property name="proxyInterfaces"> <value>com.blued.bigdeal.dao.UserDao</value> </property> <property name="interceptorNames"> <list> <value>bigdealHibernateInterceptor</value> <value>userDaoTarget</value> </list> </property> </bean>
When I start up my server, the following messages are printed over and over in an endless loop:
I can not find any other reports of this problem searching the forums, so I must be doing something really dumb!Code:16:24:26,173 INFO [Binder] Mapping class: com.blued.bigdeal.model.user.UserBean -> userTest 16:24:26,283 INFO [LocalSessionFactoryBean] Building new Hibernate SessionFactory 16:24:26,283 INFO [Configuration] processing one-to-many association mappings 16:24:26,283 INFO [Configuration] processing one-to-one association property references 16:24:26,283 INFO [Configuration] processing foreign key constraints 16:24:26,298 INFO [Dialect] Using dialect: net.sf.hibernate.dialect.FirebirdDialect 16:24:26,298 INFO [SettingsFactory] Use outer join fetching: true 16:24:26,298 INFO [ConnectionProviderFactory] Initializing connection provider: org.springframework.orm.hibernate.LocalDataSourceConnectionProvider 16:24:26,314 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended) 16:24:26,314 INFO [SettingsFactory] Use scrollable result sets: false 16:24:26,314 INFO [SettingsFactory] Use JDBC3 getGeneratedKeys(): false 16:24:26,314 INFO [SettingsFactory] Optimize cache for minimal puts: false 16:24:26,314 INFO [SettingsFactory] echoing all SQL to stdout 16:24:26,314 INFO [SettingsFactory] Query language substitutions: {} 16:24:26,314 INFO [SettingsFactory] cache provider: net.sf.hibernate.cache.EhCacheProvider 16:24:26,314 INFO [Configuration] instantiating and configuring caches 16:24:26,345 INFO [DefaultListableBeanFactory] Creating shared instance of singleton bean 'userDao' 16:24:26,361 INFO [DefaultListableBeanFactory] Creating shared instance of singleton bean 'bigdealHibernateInterceptor' 16:24:26,376 INFO [DefaultListableBeanFactory] Creating shared instance of singleton bean 'bigdealSessionFactory'


Reply With Quote
