信息: Mapping class: org.thj.bookstore.vo.Orders -> orders
2007-4-12 22:25:30 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: org.thj.bookstore.vo.Catalog -> catalog
2007-4-12 22:25:30 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: org.thj.bookstore.vo.Orderitem -> orderitem
2007-4-12 22:25:30 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: org.thj.bookstore.vo.User -> user
2007-4-12 22:25:30 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: org.thj.bookstore.vo.Book -> book
2007-4-12 22:25:30 org.springframework.orm.hibernate3.LocalSessionFactoryBean buildSessionFactory
信息: Building new Hibernate SessionFactory
2007-4-12 22:25:30 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.thj.bookstore.vo.Orders.orderitems -> orderitem
2007-4-12 22:25:30 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.thj.bookstore.vo.Catalog.books -> book
2007-4-12 22:25:30 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: org.thj.bookstore.vo.User.orderses -> orders
2007-4-12 22:25:30 org.hibernate.connection.ConnectionProviderFactory newConnectionProvider
信息: Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: RDBMS: MySQL, version: 4.1.22-community-nt
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.14 ( $Date: 2006-10-18 17:40:15 +0200 (Wed, 18 Oct 2006) $, $Revision: 5888 $ )
2007-4-12 22:25:31 org.hibernate.dialect.Dialect <init>
信息: Using dialect: org.hibernate.dialect.MySQLDialect
2007-4-12 22:25:31 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
信息: Using default transaction strategy (direct JDBC transactions)
2007-4-12 22:25:31 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
信息: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Automatic flush during beforeCompletion(): disabled
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Automatic session close at end of transaction: disabled
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC batch size: 15
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC batch updates for versioned data: disabled
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Scrollable result sets: enabled
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC3 getGeneratedKeys(): enabled
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Connection release mode: on_close
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Maximum outer join fetch depth: 2
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default batch fetch size: 1
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Generate SQL with comments: disabled
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Order SQL updates by primary key: disabled
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
信息: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2007-4-12 22:25:31 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
信息: Using ASTQueryTranslatorFactory
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query language substitutions: {}
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: JPA-QL strict compliance: disabled
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Second-level cache: enabled
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query cache: disabled
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory createCacheProvider
信息: Cache provider: org.hibernate.cache.NoCacheProvider
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Optimize cache for minimal puts: disabled
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Structured second-level cache entries: disabled
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Statistics: disabled
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Deleted entity synthetic identifier rollback: disabled
2007-4-12 22:25:31 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default entity-mode: pojo
2007-4-12 22:25:31 org.hibernate.impl.SessionFactoryImpl <init>
信息: building session factory
2007-4-12 22:25:32 org.hibernate.impl.SessionFactoryObjectFactory addInstance
信息: Not binding factory to JNDI, no JNDI name configured
2007-4-12 22:25:33 org.springframework.web.context.ContextLoader initWebApplicationContext
信息: Using context class [org.springframework.web.context.support.XmlWebApplicationContext] for root WebApplicationContext
2007-4-12 22:25:33 org.springframework.web.context.ContextLoader initWebApplicationContext
信息: Root WebApplicationContext: initialization completed in 5641 ms
2007-4-12 22:25:33 org.springframework.context.support.AbstractApplicationContext doClose
信息: Closing application context [Root WebApplicationContext]
2007-4-12 22:25:33 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
信息: Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,sessionFactory,baseDAO,userDAO,userService,userAction]; root of BeanFactory hierarchy}
2007-4-12 22:25:33 org.springframework.orm.hibernate3.AbstractSessionFactoryBean destroy
信息: Closing Hibernate SessionFactory
2007-4-12 22:25:33 org.hibernate.impl.SessionFactoryImpl close
信息: closing

解决方案 »

  1.   

    好像这最后结束是
    2007-4-12 22:25:33 org.springframework.orm.hibernate3.AbstractSessionFactoryBean destroy
    信息: Closing Hibernate SessionFactory
    2007-4-12 22:25:33 org.hibernate.impl.SessionFactoryImpl close
    信息: closing  //**************8
    不知道是什么原因,解决就给分
      

  2.   

    都是INFO, 没看起来什么问题...
      

  3.   

    情况1.
    在spring里面用
    class="org.apache.commons.dbcp.BasicDataSource" 连接数据源时
    我把mysql驱动放在项目的web-info/lib下面启动有异常:
    org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
    我把mysql驱动放在项目的tomcat/common//lib启动就没有异常,
    情况2.
    在spring里面用
    spring自带的直接用jdbc 连接数据源时
    我把mysql驱动放在项目的web-info/lib下面启动就没有异常
    ----------------------------------------------------------------------
    那为什么会出现这2个情况呢,我想把mysql驱动放在web-info/ib下面但是又想用
    org.apache.commons.dbcp.BasicDataSource