-
-
lll 初学数据Lv2
发表于2020-5-13 10:38
悬赏5
已解决
楼主
客户端环境:(Other) Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
客户端地址:http://localhost:8080/irpt/esmain/error.do?cause=noStart
java.sql.SQLException: 建数据库连接出现异常:
oracle.jdbc.driver.OracleDriver
jdbc
racle:thin
127.0.0.1:1521:database
abi5
Io 异常: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
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:801)
at com.esen.jdbc.pool.DataSourceImpl.createRealConnection(DataSourceImpl.java:1894)
at com.esen.jdbc.pool.DataSourceImpl.createNewConnection(DataSourceImpl.java:1724)
at com.esen.jdbc.pool.DataSourceImpl.getNewConnection(DataSourceImpl.java:1644)
at com.esen.jdbc.pool.DataSourceImpl.getPooledConn(DataSourceImpl.java:1420)
at com.esen.jdbc.pool.DataSourceImpl.getPooledConnection(DataSourceImpl.java:1353)
at com.esen.jdbc.pool.DataSourceImpl.getConnection(DataSourceImpl.java:1471)
at com.esen.jdbc.pool.BaseDataSource.getConnection(BaseDataSource.java:53)
at com.esen.jdbc.pool.DataSourceImpl.initpool(DataSourceImpl.java:966)
at com.esen.jdbc.pool.DataSourceImpl.getConnection(DataSourceImpl.java:1465)
at com.esen.jdbc.pool.BaseDataSource.getConnection(BaseDataSource.java:53)
at com.esen.jdbc.PoolConnectionFactory.getConnection(PoolConnectionFactory.java:66)
at com.esen.jdbc.ConnectFactoryManagerAbsImpl.getDefaultConnection(ConnectFactoryManagerAbsImpl.java:69)
at com.esen.platform.server.Jdbc.init(Jdbc.java:183)
at com.esen.platform.server.ServerController.startContextListener(ServerController.java:318)
at com.esen.platform.server.ServerController.startOnAppServer(ServerController.java:401)
at com.esen.platform.web.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:48)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
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.deployWAR(HostConfig.java:850)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
客户端地址:http://localhost:8080/irpt/esmain/error.do?cause=noStart
java.sql.SQLException: 建数据库连接出现异常:
oracle.jdbc.driver.OracleDriver
jdbc


abi5
Io 异常: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
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:801)
at com.esen.jdbc.pool.DataSourceImpl.createRealConnection(DataSourceImpl.java:1894)
at com.esen.jdbc.pool.DataSourceImpl.createNewConnection(DataSourceImpl.java:1724)
at com.esen.jdbc.pool.DataSourceImpl.getNewConnection(DataSourceImpl.java:1644)
at com.esen.jdbc.pool.DataSourceImpl.getPooledConn(DataSourceImpl.java:1420)
at com.esen.jdbc.pool.DataSourceImpl.getPooledConnection(DataSourceImpl.java:1353)
at com.esen.jdbc.pool.DataSourceImpl.getConnection(DataSourceImpl.java:1471)
at com.esen.jdbc.pool.BaseDataSource.getConnection(BaseDataSource.java:53)
at com.esen.jdbc.pool.DataSourceImpl.initpool(DataSourceImpl.java:966)
at com.esen.jdbc.pool.DataSourceImpl.getConnection(DataSourceImpl.java:1465)
at com.esen.jdbc.pool.BaseDataSource.getConnection(BaseDataSource.java:53)
at com.esen.jdbc.PoolConnectionFactory.getConnection(PoolConnectionFactory.java:66)
at com.esen.jdbc.ConnectFactoryManagerAbsImpl.getDefaultConnection(ConnectFactoryManagerAbsImpl.java:69)
at com.esen.platform.server.Jdbc.init(Jdbc.java:183)
at com.esen.platform.server.ServerController.startContextListener(ServerController.java:318)
at com.esen.platform.server.ServerController.startOnAppServer(ServerController.java:401)
at com.esen.platform.web.PlatformServletContextListener.contextInitialized(PlatformServletContextListener.java:48)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
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.deployWAR(HostConfig.java:850)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
最佳答案
3个回答
-
1505121235 数据老手Lv5
地板
https://blog.csdn.net/aiyowei1106/article/details/82319530
按照这个帖子检查一下数据库配置