skillet_fans 2021-04-12 09:49 采纳率: 0%
浏览 134
已结题

tomcat启动之后提示Closing Hibernate Session

框架是struts2的2.5.26加spring4加hibernate3,主要提示如下错误:

[12 09:46:26,076 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Using SessionFactory 'sessionFactory' for OpenSessionInViewFilter
[12 09:46:26,077 DEBUG] [http-bio-8080-exec-4] support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'sessionFactory'
[12 09:46:26,077 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Opening single Hibernate Session in OpenSessionInViewFilter
[12 09:46:26,077 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Opening Hibernate Session
[12 09:46:26,077 DEBUG] [http-bio-8080-exec-4] impl.SessionImpl - opened session at timestamp: 16181919860
[12 09:46:26,119 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Closing single Hibernate Session in OpenSessionInViewFilter
[12 09:46:26,119 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Closing Hibernate Session
[12 09:46:30,666 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Using SessionFactory 'sessionFactory' for OpenSessionInViewFilter
[12 09:46:30,666 DEBUG] [http-bio-8080-exec-4] support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'sessionFactory'
[12 09:46:30,666 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Opening single Hibernate Session in OpenSessionInViewFilter
[12 09:46:30,666 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Opening Hibernate Session
[12 09:46:30,666 DEBUG] [http-bio-8080-exec-4] impl.SessionImpl - opened session at timestamp: 16181919906
[12 09:46:30,840 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Closing single Hibernate Session in OpenSessionInViewFilter
[12 09:46:30,840 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Closing Hibernate Session
[12 09:46:30,844 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Using SessionFactory 'sessionFactory' for OpenSessionInViewFilter
[12 09:46:30,844 DEBUG] [http-bio-8080-exec-4] support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'sessionFactory'
[12 09:46:30,844 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Opening single Hibernate Session in OpenSessionInViewFilter
[12 09:46:30,844 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Opening Hibernate Session
[12 09:46:30,844 DEBUG] [http-bio-8080-exec-4] impl.SessionImpl - opened session at timestamp: 16181919908
[12 09:46:30,847 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Closing single Hibernate Session in OpenSessionInViewFilter
[12 09:46:30,847 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Closing Hibernate Session
[12 09:46:32,028 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Using SessionFactory 'sessionFactory' for OpenSessionInViewFilter
[12 09:46:32,028 DEBUG] [http-bio-8080-exec-4] support.DefaultListableBeanFactory - Returning cached instance of singleton bean 'sessionFactory'
[12 09:46:32,028 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Opening single Hibernate Session in OpenSessionInViewFilter
[12 09:46:32,028 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Opening Hibernate Session
[12 09:46:32,028 DEBUG] [http-bio-8080-exec-4] impl.SessionImpl - opened session at timestamp: 16181919920
[12 09:46:32,032 DEBUG] [http-bio-8080-exec-4] support.OpenSessionInViewFilter - Closing single Hibernate Session in OpenSessionInViewFilter
[12 09:46:32,032 DEBUG] [http-bio-8080-exec-4] hibernate3.SessionFactoryUtils - Closing Hibernate Session

 


 

  • 写回答

1条回答 默认 最新

  • 张小帅和刘美美 2021-04-12 10:15
    关注

    是不是数据库连接配置不对。数据库连不上

    评论

报告相同问题?

悬赏问题

  • ¥15 Matlab问题解答有两个问题
  • ¥50 Oracle Kubernetes服务器集群主节点无法访问,工作节点可以访问
  • ¥15 LCD12864中文显示
  • ¥15 在使用CH341SER.EXE时不小心把所有驱动文件删除了怎么解决
  • ¥15 gsoap生成onvif框架
  • ¥15 有关sql server business intellige安装,包括SSDT、SSMS。
  • ¥15 stm32的can接口不能收发数据
  • ¥15 目标检测算法移植到arm开发板
  • ¥15 利用JD51设计温度报警系统
  • ¥15 快手联盟怎么快速的跑出建立模型