标题:[求助]为什么我连接不上?
只看楼主
暴暴蛇
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2006-3-16
 问题点数:0 回复次数:3 
[求助]为什么我连接不上?

我SQL和Tomcat都正常启动了,数据库的接入账号和密码也都正确了,但是为什么我连接不到数据库
下面是log文件里的内容
Tue Mar 28 10:51:56 CST 2006: 成功注册JDBC驱动程序com.microsoft.jdbc.sqlserver.SQLServerDriver
Tue Mar 28 10:51:56 CST 2006: 成功创建连接池mysql
Tue Mar 28 10:51:58 CST 2006: 无法创建下列URL的连接: jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=bbs
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at net.acai.database.DBConnectionManager$DBConnectionPool.newConnection(DBConnectionManager.java:344)
at net.acai.database.DBConnectionManager$DBConnectionPool.getConnection(DBConnectionManager.java:286)
at net.acai.database.DBConnectionManager.getConnection(DBConnectionManager.java:70)
at net.acai.database.DBConnect.init(DBConnect.java:23)
at net.acai.database.DBConnect.<init>(DBConnect.java:46)
at net.acai.forum.ForumPropertiesManager.<init>(ForumPropertiesManager.java:55)
at net.acai.forum.ForumPropertiesManager.getString(ForumPropertiesManager.java:35)
at org.apache.jsp.forum.index_jsp._jspService(index_jsp.java:103)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:831)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1196)
at java.lang.Thread.run(Unknown Source)

搜索更多相关主题的帖子: SQL 数据库 CST Mar Tue 
2006-03-30 08:08
可可℃乐
Rank: 2
等 级:新手上路
威 望:3
帖 子:1054
专家分:0
注 册:2006-5-9
得分:0 
你连的JDBC驱动是SQL SERVER
下面怎么又是MYSQL的连接池呀??/
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
可能是你的端口号写错拉...检查一下 看看是不是那的错误.

[url=http://www.]网页设计教程[/url]
2006-05-15 16:38
wpaccp
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2006-5-19
得分:0 
[转载]SQLSERVER2000的补丁包
你在网上下载一个SQLSERVER2000的补丁包,并安装

就ok了
2006-05-19 10:36
疯子java
Rank: 4
等 级:贵宾
威 望:13
帖 子:328
专家分:0
注 册:2004-9-19
得分:0 
这个问题我记得我回答过了呀
还贴了两个网址的嘛
怎么还又问的呀

疯言疯语 疯部可及 ---世界法第1章第1节第1条规定 此人由于说话太过于疯!!!其余人等切不可与其交谈! 此人由于说话太过于疯!!!此人的话100%的不能相信
2006-05-19 14:38



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-53826-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.554549 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved