Bug#454081: Class not found JDBC4Connection

Julien Bernard axolotl at magieeternelle.org
Sun Dec 2 22:39:20 UTC 2007

Package: libmysql-java
Version: 5.1.5+dfsg-1
Severity: grave
Justification: renders package unusable

when trying to instance a Connection with a
org.apache.commons.dbcp.BasicDataSource and a valid Connection URL, a
ClassNotFoundException is thrown, and no Connection is available.

Here is an extract of the output:

Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.mysql.jdbc.JDBC4Connection
	at com.mysql.jdbc.ConnectionImpl.<clinit>(ConnectionImpl.java:222)
	... 20 more
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.JDBC4Connection
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:169)
	at com.mysql.jdbc.ConnectionImpl.<clinit>(ConnectionImpl.java:213)
	... 20 more

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=fr, LC_CTYPE=fr (charmap=ISO-8859-1) (ignored: LC_ALL set to fr_FR)
Shell: /bin/sh linked to /bin/bash

Versions of packages libmysql-java depends on:
ii  gij-4.1 [java2-runtime]       4.1.2-16   The GNU Java bytecode interpreter
ii  gij-4.2 [java2-runtime]       4.2.2-3    The GNU Java bytecode interpreter
ii  java-gcj-compat-dev           1.0.76-8   Java runtime environment with GCJ
ii  sun-java6-jre [java2-runtime] 6-03-2     Sun Java(TM) Runtime Environment (

libmysql-java recommends no packages.

-- no debconf information

More information about the pkg-java-maintainers mailing list