求助,tomcat和oracle连接异常,如何解决?
org.apache.tomcat.dbcp.dbcp.SQLNestedException:Cannotgetaconnection,poolerrorTimeoutw...
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object
Caused by: java.util.NoSuchElementException: Timeout waiting for idle object
不知道怎么回事
tomcat的context.xml
JNDI设值如下
<Resource name="jdbc/news" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="1000" username="jsp" password="jsp" driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@localhost:1521:orcl" />
有时可以运行,有时就进不去了,求大神解决方案 展开
Caused by: java.util.NoSuchElementException: Timeout waiting for idle object
不知道怎么回事
tomcat的context.xml
JNDI设值如下
<Resource name="jdbc/news" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="1000" username="jsp" password="jsp" driverClassName="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@localhost:1521:orcl" />
有时可以运行,有时就进不去了,求大神解决方案 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询