日期:2014-05-16  浏览次数:20527 次

Oracle 数据库连接池问题

异常信息:

信息: validateJarFile(C:\tomcat6.0-tmss\webapps\tmss\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Io 异常: The Network Adapter could not establish the connection)
?at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)
?at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
?at com.liqi.utils.support.DbSupport.getConnection(DbSupport.java:16)
?at com.liqi.utils.DbUtil.getConnection(DbUtil.java:34)
?at com.liqi.servlet.InitServlet.init(InitServlet.java:38)
?at javax.servlet.GenericServlet.init(GenericServlet.java:212)
?at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
?at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
?at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)
?at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
?at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
?at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
?at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
?at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)
?at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)
?at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)
?at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
?at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
?at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
?at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
?at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
?at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
?at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
?at org.apache.catalina.core.StandardService.start(StandardService.java:516)
?at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
?at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
?at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
?at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
?at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
?at java.lang.reflect.Method.invoke(Method.java:585)
?at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
?at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
?at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
?at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:190)
?at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:363)
?at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:401)
?at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:441)
?at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
?at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
?at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:839)
?at org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
?at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
?at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247)
?at org.apache.tomcat.dbcp.dbcp.