当前位置: 代码迷 >> Java Web开发 >> 提一个问题,有关测试数据源的
  详细解决方案

提一个问题,有关测试数据源的

热度:98   发布时间:2006-04-01 02:27:00.0
提一个问题,有关测试数据源的
为什么我测试数据源时提示我“数据库连接失败,具体错误,请您查看您的日志文件!”
然后看日志文件里面是这样写的:
Fri Mar 31 08:10:07 CST 2006: 成功注册JDBC驱动程序com.microsoft.jdbc.sqlserver.SQLServerDriver
Fri Mar 31 08:10:07 CST 2006: 成功创建连接池mysql
Fri Mar 31 08:10:09 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)

这是哪里出错了????帮忙解答一下吧
搜索更多相关主题的帖子: 数据源  

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

这么长呀


----------------解决方案--------------------------------------------------------
Fri Mar 31 08:10:07 CST 2006: 成功注册JDBC驱动程序com.microsoft.jdbc.sqlserver.SQLServerDriver
Fri Mar 31 08:10:07 CST 2006: 成功创建连接池mysql
Fri Mar 31 08:10:09 CST 2006: 无法创建下列URL的连接: jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=bbs

问一下,你连接的是SQL数据库,为什么会有mysql的连接池?
----------------解决方案--------------------------------------------------------
啊,我也不知道,但是以前可以的,我重装个系统后就不性了
----------------解决方案--------------------------------------------------------
你用的测试程序是什么 ???
----------------解决方案--------------------------------------------------------
  相关解决方案