WebApp (Tomcat-jdbc) Pooled DB connection throwing abandon exception

前端 未结 8 2066
被撕碎了的回忆
被撕碎了的回忆 2020-12-08 08:18

I have been browsing SO for some time, and chewing my hat in the process, but cannot find an exact match to my problem.
For short, I am getting superb stack trace (org.a

8条回答
  •  春和景丽
    2020-12-08 08:34

    Just add below entry in tomcat7 conf/server.xml or in context.xml wherever your resource tag is present.

    jdbcInterceptors="org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;
    org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer;
    org.apache.tomcat.jdbc.pool.interceptor.ResetAbandonedTimer"
    

提交回复
热议问题