到主机的 TCP/IP 连接失败,怎么办? 20
org.apache.commons.dbcp.SQLNestedException:CannotcreatePoolableConnectionFactory(到主机的...
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (到主机 的 TCP/IP 连接失败。 java.net.ConnectException: Connection refused: connect)
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
at org.apache.commons.dbcp.BasicDataSource.getLogWriter(BasicDataSource.java:1098)
at org.apache.commons.dbcp.BasicDataSourceFactory.createDataSource(BasicDataSourceFactory.java:350)
at cn.manage.util.DBCPUtil.<clinit>(DBCPUtil.java:21)
at cn.manage.dao.impl.DeviceDaoImpl.<init>(DeviceDaoImpl.java:18)
at cn.manage.service.impl.BusinessServiceImpl.<init>(BusinessServiceImpl.java:27)
at cn.manage.web.ManagerServlet.<init>(ManagerServlet.java:30)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
服务都启动了,也重启了sqlserver服务,链接信息
端口、数据库、用户密码都检查过了,还是报这个错误,现在该怎么办? 展开
at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
at org.apache.commons.dbcp.BasicDataSource.getLogWriter(BasicDataSource.java:1098)
at org.apache.commons.dbcp.BasicDataSourceFactory.createDataSource(BasicDataSourceFactory.java:350)
at cn.manage.util.DBCPUtil.<clinit>(DBCPUtil.java:21)
at cn.manage.dao.impl.DeviceDaoImpl.<init>(DeviceDaoImpl.java:18)
at cn.manage.service.impl.BusinessServiceImpl.<init>(BusinessServiceImpl.java:27)
at cn.manage.web.ManagerServlet.<init>(ManagerServlet.java:30)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
服务都启动了,也重启了sqlserver服务,链接信息
端口、数据库、用户密码都检查过了,还是报这个错误,现在该怎么办? 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励10(财富值+成长值)+提问者悬赏20(财富值+成长值)
1个回答
展开全部
把1433前面的IP换成localhost试试
追问
改了,还是报这个错
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
Storm代理
2023-07-25 广告
2023-07-25 广告
StormProxies是一家国内优质海外HTTP代理商,拥有一个庞大的IP资源池,覆盖200多个地区,IP数量大且匿名度高。其优点还包括超高并发、稳定高效、技术服务等特点,同时提供HTTP、HTTPS以及SOCKS5协议支持。此外,Sto...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询