The open source jTDS driver works with SAP ASE (formerly Sybase) as well. Note that although you can use jTDS open source JDBC driver, we recommend that you use the SAP-supplied JDBC driver instead. Connections might not work reliably if you use the jTDS JDBC driver. ClassNotFoundError is thrown by the classloader when it can not find a certain class. In this case it's the net.sourceforge.jtds.jdbc.Driver class, which means that jtds.jar is not in the classpath I our case we manually load the jar from the path specified in jdbcdriverlibrary and the class must be found therein.
⋅100分求《新手学HTML+CSS》的光盘内容
⋅运行时错误1004 类worksheet的paste方法无效
⋅去掉xml里的非法字符问题
Cannot Load Driver Class Net.sourceforge.jtds.jdbc.driver Spring Boot
更多帖子
关注私信空间博客
等级
Jtds Vs Microsoft Jdbc Driver
结帖率 100%
把数据库连接写在jsp中能访问数据库,但写在server.xml中tomcat启动时错误为: [ksystem] DEBUG [main] ClickstreamListener.(28) | ClickstreamLogger constr ucted [ksystem] ERROR [main] JDBCExceptionReporter.logExceptions(46) | Cannot load JDB C driver class 'null' [ksystem] ERROR [main] JDBCExceptionReporter.logExceptions(46) | Cannot load JDB C driver class 'null' Cannot load JDBC driver class 'null' java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:523)。。。。。 server.xml的配置为: driverName='net.sourceforge.jtds.jdbc.Driver' connectionURL='jdbc:jtds:sqlserver://localhost/shtzdb;charset=gb2312;autoReconnect=true' connectionName='sa' connectionPassword='sa' userTable='tb_sys_user' userNameCol='user_code' userCredCol='password' userRoleTable='tb_sys_user_role' roleNameCol='role_code' /> factory org.apache.commons.dbcp.BasicDataSourceFactory