关于连接池的问题急!!!
我做了一个项目,JSP+TOMCAT+JNDI,开始部署到服务器上一切OK,一段时间后再去访问它就抛出如下异常:
2007-01-23 09:56:54 HTMLManager: list: Listing contexts for virtual host 'localhost '
2007-01-23 09:56:59 HTMLManager: stop: Stopping web application at '/zipcode '
2007-01-23 09:56:59 HTMLManager: list: Listing contexts for virtual host 'localhost '
2007-01-23 09:57:02 HTMLManager: stop: Stopping web application at '/zipcode '
2007-01-23 09:57:02 HTMLManager: ManagerServlet.stop[/zipcode]
java.lang.IllegalStateException: standardHost.stop /zipcode: LifecycleException: Container StandardContext[/zipcode] has not been started
at org.apache.catalina.core.StandardHostDeployer.stop(StandardHostDeployer.java:802)
at org.apache.catalina.core.StandardHost.stop(StandardHost.java:983)
at org.apache.catalina.manager.ManagerServlet.stop(ManagerServlet.java:1303)
at org.apache.catalina.manager.HTMLManagerServlet.stop(HTMLManagerServlet.java:573)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:159)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:205)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:177)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:203)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:637)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:488)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631)
at java.lang.Thread.run(Thread.java:595)
zipcode是我的工程名称
请高手帮我看看,万分感激!!
[解决办法]
连接池的生命周期到了.改下生命周期啊!
[解决办法]
你用的驱动文件是不是有时间限制的? 比如jsql
去找个破解的吧