这问题不是出在sql驱动上面。而是出在socket上面啊。驱动已经找到了,你的端口好象被占用了吧,建议你重装一次sql试试。sql没装好有可能会出现这样的情况的。
解决方案 »
- BrioQuery
- spring 抽象类 注入值为空(spring3+mongodb+morphia)
- 连接远程数据库 url字符串问题
- 怎样在jsp的页面一行中迭代两个从action中获取不同的东东
- 谁知道TOMCAT5.0是怎么支持Application对象的?
- 有关在JTable的其中一列里的每一行中加入一个JTextField和一个JButton的问题
- 使用JDBC如何往mysql数据库中插入汉字
- 在eclipse里不能新建“Add Easy Struts support"project
- 江湖救急,高手出手啊!!!帮助解决JAVA RMI 的异常问题!!!
- 在EJB中如何应用设计模式?
- 请教:如利用java开发一个发送手机短信的程序。
- 求救!!在tomcat5里调用javabean怎么配置??在相应的jsp里怎么怎么正确书写??
你的错误并不是没有找到包文件啊
建议看看你的数据库配置.是1433端口吗
问题出在端口上了,检查下sql2000启动了没有,另外端口号写的对不对,默认是1433
引用:
org.apache.jasper.JasperException: [Microsoft][SQLServer JDBC Driver]Error establishing socket
就是访问数据库的权限问题造成额
后来我重装了就好了
看看这个帖子应该能帮上忙:
http://community.csdn.net/Expert/topic/3074/3074918.xml?temp=.8531458
刚才重装了sqlserver2000,加了个sp3包,现在出现了新的错误了:javax.servlet.ServletException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]?? 'sa' ???????: ???? SQL Server ??????
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
org.apache.jsp.jsptodb_jsp._jspService(jsptodb_jsp.java:83)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
root cause java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]?? 'sa' ???????: ???? SQL Server ??????
com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
com.microsoft.jdbc.sqlserver.tds.TDSLoginRequest.processReplyToken(Unknown Source)
com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
java.sql.DriverManager.getConnection(Unknown Source)
java.sql.DriverManager.getConnection(Unknown Source)
org.apache.jsp.jsptodb_jsp._jspService(jsptodb_jsp.java:52)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
note The full stack trace of the root cause is available in the Tomcat logs.