ssh-SpringMVC+Spring+Hibernate 启动tomcat时出现这个错误怎么解决

问题描述

SpringMVC+Spring+Hibernate 启动tomcat时出现这个错误怎么解决
2012-10-24 11:45:22 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:Program FilesJavajdk1.6.0_01bin;D:Program FilesApache Software FoundationTomcat 6.0bin
2012-10-24 11:45:22 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2012-10-24 11:45:22 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 403 ms
2012-10-24 11:45:22 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2012-10-24 11:45:22 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.20
2012-10-24 11:45:24 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2012-10-24 11:45:26 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet 'JeeCmsAdmin'
11:45:37.890 ERROR org.hibernate.util.JDBCExceptionReporter - An attempt by a client to checkout a Connection has timed out.
2012-10-24 11:45:42 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet 'JeeCmsFront'
2012-10-24 11:45:42 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2012-10-24 11:45:42 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2012-10-24 11:45:42 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/15  config=null
2012-10-24 11:45:42 org.apache.catalina.startup.Catalina start
信息: Server startup in 20423 ms
11:48:59.609 ERROR org.hibernate.util.JDBCExceptionReporter - An attempt by a client to checkout a Connection has timed out.
11:48:59.609 ERROR org.hibernate.util.JDBCExceptionReporter - An attempt by a client to checkout a Connection has timed out.
2012-10-24 11:48:59 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet JeeCmsFront threw exception
com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from [email protected] -- timeout at awaitAvailable()
    at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1317)
    at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
    at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
    at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
    at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
    at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)
    at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
    at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
    at org.hibernate.jdbc.BorrowedConnectionProxy.invoke(BorrowedConnectionProxy.java:74)
    at $Proxy63.setReadOnly(Unknown Source)
    at org.springframework.jdbc.datasource.DataSourceUtils.prepareConnectionForTransaction(DataSourceUtils.java:155)
    at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:508)
    at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy14.getListFromCache(Unknown Source)
    at com.jeecms.cms.web.FrontContextInterceptor.preHandle(FrontContextInterceptor.java:35)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:781)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.jeecms.common.web.ProcessTimeFilter.doFilter(ProcessTimeFilter.java:38)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    at java.lang.Thread.run(Thread.java:619)

解决方案

很明显,找你的数据库配置文件去,数据库连接不上

时间: 2016-08-15
Tags: SSH

ssh-SpringMVC+Spring+Hibernate 启动tomcat时出现这个错误怎么解决的相关文章

ssh-初学者SSH框架登录实例遇到的问题,启动tomcat时出错,请指导。

问题描述 初学者SSH框架登录实例遇到的问题,启动tomcat时出错,请指导. 八月 21 2015 10:35:18 上午 org.apache.catalina.core.StandardContext listenerStart严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListeneror

ssh整合-myeclipse整合框架启动tomcat时太慢了

问题描述 myeclipse整合框架启动tomcat时太慢了 信息: Initializing Spring root WebApplicationContext.启动tomcat,执行到这一步的时候,真的是太慢了,受不鸟了,有谁可以解决下?网上什么删掉一些没用的包之类的试过了,没什么用:另外单独启动tomcat的话,不习惯:菜鸟一枚,求指教. 解决方案 1.改成生产模式启动 2.换个高配的本子

服务器启动tomcat时问题

问题描述 服务器启动tomcat时问题 在服务器启动tomcat时,会出现如下截图所示的蓝屏现象,这种现象是tomcat导致的还是本身的硬件或者驱动不对造成的? 解决方案 是本身的硬件或者驱动不对造成的.Tomcat只是诱因.不过,有很多软件都有这嫌疑. 解决方案二: 这和tomcat没关系吧 解决方案三: http://zm12.sm-img2.com/?src=http%3A%2F%2Fwww.beihaiting.com%2Fa%2FYNJD%2FYJGZ%2F2014%2F0403%2F

我的一个SSH简单整合,启动tomcat时报错,如error文档内容所示,请教指点

问题描述 我的一个SSH简单整合,启动tomcat时报错,如:error文档 内容所示,请教指点,项目源代码及项目结构图都在压缩包中,随时等候佳音,谢谢了-- 解决方案 你的UesrBean.hbm.xml的路径写错了不是<class name="com.bean.UserBean" table="users">而是<class name="com.bean.user.UserBean" table="users&qu

启动tomcat时出错,提示windows找不到文件'Djava.endorsed.dirs='

问题描述 启动tomcat时出错,提示windows找不到文件'Djava.endorsed.dirs=' 解决方案 解决方案二:打开%Tomcat_Home%/bin/startup.bat和%Tomcat_Home%/bin/catalina.bat,增加echo输出信息,判断出错地方,再进行相应处理即可.

以下问题启动tomcat时发生的,是什么原因

问题描述 以下问题启动tomcat时发生的,是什么原因 解决方案 每次启动到这的时候就不能继续了 解决方案二: 看看是不是有些jar没有导入

启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099的解决办法

原文:启动tomcat时 错误: 代理抛出异常 : java.rmi.server.ExportException: Port already in use: 1099的解决办法 一.问题描述 今天一来公司,在IntelliJ IDEA 中启动Tomcat服务器时就出现了如下图所示的错误: 错误: 代理抛出异常错误: java.rmi.server.ExportException: Port already in use: 1099; nested exception is: java.net.

启动tomcat报奇怪的错误,求拯救,在线等

问题描述 启动tomcat报奇怪的错误,求拯救,在线等 eclipse做SSH集成中,刚写Struts2,还没写几笔呢,代码都是没错的,然后启动了下tomcat就不行了,报这个异常java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils,百度了半天找不到什么解决办法,很多回答说是jar有问题,我于是把jar都删除了,去官网上新下载了一份热气腾腾的新jar,拷回去再启动tomcat依旧是这个报错,这是为什么啊? 上图提示有个ja

idea启动tomcat问题,,,求解决

问题描述 idea启动tomcat问题,,,求解决 解决方案 http://www.iteye.com/problems/101471