[求助]netbean+mysql+Tomcat, run project后IE报Cannot create PoolableConnectionFactory_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 2147 | 回复: 0   主题: [求助]netbean+mysql+Tomcat, run project后IE报Cannot create PoolableConnectionFactory        下一篇 
caroline
注册用户
等级:新兵
经验:66
发帖:4
精华:0
注册:2012-6-1
状态:离线
发送短消息息给caroline 加好友    发送短消息息给caroline 发消息
发表于: IP:您无权察看 2014-11-28 11:30:32 | [全部帖] [楼主帖] 楼主

netbean+mysql+Tomcat, run project后IE报Cannot create PoolableConnectionFactory,像是数据库拒绝连接,咋办?   

netbean+mysql+Tomcat, run project后IE报org.apache.tomcat.dbcp.dbcp.SQLNestedException:  Cannot create Poolable Connection Factory (Communications   link   failure   due   to   underlying   exception:   

看起来像是数据库拒绝连接,IE详细报错如下: 

ERROR! 

org.apache.tomcat.dbcp.dbcp.SQLNestedException:   Cannot   create   PoolableConnectionFactory   (Communications   link   failure   due   to   underlying   exception:   

**   BEGIN   NESTED   EXCEPTION   **   

java.net.SocketException 

MESSAGE:   java.net.ConnectException:   Connection   refused:   connect 

STACKTRACE: 

java.net.SocketException:   java.net.ConnectException:   Connection   refused:   connect 

at   com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156) 

at   com.mysql.jdbc.MysqlIO.(MysqlIO.java:276)
at   com.mysql.jdbc.Connection.createNewIO(Connection.java:2666)
at   com.mysql.jdbc.Connection.(Connection.java:1531)
at   com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
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.BasicDataSource.createDataSource(BasicDataSource.java:1221)
at   org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
at   com.borrowsys.db.ConnectionManager.getConnection(ConnectionManager.java:38)
at   com.borrowsys.db.Worker.getAllItems(Worker.java:56)
at   org.apache.jsp.index_jsp._jspService(index_jsp.java:94)
at   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at   javax.servlet.(HttpServlet.java:803)
at   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at   javax.servlet.(HttpServlet.java:803)
at   orre.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at   orre.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at   org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
at   orre.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at   orre.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at   orre.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at   orre.StandardContextValve.invoke(StandardContextValve.java:175)
at   orre.StandardHostValve.invoke(StandardHostValve.java:128)
at   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at   orre.StandardEngineValve.invoke(StandardEngineValve.java:109)
at   ornnector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at   oryote.(Http11Processor.java:844)
at   oryote.$Http11ConnectionHandler.process(Http11Protocol.java:581)




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论