Usually linkage errors are caused by having more than one copy of a class loaded. Look at what mysql provides with their driver, and make sure you haven't deployed anything else with this class.
Many thanks David,
I had loaded the jdbc driver twice.
Now it works correctly.
P.S. I changed my nick.