我在tomcat进行dbcp配置时出现org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'jdbc:jtds:sqlserver://localhost:1433/demo'
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150)
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
org.apache.jsp.viewdb_jsp._jspService(viewdb_jsp.java:90)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
context的配置为[code="java"]
auth="Container"
type="javax.sql.DataSource"
factory=org.apache.commons.dbcp.BasicDataSourceFactory
maxActive="100"
maxIdle="30"
maxWait="10000"
username="sa"
password="123456789"
driveClassName="net.sourceforge.jtds.jdbc.Driver"
url="jdbc:jtds:sqlserver://localhost:1433/demo"/> [/code]
项目的web.xml文件配置为[code="java"]
db connection
jdbc/TestDB
javax.sql.DataSource
Container
[/code]
有谁知道是什么原因?