[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - mysql connection from jboss 5.1 on a mac
anhilde
do-not-reply at jboss.com
Sun Jul 5 11:06:55 EDT 2009
Hi, I have spent this lovely sunday trying to connect to a mysql DB on my mac. I have taken a server configuration I have been using on my Linux machine and a Linux VM on this mac with success. I installed mysql on this mac because I'm going on holiday want to work on my mac "natively" so to speak without the VM. Unfortunately the very same configuration that works on my Linux machines fails on my mac with:
Caused by: org.jboss.resource.JBossResourceException: Failed to register driver for: org.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: org.mysql.jdbc.Driver from BaseClassLoader at e83135{
I assume this is the cause, however I have no explanation why it should really be a classloading issue. The mysql-connector-java-5.1.7-bin.jar is in the $JBOSS_HOME/server/default/lib. I have also tried packaging it with the application I'm trying to deploy, no change. I also know the DB is working, I can connect using the command line, the mysql GUI adminstration tool as well as connect using the exact driver above from a simple java main program I have written. Any ideas why jboss would fail would be greatly appreciated!
Best Regards,
André
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241844#4241844
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241844
More information about the jboss-user
mailing list