users@glassfish.java.net

Glassfish 2.1 and mysql connector issue

From: <glassfish_at_javadesktop.org>
Date: Wed, 14 Apr 2010 06:14:11 PDT

I have the following error:

Exception Details: java.lang.IncompatibleClassChangeError
  Found class com.mysql.jdbc.Connection, but interface was expected

I think it has to do with the mysql-connector-java-5.1.6-bin.jar classpath. That file is already in glassfish/domains/domain1/lib.

What is the proper way of putting the connector?
[Message sent by forum member 'thursgun']

http://forums.java.net/jive/thread.jspa?messageID=396885