小弟遇到JDBC方面的问题解决不了,求助
java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriverconn error...
fffffdddddeeeeeeeTue Apr 03 23:32:44 CST 20072007-4-3 23:32:45 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException at org.apache.jsp.save_jsp._jspService(save_jsp.java:94)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Unknown Source)
我不明白为什么报了:java.lang.
ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriverconn error...这样的错啊。我用的是myeclipse,JDBC那3个jar包我已经导入项目了,连接的代码我测试过了,没有问题。
ConnectBean.java
package com.liuyanban;
import java.sql.DriverManager;
import java.util.Properties;
import java.sql.Connection;
public class ConnectBean{
private String driver= "com.microsoft.jdbc.sqlserver.SQLServerDriver ";//SQL的驱动
private String url= "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=jade ";//连接数据源
private String user= "sa ";//用户名
private String password= " ";//密码
public Connection getConnection(){
&nb