我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)
----------------解决方案--------------------------------------------------------
你连的JDBC驱动是SQL SERVER
下面怎么又是MYSQL的连接池呀??/
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
可能是你的端口号写错拉...检查一下 看看是不是那的错误.
----------------解决方案--------------------------------------------------------
就ok了
----------------解决方案--------------------------------------------------------
这个问题我记得我回答过了呀
还贴了两个网址的嘛
怎么还又问的呀
----------------解决方案--------------------------------------------------------