当前位置: 代码迷 >> Java Web开发 >> tomcat启动时出现的问题 !!
  详细解决方案

tomcat启动时出现的问题 !!

热度:381   发布时间:2007-06-05 09:09:30.0
tomcat启动时出现的问题 !!

2007-6-4 23:25:05 org.logicalcobwebs.proxool.Prototyper sweep
严重: Prototype
java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.ConnectException: Connection refused: connect

** BEGIN NESTED EXCEPTION **

java.net.ConnectException
MESSAGE: Connection refused: connect

STACKTRACE:

java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:461)
at java.net.Socket.connect(Socket.java:411)
at java.net.Socket.<init>(Socket.java:310)
at java.net.Socket.<init>(Socket.java:125)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:124)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:225)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:1783)
at com.mysql.jdbc.Connection.<init>(Connection.java:450)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at org.logicalcobwebs.proxool.ProxyFactory.buildProxyConnection(ProxyFactory.java:41)
at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:150)
at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:95)
at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:42)


** END NESTED EXCEPTION **


at com.mysql.jdbc.Connection.createNewIO(Connection.java:1851)
at com.mysql.jdbc.Connection.<init>(Connection.java:450)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at org.logicalcobwebs.proxool.ProxyFactory.buildProxyConnection(ProxyFactory.java:41)
at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:150)
at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:95)
at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:42)

搜索更多相关主题的帖子: tomcat  

----------------解决方案--------------------------------------------------------

高手 这个问题该怎么解决 ??


----------------解决方案--------------------------------------------------------
连接被拒绝。。。。

看一下是你否能用你的用户名登陆MYSQL,

没遇见过这个问题。。
----------------解决方案--------------------------------------------------------
检查一下mysql的jar包是否在tomcat下的common/lib下,关闭防火墙(有这样的可能)。
----------------解决方案--------------------------------------------------------

我感觉是tomcat的问题 因为 我在别的机子上能行 在我的机子上就不行了 出现这个问题后 我编写的程序也能正常运行 tomcat也能正常启动 但是我就是不知道哪儿出了问题 。


----------------解决方案--------------------------------------------------------
这个应该不是数据库的问题,你作个main函数测试一下能不能连接数据库,要是行,就重新装一下Tomcat好了
----------------解决方案--------------------------------------------------------
at java.sql.DriverManager.getConnection(DriverManager.java:140)
jdbc连接错误了阿
telnet host ports
如果运行上面的命令可以连接说明端口正确,再检查一下你的jdbc url看看是不是搞错了
----------------解决方案--------------------------------------------------------
  相关解决方案