-
1. Re: mysql connection from jboss 5.1 on a mac
peterj Jul 5, 2009 11:19 AM (in response to anhilde)org.mysql.jdbc.Driver should be com.mysql.jdbc.Driver
-
2. Re: mysql connection from jboss 5.1 on a mac
anhilde Jul 5, 2009 3:45 PM (in response to anhilde)Yep so it should be and then it works, I'm so baffled, I can't think right now. I should have seen this... But why does the very same org.mysql.jdbc.Driver work on my Linux machine?
Best Regards,
Andre -
3. Re: mysql connection from jboss 5.1 on a mac
anhilde Jul 6, 2009 3:04 AM (in response to anhilde)Just to clarify, I checked my Linux System and the datasource works fine with the org.mysql.jdbc.Driver. So I meant the previous question serious :-). Also because I don't see why the classpath should be different on the Linux machine as the jboss installation is exactly the same as I have stored it centrally in my svn.
Best Regards,
Andre -
4. Re: mysql connection from jboss 5.1 on a mac
peterj Jul 6, 2009 11:09 AM (in response to anhilde)Check the MySQL JDBC JAR file and look at the full package names of the drivers, maybe there is an extra one. Where did you get this JAR file? My driver comes from the Maven repository, it's been years since I obtained the driver from the MySQL web site.
Currently, com.mysql.jdbc.Driver class is the recommended driver, but org.gjt.mm.mysql.Driver is still retained for backwards compatibility.