Web Express with MySQL produces error: java.lang.NoClassDefFoundError: java/sql/Savepoint
Originally Published: 2005-03-15
Last Modified: 2023-09-22
Article Number
000056711
Applies To
************** NOT TESTED YET ----  USE AT YOUR OWN RISK **********************
RSA SecurID Web Express 1.2
MySQL 4.1

mysql-connector-java-3.1.7-bin.jar


Issue
error (JRun) Could not pre-load servlet: WburInit [java.lang.NoClassDefFoundError: java/sql/Savepoint] java.lang.NoClassDefFoundError: java/sql/Savepoint
Resolution

MySQL Connector/J supports Java-2 JVMs, including JDK-1.2.x, JDK-1.3.x, JDK-1.4.x and JDK-1.5.x, and requires JDK-1.4.x or newer to compile (but not run). MySQL Connector/J does not support JDK-1.1.x or JDK-1.0.x

Because of the implementation of java.sql.Savepoint, Connector/J 3.1.0 and newer will not run on JDKs older than 1.4 unless the class verifier is turned off (-Xverify:none), as the class verifier will try to load the class definition for java.sql.Savepoint even though it is not accessed by the driver unless you actually use savepoint functionality.